AutomationFlowsSlack & Telegram › If Branches

If Branches

02-if-branches. Uses slack, httpRequest. Event-driven trigger; 8 nodes.

Event trigger★★★☆☆ complexity8 nodesSlackHTTP Request
Slack & Telegram Trigger: Event Nodes: 8 Complexity: ★★★☆☆ Added:

This workflow follows the HTTP Request → Slack recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "02-if-branches",
  "nodes": [
    {
      "id": "00000000-0000-4000-8000-000000000000",
      "name": "Manual trigger for testing",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        300
      ],
      "parameters": {}
    },
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "If the order total is over 100",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        300,
        300
      ],
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 2
          },
          "conditions": [
            {
              "id": "c1",
              "leftValue": "={{ $json.value }}",
              "rightValue": "the order total is over 100",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000002",
      "name": "If the order total is over 100 \u2014 merge",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        900,
        300
      ],
      "parameters": {
        "mode": "combine",
        "combineBy": "combineByPosition",
        "numberInputs": 2,
        "options": {}
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000003",
      "name": "Send a Slack message to the VIP channel",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.5,
      "position": [
        600,
        200
      ],
      "parameters": {
        "resource": "message",
        "operation": "post",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "TODO: set channel (from Relay prompt)"
        },
        "text": "TODO: set message text (from Relay prompt)",
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000004",
      "name": "Update the CRM via HTTP",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [
        900,
        200
      ],
      "parameters": {
        "method": "GET",
        "url": "TODO: set request URL (from Relay prompt)",
        "options": {}
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000005",
      "name": "Send a Slack message to the standard channel",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.5,
      "position": [
        1200,
        400
      ],
      "parameters": {
        "resource": "message",
        "operation": "post",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "TODO: set channel (from Relay prompt)"
        },
        "text": "TODO: set message text (from Relay prompt)",
        "otherOptions": {}
      },
      "credentials": {
        "slackApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000006",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        -160
      ],
      "parameters": {
        "content": "## \u26a0 Secrets and credentials\n\nEvery credential must be re-entered by hand in n8n. No automation possible.",
        "height": 160,
        "width": 280,
        "color": 1
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000007",
      "name": "Sticky Note 2",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        300,
        100
      ],
      "parameters": {
        "content": "## \u26a0 Path merging\n\nPaths in \"If the order total is over 100\" rejoin via a Merge node. n8n Merge combines items, not typed objects \u2014 verify the merged shape.",
        "height": 160,
        "width": 280,
        "color": 5
      }
    }
  ],
  "connections": {
    "If the order total is over 100": {
      "main": [
        [
          {
            "node": "Send a Slack message to the VIP channel",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a Slack message to the standard channel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a Slack message to the VIP channel": {
      "main": [
        [
          {
            "node": "Update the CRM via HTTP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update the CRM via HTTP": {
      "main": [
        [
          {
            "node": "If the order total is over 100 \u2014 merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a Slack message to the standard channel": {
      "main": [
        [
          {
            "node": "If the order total is over 100 \u2014 merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Manual trigger for testing": {
      "main": [
        [
          {
            "node": "If the order total is over 100",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

02-if-branches. Uses slack, httpRequest. Event-driven trigger; 8 nodes.

Source: https://github.com/syedahmad0786/relay2n8n/blob/main/fixtures/02-if-branches/expected.n8n.json — original creator credit. Request a take-down →

More Slack & Telegram workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Slack & Telegram

This workflow is an AI-powered roto matte generation and first-pass compositing pipeline designed for VFX production. It transforms structured roto requests into multiple high-precision matte passes u

HTTP Request, Slack, Error Trigger +4
Slack & Telegram

This workflow captures invoice images/documents from WhatsApp, extracts structured invoice data with Google Gemini, and syncs the result to HubSpot by creating vendor-payment tasks or closing matching

WhatsApp Trigger, WhatsApp, HubSpot +2
Slack & Telegram

Wait Slack. Uses httpRequest, xml, splitInBatches, stickyNote. Event-driven trigger; 28 nodes.

HTTP Request, XML, Execute Workflow Trigger +1
Slack & Telegram

Trigger: Launched by a parent workflow through a Slack shortcut with modal input. API Integration: Utilizes the Qualys API for vulnerability scanning. Data Conversion: Converts XML scan results to JSO

HTTP Request, XML, Execute Workflow Trigger +1
Slack & Telegram

This n8n template from Intuz provides a complete and automated solution for preparing and delivering context-rich briefings directly to attendees before every meeting.

Google Calendar Trigger, Notion, GitHub +3