channels
whatsapp
whatsapp-service-management
whatsapp-flow-management
Generate WhatsApp Flow
Use this endpoint to automatically generate a WhatsApp Flow definition using AI, based on a natural language prompt. Provide a descriptive prompt (e.g., "Create a Static WhatsApp Flow to collect details like Name, Surname and email for our global event next week."). The AI will generate a flow configuration designed to match your intent. If you include a responseId from an earlier request, the prompt will be used to modify or refine the flow that was previously generated, so you can adjust and improve it step by step.
post/whatsapp/1/senders/{sender}/flows/generate
Request
- Base URLhttps://api.infobip.com (the document declares no server; this is the origin it was published from)
- Auth
- OAuth 2Client credentialsToken URL: https://api.infobip.com/auth/1/oauth2/token
- or API key in header Authorization
- or API key in header Authorization
- or HTTP basic
Path parameters
senderstring required
Registered WhatsApp sender number. Must be in international format.
Request body
Example request
{
"prompt": "Flow that contains form with name, surname and email of the user.",
"responseId": "12345"
}Response
Generated whatsapp flow
Example response
{
"originalPrompt": "Flow that contains form with name, surname and email of the user.",
"responseId": "12345"
}Changes
No recorded changes to this operation across all 1 revision of this API.