Set a condition before a step
set_sequence_conditionUse when the user wants a follow-up sent only to people who did not reply (or only when a custom field is filled in). Puts a condition between step after_step and step after_step+1; it gates that next step. The usual cold-email rule "stop if they replied" is predicate=replied, negated=true, on_no=stop. on_no=skip jumps over the gated step instead of ending the sequence. One condition per gap: a new one replaces the old. Draft or paused campaigns only. Returns steps and nodes, as list_steps.
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": {
"id": "<id>",
"after_step": "<after_step>",
"predicate": "<predicate>"
},
"name": "set_sequence_condition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Campaign id (uuid). | |
| on_no | No | When the condition is false: stop (default) ends the sequence, skip jumps over the gated step. | |
| negated | No | true (default) = "if NOT ...". | |
| predicate | Yes | replied = the prospect replied; has_snippet = the custom field in snippet_field is filled in. | |
| after_step | Yes | The condition sits after this step and gates the next one (0 = before step 1). Must be lower than the number of steps. | |
| snippet_field | No | Custom field name, required for has_snippet. |