Explanation
Article MarkdownReport an error

Branching by rules without cluttering the canvas

The Router (action_router) sends the flow down different branches based on rules over request-context fields (channel, status, priority, subject, tags, and so on). Instead of many small check nodes, you define conditions in one place.

Limitation: in the Node Inspector, Field is a closed list of context fields. You cannot enter an arbitrary scenario variable (user_choice, API response, etc.) into Router. To branch on a scenario constant, use Action switch — see Built-in actions. For button menus — separate MessageKeyboard edges.


How modes work

  • first_match — the first matching rule wins; execution follows that branch.
  • all_match — several rules may apply (see the UI and router parameters).

Rules and the canvas

Rules in the inspector map to outputs on the node: each rule connects to its next node. You can add a default branch if nothing matches.


Example uses

  • Different paths by channel (Telegram, Widget, Email).
  • Different logic by request status or priority.
  • Branching by subject or client / request tags.
  • «If channel A — path X, if B — path Y» without custom code.

Add a router

  1. Add Router from logic / templates.
  2. Choose mode (first_match / all_match).
  3. Add rules with conditions and branch ids.
  4. Enable default_branch if needed.
  5. Wire outputs on the canvas.

Field details: Router parameters.


See also

Using your own AI agent?Install the open skill so your AI agent can work with current official ConnectiveOne documentation.Get the skillNeed support?Couldn’t find the answer or need help from the ConnectiveOne team? Create a request in Client Portal.Create a request