This is a Telegram bot designed to provide personalized fashion advice based on your city, age, and gender. The bot integrates weather data, retrieves context for recommendations, and even generates images and PowerPoint presentations to visualize the suggestions.
-
Interactive Chat:
- The bot collects information about your city, age, and gender in a conversational manner.
-
Weather Forecast:
- Retrieves the weather for your city to provide weather-appropriate recommendations.
-
Fashion Advice:
- Combines retrieved context and AI models to generate personalized fashion suggestions.
-
Image Generation:
- Creates illustrations of a styled individual based on the provided details.
-
Presentation Creation:
- Generates a PowerPoint presentation summarizing the fashion recommendations.
Before running the bot, ensure you have the following installed:
- Python 3.8 or higher
- Required Python libraries (listed below)
-
Clone the repository:
git clone https://github.com/yourusername/your-repo-name.git cd your-repo-name -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.envfile in the project directory. - Add your Telegram bot token:
TELEGRAM_BOT=your_telegram_bot_token
- Create a
-
Install additional tools (if needed):
- Stable Diffusion or equivalent for image generation.
- PowerPoint library (
python-pptx) for creating presentations.
-
Run the bot:
python bot.py
-
Interact with the bot on Telegram:
- Start a conversation with your bot by sending
/start. - Answer the bot's questions about your city, age, and gender.
- Start a conversation with your bot by sending
-
Receive results:
- Fashion advice based on your input and weather.
- An illustrative image.
- A PowerPoint presentation summarizing the recommendations.
bot.py: Main script for the Telegram bot.sd_test3.py: Module for generating images (Stable Diffusion integration).ppt_utility2.py: Module for creating PowerPoint presentations..env: Environment variables (not included in the repo; you must create this file).
telebotlangchainpython-dotenvrequestspython-pptx- Any other dependencies required for your image generation or AI models.
- Add multi-language support.
- Extend fashion recommendations to include specific clothing brands or stores.
- Enhance weather data accuracy with more robust APIs.
- Improve image generation for higher-quality results.
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- OpenAI for language model support.
- LangChain for chaining AI tools.
- python-telegram-bot for Telegram integration.
- Stable Diffusion for image generation.