Welcome to the Conversational AI Bot, an intelligent chatbot built using the Meta-Llama-3-8B model. This bot is designed for real-time conversations on Telegram, providing smart, context-aware responses that get more refined over time by remembering user interactions.
Try chatting with the bot on Telegram:
👉 https://t.me/conversational_LB_bot
Test its ability to maintain the flow of conversation and see how it adapts to various inputs!
-
AI-Driven Conversations: Powered by Meta-Llama-3, the bot generates meaningful, human-like responses, ensuring dynamic interactions.
-
Contextual Memory: With personalized memory for each user, the bot retains conversation context over time, enhancing the quality of its replies.
-
Real-Time Interaction via Telegram: Fully integrated with the Telegram API, allowing you to chat with the bot instantly.
-
User-Specific Logging: Creates secure, rotating log files for each user, making it easy to track or review conversations.
-
Environment-Secure: Sensitive data like API tokens are stored securely using environment variables.
To set up the bot, you’ll need:
- Python 3.8+
- Telegram Bot Token (Get one from BotFather)
- Hugging Face API Access (For using Meta-Llama-3)
Start by cloning the repository:
git clone https://github.com/burna680/Conversational-Chatbot.git
cd Conversational-ChatbotCreate a virtual environment and install dependencies:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txtAdd your Telegram bot token and you HuggingFace API key to the .env file:
HF_TOKEN= <Your-HuggingFace-API-Key>
BOT_TOKEN=<Your-Telegram-Bot-Token>Run the bot on Telegram:
python bot.pyNow you can chat with your bot on Telegram! 🎉🤖
Here's the project layout:
.
├── bot.py # Main bot script
├── requirements.txt # Dependencies
├── .env # Environment variables
├── user_logs/ # Logs for each user
└── README.md # Project documentation
Want to contribute? Here’s how:
- Fork the repo.
- Create a new branch:
git checkout -b <feature-branch>. - Commit your changes:
git commit -am 'Add new feature'. - Submit a Pull Request.
All contributions are welcome! 🚀
Interested in contributing to this project? We welcome all suggestions and ideas! You can explore and work on the features listed in the TODO file. Whether you're enhancing existing functionalities or adding new ones, your contributions are always appreciated!
This project is under the MIT License. Check the LICENSE file for more information.
Here are some useful links:
Hi! I’m Lucas, a passionate Machine Learning Engineer specialized in NLP and Computer Vision. With over three years of experience, I’ve led various AI-driven projects, including chatbot development and advanced AI systems.
Feel free to reach out if you have any questions or want to connect!