/telegram-chatgpt-concierge-bot

Interact with OpenAI's ChatGPT via Telegram and Voice.

Primary LanguageTypeScript

Telegram ChatGPT Concierge Bot (+ Voice!)

Telegram ChatGPT Concierge Bot

This is a Telegram bot that uses:

  • OpenAI's ChatGPT, obviously, as "the brain"
  • LangchainJS to constructs prompts, handle convo history and interact with Google
  • OpenAI's Whisper API to generate text from voice
  • Play.ht to generate voice from text and reply to voice messages

How to use

Prerequisite: You need to have a Telegram bot token and an OpenAI API key. Ask ChatGPT how to get these.

  1. git clone https://github.com/RafalWilinski/telegram-chatgpt-concierge-bot
  2. cd telegram-chatgpt-concierge-bot
  3. touch .env and fill the following:
TELEGRAM_TOKEN=
OPENAI_API_KEY=
PLAY_HT_SECRET_KEY=
PLAY_HT_USER_ID=
  1. npm install
  2. npm start

Follow me on Twitter

Discuss on Twitter or HackerNews