{"product_id":"line-plant-care-ai-bot-photo-analysis-with-n8n-gemini","title":"LINE Plant Care AI Bot: Photo Analysis with n8n + Gemini","description":"\u003ch3\u003eTurn your LINE Official Account into an AI plant care assistant that understands photos—using n8n + Google Gemini\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow powers a LINE-based plant care bot that can analyze plant images, identify the plant when possible, diagnose visible health symptoms, and provide care advice—then continue the conversation with context and saved history.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives LINE messages via a Messaging API webhook\u003c\/strong\u003e and routes requests based on whether the user sends an \u003cstrong\u003eimage\u003c\/strong\u003e or \u003cstrong\u003etext\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFor image messages:\u003c\/strong\u003e\n    \u003cul\u003e\n      \u003cli\u003eDownloads the image from the \u003cstrong\u003eLINE content API\u003c\/strong\u003e.\u003c\/li\u003e\n      \u003cli\u003eLoads the user’s \u003cstrong\u003eactive plant\u003c\/strong\u003e, \u003cstrong\u003epreferred language\u003c\/strong\u003e, and recent \u003cstrong\u003econversation history\u003c\/strong\u003e from \u003cstrong\u003en8n Data Tables\u003c\/strong\u003e.\u003c\/li\u003e\n      \u003cli\u003eSends the image plus context to \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e to identify the plant (or defer when uncertain) and assess visible symptoms, possible causes, and care guidance.\u003c\/li\u003e\n      \u003cli\u003eIf the image matches the active plant, it keeps the identity; if it’s a new plant, it \u003cstrong\u003eupserts\u003c\/strong\u003e a plant profile and updates the user’s active plant; if uncertain, it asks for a better diagnostic photo without changing the active plant.\u003c\/li\u003e\n      \u003cli\u003eStores the result as a \u003cstrong\u003eplant observation\u003c\/strong\u003e in an \u003cstrong\u003en8n Data Table\u003c\/strong\u003e and replies in LINE with a formatted summary and confidence.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFor text messages:\u003c\/strong\u003e loads the user’s active plant and recent observations, then asks Google Gemini for a contextual reply in LINE.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConversation memory:\u003c\/strong\u003e saves user and assistant messages to conversation history, updating the saved preferred language only when the user explicitly requests a language change.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eGive customers plant care support inside LINE—without building a separate frontend.\u003c\/li\u003e\n  \u003cli\u003eHelp users diagnose issues from leaf spots, discoloration, or other visible symptoms.\u003c\/li\u003e\n  \u003cli\u003eMaintain per-user plant profiles and observation history to improve follow-up answers.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/workflow logic:\u003c\/strong\u003e \u003cem\u003ewebhook\u003c\/em\u003e, \u003cem\u003eif\u003c\/em\u003e, \u003cem\u003eset\u003c\/em\u003e, \u003cem\u003eswitch\u003c\/em\u003e, \u003cem\u003emerge\u003c\/em\u003e, \u003cem\u003eaggregate\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e LINE Messaging API webhook + LINE content API, \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eData storage:\u003c\/strong\u003e n8n Data Tables for plant profiles, observations, conversation history, and language preference.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46132741669043,"sku":"N8N-20195","price":51.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/vyho04SsHJWoWLr6joyQh_nAzkPs9B.png?v=1790758871","url":"https:\/\/buyflowscripts.com\/products\/line-plant-care-ai-bot-photo-analysis-with-n8n-gemini","provider":"N8N Commerce","version":"1.0","type":"link"}