You are helping me build the following AI agent workflow. ## Goal Logistics Damage Reporting Assistant: Operators snap photos of damaged pallets via Telegram; AI analyzes damage and extracts barcodes to auto-email structured reports. ## Specification - What it does: Snap photos of damaged pallets via Telegram to instantly receive an automated email report with damage details and extracted barcodes. This workflow analyzes your images using AI to generate structured HTML reports and sends them directly to designated recipients while confirming receipt back to you. - Trigger: Triggered by an event (Manual ยท on new image via Telegram) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Telegram: Receive damage photos and send confirmations - OpenAI: Analyze images for damage and extract barcode data - Gmail: Send structured HTML damage reports ## Known pitfalls, handle each one explicitly in your implementation 1. Image resolution may be too low for accurate barcode reading so enforce a minimum pixel threshold before processing. 2. Telegram file size limits might reject large raw images so add an automatic compression step before sending to the LLM. 3. False positive damage detection can occur with shadows or dirt so require a confidence score threshold for triggering alerts. ## Reference implementation https://n8n.io/workflows/11048 (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/ai-logistics-damage-reporting-assistant/ via usecasesforagents.com