Descrição
The Interflow external API needs an update to allow sending messages directly, without mandatory AI contextual analysis. Currently, the API only supports sending messages for contextual analysis by AI. It is also requested to add the ability to send messages using the official WhatsApp API, which does not exist in the integration today.
With the update, developers can use the external API to send messages directly to customers in a simple way and run sends via official WhatsApp. The system should recognize the requested send type (direct, AI, or official WhatsApp) and process each correctly, simplifying external integrations and improving automated communication workflows.
The expected outcome is broader automation options, making Interflow more versatile for external integrations and campaigns, and easier technical integration with other systems.
How to use
Full API example — POST /chat/create (new customer + template)
Endpoint:
POST /api/{organizationId}/chat/create
(Authentication: same Interflow token/session.)
Body (example):
{
"contactType": "whatsapp",
"contactValue": "5511999998888",
"channelId": "uuid-of-official-whatsapp-channel",
"customerName": "Maria Silva",
"whatsappTemplate": {
"id": "uuid-of-template-in-interflow",
"variables": {
"1": "Maria",
"2": "Order #12345"
}
}
}
- Without
customerId: the backend creates the customer from the contact (or links if one already exists). channelId: the Official WhatsApp channel through which the template will be sent.whatsappTemplate.id: internal template ID in Interflow (not the template name in Meta).variables: keys"1","2", … as in the template model{{1}},{{2}}. If the template has no variables, you can omitvariablesor send only"id".
Response (example):
{
"success": true,
"chatId": "...",
"formattedContact": "5511999998888",
"existing": false,
"templateSent": true,
"templateMessageId": "..."
}
How to get channelId, template id, and ready-made JSON from the UI
- Left sidebar → open Channels (or the equivalent channel list for the organization).
- Find the Official WhatsApp channel you use for support and click to edit that channel (normal "edit channel" flow).
- On the Official WhatsApp channel screen, use the button/link for Templates (manage templates for that channel).
- You land on the template list as cards. On each card there is:
- The template ID (Interflow) in monospace text + "Copy ID" button.
- "Copy JSON (API create chat)" button (or equivalent wording), which builds an example body for
POST /chat/createwith this channel'schannelId, this template'swhatsappTemplate.id, andvariablesfilled with examples saved on the template (when they exist).
- Paste the copied JSON, adjust
contactValue(real number),customerNameif you want, andvariablesif the example texts are not final. - The
channelIdin the copied JSON is the channel ID you are editing (the same channel where you opened Templates); you do not need to look elsewhere if you used this flow.
This gives you: a complete API example, the UI path (Channels → edit Official WhatsApp → Templates → card), and how to get the template ID and a pre-built example from the card buttons.
Progresso
100%Apollo Digital | Jorge · 27 de março de 2026