Skip to the content

Events

Your own app tells the assistant when something happens, such as a sign-up, an order or a failed payment, and the assistant acts on your instructions: a WhatsApp message, an email, a call, a ticket, an alert to your team.

Where
Assistant menuConfigureEvents
Permission
Needs Set up events
Requires
Respond to events switched on for the assistant (off by default)
Time
17 min read
Markdown
01 / 05Events at a glance. Overview counts what arrived, what was handled and what needs a look.
  1. Events at a glance. Overview counts what arrived, what was handled and what needs a look.
  2. One type per kind of event. Each event type says what the assistant does: decide with its tools, run a procedure, start at a workflow stage, or ignore it.
  3. Send a test. A test is a dry run. The assistant decides, and every tool only says what it would do.
  4. It lands in Activity. Tests show with a Test badge, beside the live events.
  5. See what it would have done. Open an event to see what it did, the data your app sent and how the assistant decided.
The story

What happens to an event

Follow one order.shipped event from Golden Oven's ordering system to Layla's phone.

1

Your app sends an event

When a cake leaves the kitchen, Golden Oven's ordering system sends one request to HeyServo: the type order.shipped, its own id, and data with the order number, the tracking link and Layla's name and phone number.

HeyServo stores the event straight away and answers the app. Every event is kept, so the log shows everything your app sent.

2

The event type decides

The event matches the Order shipped event type exactly. Its handling is The assistant decides, and its instructions read: Tell the customer the order is on its way and share the tracking link from the event. One short message is enough.

The assistant reads the event as information, never as instructions. It follows your instructions and the general ones in Settings.

3

It messages the customer

Layla's phone number is in the event, so she is someone the assistant may contact. Outside WhatsApp's 24-hour window a free message is not allowed, so the assistant sends the approved template.

Every action is written down before it is done, so a retried event never sends twice.

4

It schedules what comes later

The general instructions ask the assistant to remind the team the next morning to check delivered cakes. It schedules an alert for tomorrow at 10:00, which shows in the Scheduled tab until it goes out. You can cancel it there.

The event is now Done, and the assistant's short note becomes its What the assistant did summary.

5

Replies come back to the assistant

A reply to an event's message reaches the assistant like any other WhatsApp message, with its normal instructions, tools and procedures. The event's drawer lists it under Conversations it started.

01 / 05Your app sends an event. Golden Oven's ordering system posts order.shipped with the order and Layla's phone number.
  1. Your app sends an event. Golden Oven's ordering system posts order.shipped with the order and Layla's phone number.
  2. The event type decides. The Order shipped type matches, so its instructions apply.
  3. It messages the customer. Layla has not written in the last 24 hours, so the assistant uses an approved WhatsApp template.
  4. It schedules what comes later. Your instructions can ask for things later. They wait in Scheduled.
  5. Replies come back to the assistant. If Layla answers, it is an ordinary conversation.

What events are for

An event is a short message from your own app, or from a tool such as Zapier, Make or your CRM, saying that something happened. Each event has a type in your own words, such as user.signed_up or order.shipped, and data about it. The assistant reads the event, follows your instructions for that type, and acts with its event tools.

  • Golden Oven: order.shipped sends the tracking link on WhatsApp; payment.failed messages the customer with a way to pay.
  • Saffron Bay: booking.confirmed welcomes the guest before arrival and alerts the front desk about special requests.
  • Marina Clinic: appointment.booked confirms the appointment and schedules a reminder call.

Events run in the background: nobody reads the assistant's reply to the event itself. What matters is what it does: the messages it sends, the calls it schedules, the contacts, leads, appointments and tickets it updates. If the person answers, the reply reaches the assistant as a normal conversation.

Get started

GoalYour app's events reach the assistant and it acts on them.

  1. 1

    Turn events on

    Open ConfigureEvents and switch events on in the header, or click Turn on in Get started. They are off by default.

  2. 2

    Connect your app

    On Connect your app, click Create key to make an events key, then send each event to the address shown. The Events API page has the request format.

  3. 3

    Say what to do

    On Event types, click Add event type. Start from a common event or make your own, and write instructions in plain words.

  4. 4

    Send a test

    Click Send test event. The assistant decides what it would do, and every tool only says what it would do. Nothing is sent.

The Events page

TabWhat it shows
OverviewToday's and this week's numbers, the four Get started steps, a map of how your events flow, and the latest events.
ActivityThe event log: every event, its status and what happened.
Event typesWhat the assistant does for each kind of event.
ScheduledMessages, alerts and calls the assistant scheduled and has not sent yet.
SettingsThe on switch, general instructions, who the assistant may contact, sending hours, limits and event tools.
Connect your appEvents keys, code samples and how to check it worked.
Overview6 controls
Received todayShown
Events that arrived today, with the count for the last 7 days.
HandledShown
Events handled in the last 7 days.
Messages sentShown
Messages sent for events, with the number of calls placed.
Need a lookShown
Events that need your attention, with how many actions are scheduled.
How your events flowShown
A map from Your app (with its number of events keys) through each event type and its handling, and Any other event, to The assistant, the tool groups it may use, and The person. Click a step to open it.
Latest eventsList
The most recent events. See all opens Activity.

Event types

An event type says what the assistant does when one kind of event arrives. Events whose type you have not set up follow the general instructions in Settings, or are ignored, as you choose.

GoalAn event type with its own instructions.

  1. 1

    Click Event typesAdd event type

  2. 2

    Pick a template or Your own event

    A template fills in the type and sample instructions.

  3. 3

    Check the event type

    It must match exactly what your app sends in type. End it with .* for a family, like order.*.

  4. 4

    Write the instructions and click Create

    Plain words are enough. You can change them, the tools and the timing afterwards.

TemplateEvent typeFor
New sign-upuser.signed_upWelcome new users
New orderorder.createdConfirm orders
Order shippedorder.shippedShare the tracking link
Payment failedpayment.failedWin back failed payments
Appointment bookedappointment.bookedConfirm and remind
New leadlead.createdReach new leads fast
Trial endingtrial.endingTurn trials into customers
Your own eventAny name your app sendsLike invoice.paid

How an event finds its type

  • An exact type (user.signed_up) wins over a family (user.*).
  • Among families, the one with the longest matching start wins.
  • A type that is switched off still catches its events: they are logged as ignored, not passed to a broader family.
  • An event with no type of its own follows the general instructions, unless Events without a type of their own is set to ignore them.

Under Seen but not set up the tab lists types your app sent that have no event type yet, with how many arrived in 30 days. Click Set up to give one its own instructions.

What the assistant does

Event type: What to do9 controls
Event typeText
An exact type or a family ending in .*. Letters, digits and . _ - : /.
NameText
What your team calls it, such as New sign-up.
Limit 80 characters
Handle these events (off: they are logged and ignored)Switch
Off: events of this type are logged as ignored.
Default On
The assistant decidesChoice
It follows your instructions with its event tools.
A procedureChoice
One of the assistant's published procedures starts and runs. Pick it in Procedure to start.
A workflow stageChoice
The event starts at a node of the assistant's published workflow. Pick it in Workflow stage to start at.
Ignore itChoice
Logged, and nothing runs.
InstructionsText
What the assistant does, read together with the event's data. Name templates, people and timings plainly; it can schedule things for later and cancel them.
Limit 8,000 characters
Handle itChoice
When the assistant handles the event. A delayed event waits in Activity as Waiting until its time.
Default Right awayOptions Right awayAfter 5 minutesAfter 15 minutesAfter 1 hourAfter 3 hoursAfter 1 dayAfter 3 daysAfter 7 days
Event type: Tools and Test4 controls
ToolsTab
Which event tools the assistant may use for these events. By default The same as the assistant's (Settings). A type can only narrow the assistant's list, never widen it.
TestTab
An example of what your app sends, used to test this type.
Limit 16 KB
When this event arrivesShown
A preview of how the event will be handled.
DeleteButton
Its events follow the general instructions from then on. Events already handled stay in Activity.

Writing event instructions

Welcome them on WhatsApp with the welcome_new_user template, using their first name.
If they signed up with an email only, send a short welcome email instead.
If their plan is Pro, call them tomorrow at 11:00.
Example instructions for a New sign-up event type
  • Name the WhatsApp template to use. Outside the 24-hour window WhatsApp only allows approved templates.
  • Say when things should happen: now, in 10 minutes, tomorrow 11:00. The assistant can schedule up to 60 days ahead and cancel what it scheduled.
  • Put rules in the instructions, never in the data. The assistant treats the event's data as information only.
  • You can ask for a procedure or a workflow stage to start when the person replies, within 7 days.

