A rule says what message to expect and what to reply. For example: if someone writes “hours”, reply “We’re open from 9 to 6”. You create and edit them from the Reglas tab (Rules).
Creating a rule
From Reglas › Nueva regla (Rules › New rule) you can choose:
- Desde plantilla (From template) — ready-to-use rules (greeting, hours, prices…). See My business.
- En blanco (Blank) — you set up the expected message and the reply yourself.
Every rule has two required sections: Coincidencia (Matching) and Respuesta (Reply); the rest are optional: Destinatarios y canales (Recipients and channels), Condiciones (Conditions), Opciones (Options) and Submenú (Submenu).
Matching: when the rule fires
In Disparadores (Triggers) you write which messages activate the rule, using one of these types:
| Type | How it works | Example |
|---|---|---|
| Exacta (Exact) | Replies if the message equals one of the phrases, case-insensitive. Several phrases separated by commas. | hours |
| Contiene (Contains) | Replies if the message contains any of the words or phrases, ignoring case and accents. | ”hours” matches “what are your hours?” |
| Patrón (Pattern) | Wildcards: * is any text, ? is one character and | means “or”. | hi*, *price*, hi|hello |
| Similitud (Similarity) | Replies if the message is close enough to one of the phrases. Phrases separated by //. The minimum closeness is set in Ajustes (Settings), «Umbral de similitud» (Similarity threshold). | — |
| Regex | Case-insensitive regular expression. Captured groups are used in the reply as %capturing_group_1%. | ^hi, order\s+(\d+) |
| Todos (Any) | Replies to any message. Doesn’t need triggers. | — |
| Bienvenida (Welcome) | Replies to the first message of each chat since the bot was turned on. Doesn’t need triggers. | — |
You can also write «No responder si» (Don’t reply if), globally in Ajustes (Settings): if the message matches that condition, nothing is sent. Useful for skipping thank-you messages or messages with links.
Reply
How the reply is generated:
- Texto (Text) — the text you write in Reply.
- IA (AI) — an AI assistant replies.
- Webhook — your own server replies. See Webhook.
- No enviar respuesta (No reply) — the rule matches but doesn’t answer; useful for alerts or for jumping to another rule.
Multiple replies
You can add more than one reply to a rule and choose how they’re sent:
- Todas (All) — sends them one after another.
- Al azar (Random) — sends one picked at random.
- Rotar (Rotate) — sends a different one each time, in order.
Delays
- Retardo de respuesta (Reply delay) — a short wait before replying, so it feels written by a person. Set to «Como en Ajustes» (Like in Settings) to use the global delay (instant, natural 3-8 s, or relaxed 15-40 s).
- Retardo entre respuestas (Delay between replies) — the wait between each reply, when a rule sends more than one.
- Pausa (Pause) — stops the same rule from firing again in the same chat for a time you choose (0 = no pause).
Submenu
A submenu chains sub-rules that are only evaluated if this rule was the last one to fire in that chat. For example: a “Menu” rule offers options, and sub-rules “1”, “2” and “3” only reply if the customer just received that menu.
- Vigencia del submenú (Submenu validity) — how long the sub-rules are expected after this rule fires (0 = no limit).
- Después, ir a (Then, go to) — instead of (or besides) replying, jumps to another rule’s menu without sending that rule’s own reply.
Recipients, channels and conditions
A rule can be limited to:
- Specific Canales (channels) and Cuentas (accounts) (if none are checked, it replies on all of them).
- Specific contacts, or ignoring certain contacts within that rule.
- Destinatarios (Recipients): individuals, groups or both.
- Horario (Schedule) — see Schedules.
- Requisitos (Phone requirements) — driving mode, charging, Do Not Disturb, screen off, silent mode.
- Probabilidad (Probability) — firing only a percentage of the time.
- Alerta prioritaria (Priority alert) — shows its own notification when the rule fires, for example if the customer asks for a human.
Variables
A variable gets replaced by its real value when the reply is sent. They’re grouped into:
- Mi negocio (My business) — the data you filled in under My business.
- Del mensaje (From the message) — data from the message that arrived, like the sender’s name.
- Del contexto (From context) — for example, the groups captured by a Regex rule.
- Fecha y hora (Date and time).
- Aleatorias (Random).
- Personalizadas (Custom) — the ones you create in Ajustes › Variables (Settings › Variables), for text you repeat across several rules (a promo, your shipping terms, a link). You edit them once and every rule using them updates.
| Variable | Replaced with |
|---|---|
%business_name% | Your business name |
%business_description% | Your business description |
%business_hours% | Your hours |
%business_address% | Your address |
%business_phone% | Your phone number |
%business_website% | Your website |
%business_delivery% | How you handle deliveries |
%business_payments% | Your payment methods |
%business_products% | Your products and prices |
%first_name% | The name of whoever wrote to you |
%capturing_group_1% | The first group captured by a Regex rule |
To insert one, tap «Insertar variable» (Insert variable) in the reply field and pick it from the list.
Before using it with customers
Save the rule and test it in Probar (Test), from Inicio (Home). The simulated chat shows the real reply and delay, without sending anything.
Duplicate, reorder, export
- Drag a rule in the list to change its order — Yammbot applies the first one that matches.
- Duplicate creates a copy (“Rule (copy)”) to build on.
- Export rules / Import rules saves or loads all your rules in a file, handy for moving your setup to another phone without using cloud backup.