Example subworkflow for command WITHOUT Slack thread..
Configured with Execute Workflow, Execute Workflow Trigger, HTTP Request, Postgres, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Messaging
- Web / API
- Routing
- Transform
- Subworkflow
- Trigger
- Code
- Data store
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Start thread | Messaging | Slack | See node parameters |
| send help | Web / API | HTTP Request | See node parameters |
| Validate Slack token | Routing | If | See node parameters |
| Reply to user that command was received | Web / API | HTTP Request | See node parameters |
| if has workflow | Routing | If | See node parameters |
| Set config | Transform | Edit Fields | See node parameters |
| Send debug url | Web / API | HTTP Request | See node parameters |
| if create thread | Routing | If | See node parameters |
| Alert user that thread was created | Web / API | HTTP Request | See node parameters |
| Add debug info | Messaging | Slack | See node parameters |
| Execute target workflow | Subworkflow | Execute Workflow | See node parameters |
| Add thread info | Transform | Merge | See node parameters |
| Handle other commands | Routing | Switch | See node parameters |
| Set thread info | Transform | Edit Fields | See node parameters |
| Unknown command | Web / API | HTTP Request | See node parameters |
| Set vars | Transform | Edit Fields | See node parameters |
| Webhook to call for Slack command | Trigger | Webhook | See node parameters |
| Reply to user directly | Web / API | HTTP Request | See node parameters |
| Command workflow trigger | Trigger | Execute Workflow Trigger | See node parameters |
| if has flag | Routing | If | See node parameters |
| If matches env variable | Routing | If | See node parameters |
| Found user | Web / API | HTTP Request | See node parameters |
| Format data into nice structure | Code | Code | See node parameters |
| REPLACE ME WITH TRIGGER | Transform | Edit Fields | See node parameters |
| Delete user here for example | Data store | Postgres | deleteTable |
| Get user here for example | Data store | Postgres | select |
| Confirm user was deleted | Messaging | Slack | See node parameters |
| Replying to thread | Messaging | Slack | See node parameters |
| parse command | Code | Code | See node parameters |
| Validate webhook signature | Code | Code | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
slackApi
Workflow notes
👨🎤 Setup
👨🎤 Setup
- Add Slack command and point it up to the webhook
- Add the following to the Set config node
alerts_channelwith alerts channel to start threads oninstance_urlwith this instance url to make it easy to debugslack_tokenwith slack bot token to validate requestslack_secret_signaturewith slack secret signature to validate requesthelp_docs_urlwith help url to help users understand the commands
- Build other workflows to call and add them to
commandsin Set Config. Each command must be mapped to a workflow id with anExecute Workflow Triggernode - Activate workflow 🚀
Example subworkflow for command WITH Slack thread..
Example subworkflow for command WITH Slack thread..
Build this in a second separate workflow
and add the id to commands in Set Config
Used Edit Fields node here as trigger because you can only have one Execute Workflow Trigger per workflow
Example subworkflow for command WITHOUT Slack thread..
Example subworkflow for command WITHOUT Slack thread..
Purpose and structure
This folder contains the Example subworkflow for command WITHOUT Slack thread.. workflow. Its executable nodes use code, executeWorkflow, executeWorkflowTrigger, httpRequest, if, merge, postgres, set, slack, switch, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
Webhook to call for Slack command, Command workflow trigger
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Webhook/0453_Webhook_Code_Create_Webhook.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Example subworkflow for command WITHOUT Slack thread..
- 👆🏽 Set all custom config here