Introduction to the Telegram ChatGPT Concierge Bot (+ Voice!)
The Telegram ChatGPT Concierge Bot is an innovative tool designed to elevate the user experience on Telegram by integrating advanced AI technologies. Developed using modern AI capabilities, this bot offers unique features that can substantially enhance communication and interaction.
Key Features
-
OpenAI's ChatGPT: The bot employs OpenAI's ChatGPT technology as its "brain," enabling it to understand and generate human-like text responses. This feature makes conversations with the bot feel natural and engaging.
-
LangchainJS: This library is utilized within the bot to construct prompts, manage conversation histories, and interact with Google services. LangchainJS enhances the bot's ability to deliver relevant and coherent responses.
-
OpenAI's Whisper API: Whisper API is employed to transcribe voice messages into text format. This feature allows users to communicate with the bot using spoken language, promoting a hands-free experience.
-
Play.ht Integration: To communicate back to users with voice messages, the bot uses Play.ht, a text-to-speech service. This allows the bot to reply in a natural-sounding voice, making the interaction more dynamic.
How to Use the Bot
To get started with the Telegram ChatGPT Concierge Bot, users need to ensure they have a few prerequisites:
- Node 18: A recent version of Node.js is required to run the bot.
- Telegram Bot Token: Users need to create a bot in Telegram and obtain a token.
- OpenAI API Key: Access to GPT-4 is recommended, although users can specify other models using the
OPENAI_MODEL
environment variable. - ffmpeg: Installation of
ffmpeg
is necessary for handling voice interactions.
Once the above prerequisites are met, users can follow these steps:
-
Clone the repository from GitHub:
git clone https://github.com/RafalWilinski/telegram-chatgpt-concierge-bot
-
Navigate to the project directory:
cd telegram-chatgpt-concierge-bot
-
Create a
.env
file and configure the necessary environment variables:TELEGRAM_TOKEN= OPENAI_API_KEY= PLAY_HT_SECRET_KEY= PLAY_HT_USER_ID= PLAY_HT_VOICE= OPENAI_MODEL=gpt-3.5-turbo #SERVE_THIS_USER_ONLY=99999999
For more detailed configuration, consult the Play.ht documentation for available voice options.
-
Install dependencies:
npm install
-
Start the bot:
npm start
Consulting Services
The bot's creator, Rafal Wilinski, offers consulting services for those interested in personalized guidance or integrating similar technologies into their projects. Interested parties can reach out via email at [email protected].
Community and Sponsorship
Rafal Wilinski invites users to follow him on Twitter for updates and discussions. Additionally, the project has been sponsored by ChatWithCloud, highlighting its significance and the community's faith in its capabilities.
For any further discussion or to engage with the community, users can visit HackerNews.
This bot offers a blend of cutting-edge AI technologies and practicality, making it a potential game-changer for Telegram users looking for more interactive and intuitive communication methods.