iMessage food photo nutritional analysis with GPT-4 Vision & Memory Storage
Needs changesWhat this workflow does
This AI workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model and Postgres Chat Memory. It also calls api.blooio.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Don't respond to yourself (If): checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Code: runs custom JavaScript code
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; memory: Postgres Chat Memory
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Aggregate: combines items into one
- HTTP Request: calls an HTTP API
- AI Agent: runs an AI agent, with model: OpenAI Chat Model
- Send Message (HTTP Request): calls api.blooio.com (POST)
Services it uses
Other OpenAI + PostgreSQL templates (191)
HTTP calls to: api.blooio.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat - Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Code
n8n-nodes-base.code - Aggregate
n8n-nodes-base.aggregate
From the author
iMessage AI-Powered Smart Calorie Tracker > 📌 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…