Documentation

Daily operations

Automations and proactive messages

Build rule-based automations, start from templates, understand triggers, actions and run limits, schedule messages, and learn what proactive rules do and do not deliver.

Last updated: 2026-10-31

Automations let Sela do routine work for you without the AI: assign a new conversation, tag it, notify a teammate, create a work item or call your own system when something happens. This page covers the Automation hub, the rule builder, the built-in automations, scheduled messages, and the state of proactive messages.

New agreements require Growth or higher for custom automations. Starter cannot unlock workflows by purchasing an automation-run pack. Extra runs extend the capacity of an eligible plan; Plans and billing lists the quotas and pack price. Existing agreements retain their original access.

Run limits#

Finite monthly run allowances are enforced for all subscriptions, including older subscriptions. Existing run packs and the subscription's billing cycle still apply. All branches sharing a billing account share a safety limit of 120 new automation runs per minute. Replaying an already claimed execution does not charge another run. A rate-limited execution fails with an explanation; check its history before restarting it. A workflow can execute at most 60 graph steps.

Open the Automation hub#

Open Automation in the left rail, then Automation. You need the automations read permission to see the hub. Agents can read it but cannot change it. Managing automations needs the automations manage permission, which managers, admins and owners have.

The hub has five tabs:

TabWhat it is for
TemplatesReady-made blueprints you set up from a short form. This is the default tab when the workspace has no workflows yet.
WorkflowsThe rules you built or created from a template. Enable, disable, edit, archive and inspect runs.
Built-inAutomations that ship with Sela and are switched on or off, such as the out-of-hours reply.
CommentsComment automations, the accounts that send comments, the comments themselves with manual replies, and live moderation of a post's comments.
ActivityThe execution log across the workspace.

If a banner says Automated sending is paused, the workspace-wide outbound pause is on and no automated message is going out until it is turned off. Comment replies a workflow queued before the pause are not sent either.

Plans and limits#

The hub opens on every plan, so an Inbox workspace can still control the built-in automations. Building and enabling custom workflows needs the Operations plan or higher. On a workspace without that access you see "Deterministic automations require Operations or Scale".

Custom workflows do not require an AI add-on or AI credits. Fixed replies, conditions, menus and assignments use the automation plan and run allowance. AI-specific steps such as pausing or handing over to the assistant only affect an assistant already configured for that workspace.

PlanActive automationsAutomation runs per month
Sandbox00
Inbox00
Operations105,000
Scale5025,000
EnterpriseSet by contractSet by contract

Each purchased branch brings the full allowance, pooled across the business account. Prices and add-ons, including the 5,000-run pack, are on Plans and billing.

What counts as a run. A run is counted just before the first action of a rule that has at least one action. Internal retries do not count again; a replay you start yourself does.

What happens at the limit. Usage warns at 80 percent, is still allowed up to 110 percent, and is blocked at 110 percent. A blocked run fails without executing any action. There are no automatic overage invoices. Buy a run pack or upgrade to continue.

Per rule, the builder allows up to 20 conditions, 20 actions and 10 branches, and a workspace can hold up to 200 rules.

Start from a template#

Templates are the fastest way to a working rule. Open the Templates tab, pick one, fill the setup form (message text, team, delay, and so on), optionally limit it to certain channels, and create it. The result appears under Workflows as a draft.

The templates are grouped into four categories:

CategoryExamples
Auto-responderReply to an ad arrival, out-of-hours reply, welcome first message, first-response acknowledgement, long-wait apology, satisfaction survey after close, follow-up after no reply, widget greeting, send the menu then let the AI close the order
Routing and assignmentReply and route by keyword, round-robin new chats, least-busy agent, route by channel, VIP priority routing, out-of-hours queue and tag
Chat menusMain menu with three options, sales versus support, FAQ quick answers, collect an order number
Business processCollect information with a form, SLA breach response, auto-close idle conversations, escalation alert, payment-confirmed receipt, tag new conversations

Two situations disable a template card:

  • It needs an automation plan and the workspace does not have one (shown as a plan requirement).
  • Its trigger has no live emitter yet (shown as unavailable). See triggers below.

Preview a template#

Every card has Preview, including disabled ones. The preview is an example only: nothing runs and nothing is saved. It shows:

  • How it works: three numbered steps. What starts it, who it reaches (for example only the first message, only when the text contains a word, or a different path when you are closed) and what it does.
  • What the customer sees: a sample chat with the template's own messages. The customer's name appears as a sample name. Templates that only tag, assign or alert say that they send the customer nothing.
  • What you fill in: the fields the setup form will ask for. Optional ones are marked.
  • Steps: the workflow on a read-only canvas. On a phone the steps are a numbered list.

