Auto-generate SEO meta descriptions & keywords for Magento 2 with GPT-4.1 & LangChain
Needs changesWhat this workflow does
This AI workflow has 9 nodes and runs when someone submits an n8n form. Along the way it connects OpenAI Chat Model and SerpApi (Google Search).
How it runs
Trigger: When someone submits an n8n form.
- Get Product By SKU (HTTP Request): calls an HTTP API
- Checks If SKU exists (If): checks a condition and branches into true / false
- Code: runs custom JavaScript code
- AI Meta Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (SerpAPI); output parser: Structured Output Parser
- Update Product Meta Data (HTTP Request): calls an HTTP API
Services it uses
Before you upgrade to n8n 3.0
2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- AI Agent v1 (old agent modes) in AI Meta Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- SerpApi (Google Search) in SerpAPI: no direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Meta Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
| SerpApi (Google Search) SerpAPI | No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node |
Nodes used (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - SerpApi (Google Search)
@n8n/n8n-nodes-langchain.toolSerpApi - If
n8n-nodes-base.if
From the author
This workflow intelligently regenerates meta descriptions and meta keywords for Magento 2 product pages using OpenAI and SEO best practices. 🔍 What It Does: - Accepts SKU input via a public form - Fetches the product by SKU from your Magento 2 store -…