# Triggers and steps, one by one

Source: https://aicallstudio.com/docs/workflows/triggers-and-steps

Every trigger that starts a workflow and every step that follows, in the words the builder uses, with what each one does and what to watch.

## Before you start

- A workflow to put them in. Build a workflow covers making one, testing it and switching it on.
- For a message step, the WhatsApp, SMS or email account connected in Integrations. For Update CRM, Send to Webhook and Send Slack Alert, the matching connection.

## 1. Start from a call

Inbound Call runs when someone calls one of your numbers. Number they dialled limits it to one number, so a support line and a sales line can behave differently.

During Call runs mid-call, the moment the caller says a phrase you list under Trigger phrases, such as a complaint, a cancellation or a manager.

Call Ends runs when a call finishes: the usual place for a follow-up. Agents, Agent teams and Outcome narrow it.

Call Missed runs when nobody was reached: no answer, a busy line, or the line dropped. Agents and Agent teams narrow it.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 2. Start from what the agent does on a call

Agent sends during a call is something the agent can offer, such as a brochure, a location or a payment link. The agent sends it only after the caller agrees, and what goes out is this workflow's message, never the agent's own words. What the agent offers is required. With none of these workflows switched on, an agent sends nothing during a call.

Appointment Booked runs when the AI books an appointment on a call. Send the confirmation from here: the agent does not write one.

Agent books a callback runs when the agent agrees a time for your team to call back. The callback is on your Workspace callback list either way.

Promise to Pay Taken runs when the agent records a promise to pay: the amount and the date. Confirm it in writing from here.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 3. Start from a payment, a lead, a hand-over or an identity check

Payment Received runs once when a payment request sent from a WhatsApp chat is paid in full. It carries the amount, the note and how it was paid. A part payment does not run it.

Agent Saves a Lead runs once per call, the first time the agent saves the caller's details. It runs during the call, not after it.

Hand-over to a Person runs each time the agent tries to hand a call to a person. Outcome picks A person took the call or Nobody took the call.

Identity Check runs when a caller passes or fails the identity check. Outcome picks Passed or Failed (out of tries). A wrong first answer is not an outcome yet: the caller gets another try.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 4. Start from a contact or a quality result

Contact Scored runs once a call has been scored, so you can act on Hot, Warm or Cold. Minimum score is from 0 to 100, and Priority narrows it.

Call QA Flagged runs when Call QA flags a call: one that is not a clean pass, or is high risk. Outcome picks Needs review or Fail. Risk picks High, Medium or Low.

New Contact runs when a contact is added by hand, by import, from your CRM or from a form. A large import starts it for its first 100 new contacts only. Contact sources and Contact set narrow it.

Meta Ad Lead runs when a lead arrives from a Facebook or Instagram ad. Facebook Pages and Lead forms narrow it.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 5. Start from a message

WhatsApp Reply runs when a customer writes to you on WhatsApp. To act only on words like STOP or CALL, list them under Message contains, separated by commas. Blank means every reply.

Campaign Message Status runs when a WhatsApp, SMS or email sent by a campaign is delivered, read, opened, clicked, replied to or fails. Each status runs it once per message, so ticking Delivered and Read runs it twice for a message that was read. Messages sent by a workflow or by hand are not counted.

Campaign Reply Sorted runs when a customer's WhatsApp reply to a campaign is sorted, by AI or by someone on your team: Interested, Promised to pay, Wrong number and the rest of the Reply says choices. It runs once per reply, and again if a person changes what it says.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 6. Send a message or tell a teammate

Send WhatsApp sends a WhatsApp message. Outside 24 hours since the customer last wrote, it must be an approved template.

Send SMS sends an SMS. In India it must match a template registered on DLT, from a registered header.

Send Email sends an email to the contact's address, from an email account you connected.

