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
Prerequisite: You need to have a Telegram bot token and an OpenAI API key. Ask ChatGPT how to get these.
git clone https://github.com/RafalWilinski/telegram-chatgpt-concierge-bot
cd telegram-chatgpt-concierge-bot
touch .env
and fill the following:
TELEGRAM_TOKEN=
OPENAI_API_KEY=
PLAY_HT_SECRET_KEY=
PLAY_HT_USER_ID=
npm install
npm start
Follow me on Twitter
Discuss on Twitter or HackerNews