Automation and growth
Automations
Write rules with triggers, conditions and actions: routing, tagging, auto-replies, appointment reminders, Slack and email notifications.
On the Automations page (G O) you write rules in the form “IF this happens, AND these conditions are met, DO THIS”. Set a rule up once and it runs every time.
Creating a rule
- Step 1: Click New automation, or pick one of the Templates at the bottom of the page.
- Step 2: Enter a Rule name (e.g. “Prioritize VIP customers”).
- Step 3: IF: pick a trigger.
- Step 4: AND: optionally add conditions with Add condition. With no conditions, the rule runs on every trigger.
- Step 5: DO THIS: add one or more actions with Add action. They run in order.
- Step 6: Check the one-sentence version of your rule in the Summary box, then click Create automation.
Triggers
| Trigger | When does it run? |
|---|---|
| When a new conversation starts | When a customer starts a new conversation. |
| When a new message arrives | On every new message from a customer. |
| When a conversation is resolved | When a conversation is marked as resolved. |
| When a conversation goes unanswered | When a conversation stays inactive for a set time. The default is 60 minutes; we check every minute. |
| When a new contact is created | When someone new is added to Contacts. |
| When a tag is added | When a new tag is added to a conversation or a contact (by hand, by the AI or by another rule). You can pick specific tags; leave it empty to run on every tag. |
| When a conversation is updated | When a conversation's status, assigned agent, team, priority, tags or who handles it (AI / human) changes. You choose which fields to watch; use the new value in your conditions (e.g. Status = Resolved). |
| Before / after a date | Based on a date in a contact's custom field, e.g. 24 hours before appointment_date. Choose minutes, hours or days, before or after; we check every minute. |
| Scheduled | At a set time every day or on the days you pick (in your business's time zone). If you pick a tag, it runs separately for each contact with that tag. |
Appointment reminders
- Step 1: Store the appointment date in a contact custom field: from Custom fields on the contact page, with a column in a CSV import, or through the API (
PATCH /api/v1/contacts/:id→attributes.appointment_date). We accept2026-10-15 14:30,15.10.2026 14:30or ISO format with a time zone. Without a time zone, your business's time zone is used. - Step 2: Pick Remind 24 hours before an appointment from Templates, or build a new rule with the Before / after a date trigger.
- Step 3: In the Send WhatsApp template action, choose the channel and your approved reminder template, then map its variables. If you map the date variable to Custom field →
appointment_date→ Date and time, it's written as “15 October 14:30”. - Step 4: Save. The reminder goes out once per appointment date. If the date changes, it's rescheduled for the new date. It won't be sent again even if the server restarts.
If the date is more than 6 hours in the past (e.g. the appointment was entered late), the rule doesn't run for that date. That way, past appointments never get a late reminder.
Conditions
| Group | Fields |
|---|---|
| Message | Message content |
| Conversation | Channel, Priority, Sentiment, Language, Topic, Handled by (AI assistant / Human agent), Status, Conversation tags, Unread message count |
| Contact | Contact tags, Contact email, Contact name, Contact phone, Contact language |
Comparisons: equals, does not equal, contains, does not contain, is in list, exists, greater than, less than. All conditions must be met (AND). Text comparisons ignore upper and lower case and handle Turkish characters correctly: “IADE” matches “iade”. If you enter several values for contains, any one of them is enough.
Actions
| Action | What does it do? |
|---|---|
| Assign to team | Routes the conversation to a team. |
| Assign to agent | Assigns it to a specific agent. |
| Round robin | Spreads conversations evenly across available agents. Pick a team to limit it to that team; otherwise all agents are included. |
| Add tag | Adds a tag to the conversation (to the contact, with the When a new contact is created trigger). |
| Set priority | Changes the conversation's priority. |
| Send message | Sends the customer an automatic reply. You can use variables such as {{contact.firstName}} (first name), {{contact.lastName}} (last name) and {{contact.name}} (full name). For triggers without a conversation (date, scheduled, new contact), you choose the sending channel. On WhatsApp it's only sent if the customer wrote in the last 24 hours. |
| Send WhatsApp template | Sends an approved WhatsApp template, filling its variables with the contact's details. There's no 24-hour limit, so use it for reminders and notifications. Contacts with a missing value are skipped, and the logs show why. |
| Notify by email | Sends a notification with a subject and message to the roles you pick (owner, admins, agents), to specific people or to email addresses. Selected team members also get an in-app notification. You can use variables. |
| Change who replies | Hand off to AI or Hand off to a human. |
| Add note | Leaves a private note for the team. |
| Call webhook | Sends a signed POST request to an external system. With Slack compatible on, it sends only { "text": "…" }, so you just paste your Slack incoming webhook URL. |
| Run API action | Calls an AI action defined in AI Studio (CRM, shipping, accounting…). Details below. |
| Resolve conversation | Closes the conversation as resolved. |
In messages you can also add a fallback value, like {{contact.firstName|valued customer}}. A rule can have up to 20 conditions and 10 actions.
Ready-made templates
- Prioritize complaints: sets priority to Urgent for messages with words like “complaint”, “terrible” or “outrageous”, and adds a tag and a note.
- Route VIP customers to the sales team: gives new conversations from contacts tagged
vipto the Sales team and to a human. - Out-of-hours auto-reply: sends an information message to conversations that start outside business hours.
- Close conversations with no reply for 3 days: closes conversations where the customer hasn't replied for 3 days.
- Tag shipping questions: adds the
shippingtag to conversations that mention shipping words. - Assign new WhatsApp conversations to the Support team.
- Remind 24 hours before an appointment: sends an approved WhatsApp template based on the
appointment_datefield. - Notify managers on the complaint tag: when the
complainttag is added, the owner and admins get a notification. - Post urgent conversations to Slack: when priority is set to Urgent, a short message lands in your Slack channel.
When you pick a template, it opens in the rule editor. Adjust it to fit and save.
Run logs
Logs in the rule's menu lists every run of the rule as Succeeded, Error or Skipped. The last 200 entries are kept, and they reset when the server restarts.
Built-in behaviour
Some automations run without any rules. You manage them in Settings › Business details (auto-assign, satisfaction survey) and Settings › Business hours (out-of-hours reply):
- Auto-assign (round robin): new unassigned human conversations and AI handoffs go to the agent who is online (not busy or away), has free capacity and has the fewest open conversations. If the conversation has a team, only that team's agents are considered. If nobody is available, the conversation waits in the queue.
- Out-of-hours reply: if business hours are set, a conversation that reaches the team outside those hours gets a “We're currently outside our business hours…” message once. It isn't sent in conversations the AI is handling, since the AI already replies 24/7.
- Satisfaction survey (CSAT): when a conversation is resolved, the customer is asked for a score from 1 to 5. Replies like “5”, “4/5”, “3 points”, a star emoji or “five” are saved as a score within 48 hours. In web chat the survey appears inside the chat window; it isn't sent after phone calls.
Good to know
- Rules run in the order they were created (oldest first).
- For a single event, at most 10 actions run in total across all rules.
- A change made by a rule doesn't trigger that same rule again, so there are no loops.
- Creating, editing and deleting rules is open to the Owner and Admin roles.
Webhook action
The Call webhook action sends a POST to the address you enter. The body looks like { event, automation: { id, name }, data, timestamp }. We add the X-Hitapo-Event: automation.<trigger> and X-Hitapo-Signature: sha256=… headers. The signature is an HMAC-SHA256 computed with your business's automation webhook secret (get it with GET /api/v1/automations/webhook-secret). The timeout is 5 seconds and there are no retries. For more reliable delivery, use Webhooks.
With Slack compatible, the body is just { "text": "…" }. If you leave the text empty, we write the rule name, customer name, last message and a link to the conversation. In your own text you can use variables such as {{contact.name}}, {{conversation.priority}} and {{channel.name}}. It also works with Mattermost and Google Chat incoming webhooks, which accept the same format.
Run API action
The Run API action step calls an action you defined in AI Studio › AI actions whenever the rule runs. The address, method (GET, POST…), secret headers and safety settings come from the action itself; in the rule you only pick the action and fill in its parameters. Values can use variables like {{contact.phone}}, {{contact.email}} or {{conversation.id}}. Details: AI actions.
Example: add a “Create CRM record” action to the When a conversation is resolved trigger and set the phone parameter to {{contact.phone}} and subject to {{conversation.id}}. With Add the response to the conversation as a note on, the CRM's response (HTTP status and the first 1000 characters) lands in the conversation as a team note.
- If the action is off or deleted, the step doesn't run; Logs shows why.
- If the system answers with a non-2xx status or doesn't answer within 10 seconds, the step is logged as an error.
- Asking the customer to confirm only applies to the AI assistant; you set up the rule, so automations don't ask. If “Match the customer's verified identity” is on for the action, the rule also runs it only for those customers.
- This step runs on plans that include AI actions.
Email notifications
Last updated: