Signals and events for missions

Choose what starts a mission: a schedule, a change to a contact, or a custom event sent from your own app, and add conditions so only the right people qualify.

Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.

A mission does not run on its own. Something has to tell it that a person qualifies. That something is a signal. Use this page to pick the right signal for a goal, send your own events, and keep a mission from starting more often than you intend.

Open Missions, select a mission and open Mission config > Signals.

Types of signal

Signal Starts a run when
Schedule A set time arrives, for example every weekday at 9:00, for contacts that match your conditions.
Contact change A custom attribute changes value or a contact is added to a list.
Custom event Your own system sends an event with a name you chose.
Manual You pick contacts and start the mission yourself.

A mission can have more than one signal. A run starts when any of them fires for a contact.

Add a signal

  1. Open Mission config > Signals and select Add signal.
  2. Choose the signal type.
  3. Fill in its settings, such as the time, the attribute or the event name.
  4. Under Conditions, narrow who qualifies. For example plan is trial and setupComplete is false.
  5. Select Save.

You should see the signal listed with a short summary and the number of contacts that match right now.

Send a custom event

Custom events come from your own app or backend. Send one with the Send an event endpoint:

curl -X POST https://api.askocto.co/v2/agents/agt_8f3k2m/events \
  -H "Authorization: Bearer $OCTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "trial.setup_stalled",
    "userId": "usr_3b6t0z",
    "properties": { "daysSinceSignup": 3 }
  }'

Then add a Custom event signal with the same name, trial.setup_stalled. Use lowercase words separated by dots, and send the same userId you use in chat so the event matches a contact.

Event properties can be used in conditions and in the mission goal. A condition such as daysSinceSignup is at least 3 only starts a run for events that carry that value.

Control how often a mission starts

Setting What it does
Once per contact A contact is never started twice for this mission.
Cooldown A contact is not started again until the period has passed.
Quiet hours Runs wait until the contact's allowed contact hours.

Tip: Start with Once per contact while you learn how often the signal fires. Loosen it later.

Check a signal before you go live

Use test runs to fire a signal against one test contact without messaging a real customer. After you publish, each run records which signal started it. See runs.

The signals feed the rest of the mission setup described in configure a mission.

Something unclear or missing? Tell us and we will fix the page.