Skip to content
/ Mr_Nags Public template
forked from PeoplePlusAI/Mr-Nags

Citizen complaint filing system

Notifications You must be signed in to change notification settings

luv-singh-ai/Mr_Nags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mr Nags

Mr Nags is a complaint filing chatbot using egov digit platform.

Installation

  1. Create a file .env inside ops directory and add the following lines to it:

    OPENAI_API_KEY=<OPENAI_API_KEY>
    TELEGRAM_BOT_TOKEN=<TELEGRAM BOT TOKEN>
    REDIS_HOST=redis (localhost if running locally without docker)
    USERNAME=<digit-username>
    PASSWORD=<digit-password>
    MODEL_NAME=<model-name eg: gpt-3.5-turbo>
    BHASHINI_KEY=<bhashini-key>
    
  2. For normal running

    Run the following commands:

    pip install -r requirements.txt
    

    Once the installaton is complete, run the following command to start the bot:

    python main.py
    
  3. For docker running

    Run the following command to start the bot:

    docker-compose up
    
  4. Open Telegram and search for @YourBotName and start chatting with the bot.

Usage

  1. To start a conversation with the bot, start having a conversation by saying hey, hello or I have a complaint
  2. Start by typing '/start' and then select your language from the dropdown menu.
  3. The bot will ask you to describe your complaint
  4. Once you have described your complaint, the bot will file the complaint and give you your complaint number.
  5. Todo: Map Location details from chat to the proper parameters in digit API call(s).

About

Citizen complaint filing system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 52.7%
  • Python 46.7%
  • Dockerfile 0.6%