<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: johan</title>
    <description>The latest articles on DEV Community by johan (@johanvdd).</description>
    <link>https://dev.to/johanvdd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4006889%2Fdb710f28-6dc3-439d-9b98-a8c565accf27.png</url>
      <title>DEV Community: johan</title>
      <link>https://dev.to/johanvdd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/johanvdd"/>
    <language>en</language>
    <item>
      <title>I Built a Context-Aware RAG Plant Assistant for Magento 2 — and Added AI Photo Analysis</title>
      <dc:creator>johan</dc:creator>
      <pubDate>Sat, 10 Oct 2026 16:15:25 +0000</pubDate>
      <link>https://dev.to/johanvdd/i-built-a-context-aware-rag-plant-assistant-for-magento-2-and-added-ai-photo-analysis-1147</link>
      <guid>https://dev.to/johanvdd/i-built-a-context-aware-rag-plant-assistant-for-magento-2-and-added-ai-photo-analysis-1147</guid>
      <description>&lt;p&gt;I've spent the past few months building two custom AI tools for &lt;strong&gt;Introgreen&lt;/strong&gt;, my multilingual online plant store running on Magento 2.&lt;/p&gt;

&lt;p&gt;Instead of installing a generic chatbot extension, I wanted to develop something that understands which products visitors are viewing, retrieves relevant information from our own plant knowledge library and helps people choose suitable plants.&lt;/p&gt;

&lt;p&gt;The result is &lt;strong&gt;Plantcoach&lt;/strong&gt;, a context-aware RAG assistant, and &lt;strong&gt;Plant Finder&lt;/strong&gt;, an AI-powered recommendation tool with photo analysis.&lt;/p&gt;

&lt;p&gt;Both are now publicly available, with photo analysis still in beta.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Plantcoach: RAG with Magento page context
&lt;/h2&gt;

&lt;p&gt;Plantcoach uses &lt;strong&gt;Retrieval-Augmented Generation (RAG)&lt;/strong&gt; to retrieve relevant information from our own plant advice library instead of relying entirely on the model's general knowledge.&lt;/p&gt;

&lt;p&gt;The library covers plant care, diseases, pests, growing conditions and plant selection for different environments.&lt;/p&gt;

&lt;p&gt;What makes it interesting is its integration with Magento 2.&lt;/p&gt;

&lt;p&gt;Plantcoach works through a dedicated page and as a chat popup on the homepage, category pages and product pages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The assistant adapts to the page context.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For example, when someone visits a Monstera product page and asks, "Why are the leaves turning yellow?", Plantcoach can use the current product context and retrieve relevant plant-specific advice.&lt;/p&gt;

&lt;p&gt;It also combines plant knowledge with Magento product information, including plant characteristics and availability.&lt;/p&gt;

&lt;p&gt;The challenge is providing useful advice without turning every conversation into a sales pitch.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Plant Finder: AI photo analysis
&lt;/h2&gt;

&lt;p&gt;My second tool, Plant Finder, recently gained a photo-analysis feature.&lt;/p&gt;

&lt;p&gt;Visitors can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Upload a photo of a room or another space.&lt;/li&gt;
&lt;li&gt;Indicate where they would like to place a plant.&lt;/li&gt;
&lt;li&gt;Have AI analyse the image.&lt;/li&gt;
&lt;li&gt;Answer additional questions about lighting, pets and maintenance preferences.&lt;/li&gt;
&lt;li&gt;Receive recommendations connected to our Magento catalogue.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A photograph alone cannot reliably determine everything. For example, it can't tell us how much natural light a room receives throughout the day.&lt;/p&gt;

&lt;p&gt;That's why the tool combines image analysis with follow-up questions.&lt;/p&gt;

&lt;p&gt;The photo feature is currently available as a &lt;strong&gt;public beta&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The technical challenges
&lt;/h2&gt;

&lt;p&gt;Our Magento store operates in five languages: Dutch, German, English, French and Spanish.&lt;/p&gt;

&lt;p&gt;Building these tools has involved combining several different sources of information:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A multilingual plant knowledge library.&lt;/li&gt;
&lt;li&gt;RAG-based retrieval for relevant advice.&lt;/li&gt;
&lt;li&gt;Context from Magento category and product pages.&lt;/li&gt;
&lt;li&gt;Structured product attributes and availability.&lt;/li&gt;
&lt;li&gt;AI image analysis and additional user input.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One challenge is handling different common names for the same plant across languages.&lt;/p&gt;

&lt;p&gt;Another is ensuring recommendations remain relevant to both the user's situation and the actual product catalogue.&lt;/p&gt;

&lt;p&gt;There's still plenty to improve, particularly around multilingual retrieval and recommendation quality.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Try the tools
&lt;/h2&gt;

&lt;p&gt;Both tools are available on our English-language store.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Plantcoach — Context-Aware RAG Assistant&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://introgreen.eu/plantcoach/" rel="noopener noreferrer"&gt;https://introgreen.eu/plantcoach/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ask questions about plant care or try the contextual chat popup on a product page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Plant Finder — AI Photo Analysis (Beta)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://introgreen.eu/plant-finder" rel="noopener noreferrer"&gt;https://introgreen.eu/plant-finder&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Upload a photo and try the plant recommendations yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. I'd love your feedback
&lt;/h2&gt;

&lt;p&gt;I'm particularly interested in hearing from other developers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How do you combine RAG retrieval with structured e-commerce product data?&lt;/li&gt;
&lt;li&gt;How do you manage page context in AI assistants?&lt;/li&gt;
&lt;li&gt;Does the photo-upload workflow feel intuitive, especially on mobile?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both tools are custom-built for Introgreen, and I'm continuing to improve them.&lt;/p&gt;

&lt;p&gt;I'd love to hear your experiences with similar projects or suggestions for improvement.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Johan&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>rag</category>
      <category>magento</category>
    </item>
  </channel>
</rss>
