8

GitHub - RafalWilinski/telegram-chatgpt-concierge-bot: Interact with OpenAI's Ch...

 2 years ago
source link: https://github.com/RafalWilinski/telegram-chatgpt-concierge-bot
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

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

</article


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK