Giter Club home page Giter Club logo

Comments (4)

Thiru-Malai avatar Thiru-Malai commented on June 2, 2024

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.

Thiru-Malai avatar Thiru-Malai commented on June 2, 2024

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:

image

Copy the code from Free-Trial (Code Updated) into main.py

NGROK Local Deployment:

Now download ngrok

  1. https://ngrok.com/download
  2. Extract the zip and add the folder to the environment variables
  3. Login to ngrok website: https://dashboard.ngrok.com/get-started/setup
  4. run ngrok config add-authtoken in terminal

Ngork

  1. run ngrok http 5000
    The output should be like

image

  1. 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

image

Now run the main.py and send message in your WhatsApp

It should work fine

from chatgpt-whatsappbot-twilio.

cyrisky avatar cyrisky commented on June 2, 2024

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.

Thiru-Malai avatar Thiru-Malai commented on June 2, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.