add: WhatsApp, Slack and Telegram bots (#438)
This commit is contained in:
committed by
GitHub
parent
09c02954ba
commit
e3ae84b80d
27
docs/examples/whatsapp_bot.mdx
Normal file
27
docs/examples/whatsapp_bot.mdx
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
title: '💬 WhatsApp Bot'
|
||||
---
|
||||
|
||||
### 🖼️ Template Setup
|
||||
|
||||
- Fork [this](https://replit.com/@taranjeetio/EC-WhatsApp-Bot-Template?v=1#README.md) replit template.
|
||||
- Set your `OPENAI_API_KEY` in Secrets.
|
||||
- Register for a free account on [Twilio](https://www.twilio.com/try-twilio) and create a new Whatsapp Sandbox.
|
||||
- You can find it in the left Sidebar under `Develop` by navigating to `Messaging>Try it out>Send a WhatsApp Message`.
|
||||
- To connect a phone number and allow it to chat with the bot, follow the on screen instructions.
|
||||
- Click on `Run` in the replit container and a URL will get generated for your bot.
|
||||
- Copy the 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.
|
||||
|
||||
### 🚀 Usage Instructions
|
||||
|
||||
- To allow a new number or reconnect an old number with the Sandbox, follow the instructions in your Twilio account.
|
||||
- To add data sources to the bot, use the command:
|
||||
```text
|
||||
add <data_type> <url_or_text>
|
||||
```
|
||||
- To ask queries from the bot, use the command:
|
||||
```text
|
||||
<question>
|
||||
```
|
||||
|
||||
🎉 Happy Chatting! 🎉
|
||||
Reference in New Issue
Block a user