Code Monkey home page Code Monkey logo

offline-gpt-with-ussd-sms's Introduction

Offline ChatGPT USSD Application

This is an offline USSD application that allows users to interact with a menu-based system using their mobile phones. The system sends responses via SMS using Africastalking APIs. The application is built using Python and Flask.

Features

  • USSD: The system uses USSD to allow users to send requests. USSD technology allows users to interact with a menu-based system using their mobile phones.
  • SMS: The system sends responses via SMS. The user receives the response on their mobile phone.
  • Africastalking APIs: The system uses Africastalking APIs to send and receive USSD and SMS messages. Africastalking provides communication APIs that enable developers to integrate messaging, voice, and payments into their applications.

Requirements

  • Python 3.6 or higher
  • Flask
  • Africastalking account and API key
  • Ngrok (for local testing)
  • RapidAPI account and API key

Installation

  1. Clone the repository git clone https://github.com/GDSC-Karatina-Uni/offline-gpt-with-ussd-sms.git

  2. Create a virtual environment python -m venv venv

  3. Activate the virtual environment source venv/bin/activate

  4. Install the requirements pip install -r requirements.txt

  5. Create a file named .env and add the following variables:

    AT_API_KEY=<your api key>
    AT_USERNAME=<your username>
    
    RAPID_API_KEY=<your rapid api key>
    
  6. Run the application python app.py

  7. Open a new terminal and run ngrok http 5000

  8. Copy the https URL and add it to the webhook URL in your Africastalking account

  9. Test the application by dialing the USSD code in your Africastalking account

Usage

The application is a simple chatbot that allows users to interact with it via USSD. The application uses the GPT-3 API to generate responses to the user's messages. The application is built using Python and Flask.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

This project is licensed under the MIT License.

offline-gpt-with-ussd-sms's People

Contributors

mwaiseghegift avatar

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.