logoRocketFlow

Automation Rules

Create no-code "when X happens, do Y" rules for your chatbots

Automation Rules

Automate repetitive tasks with rules that trigger on chatbot events. No code required.

How It Works

Each rule has three parts:

  1. Trigger — What event starts the rule
  2. Conditions — Optional filters (e.g., "message contains billing")
  3. Actions — What to do when conditions match

Triggers

TriggerFires When
session.createdNew conversation starts
message.receivedUser sends a message
lead.capturedLead is collected
ticket.createdTicket is created
handoff.escalatedAI escalates to human

Conditions

OperatorExample
containsmessage.text contains "billing"
equalssession.locale equals "pt-BR"
starts_withlead.email starts_with "test@"
ends_withlead.email ends_with "@gmail.com"
not_containsmessage.text not_contains "thank"
regexmessage.text matches ^(help|urgent)

Conditions support nested fields: message.text, lead.email, session.locale, deviceType.

Actions

ActionDescription
add_labelAdd a label to the conversation
resolveAuto-resolve the conversation
set_prioritySet ticket priority
escalateEscalate to human agent
send_notificationSend alert notification
auto_replySend an automatic response

Example Rules

"Tag billing questions"

{
  "name": "Tag billing questions",
  "trigger": "message.received",
  "conditions": [
    { "field": "message.text", "operator": "contains", "value": "billing" }
  ],
  "actions": [
    { "type": "add_label", "value": "billing" }
  ]
}

"Auto-resolve thank you messages"

{
  "name": "Auto-resolve thanks",
  "trigger": "message.received",
  "conditions": [
    { "field": "message.text", "operator": "regex", "value": "^(thanks|thank you|thx)" }
  ],
  "actions": [
    { "type": "resolve", "value": "" }
  ]
}

API

MethodEndpointAction
GET/api/automationsList all rules
POST/api/automationsCreate rule
PATCH/api/automationsUpdate rule
DELETE/api/automationsDelete rule

Rules execute in priority order (higher priority first). Disable a rule by setting active: false.

Last updated on