Skip to content

feat(how-to): Add guide for creating conversations in WhatsApp from a webhook #423

Draft
chloequijano-botpress wants to merge 4 commits intomasterfrom
cq-update-whatsapp-setup
Draft

feat(how-to): Add guide for creating conversations in WhatsApp from a webhook #423
chloequijano-botpress wants to merge 4 commits intomasterfrom
cq-update-whatsapp-setup

Conversation

@chloequijano-botpress
Copy link
Collaborator

WIP: Asked by Solutions team to provide a guide on using webhooks to start a conversation on WhatsApp

TODO:

  • Review wording
  • Add screenshots

</Step>
</Steps>

## 3. Assign the conversation ID for the rest of the flow
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [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.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [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:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [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).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [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).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Botpress.workflows] If you're referring to the Botpress concept, use 'Workflow' instead of 'flow'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant