Route an Agent with a rule condition

Compare a trigger property or record field, add steps for each outcome, and verify the path before turning the Agent on.

Use a rule condition when a known value should determine which steps an Agent follows. For example, an Agent triggered by an updated request can follow one path when Status equals Approved and another for other statuses.

Define the rule

  1. Open your draft Agent in Agents → Mine and select Build. If the rule uses a record field, configure the record trigger and its table first.
  2. At the point where the paths should diverge, open the plus menu labeled Add step or Add step here. Choose Condition and select that step on the canvas.
  3. Set Decision type to Rule. Select a trigger property or record Field, choose an Operator, and set Value if the operator requires it. For the request example, choose Status, Equals, and Approved.

Add steps and check each path

  1. Under Branches, use Add step on Yes for the matching outcome and Add step on No for the other outcome. For a step that should run after either path, use Add shared step after branches on the main canvas.
  2. Wait for the design to save. When Test is available, test the draft and check the path in Runs. For a record trigger, Mainbase tries to pick a readable record from the trigger table. Compare the branch taken with the sampled record’s value.

If the record field is missing from Field, check the table on the trigger. If a run needs review because the condition’s input is unavailable, check the source record or trigger data before retrying.

Route an Agent with an AI decision

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?