Preview a journey message
preview_journey_stepWhat one message step of a journey would send to a real contact right now, built by the same code as the real send: inside their 24-hour WhatsApp window and outside it (the template), in their language, with the video, text and buttons. Nothing is sent. Pass contact_id to choose who; otherwise a recent contact is used and the response lists others to choose from. An AI-written step runs its writer once per case (a small cost).
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>",
"step_id": "<step_id>"
},
"name": "preview_journey_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site, from list_sites | |
| step_id | Yes | The message step id from get_journey | |
| 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. | |
| contact_id | No | Preview for this contact | |
| journey_id | Yes | The journey, by id from list_journeys |