Welcome to WhatsApp Llama! This project aims to create a AI chat bot application on WhatsApp.
- Real-time messaging
- Remembers previous conversation
First, open the WhatsApp Business Platform Cloud API Get Started Guide and follow the first four steps to:
- Add the WhatsApp product to your business app;
- Add a recipient number;
- Send a test message;
- Configure a webhook to receive real time HTTP notifications. For this step, follow
How to Set Up the Webhook
below
- Clone the repository:
git clone https://github.com/evanchime/whatsapp-llama.git
- Install the dependencies:
pip install requests flask langchain python-dotenv
- Start the application:
flask --app main run --port 5000
- If successful you should see a message that reads:
* Running on http://127.0.0.1:5000
- Run
ngrok http 5000
to obtain a URL that maps to your application. Copy the link
- In your developer account on Meta for Developers, click the Configuration menu under WhatsApp in the left navigation pane.
- In the Webhook card, click Edit.
- Then, in the Callback URL field of the dialog that opens, paste the copied URL from
Installation
step 5, and append /webhook to it. - Add the meta token into the Verify token field. Click Verify and save to close the dialog.
- Now, from the same card, click Manage and check the messages field. The webhook is now ready
Contributions are welcome! If you'd like to contribute to WhatsApp Llama, please follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature
- Make your changes and commit them:
git commit -m 'Add your feature'
- Push to the branch:
git push origin feature/your-feature
- Submit a pull request
This project is licensed under the MIT License. See the LICENSE file for more information.
If you have any questions or suggestions, feel free to reach out to us at [email protected]