STEPS · 48
Starts on a Whats App event
▶ Animate flow1 Message Received → Message Type Switch routes items to a matching branch 2 Message Type → Get Image Url Whats App media · mediaUrlGet 3 Message Type → Get File Url Whats App media · mediaUrlGet 4 Message Type → Text Set Fields maps and normalizes fields for the next step 5 Message Type → Google Maps HTTP Request GET =https://maps.googleapis.com/maps/api/geocode/json?latl… 6 Message Type → Get Audio Url Whats App media · mediaUrlGet 7 Get Image Url → Download Image HTTP Request GET ={{ $json.url }} 8 Get File Url → Download File HTTP Request GET ={{ $json.url }} 9 Text → AI Restaurant Agent AI Agent runs the AI agent with its attached model, memory and tools 10 Google Maps → Location Set Fields maps and normalizes fields for the next step 11 Get Audio Url → Download Audio HTTP Request GET ={{ $json.url }} 12 Download Image → OpenAI Open Ai image · analyze 13 Download File → Extract from File1 Extract From File binaryToPropery 14 AI Restaurant Agent → If IF branches on a condition 15 AI Restaurant Agent → If1 IF branches on a condition 16 AI Restaurant Agent → If2 IF branches on a condition 17 Location → AI Restaurant Agent AI Agent runs the AI agent with its attached model, memory and tools 18 Download Audio → Transcribe Audio Open Ai audio · transcribe 19 OpenAI → Image Set Fields maps and normalizes fields for the next step 20 Extract from File1 → Extract PDF Content Using Gemini Vision HTTP Request POST https://generativelanguage.googleapis.com/v1beta/models… 21 If → Download file Google Drive download 22 If1 → Menu 1 Google Drive download 23 If2 → Message to Customer2 Whats App send 24 If2 → Order Format AI Agent runs the AI agent with its attached model, memory and tools 25 If2 → Wait Wait pauses the flow 26 Transcribe Audio → Audio Set Fields maps and normalizes fields for the next step 27 Image → Receipt Analysis AI Agent runs the AI agent with its attached model, memory and tools 28 Extract PDF Content Using Gemini Vision → File Set Fields maps and normalizes fields for the next step 29 Download file → WhatsApp Business Cloud2 Whats App send 30 Menu 1 → WhatsApp Business Cloud Whats App send 31 Order Format → Code Code runs custom code on the items 32 Wait → Response to Customer Whats App send 33 Audio → AI Restaurant Agent AI Agent runs the AI agent with its attached model, memory and tools 34 Receipt Analysis → Switch Switch routes items to a matching branch 35 File → Forward receipt to Management Whats App send 36 File → Receipt Analysis AI Agent runs the AI agent with its attached model, memory and tools 37 Code → Message to cashier Whats App send 38 Code → Message to Customer2 Whats App send 39 Switch → Order Format AI Agent runs the AI agent with its attached model, memory and tools 40 Switch → Message to cashier Whats App send 41 Switch → Message to Customer2 Whats App send 42 OpenAI Chat Model1 → Order Format OpenAI Model provides the language model (gpt-4o-mini) — attached as the language model. 43 OpenAI Chat Model2 → AI Restaurant Agent OpenAI Model provides the language model (gpt-4o) — attached as the language model. 44 OpenAI Chat Model6 → Receipt Analysis OpenAI Model provides the language model (o3-mini) — attached as the language model. 45 Postgres Chat Memory → Order Format Memory Postgres Chat processes the incoming items — attached as the conversation memory. 46 Postgres Chat Memory1 → AI Restaurant Agent Memory Postgres Chat processes the incoming items — attached as the conversation memory. 47 Postgres Chat Memory4 → Receipt Analysis Memory Postgres Chat processes the incoming items — attached as the conversation memory. 48 Structured Output Parser → Order Format Output Parser parses the model output into structured data — attached as the output parser.