Skip to content
Developer & DevOps

Receive Slack alerts, publish to X, and archive in Postgres

26 nodes 527 187 Webhook
Download

Loading workflow…

Workflow Description

Enterprise automation that captures messages through webhooks, broadcasts them to X platform with formatted content, and maintains a complete audit trail in Postgres. Features intelligent conditional routing to ensure only relevant alerts reach appropriate channels with proper formatting and verification.

How it works

  1. 1.Receive webhook request and parse incoming Slack message content and metadata
  2. 2.Evaluate configured conditions and route data through appropriate processing branches
  3. 3.Post formatted message to X account with required hashtags and context
  4. 4.Archive complete transaction record and message details in Postgres database
  5. 5.Send Slack confirmation notification to verify successful execution

Use cases

  • Automatically broadcast DevOps alerts and infrastructure updates to X while maintaining audit logs for compliance
  • Centralize critical notifications from multiple Slack channels with automatic public posting and permanent archival
  • Create incident management workflow that notifies team via Slack and announces status updates on X simultaneously

Requirements

  • Active Slack workspace with webhook creation permissions and channel access for receiving and sending messages
  • X (Twitter) developer account with API credentials configured for authenticated message posting
  • PostgreSQL database with proper schema and tables configured for logging transaction records

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Slack HTTP Request If Set Twitter/X Merge Webhook Code Postgres

Details

Trigger Webhook
Nodes 26
Apps 9
Views 527
Downloads 187

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (26)

/

Start thread

Slack

#1

send help

HTTP Request

#2

Validate Slack token

If

#3

Sticky Note3

Sticky Note

#4

Reply to user that command was received

HTTP Request

#5

if has workflow

If

#6

Set config

Set

#7

Send debug url

HTTP Request

#8

if create thread

If

#9

Alert user that thread was created

HTTP Request

#10

Add debug info

Slack

#11

Execute target workflow

Execute Workflow

#12

Add thread info

Merge

#13

Handle other commands

Switch

#14

Set thread info

Set

#15

Unknown command

HTTP Request

#16

Set vars

Set

#17

Webhook to call for Slack command

Webhook

#18

Reply to user directly

HTTP Request

#19

Sticky Note

Sticky Note

#20

Command workflow trigger

Execute Workflow Trigger

#21

if has flag

If

#22

If matches env variable

If

#23

Found user

HTTP Request

#24

Format data into nice structure

Code

#25

Get user here for example

Postgres

#26

Sticky Note2

Sticky Note

#27

Sticky Note1

Sticky Note

#28

parse command

Code

#29

Validate webhook signature

Code

#30
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime