📍 CONTEXT
A Telegram-based AI assistant was built to combine conversational AI and image generation in a single interface. The bot automatically detects user intent, routes requests to the appropriate OpenAI service, and supports command-based image formatting for different platforms.
🚨 PROBLEM
- no unified interface for text + image AI interactions
- lack of automatic intent detection in user messages
- manual configuration of image generation parameters
- no support for platform-specific formats (Instagram / Facebook)
- limited scalability of static bot logic
⚙️ SOLUTION
An automated AI-powered Telegram bot was developed using n8n and OpenAI API:
- Telegram bot integration via BotFather
- automatic classification of user input (text vs image generation)
- OpenAI Chat API for conversational responses
- OpenAI Image Generation API for visuals
- keyword-based command system for image formatting (
insta, fb)
- dynamic adaptation of image size and aspect ratio
🔁 PROCESS