📌 What it looks like in use:
This image shows a visual of the workflow in action. Use it for reference when replicating or customizing the template.
This n8n template transforms a user-submitted food photo into a detailed, friendly, AI-generated nutritional report — sent back seamlessly as a chat message. It combines OpenAI's visual reasoning, Postgres-based memory, and real-time messaging with Blooio to create a hands-free calorie and nutrition tracker.
Webhook Trigger
The workflow begins when a message is received via Blooio. This webhook listens for user-submitted content, including any image attachments.
Image Validation and Extraction
A conditional check verifies the presence of attachments. If images are found, their URLs are extracted using a Code node and prepared for processing.
Image Analysis via AI Agent
Images are passed to an OpenAI-based agent using a custom system prompt that:
Memory Integration
A Postgres memory node stores user interactions for recall and contextual continuity, allowing day/week/month reports to be generated based on cumulative messages.
Response Aggregation & Summary
Messages are aggregated and summarized by a second AI agent into a single concise message to be sent back to the user via Blooio.
Message Dispatch
The final message is posted back to the originating conversation using the Blooio Send Message API.
Prompt Tuning
Tailor the system prompt in the AI Agent node to fit specific diets (e.g., keto, diabetic), age groups, or regionally-specific foods.
Analytics Dashboards
Hook up your Postgres memory to a data visualization tool for nutritional trends over time.
Multilingual Support
Adjust the response prompt to translate messages into other languages or regional dialects.
Image Preprocessing
Insert a preprocessing node before sending images to the model to resize, crop, or enhance clarity for better results.