Comments (4)
Can you send screenshots of the error?
It will be helpful for fixing.
Also let me know what have you done so that I can reproduce the error
from chatgpt-whatsappbot-twilio.
To run your app in local you need to follow these steps:
mkdir chatgpt
cd chatgpt
python3 -m venv
For Linux un: source venv/bin/activate
For Windows run: venv/Scripts/activate
pip install twilio flask requests
Create a main.py in root directory
The hierarchy should be like this:
Copy the code from Free-Trial (Code Updated) into main.py
NGROK Local Deployment:
Now download ngrok
- https://ngrok.com/download
- Extract the zip and add the folder to the environment variables
- Login to ngrok website: https://dashboard.ngrok.com/get-started/setup
- run ngrok config add-authtoken in terminal
- run ngrok http 5000
The output should be like
- Copy the Forwarding URL from the terminal and paste it in Twilio console and WhatsApp sandbox settings:
Paste the URL appended with /bot
Original Url: https://2262-49-204-133-70.ngrok-free.app/
Appended Url:https://2262-49-204-133-70.ngrok-free.app/bot
Now run the main.py and send message in your WhatsApp
It should work fine
from chatgpt-whatsappbot-twilio.
I already do the step above, but in ngrok it returned a 403 Forbidden when I send message in whatsApp, can you help?
from chatgpt-whatsappbot-twilio.
Make sure you have Paid OPEN-API Key. Free open-api key does not work.
Also append /bot similar to this https://2262-49-204-133-70.ngrok-free.app/bot but replace with your url that is generated from ngrok.
Please let me know if this works and make sure to follow all the steps without missing anything.
from chatgpt-whatsappbot-twilio.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-whatsappbot-twilio.