
8

GitHub - RafalWilinski/telegram-chatgpt-concierge-bot: Interact with OpenAI's Ch...
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.

Telegram ChatGPT Concierge Bot (+ Voice!)
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.
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
</article
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK