docs
EnglishChatigram website ↗Open Chatigram
branch · control

Branch Selector (5 Branches)

Route workflow to one of 5 static branches based on numeric index or branch name. Perfect for multi-path workflows where you need to split execution based on conditions. Each branch is a separate workflow path you can build in the editor. Automatically includes an Error branch for invalid inputs.

Plan availability #

Feature Free Starter Pro Enterprise
Active workflows 3 10 45 Unlimited

Allowances follow the published Chatigram pricing page. Your organization’s Billing & Plans screen confirms its subscription and current usage. Plans can change. Plan information reviewed 2026-11-10.

When to use this node #

Route workflow to one of 5 static branches based on numeric index or branch name. Perfect for multi-path workflows where you need to split execution based on conditions. Each branch is a separate workflow path you can build in the editor. Automatically includes an Error branch for invalid inputs.

Add Branch Selector (5 Branches) to a workflow branch using the node picker. Configure its fields in the inspector, then connect the next step.

Configure the fields #

Field What to enter
Branch Index Specify which branch to take. Accepts multiple formats:

📊 Numeric Index (0-based):
• 0 → Branch 1
• 1 → Branch 2
• 2 → Branch 3
• 3 → Branch 4
• 4 → Branch 5

📝 Branch Names (case-insensitive):
• 'branch 1' or 'branch1' → Branch 1
• 'branch 2' or 'branch2' → Branch 2
• 'Branch 3' or 'BRANCH 3' → Branch 3

💡 Usage Tips:
• Connect String Operations output: extract_number result → Branch Index
• Connect Text Parser output: match1 → Branch Index
• Connect Switch Case output: convert text to number → Branch Index

⚠️ Error Handling:
• Invalid input → Error branch (automatically added)
• Out of range → Error branch
• Empty input → Error branch

Example Workflow:
Text Parser (extract 'ban'/'kick'/'warn') → Switch Case (convert to 0/1/2) → Branch Selector → Branches

Use the result #

Choose the output from the variable picker in a later step. Output names below identify the values supplied by this node; the picker inserts the correct reference for your node instance.

Output Meaning / label
selectedBranch Selected Branch Name
success Success (true/false)
error Error Message (if any)

Connect the next step #

This definition exposes these paths:

  • Branch 1 — branch 1.
  • Branch 2 — branch 2.
  • Branch 3 — branch 3.
  • Branch 4 — branch 4.
  • Branch 5 — branch 5.
  • Error — branch 6.

Connect each relevant outcome, especially any error or timeout path. Outputs can differ by outcome; check that a result exists before using it.

Test it in a workflow #

  1. Configure this node with a small, recognizable test input or a test resource.
  2. Check the variables from preceding steps and the connection selected in the inspector.
  3. Save the workflow. For event-driven flows, generate the actual event; use Run only for a Manual workflow.
  4. Open Workflow Activity and check the outcome before enabling wider use.

If something goes wrong #

  • Check empty variables, selected resource IDs, and any fields that appeared after resource selection.
  • Check the failed step in Workflow Activity before retrying. If the action may already have completed, inspect the destination first to avoid duplicates.
  • Follow the troubleshooting guide for a symptom-by-symptom checklist.

Catalog coverage #

This is the currently documented selection. Chatigram continues to add nodes, triggers, App Connections, and integrations. Use each page’s review date and the current application selectors to check what is available now; this catalog is not a fixed limit on future features.

Keep building.Need help with this? Explore troubleshooting ↗

Find an answer. Try “welcome workflow”, “database”, or “Telegram”.