Create a DM flow
flows_createCreates a DM flow: a branching script that answers a direct message step by step, asking questions and offering buttons. The new flow starts unpublished with one trigger and one reply in it, so nothing reaches anyone until flows_publish is called — creating one is always safe. Flows are part of the paid plans, so a customer whose plan has none is refused here with the reason; repeat it to them as written. Building the steps themselves is done by the customer on the flow canvas, not through this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What to call the flow. | |
| template | No | The id of a starter template to build the flow from, if the customer named one. Leave it out for a blank flow. | |
| timezone | No | The customer's IANA time zone, used only by templates that have opening hours. | |
| instagramAccountId | No | Which connected Instagram account the flow answers for. Leave it out for all of them. |