Chatbots
๐ฌ WhatsApp Bot
๐ Getting started
- Install embedchain python package:
- Launch your WhatsApp bot:
If your bot needs to be accessible online, use your machineโs public IP or DNS. Otherwise, employ a proxy server like ngrok to make your local bot accessible.
- Create a free account on Twilio
- Set up a WhatsApp Sandbox in your Twilio dashboard. Access it via the left sidebar:
Messaging > Try it out > Send a WhatsApp Message
. - Follow on-screen instructions to link a phone number for chatting with your bot
- Copy your botโs public URL, add /chat at the end, and paste it in Twilioโs WhatsApp Sandbox settings under โWhen a message comes inโ. Save the settings.
- Set up a WhatsApp Sandbox in your Twilio dashboard. Access it via the left sidebar:
- Copy your botโs public url, append
/chat
at the end and paste it underWhen a message comes in
under theSandbox settings
for Whatsapp in Twilio. Save your settings.
๐ฌ How to use
- To connect a new number or reconnect an old one in the Sandbox, follow Twilioโs instructions.
- To include data sources, use this command:
- To ask the bot questions, just type your query:
Example
Here is an example of Elon Musk WhatsApp Bot that we created:
Was this page helpful?