A disabled template shows why inside the preview ("Needs a higher plan" or "Not available yet") and its button stays disabled. Otherwise the preview's button does the same as the card's: Use template opens the setup form, and a comment template opens the comment designer. Creating the workflow is always that separate step.

On the All and Auto-responder categories, a How auto-replies work section sits above the cards, with a sample greeting from the Welcome message template. Select its title to fold it away. Your browser remembers the choice.

Build a workflow#

In Workflows, create a new rule. The builder is a graph: a trigger, then conditions, then actions, with branches when you need different outcomes. Besides the actions below, the graph has message and menu steps for sending a reply or a chat menu to the customer.

  1. Choose the trigger event.
  2. Add conditions, for example channel, priority or tags.
  3. Add actions in order.
  4. Save. The rule is a draft. It will not run until you explicitly enable it.
  5. Enable it from the rule list.

After a rule runs you can open its run history, see failures in the failure queue and Replay a failed run. Every failed run, of a simple rule or a workflow (including a workflow stopped by a missing or unsupported step or by the 60-step limit), sends one automation failure alert to the members who can manage automations. A run that was skipped or stopped on purpose, for example because the workflow was turned off while it waited, does not. A message that a workflow's checks turn away before any step acts, for example a keyword workflow whose keywords do not match, is not recorded as a run, just like a trigger whose conditions do not match. Archiving a rule stops it but keeps its history. If a rule takes over a built-in surface, the matching built-in is locked so the two do not both send.

The editor also works on phones: select a step from the ordered list, edit it below, or use Add a step on the path you want. Drafts may contain unfinished settings. Turning a workflow on checks its conditions, messages, durations and selected targets. A missing agent, inactive routing team, deleted tag or unavailable webhook prevents activation.

Match an ad or customer message#

Conversation created runs when Sela creates the conversation, which can happen before a customer writes. It is separate from receiving the first message. For a first-message reply, choose Message received and set Run for to First message in this conversation. That choice applies to the first incoming customer message in that conversation, including returning customers who start a new conversation. It does not run again on later messages in the same conversation.

Choose Every customer message to include both the first and later messages, or Messages after the first to exclude the first. Conditions still limit which messages match. The Acknowledge the first message template acknowledges that first message only while the conversation is unassigned. The Reply to every customer message template sends on each matching message with a cooldown of 0. For any send step, 0 disables the cooldown; leaving it blank uses the default 240 minutes. A positive cooldown can suppress a send even though its trigger matched. Repeated delivery of the same incoming event does not send another reply. A customer who sends the same words again within two minutes, such as a double tap on an ad's quick reply, is not sent the identical reply a second time, and AI does not answer that repeat either. A workflow with conditions (one that answers matched questions) also does not resend an identical reply when a differently worded question leads to it within 30 seconds, such as «ارقام الدليفري» then «العنوان» sent together; a question asked later gets its answer again. A workflow without conditions, such as Reply to every customer message, still replies to each different message.

Use Customer arrived from an ad (conversation.ad_referred) to respond to a new ad referral, including one received in an existing conversation. With no condition it matches any ad. To target one ad, add Check a condition, choose Ad ID, comparison is, and paste the exact ID. Add a Send a message step on the matching path. The channel must supply the referral; Sela cannot infer an ad from an ordinary message or link. Arqam WhatsApp supports referrals when its bridge includes them with the incoming event.

Use Message received (message.received) to check each incoming customer message. Choose Message text and one of these comparisons:

ComparisonMeaning
equals / not_equalsExact, case-sensitive equality or inequality
contains / not_containsCase-sensitive text fragment; for tags, exact membership
equals_ignore_case / contains_ignore_caseText equality or fragment ignoring case, Arabic letter forms (أ/ا، ة/ه، ى/ي), diacritics, extra spaces, and punctuation or emoji at either end: «شكرا» matches «شكراً 🌹»
contains_wordA whole word or phrase, with Arabic and English word boundaries; sale does not match wholesale
starts_with / ends_withCase-sensitive beginning or ending
inMatches one of a comma-separated list of exact values
exists / not_existsHas any value or has no value; no comparison value is needed

Missing fields do not match ordinary comparisons, including negative comparisons. Use has no value to test missing data. Multiple conditions can require all matches (and) or any match (or).

Conditions can also check channel, status, lifecycle, priority, conversation tags, assignment, customer stage/segment/tags, ad presence, ad title/body/ID/post/referral and message type. These fields depend on the event and the information available for that customer. Customer fields require a linked customer profile.

For reply and assign, start with Reply and route by keyword, set the word or phrase, response and agent, then enable the draft. Or connect a matching condition to Send a message, followed by Assign the conversation. Assignment respects paused auto-assignment, agent holds, capacity and live presence when online-only is selected. Team routing stays within an active team with routing enabled. When no eligible agent is available, the assignment takes its Skipped path.

Answer post comments#

The quickest way is the comment automation designer. Open Automation → Comments and choose New automation. The top of the Comments tab explains the flow in three steps and shows a sample of what the commenter sees. The sample uses the text of your own comment automation (an enabled one first) and falls back to the Message everyone who comments template's text when you have none. Under your automations, Starter templates offers the two comment templates, each with Preview and Set up. Set up opens the designer, and nothing is saved until you save there. The two comment templates on the Templates tab open the same designer. It asks three questions and shows a live preview of what the commenter sees:

  1. Where: Facebook, Instagram or both, and All posts or Specific posts.
  2. Which comments: Every comment, or Comments with keywords. Any one keyword is enough, and case does not matter. A keyword matches inside longer words unless Whole words only is on, so سعر also finds السعر. Replies inside a comment thread are skipped unless Also answer replies inside a comment thread is on.
  3. How to answer: Private message, Public reply, or both, each with an English and an Arabic text.

Save as draft keeps it off; Save and turn on starts it. Each automation appears as a card on the Comments tab with an on/off switch and a summary of its posts, keywords and responses. A comment automation is an ordinary workflow, so it also appears under Workflows, counts toward your plan's active automations and records its runs in Activity. If you reshape one on the canvas beyond what the designer shows, the card offers to open it in the workflow editor instead.

You can also build the workflow yourself with the Someone commented on a post (comment.received) trigger. First turn comments on for the account; see Post comments.

Under On which posts, choose All posts or Specific posts. Choose posts shows the recent posts of every connected Facebook Page and Instagram account in one list, with a Facebook/Instagram filter and a text search. Pick up to 30. When you publish the same post on Facebook and Instagram, pick both copies and one workflow answers comments on either. The template setup form has the same choice. Listing a Facebook Page's posts needs Meta's permission to read the Page's posts; if Meta refuses, the list says which account could not be loaded.

Two steps exist only for this trigger:

StepWhat it does
Message the commenterSends the commenter one private message, which arrives in their Messenger or Instagram inbox with a link to the post. Meta allows one per comment, within 7 days of it.
Reply to the commentPosts a public reply under the comment, as your Page or account. At most 5 public replies per comment.

Both take an English and an optional Arabic text; the Arabic one is used when the comment is written in Arabic. {{customer.name}} becomes the commenter's name. A comment has no conversation, so steps that act on a conversation or customer (send a message, ask a question, assign, close, tags, customer stage, check if assigned) are not offered and cannot be published with this trigger.

Conditions can check Message or comment text, Commented post ID, Commented post's text, Commenter's name, Is a reply to another comment and Channel (messenger for Facebook, instagram). The Message everyone who comments and Message commenters who use a keyword templates set this up for you. Every reply, from a workflow or a person, is listed under its comment on the Comments tab with Sent or Failed and Meta's reason. A reply shows Not sent when something stopped it after it was queued, for example the outbound pause, or the workflow being turned off, archived or edited. See Post comments for the full list.

Replies, menus and delayed steps#

A workflow that sends a response or accepts a menu answer handles that incoming message, so the AI does not also answer it. A reply that waits before sending reserves that message during the wait. An unrelated later message can still reach the AI if no workflow handles it. Workflows that only update records or wait without a customer reply leave AI available.

When several enabled workflows match the same trigger, they are checked in creation order. The first response path to send or reserve a delayed reply owns that message; other workflows cannot also reply to it. That workflow can still send several steps of its own response. Use conditions that distinguish your menu, greeting and other replies so the intended workflow wins. A send skipped by its cooldown does not claim a new message.

If an unanswered delayed reply fails, finishes without sending, or is stopped by editing, disabling or archiving its workflow, the AI may answer the request if it is still the latest eligible customer message. Older requests do not restart AI after the customer has moved on. Normal AI permissions, channel settings, human ownership and other reply controls still apply.

Menu replies can have an optional Arabic answer. Number matching accepts Arabic and Persian digits, such as ١ for 1, while a sentence such as order 1 is not a numbered menu answer. The matched answer is available to later conditions as reply.text and reply.value. Unmatched replies leave the menu waiting; matching a menu does not restart that same workflow for the reply.

