The conversation configuration depends on other configurations on the same phase: the WhatsApp number that sends the messages (phone-config) and, when the conversation is triggered by document generation, the auto-document configuration (auto-document-config) and the linked document template.
| Method | Path | Description |
|---|---|---|
GET | /v1/flows/{flowId}/phases/{phaseId}/conversation-config | Retrieves the phase's conversation configuration |
POST | /v1/flows/{flowId}/phases/{phaseId}/conversation-config | Creates the phase's conversation configuration |
DELETE | /v1/flows/conversation-config/{id} | Removes the conversation configuration |
Naming note: the creation/lookup path uses {flowId}for the flow parameter. The deletion path, however, uses only{id}, without{flowId}or{phaseId}— the configuration is identified globally by its own identifier.
PUT attempt on the phase path is not recognized by the API. To update an existing configuration — for example, to change the referenced document template or adjust a routing rule — the correct pattern is:DELETE /v1/flows/conversation-config/{id}.POST /v1/flows/{flowId}/phases/{phaseId}/conversation-config, with the already-updated payload.POST call on a phase that already has a configuration returns an error stating the preexisting configuration, and the body of that error includes the identifier of the existing configuration — which can also be obtained via GET before starting the update process.finalized-auto-document triggers with the start-conversation action are tied to the phase, not to the configuration identifier, and remain valid after recreation.rules. Each rule combines:setup.phoneId — the WhatsApp number (already configured on the phase) that sends the messages.conditions — conditions that determine when the rule applies, typically based on the status of the document automatically generated on the phase.conversation — a title and a list of templates, the state machine itself.fallback) for scenarios such as a failure generating the document.target) must match EXACTLY the buttons defined on the template approved on WhatsApp Meta, including accents and case — mismatches cause a silent routing failure, with no API error.condition: "type" (checks whether the response is a monetary value) — never condition: "eq", which would compare the response against the literal string "money" and never find a match.finalized-auto-document with the start-conversation action. The conversation configuration alone, without that trigger, does not start anything.DELETE) does not disable the finalized-auto-document trigger associated with the phase; it remains active, but with no effect, until a new configuration is created.