feat(how-to): Add guide for creating conversations in WhatsApp from a webhook #423
feat(how-to): Add guide for creating conversations in WhatsApp from a webhook #423chloequijano-botpress wants to merge 4 commits intomasterfrom
Conversation
| </Step> | ||
| </Steps> | ||
|
|
||
| ## 3. Assign the conversation ID for the rest of the flow |
There was a problem hiding this comment.
🚫 [vale] reported by reviewdog 🐶
[Botpress.workflows] If you're referring to the Botpress concept, use 'Workflow' instead of 'flow'
|
|
||
| ## 3. Assign the conversation ID for the rest of the flow | ||
|
|
||
| So that later nodes (and the Autonomous Node or your main bot flow) run in the same conversation, set `event.conversationId` to the ID returned by the Start Conversation Card. |
There was a problem hiding this comment.
🚫 [vale] reported by reviewdog 🐶
[Botpress.workflows] If you're referring to the Botpress concept, use 'Workflow' instead of 'flow'
| The Start Conversation Card returns an object with a `conversationId` property. By setting `event.conversationId`, you ensure that any subsequent nodes (including the Autonomous Node or your main flow) continue in the same WhatsApp conversation. | ||
| </Note> | ||
|
|
||
| ## 4. Connect to your main bot flow |
There was a problem hiding this comment.
🚫 [vale] reported by reviewdog 🐶
[Botpress.workflows] If you're referring to the Botpress concept, use 'Workflow' instead of 'flow'
|
|
||
| ## 4. Connect to your main bot flow | ||
|
|
||
| Connect the node that contains the Execute Code Card to your **START** node (or the node that starts your main flow). That way, when the webhook fires: |
There was a problem hiding this comment.
🚫 [vale] reported by reviewdog 🐶
[Botpress.workflows] If you're referring to the Botpress concept, use 'Workflow' instead of 'flow'
| 1. The Event trigger runs. | ||
| 2. The Start Conversation Card starts a WhatsApp conversation and stores its ID. | ||
| 3. The Execute Code Card sets `event.conversationId` to that ID. | ||
| 4. The conversation continues in your main flow (for example, in the Autonomous Node or your regular bot flow). |
There was a problem hiding this comment.
🚫 [vale] reported by reviewdog 🐶
[Botpress.workflows] If you're referring to the Botpress concept, use 'Workflow' instead of 'flow'
| 1. The Event trigger runs. | ||
| 2. The Start Conversation Card starts a WhatsApp conversation and stores its ID. | ||
| 3. The Execute Code Card sets `event.conversationId` to that ID. | ||
| 4. The conversation continues in your main flow (for example, in the Autonomous Node or your regular bot flow). |
There was a problem hiding this comment.
🚫 [vale] reported by reviewdog 🐶
[Botpress.workflows] If you're referring to the Botpress concept, use 'Workflow' instead of 'flow'
WIP: Asked by Solutions team to provide a guide on using webhooks to start a conversation on WhatsApp
TODO: