Author the campaign sequence
flow_setReplace a campaign's sequence with the steps you describe. This is how you write a campaign: give an ordered list of steps and the graph is compiled, validated and saved.
Each step is one action — CONNECT, MESSAGE, EMAIL, INMAILS, ENGAGEMENT, FOLLOW, WITHDRAW, QUALIFIER, GPT, ASSIGN_TAG, TASK … — with a delay measured from the previous step. A TRIGGER step branches on a condition (If_Replied, If_Connected, If_Email_Opened, …); it must be the last entry in its list, and the steps that follow go under yes or no. An omitted branch simply ends there.
On a campaign that is already ACTIVE this is DESTRUCTIVE: leads are re-evaluated against the new graph, some are moved to different steps, and pending actions can be cancelled or rescheduled. flow_audit reports exactly what moved. On a DRAFTED campaign nothing is at stake.
Call reference with topic "sequence_steps" first if you are unsure which fields a step type needs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | The full sequence, in order. This replaces whatever is currently saved. | |
| title | No | Label for this flow version, shown in flow history. | |
| campaignId | Yes | Campaign id, from `campaign_list` or `campaign_create`. |