Event tools

These are the tools the assistant may use while it handles an event. Choose them in SettingsEvent tools; an empty choice means all of them. A tool that needs something set up says what.

GroupToolWhat it doesNeeds
MessagesSend a WhatsApp templateAn approved template to a phone number, any time.A connected WhatsApp number
MessagesSend a chat messageFree text in an open conversation on WhatsApp, SocialHub, Messenger or Instagram.One of those channels
MessagesSend an emailAn email from the assistant's mailbox. In draft mode, emails wait for review.A mailbox in ChannelsEmail
MessagesLook up WhatsApp templatesWhich templates are approved and what each one needs.A connected WhatsApp number
CallsCall someoneA phone call with a purpose, within the calling hours.Outbound calls: ChannelsPhone, then Call customers
ContactsLook up a contactTheir contact, channels, open conversations and recent events.Nothing
ContactsSave a contactCreate or update a contact: name, tags, notes, unsubscribe.Nothing
LeadsAdd a leadA lead in Leads, with a score and the next step.Collect leads
AppointmentsAdd an appointmentAn appointment on the business's calendar.Collect appointments
AppointmentsFind appointmentsSomeone's appointments, by phone, email or reference.Collect appointments
AppointmentsChange an appointmentConfirm, move, cancel or mark the outcome.Collect appointments
TicketsOpen a ticketA ticket on one of the assistant's boards, with the details the board asks for.Open tickets and an attached board
TicketsMove a ticketMove a ticket to another column, by its number or your app's reference.Open tickets and an attached board
TicketsAdd a note to a ticketAn internal note on a ticket for the team working it.Open tickets and an attached board
Your teamAlert the teamThe bell, the alert emails and the team's WhatsApp numbers.Nothing
Your teamHand a conversation to a personFlag someone's conversation for the team to take over.Hand over to a person
Your appTell your appA webhook (assistant.signal) back to your app.A webhook endpoint
SchedulingSee what is scheduledWhat events have scheduled and not sent yet.Nothing
SchedulingCancel something scheduledCancel scheduled messages and calls by reference or key.Nothing
  • People who unsubscribed, or who sent STOP on WhatsApp, are skipped.
  • Sending a chat message on WhatsApp fails outside the open window: the assistant should start with an approved template. Messenger and Instagram also have a 24-hour rule.
  • Calls always follow the calling hours.
  • Messages and calls count toward the limits in Settings.

Settings

The Settings tab holds the same settings as ActionsRespond to events.

Responding to events3 controls
Respond to eventsSwitch
The on switch for this assistant. Turning it off asks first: events your app sends are kept as skipped, and nothing runs until you turn them back on.
Default Off
What to do with eventsText
General instructions for every event, read together with each type's own.
Limit 8,000 characters
Events without a type of their ownChoice
Handle them with the general instructions (the default), or ignore them. Ignored events are still kept in the log.
Who and when2 controls
Who the assistant may contactChoice
Protects against an event making the assistant message strangers. Choose between: people whose phone number or email is in the event, plus your existing contacts (the default); only people in the event; or anyone, which is not recommended.
Sending hoursText
Optional, like 09:00-21:00 in the business's time zone. A message outside these hours waits until they open. Empty: any time. Calls always follow the calling hours.
Limits (Advanced)4 controls
Messages per eventNumber
The most messages the assistant may send or schedule for one event.
Default 3Limit 0 to 20
Calls per eventNumber
The most calls for one event.
Default 1Limit 0 to 5
Events per dayNumber
Events beyond this in a day are skipped.
Default 1,000Limit HeyServo caps each assistant at 10,000
Messages per day from eventsNumber
All messages sent for events in a day.
Default 500Limit 0 to 100,000
Event tools1 controls
Event toolsList
A switch per tool, grouped as above, each saying what it needs. All on by default.

The activity log

Activity keeps every event, including skipped and ignored ones, for the retention period (30 days unless HeyServo has set otherwise for you; the Connect your app tab shows yours).

Filters and columns6 controls
Search type, id, data or outcomeText
Finds events by any of these.
StatusChoice
Narrow by status.
Options Every statusWaiting or runningFailed or skippedOne status
Event typeChoice
Narrow by type.
Default Every type
Live or testChoice
Narrow to live events or tests.
Options Live and testsLive onlyTests only
Clear filtersButton
Shows everything again.
Received, Event, Status, What happened, ActionsShown
The columns. A delayed event shows Waits until …; a test shows a Test badge.
WaitingStored and waiting to be handled, now or at its delayed time.
RunningThe assistant is handling it now.
DoneHandled. What the assistant did holds its summary.
IgnoredNo type matched and unknown events are ignored, or its type is off or set to Ignore it.
SkippedNot run: events were off or paused, the daily limit was reached, credits ran out, or the account is suspended.
FailedThe assistant could not handle it, after retries.
CancelledCancelled before it ran.
Reason shownWhat it means
Events were switched off for this assistant.Respond to events was off when it arrived.
Events were paused on HeyServo.HeyServo paused events for everyone for a while.
The assistant had reached its daily limit of events.Events per day was reached.
The account was out of credits.The workspace had no credits left.
The account is suspended.The workspace is suspended.
No event type matches it, and unknown events are ignored.See Events without a type of their own.
This event type is set to be ignored.Its handling is Ignore it.
This event type is switched off.Its Handle these events switch is off.
Cancelled before it ran.Someone cancelled the waiting event.
The assistant could not handle it.It failed after its attempts.
It was interrupted and could not be finished.The run stopped partway.
The assistant no longer exists.The assistant was deleted.

Each event also shows where it came from: Your app, Dashboard test, Playground or Run again.

Inside an event

Event drawer6 controls
What happenedTab
What the assistant did (its summary), Actions (everything it did or scheduled, each with its status, when it goes out, Open the conversation and Cancel), Conversations it started, and other runs of the same event.
DataTab
Received, Happened, Finished, From, Your id, Event type (or the general instructions), Attempts, People in it, and the data your app sent.
How it decidedTab
The model's steps and tool calls while it handled the event.
CancelButton
Only on a waiting event.
Run again as a testButton
Runs the event again as a dry run.
Run again for realButton
Handles it again from the start, and can message or call people. Anything already done for the original stays done. Needs Run live events.
ScheduledWaiting for its time.
SendingGoing out now.
DoneSent or done.
FailedCould not be done.
SkippedNot done, for example because the person unsubscribed.
CancelledCancelled before it went out.
Test onlyA test: the tool said what it would do and sent nothing.

Scheduled

Scheduled lists the messages, alerts and calls the assistant scheduled while handling events. Show switches between Still to come (the default), Done, Failed and Everything. Columns are When, What, To and Event; Cancel stops one before it goes out. A scheduled action is checked again when it is due, against the same rules as when it was made.

Testing

Send test event opens Send a test event. Give an Event type and the Data (JSON) your app would send as data, using real-looking phone numbers and emails to see who the assistant would contact. Click Send test.

A test (dry run)
  • The assistant decides what to do
  • Every tool says what it would do; nothing is sent
  • Works even while events are off, so you can try instructions first
  • Actions show as Test only
Send it for real
  • The assistant really messages and calls the people in the event
  • Only for people with Run live events (owners and admins by default)
  • Counts toward your limits

Retries and safety

  • An event is tried up to 3 times, waiting 30 seconds and then 2 minutes between attempts.
  • Every action is written down before it is done, so a retry never sends the same message twice.
  • A scheduled WhatsApp or chat message cut off mid-send is marked failed rather than risk a duplicate. Emails and team alerts are re-sent safely.
  • One event can lead to at most 15 actions.
  • Your app sending the same id again is answered with the first event, never run twice.

Connect your app

GoalYour app sends events to this assistant.

  1. 1

    Create an events key

    On Connect your app, name the key (for example Production app) and click Create key. It is an API key whose purpose is Send events: it belongs to this assistant and can do nothing else.

    Copy it now and keep it on your server: it is shown only once. Owners and admins create keys.

  2. 2

    Send events from your app

    One POST per event, with your own id for each. The tab shows the address and samples in curl, JavaScript and Python. See Events API.

  3. 3

    Check it worked

    Send a test from here, or do the real thing in your app, then click Open Activity.

To follow what the assistant did from your app, click Add a webhook and subscribe to the event webhooks. See Webhooks.

Who can do what

ToYou need
See the Events pageSee events
Change event types and instructions, run tests, replay as a test, cancelSet up events
Send live tests and run events again for realRun live events
Switch events on or offSet up events, or Change assistant setup
Create an events keyOwner or admin

Questions people ask

Keep going
Events · HeyServo Docs