AI WhatsApp Bot
Create your own WhatsApp bot powered by GPT and Meta's WhatsApp Business API.
Report this template
Select the reason for reporting
Describe the issue in detail
Create your own WhatsApp bot powered by GPT and Meta's WhatsApp Business API.
Report this template
Select the reason for reporting
Describe the issue in detail
Trigger Data
Create a basic GPT-powered WhatsApp bot. These instructions provide a summary of the full documentation, which can be found here.
Before you can create a chatbot on WhatsApp, you need to have the following:
This flow handles Meta's webhook verification and powers a GPT-based WhatsApp bot. It uses the WhatsApp bot trigger with the Auto-Responder and GPT Text Generator nodes to send sarcastic replies. You can fully customize the responses to match your preferred tone.
On the Meta dashboard, go to your app and click App settings where you'll find your App ID and App Secret.
Trigger Inputs:
/whatsapp-bot
. The OpenAI Text Generator node is used to generate automatic responses to incoming messages. You'll need to select your OpenAI API key or just select the "Use Credits" option.
The Auto-Responder node is used to send the generated response to the incoming message. You'll be required to add the an Access Token. You can use the temporary access token provided by Meta for testing purposes.
In the Meta dashboard, you can get this by going to WhatsApp >> API Setup >> Temporary access token.
Note: This access token is temporary and will expire after 24 hours. See creating a permanent token for a permanent token.
First, ship 🚀 your workflow.
If everything is set up correctly, you can now test the bot by sending a message to the test WhatsApp phone number which you can obtain in the Meta dashboard from WhatsApp >> API setup.
Then you should receive an automatic response generated by OpenAI ✅.
If you don't receive a response, check the workflow for any errors, and make sure you followed all the steps correctly.
Any additional information like demo links or YouTube tutorials.