Hand a quiet customer to the AI#

Three steps let a workflow and the AI work as one:

  • Send the menu sends your live store link (or your published menu when you have no live store) under a short message you can change. With neither, the step takes its Not sent path and the AI answers the message instead.
  • Wait for a reply waits up to the time you set (at most 24 hours). Any message from the customer takes the Replied path, and the AI answers it as usual unless that path sends a message itself. Silence takes No reply.
  • AI follow-up hands the conversation to your AI assistant. The AI writes one short message in the customer's language, aimed at the goal you write on the step (for example "encourage them to order and suggest a bestseller"), then answers their reply like any other message. It only names items, prices and offers it can look up, never invents a discount, and does not add anything to an order unless the customer asks. It is not sent when the customer has written since, a teammate owns the conversation, AI replies are off for the channel, the workspace has no AI Assist or credits left, or the message is more than 20 hours old. It runs at most once every 6 hours per conversation, and it uses AI credits like any AI reply.

The Send the menu, then let the AI close the order template puts them together: a message that mentions the menu (منيو, قائمة, اسعار or menu) gets your store link, and if the customer says nothing for 5 minutes the AI follows up once. Change the words, the wait and the AI's goal in the setup form. Put AI follow-up last on its path: a message a later step sends would take the conversation back from the AI.

Delay and menu continuations recheck the workflow and conversation before running. Disabling, archiving or editing the workflow stops an old continuation. Closed or excluded imported conversations cannot receive a resumed response. Message cooldowns apply within each workflow unless you deliberately choose a shared cooldown key.

Failed-run replay continues at the failed step and preserves completed steps. If the workflow was edited after the failed run, start a new run with the current configuration. Replayed runs count toward usage. External webhook delivery has its own delivery log and retry behavior.

Triggers#

The full vocabulary has 25 events. Only the events below are emitted by the platform today, so these are what a workspace can build against.

GroupLive trigger events
Conversationsconversation.created, conversation.ad_referred, conversation.escalated, conversation.closed, conversation.lifecycle_changed, conversation.assigned
Messagesmessage.received
Workwork_item.created, work_item.stage_changed, task.created
Appointmentsappointment.created, appointment.updated
Approvals and moneyapproval.requested, approval.decided, payment.confirmed
Filesfile.ready
Social postscomment.received

Conversation assigned runs once each time a conversation gets a new owner: a person assigns it, someone claims it, a reply claims it, or the workspace's new-conversation owner receives it, from unassigned or from another person. Routing a conversation to a team from the inbox counts too. It does not run when the owner is unchanged, when the conversation is unassigned or handed back to the AI, or when an automation does the assigning. An assignment made by an automation never starts another rule, so rules cannot loop or hand a conversation back and forth. Conditions can use the conversation's current owner and team.

These events exist in the contract but currently have no emitter, so a rule listening for them will never fire: conversation.resolved, tool.completed, customer.stage_changed, task.due, appointment.upcoming, payment.failed, whatsapp_flow.submitted and whatsapp_flow.failed. The builder and template list only offer live triggers.

Actions#

ActionWhat it does
send_notificationCreates a notification item in the operations inbox
assign_operatorAssigns the conversation or record to a person
add_tagAdds a tag
change_stageMoves a record to another stage
create_ops_itemCreates a work item
execute_webhookSends the trigger payload to one of your webhook endpoints

Call your own system with execute webhook#

The execute webhook action delivers the trigger payload, signed, to one chosen endpoint. The endpoint must be created first and subscribed to the event that fires the rule, otherwise the delivery fails with "endpoint no longer subscribed to this event". Webhooks need the Business or Scale plan (Scale or Enterprise on an earlier platform agreement). Payload format, signing and retries are on Webhooks.

Built-in automations#

The Built-in tab lists automations you switch on without building anything.

Built-inWhere you configure it
Out-of-hours replySettings, Business hours
Web chat greetingWidget customization (view only in the hub)
Follow-up and auto-closeSocial follow-up page
Automatic formsSettings, Forms (Operations plan)
Satisfaction surveyCSAT settings, WhatsApp only, with delay and channel options
Flood protection noticeToggle in the hub
Close idle conversationsSettings, Conversations, Smart conversation close
Response time alertsSLA policies, see Notifications, SLA and escalations
AI repliesAI settings

