docker run --name whatsapp-bot -e OPENAI_API_KEY=sk-xxx -p 8000:8000 embedchain/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.
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.
Copy your bot’s public url, append /chat at the end and paste it under When a message comes in under the Sandbox settings for Whatsapp in Twilio. Save your settings.