{"product_id":"analyze-meal-photos-with-google-gemini-nutrition-via-n8n-webhook","title":"Analyze Meal Photos with Google Gemini Nutrition via n8n Webhook","description":"\u003ch3\u003eGet Nutrition Estimates From Meal Photos—Automatically\u003c\/h3\u003e\n\u003cp\u003eSend a meal image to an \u003cstrong\u003en8n webhook\u003c\/strong\u003e and get back a structured \u003cstrong\u003enutrition breakdown\u003c\/strong\u003e (per-item and totals for calories, protein, carbs, and fat) generated by \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e—all packaged as a clean JSON response.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives a POST request\u003c\/strong\u003e on a webhook endpoint (the workflow is designed for an image of a dish).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAccepts the meal image as binary data\u003c\/strong\u003e from the incoming webhook request (binary mode enabled).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eUses an AI Agent with Google Gemini\u003c\/strong\u003e to analyze the image using a nutrition-analysis prompt.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses Gemini’s output\u003c\/strong\u003e into a predefined \u003cstrong\u003eJSON structure\u003c\/strong\u003e containing food items and totals.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns the structured nutrition results\u003c\/strong\u003e to the caller as the webhook response.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuild a nutrition feature\u003c\/strong\u003e into your app where users upload meal photos and receive estimated macros instantly.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSupport dietary tracking automation\u003c\/strong\u003e for SaaS operators who want to enrich user submissions with calorie\/protein\/carbs\/fat estimates.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrototype meal analysis workflows\u003c\/strong\u003e for health coaching tools without manual data entry.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook\u003c\/strong\u003e trigger to accept the image via POST (recommended path: \u003cem\u003e\/meal_ai\u003c\/em\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Gemini Chat Model\u003c\/strong\u003e configured with your Gemini credentials in n8n.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI Agent\u003c\/strong\u003e node: \u003ccode\u003en8nn8n-nodes-langchainagent\u003c\/code\u003e (driven through the Gemini model).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eStructured output parsing\u003c\/strong\u003e with \u003ccode\u003en8nn8n-nodes-langchainoutputparser\u003c\/code\u003e to produce the JSON schema you define.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook response\u003c\/strong\u003e via \u003ccode\u003erespond to webhook\u003c\/code\u003e returning the parsed nutrition JSON.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup notes\u003c\/h3\u003e\n\u003cp\u003eConfigure Gemini credentials in the \u003cem\u003eGoogle Gemini Chat Model\u003c\/em\u003e node, send the meal image in binary mode, and copy the webhook URL for the \u003cem\u003e\/meal_ai\u003c\/em\u003e path (or change it). You can also adjust the AI prompt and the structured output parser schema to match your desired response format.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45905435132083,"sku":"N8N-18737","price":46.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/LMoYc3EyT_aHRV2D5uDws_jmrVUh9v.png?v=1787821836","url":"https:\/\/buyflowscripts.com\/products\/analyze-meal-photos-with-google-gemini-nutrition-via-n8n-webhook","provider":"N8N Commerce","version":"1.0","type":"link"}