Out-of-hours reply. Under Business hours you set the timezone, open hours per day and an away message in English and Arabic. Choose how often it repeats (every message, hourly, every 4 hours, every 12 hours or daily), limit it to channels, and optionally suppress the AI reply while you are closed. Workflows get the first chance to handle an incoming message. The away reply sends only if no workflow owns it, and AI does not also answer an input that received the away reply. With AI suppression enabled, AI stays silent on the selected channels throughout closed hours, including between away-message repeats. Without suppression, AI may answer later inputs when the away message is on cooldown and no workflow handles them.

Social follow-up. Members with automation read permission can inspect rules. Managing them requires automation manage permission and an active online workspace. Save, toggle and delete actions show progress and explain failures. For WhatsApp, Messenger, Instagram and Telegram you can send an inactivity nudge after a delay, auto-close after a further delay, and send a message after close. The page counts scheduled, sent, closed and skipped items. It respects the 24-hour Meta reply window, so a nudge that would fall outside the window is not sent as free-form text. This needs an automation plan.

Scheduled messages#

To send a reply later, use Send later in the composer: in 15 minutes, 30 minutes, 1 hour, or a date and time you pick.

  • Earliest 30 seconds from now, latest 30 days ahead.
  • Up to 50 active scheduled messages per conversation, 16,000 characters each.
  • You can cancel a scheduled message before it goes out.
  • A message that could not be sent shows "Scheduled message wasn't sent" with a Dismiss button.

Forms can also be scheduled, up to 7 days ahead. See Inbox and conversations for the composer.

Proactive messages#

Proactive message drafts lets permitted managers prepare a name, trigger, trigger value, delay and message. All rules are drafts, including older rules that were previously marked enabled. They do not send messages to website or storefront visitors. Delivery and click metrics are unavailable.

Draft viewing requires automation read access. Creating, editing or deleting a draft requires automation manage permission and an active online workspace. A save shows progress; failed saves keep your draft open so you can retry. Deletion asks for confirmation.

Campaigns and WhatsApp marketing#

Bulk marketing messages are not part of the Automation hub. WhatsApp templates, the 24-hour window and the messaging wallet are covered on WhatsApp. A separate WhatsApp marketing module appears in the sidebar only for workspaces linked to Arqam.

Examples#

Route new WhatsApp chats to a team. Template: route by channel. Trigger conversation.created, condition channel is WhatsApp, action assign_operator or team assignment.

Tag and notify on escalation. Trigger conversation.escalated, actions add_tag (for example "needs-human") and send_notification to the team lead.

Send paid orders to your fulfilment system. Trigger payment.confirmed, action execute_webhook to your endpoint, and verify the signature on your side.

Create a task when an approval is decided. Trigger approval.decided, action create_ops_item on the relevant board.

Troubleshooting#

SymptomLikely cause and fix
Cannot create or enable a workflowThe workspace is below Operations, or automations are not enabled for your workspace yet. Check Plan and usage.
The rule is saved but never runsIt is still a draft (enable it), the workspace outbound pause is on, or the trigger has no live emitter.
An ad rule does not matchCheck whether the channel delivered referral metadata, whether the ID is exact, and whether the selected channel is in scope. A normal link does not count as an ad.
A keyword matches too much or too littleUse whole-word matching for words, an ignoring-case comparison for case differences, or exact matching for the entire message.
A comment workflow does not runComments are off for that account, or the workflow's channel scope excludes it. Check the account card on the Comments tab.
An assignment is skippedCheck paused auto-assignment, team routing, agent presence, holds and concurrent-chat capacity.
A delayed response never resumesThe workflow was edited, disabled or archived, access changed, or the conversation closed. Inspect its run history.
Runs fail with no actions executedMonthly runs passed 110 percent. Buy a run pack or upgrade.
Webhook action failsThe endpoint is missing, deleted or not subscribed to the trigger event. Open the delivery log on Webhooks.
A built-in toggle is lockedA workflow now controls that surface. Edit or archive the workflow.
Follow-up not sent on WhatsApp or MessengerThe 24-hour reply window has closed. Use an approved template.
Automated message not sent to a paused conversationMembers on hold and read-only workspaces cannot send. See Team, roles and permissions.

Webhook steps share the account's webhook delivery-work allowance, including retries and larger payloads. A workflow can finish scheduling a webhook before its delivery finishes; check the webhook delivery log for the actual outcome.

Smart conversation close uses separate idle durations for short and longer conversations, plus a maximum that includes assigned and escalated chats. Each workspace manages its own settings. See Smart conversation close for defaults, message counting and pending-work behavior.