You are helping me build the following AI agent workflow. ## Goal Telegram Fitness Bot with Custom Workout Plans: Sends a photo or text to the bot and receives a personalized 7-day workout plan formatted for Telegram. ## Specification - What it does: Deliver personalized 7-day workout plans directly in Telegram by analyzing user photos or text inputs. The bot identifies body type and goals to generate tailored fitness routines, handling message formatting automatically to ensure seamless delivery without manual intervention. - Trigger: Triggered by an event (Manual ยท on user message or photo) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Telegram: User interface and messaging delivery - Google Gemini Chat Model: Image analysis and workout plan generation - AI Agent: Orchestrating the conversational flow and logic - Simple Memory: Maintaining context during user interactions ## Known pitfalls, handle each one explicitly in your implementation 1. Image analysis via text-only models will fail, so ensure you use a multimodal model like Gemini Pro Vision for photo inputs. 2. Liability risks arise from giving medical advice, add a disclaimer in every response stating the bot is not a doctor. 3. Context window limits can cause memory loss during long conversations, implement a sliding window or summary mechanism to keep history relevant. 4. Telegram message length limits are 4096 characters, so truncate long workout plans into multiple messages if necessary. ## Reference implementation https://n8n.io/workflows/6697 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/telegram-fitness-bot-with-custom-workout-plans/ via usecasesforagents.com