Generate competitor content gap reports in Slack with GPT-4o-mini
Needs changesWhat this workflow does
This AI workflow has 12 nodes and runs when someone submits an n8n form (“Competitor Content Gap Analyzer”). Along the way it connects OpenAI Chat Model and Slack.
How it runs
Trigger: When someone submits an n8n form (“Competitor Content Gap Analyzer”).
- 2. Set — Extract Form Fields (Edit Fields (Set)): sets 5 fields: yourUrl, competitorUrl, targetKeyword…
- 3. HTTP — Scrape Your Page (HTTP Request): calls an HTTP API
- 4. HTTP — Scrape Competitor Page (HTTP Request): calls an HTTP API
- 5. Code — Clean Your Page HTML (Code): runs custom JavaScript code
- 6. Code — Clean Competitor Page HTML (Code): runs custom JavaScript code
- 7. Merge — Combine Both Pages (Merge): merges the data from its input branches
- 8. Code — Combine Page Data (Code): runs custom JavaScript code
- 9. AI Agent — Gap Analyzer (AI Agent): runs an AI agent, with model: 10. OpenAI — GPT-4o-mini Model
- 11. Set — Prepare Slack Message (Edit Fields (Set)): sets 6 fields: gapReport, yourUrl, competitorUrl…
- 12. Slack — Send Gap Report (Slack): uses Slack
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in 9. AI Agent — Gap Analyzer (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
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) 9. AI Agent — Gap Analyzer (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Slack
n8n-nodes-base.slack
From the author
Description Submit your page URL, a competitor's page URL, and a target keyword using a simple form. The workflow automatically scrapes both pages, strips all HTML, and sends the full comparison to GPT-4o-mini for analysis. Within seconds, a structured…