Notify Teammate tells your own people: a notification in the bell and an email to the teammates you pick. With nobody picked, it goes to owners and admins.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows), [Integrations](https://aicallstudio.com/dashboard/integrations)

## 7. Wait, and decide which way to go

Wait / Delay pauses before the next step, for a set time of up to 30 days, or until a date on the contact or the call, such as the day before a promise to pay. The steps after it run once the time is up, and other paths carry on now.

For a date, you choose the Date field, whether it is Before or after the date, How long, and the Time of day in India time. If the date has already passed, the steps after it are skipped unless you choose to run them now. A contact with no date stops at this step.

Condition splits the flow in two: Yes goes one way, No the other. Text is compared ignoring capitals. Some fields are filled only by the trigger named beside them, and under any other trigger they are empty, so the condition takes the No path.

Branch is the same as a Condition: a second way to fork the flow when one is not enough.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 8. Change a contact or your records

Update Contact writes a field on the contact: a status, an outcome, a field of your own. Add Note writes a note on the contact's timeline, where your team sees it next to their calls and messages.

Update CRM pushes the outcome to a CRM you connected, with one more field if you choose. Callback for the Team puts a callback on your team's Workspace callback list, due now, for anyone on the team to ring. Nothing is dialled automatically.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 9. Place a call or queue one

Call Contact places a real outbound call with the agent or team you choose, and costs minutes. The steps after it wait until the call ends, so a condition after it sees how the call went. Outside calling hours you choose between Wait, and call at the next opening, and Do not call, and mark this step failed.

Schedule Callback books that call for later, after a delay of up to 30 days. Add to Campaign adds the contact to a campaign so the dialer picks them up. They stay in any campaign they were already in.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows), [Campaigns](https://aicallstudio.com/dashboard/campaigns)

## 10. Keep someone from being rung again

Stop Calling takes the contact out of one campaign, or every campaign that is not finished. They stay a contact.

Add to Do-Not-Call puts the contact's number on your Do-Not-Call list. No campaign, workflow or callback rings or messages them again until a manager or admin removes it.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows)

## 11. Send to another system

Send to Webhook posts this event's details to a webhook you connected in Integrations: the contact, the call and what the agent collected. Send Slack Alert posts to the Slack channel connected in Integrations: your message, or the call's outcome if you leave it blank.

Where: [Workflows](https://aicallstudio.com/dashboard/workflows), [Integrations](https://aicallstudio.com/dashboard/integrations)

## Every field

- **None ticked**: A filter on a trigger with nothing ticked matches everything: any agent, any team, any source.
- **Trigger phrases**: On During Call: words that start the workflow when the caller says any of them. Separate them with commas.
- **Message contains**: On WhatsApp Reply: the workflow runs only when the message contains one of these words. Capitals are ignored. If blank: Blank means every reply.
- **What the agent offers**: On Agent sends during a call: a short name the agent uses for it on the call. Two workflows with the same name both run. If blank: Required.
- **Wait for**: On Wait / Delay: a set time, the same for everyone, of up to 30 days.
- **If the date has already passed**: On a wait until a date: skip the steps after it, or run them now. If blank: Skips them.
- **Outside calling hours**: On Call Contact: wait and call at the next opening, or do not call and mark the step failed. If blank: Does not call.
- **Who calls**: On Call Contact and Schedule Callback: the agent or team that places the call. This rings a real person and is billed.
- **Message**: On Send Slack Alert and Notify Teammate: the words sent. You can insert the contact's fields. If blank: On Send Slack Alert, blank sends the contact, the outcome, the score and the summary.

## Costs and what to watch

- Call Contact rings a real person and is billed. Send WhatsApp, Send SMS and Send Email send real messages to real people.
- A condition on something only another trigger carries is empty, so it takes the No path. The field's name says which trigger fills it.
- Add to Do-Not-Call is for good until a manager or admin removes the number.
- A workflow whose connection was disconnected stays on, but the steps that send through it send nothing.
