Overview
Three moments of a conversation can trigger an automation rule or a Flow Builder flow:
| Trigger | When it happens |
|---|---|
| Robot β Paused | the robot stopped answering (Pause button, a pause command, a pause the robot applied itself) |
| Robot β Conversation taken over by a person | the robot stopped because a person took over: assignment to an agent, a reply from an agent or from the phone, the Assume button, a handoff to human service |
| Robot β Resumed | the robot answers again after having stopped |
Each trigger fires once per change. The same three moments also exist as webhooks (see "See also").
Prerequisites
- Administrator permission to create automation rules or flows.
- For the Flow Builder, the Flow Builder feature enabled on the account.
- The robot actions (Pause AI, Resume AI, Assume conversation) require Maestro to be configured.
Step by step
Automation rule
- Open Settings β Automations β Add rule.
- In Event, pick one of the three triggers in the conversation group ("Robot β β¦").
- Optionally add conversation conditions (status, inbox, labels, assigneeβ¦) and the Origin of the change condition.
- Pick the actions and save.
Flow Builder flow
- Create a flow and pick the Robot paused, resumed or taken over trigger.
- In Lifecycle event, pick Robot paused, Robot resumed or Conversation taken over by a person.
- In Origin of the change, keep the default or pick another option (see below).
- Build the steps and publish.
Settings & options
Origin of the change and loop protection
An automation can also pause, resume or take over the robot. Without care, two rules such as "when paused, resume" and "when resumed, pause" would keep triggering each other forever. So:
| Situation | What happens |
|---|---|
| A person made the change (panel, API, assignment, reply) | the rule or flow runs |
| The robot made the change (handoff, end of a timed pause) | the rule or flow runs |
| An automation or flow made the change | it does not run, unless you ask for it (below) |
| The rule or flow itself made the change | it never runs β this cannot be turned off |
To also run when another automation caused the change:
- Automation rule: add the Origin of the change condition with Equal to and select Automation or flow. Without that condition, changes made by automations are ignored. Origin conditions are combined with AND with the other conditions.
- Flow: in Origin of the change, pick Automation or flow only or Any origin, including automations.
The flow options are: Person or robot (default), Person only, Robot only, Automation or flow only and Any origin, including automations.
Variables available in the flow
The trigger only carries codes, never message text: conversation_id, contact_id, inbox_id,
transition (paused, taken_over, resumed), state, reason, actor_type, origin (human,
robot or automation), automation_origin_type and automation_origin_id.
Use cases
- When a person takes over the conversation, add the "human service" label and notify the team.
- When the robot is resumed, remove that label.
- When the robot is paused outside business hours, send the contact an expectation message.
Tips, limits & best practices
- Resuming after a pause is the classic loop. React to "taken over by a person" rather than "paused" when the goal is to know a human is answering.
- Turning Origin of the change = Automation on in two rules that undo each other (one pauses, the other resumes) recreates the loop the protection prevents. The protection only stops a rule from firing on something it did itself.
- These rules run immediately: the automation execution delay does not apply to these triggers.
- A pause, resume or take-over made by an automation takes effect in the panel and in the triggers right after the action, without waiting for the periodic sync.
Troubleshooting
- "The rule did not fire when another automation paused the robot." That is the loop protection. Add the Origin of the change = Automation or flow condition if you want that behaviour.
- "The flow does not fire after it pauses the robot itself." Intended: a flow never fires on a change it made itself.
- "The rule fired twice." Each trigger fires once per change. Check for two rules with the same actions, or whether the conversation really paused and resumed.