Skip to content

EPguitars/gpt-psychologist-telegram-bot

Repository files navigation

crაtm

AI psychologist (rus)

This is a telegram bot in role of a personal psychologist. It's working with Openai api.

REMEMBER, this is a computer program I made for fun.

Don't use It to solve serious mental problems!

Table of Contents

  1. Installation
  2. Contributing
  3. Improving scenario
  4. Credits

Installation

  1. Download repo on you computer
  2. Install dependencies from requirements.txt
  3. Run file "dbscript.py" to create your local database

Usage

To use this bot you need your own API keys for telegram and openai

  1. Get telegram key from bot "BotFather" in telegram
  2. Paste it into the file main.py as a TOKEN variable value. Line 34
TOKEN = open("tg_TOKEN.txt", "r", encoding="utf-8").read()
  1. Get API key for openai from your own account
  2. Paste it into the file gtp_logic.py as a openai.api_key variable value. Line 12
openai.api_key = open("gtp_TOKEN.txt", 'r', encoding="utf-8").read()
  1. Run main script and your bot will become active
  2. Prompts on Russian language. Change every prompt on language you need

Contributing

  1. Clone repo and create a new branch
  2. Make changes and test
  3. Submit pull request with comprehensive discription of changes

Improving scenario

There is a lot of things can be done to improve this bot in my opnion. Here some of them:

  1. User data should be saved and sended to a "system" prompt
  2. User authentification
  3. Session shouldn't start from the beggining every time when connection is breaking
  4. Bot menu should be always available
  5. User should pass a little questionnaire to set bot more correctly through changing prompts
  6. User data should be hashed
  7. Secure methods

Credits

Big thanks to Ilya Lysov for idea

Contact

Acknowledgments

  • Thanks python-telegram-bot team for python telegram library!
  • Thanks openai team for model and api!

About

This is an AI psychologist in your phone. Based on openai and telegram apis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published