Developer & DevOps

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

34 nodes 189 115 Webhook
Download

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 Twitter/X Postgres

Details

Trigger Webhook
Nodes 34
Apps 3
Views 189
Downloads 115

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 (34)

/

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

REPLACE ME WITH TRIGGER

Set

#26

Delete user here for example

Postgres

#27

Get user here for example

Postgres

#28

Confirm user was deleted

Slack

#29

Replying to thread

Slack

#30

Sticky Note2

Sticky Note

#31

Sticky Note1

Sticky Note

#32

parse command

Code

#33

Validate webhook signature

Code

#34