This repository contains a template project for connecting a Telegram bot to the OpenAI Assistant API. It was developed as a proof of concept during an Hack4AI hosted by https://www.startuphouse.lv/.
It was made by team Orbit8
The core functionality of this bot is to demonstrate how to integrate Telegram with the OpenAI Assistant, making it a versatile starting point for developers looking to create their own AI-powered Telegram bots. The specific actions and responses of the bot can be customized according to the OpenAI Assistant prompts configured by the developer.
- Template for setting up a Telegram bot integrated with the OpenAI Assistant API. .
- Simple setup process for quick deployment and testing.
- Node.js
- Telegram Bot API
- OpenAI Assistant API
- Clone the repository:
git clone https://github.com/your-repo/openai-assistant-telegram-bot-node-js.git
- Navigate to the project directory:
cd openai-assistant-telegram-bot-node-js
- Install the necessary dependencies:
npm install
- Start the bot:
The start script will guide you through the setup process, including configuring the necessary API keys and other settings.
npm run start
After starting the bot, it will be running and listening for messages. The behavior and responses of the bot can be customized by modifying the OpenAI Assistant prompts within the code. Experiment with different prompts to achieve the desired functionality and interactions.
- what thing we wanted to add was streaming. Currently we wait for full response which is slow. Would be nice to do streaming and already send messages to Telegram as parts come in
Contributions to this template are welcome! Please feel free to fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.