Set when a journey ends early
set_journey_stop_rulesChoose when a journey ends early for a person, checked before every step (so nothing more is sent): replied = they send a message after their run started; stop_events = your system sends one of these events (journeys started by your own system only); lead_stages = Mondovo's own site only; unanswered_followup = false lets its WhatsApp steps send even though an earlier automatic follow-up went unanswered (Mondovo's own site only; a pause request still holds). STOP / unsubscribe always end it. get_journey shows the current rules as ends_early_when. Saves a new version: runs already in progress keep the rules they started with.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_id": "<site_id>",
"journey_id": "<journey_id>"
},
"name": "set_journey_stop_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replied | No | true = end it when they write to you after it starts (the usual choice for follow-ups) | |
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| journey_id | Yes | The journey, by id from list_journeys | |
| lead_stages | No | Mondovo's own site only: end it when the ad lead reaches any of these stages. Replaces the list. | |
| stop_events | No | Events from your own system that end it, e.g. ["order.cancelled"]. Replaces the list. | |
| unanswered_followup | No | Mondovo's own site only. true (default) = wait while an earlier automatic follow-up is unanswered; false = send anyway (a deliberate second try). Applies to messages already waiting too. |