Deploy WhatsApp bot on website and Mobile application
Let's say that you have built a bot for the WhatsApp channel and now want to deploy it on your website or mobile application using a chat widget. This document will provide you with step-by-step instructions on how to port your WhatsApp bot to your website or mobile application using a chat widget.
note
To deploy an existing WhatsApp bot on a website or mobile application, follow these steps:
- To create a separate flow using the WhatsApp specific components such as WhatsApp quick reply and list card.
- Use the provided code snippet in the function while creating the flows based on your use case:
if (app.source == "whatsapp") {
// actions or message list which you want to display
}
if(app.source == "yellowmessenger"){
// actions or the quick replies which you want to display.
}
On the overview page, select your bot and enter your respective bot ID in the browser URL.
Navigate to Channels > Chat widget > Deploy > Copy the bot script provided.
Paste the bot script on your website where you want the bot to appear. For more information, click here.
- You can also configure the appearance of your bot on the cloud platform. For more information, click here.