Run a Trigger on upcoming bookings now
run_flow_nowRuns a live Trigger on your company's upcoming bookings now, as Run now on the Automations page does: it applies this flow's saved Starts when and Only if rule to visits that have not started yet, so bookings made before the flow existed get their steps too. Each booking gets ONE run ever: a booking that already has a run (a message that went out, or a run in progress) gets nothing, so running again is safe and picks up anything left. Steps handled by your team become tasks; a step Sergio handles messages that client on its own, exactly as the page's Run now does, under the business's Sending setting (Sergio never turns Sending on for you, and this never bypasses it). Start with dryRun true to answer how many bookings would start and whether Sergio may message them, and change nothing; preview and run are two different calls, so give each its own idempotency_key. Only a published Trigger that starts on New job booked offers Run now: a draft must be published first (set_flow_on), and a Trigger on another event or on Every upcoming job is refused with the reason. flow_id comes from read('flows'). Tell your person the count and, when Sergio would message clients, that they will be messaged, before the real run.
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": {
"flow_id": "<flow_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "run_flow_now"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | true answers how many upcoming bookings would start and whether Sergio would message them, and changes nothing. | |
| flow_id | Yes | ||
| idempotency_key | Yes | Your id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation. |