{
  "name": "Generate answer engine optimization strategy with Firecrawl, Gemini, OpenAI",
  "nodes": [
    {
      "id": "0ed4c268-0c17-4518-ab09-9d535c90f319",
      "name": "Sticky Note - Main Explanation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -240
      ],
      "parameters": {
        "width": 526,
        "height": 1756,
        "content": "## 🎯 AEO Strategy Generator with AI Competitor Analysis\n\n### What This Workflow Does\nThis workflow automatically generates a comprehensive Answer Engine Optimization (AEO) strategy by:\n1. **Collecting"
      }
    },
    {
      "id": "279c4e93-95e1-4428-aedd-750b68927399",
      "name": "Sticky Note - Step 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        64
      ],
      "parameters": {
        "width": 325,
        "height": 237,
        "content": "## 📋 Step 1: Collect Brand Information\n\nUsers submit a form with:\n- Brand Name\n- Website URL\n- Niche (B2B/D2C/B2C)\n- Product Type\n- Email for delivery\n\nThe form trigger creates a webhook that captures"
      }
    },
    {
      "id": "4de0225e-771b-4f35-a17b-fb5bfa3b7a22",
      "name": "Sticky Note - Step 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        48
      ],
      "parameters": {
        "width": 342,
        "height": 283,
        "content": "## 🔍 Step 2: AI Competitor Analysis\n\nGoogle Gemini AI analyzes the brand and identifies the top 3 direct competitors based on:\n- Product/service overlap (40%)\n- Market position (30%)\n- Digital presenc"
      }
    },
    {
      "id": "f8367873-eff8-495f-892d-f4aaa16bb682",
      "name": "Sticky Note - Step 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1808,
        -32
      ],
      "parameters": {
        "width": 324,
        "height": 298,
        "content": "## 🌐 Step 3: Web Scraping\n\nFirecrawl API scrapes:\n- **Target brand website** (main URL)\n- **All 3 competitor websites** (in parallel)\n\nExtracts:\n- Product descriptions\n- Value propositions  \n- Target "
      }
    },
    {
      "id": "5a353a4a-0cfd-4ec7-b668-9fe0ec95271b",
      "name": "Sticky Note - Step 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2528,
        32
      ],
      "parameters": {
        "width": 359,
        "height": 319,
        "content": "## 🤖 Step 4: AEO Strategy Generation\n\nOpenAI GPT-4 analyzes:\n- Brand positioning vs competitors\n- Content gaps and opportunities\n- Answer Engine optimization tactics\n\nGenerates:\n- 15+ specific AEO rec"
      }
    },
    {
      "id": "58c0c777-dde6-41c4-bde8-55450b0e5705",
      "name": "Sticky Note - Step 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2976,
        48
      ],
      "parameters": {
        "width": 329,
        "height": 283,
        "content": "## 📧 Step 5: Deliver Results\n\nFormatted HTML email sent to the provided address containing:\n- Executive summary\n- Competitor analysis\n- Detailed AEO strategy\n- Action items\n- Next steps\n\nCustomize the"
      }
    },
    {
      "id": "a8a45e17-5938-4167-9e84-b070649059b0",
      "name": "Form Trigger - Brand Input",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        528,
        400
      ]
    },
    {
      "id": "191a4c85-8ce1-467a-9f92-f86f2d39a711",
      "name": "Set - Brand Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        736,
        400
      ]
    },
    {
      "id": "0e752e80-d0e4-409c-935c-1c60c3c35ba8",
      "name": "AI Agent - Identify Competitors",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        896,
        400
      ]
    },
    {
      "id": "f81b4735-21b0-4a80-8f73-38f4557a3c86",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        896,
        576
      ]
    },
    {
      "id": "cf7e1394-a9cd-4a8d-bd74-09d9548a40f6",
      "name": "Parse Competitor Data",
      "type": "n8n-nodes-base.code",
      "position": [
        1200,
        400
      ]
    },
    {
      "id": "0140d35c-e081-430c-aed3-4815e3a52237",
      "name": "Split Out - Individual Competitors",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1408,
        400
      ]
    },
    {
      "id": "b3db184b-1c3e-4703-8379-d17254c2366d",
      "name": "Scrape Target Brand Website",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1600,
        512
      ]
    },
    {
      "id": "385a6108-353f-44a9-9a8f-a6f55daf569d",
      "name": "Scrape Competitor Websites",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1600,
        272
      ]
    },
    {
      "id": "bed46dcf-aee6-4879-b068-b8b100160ce3",
      "name": "Wait - Brand Scraping",
      "type": "n8n-nodes-base.wait",
      "position": [
        1808,
        512
      ]
    },
    {
      "id": "c23479c5-e0f2-4feb-8b12-8b79ff85dd9a",
      "name": "Wait - Competitor Scraping",
      "type": "n8n-nodes-base.wait",
      "position": [
        1808,
        272
      ]
    },
    {
      "id": "08b3d94d-09ed-4d86-a356-60456c919f80",
      "name": "Extract Brand Job ID",
      "type": "n8n-nodes-base.code",
      "position": [
        2032,
        512
      ]
    },
    {
      "id": "7270bad6-0347-4561-86dc-c0dab6cfaa26",
      "name": "Extract Competitor Job IDs",
      "type": "n8n-nodes-base.code",
      "position": [
        2032,
        272
      ]
    },
    {
      "id": "d384d46d-070e-4050-b4ec-8e030977b869",
      "name": "Get Brand Scrape Results",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2256,
        512
      ]
    },
    {
      "id": "76447198-f178-4626-a09f-a2470cf49fe7",
      "name": "Get Competitor Scrape Results",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2256,
        272
      ]
    },
    {
      "id": "9b15dc04-383b-453a-b39a-a19800199793",
      "name": "Merge Brand & Competitor Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        2496,
        400
      ]
    },
    {
      "id": "b8077839-85da-444a-ac4a-193524034086",
      "name": "AI Agent - Generate AEO Strategy",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2672,
        400
      ]
    },
    {
      "id": "32df1cb1-1242-4ba5-be35-7a33560e7623",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2688,
        544
      ]
    },
    {
      "id": "796cd127-53c0-4d44-a4c6-47cfa1f54583",
      "name": "Format Email Content",
      "type": "n8n-nodes-base.code",
      "position": [
        2976,
        400
      ]
    },
    {
      "id": "cf8cd495-37a7-4b93-b18c-bbf6b62d1622",
      "name": "Send Email via Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        3152,
        400
      ]
    }
  ],
  "connections": {
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent - Generate AEO Strategy",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Extract Brand Job ID": {
      "main": [
        [
          {
            "node": "Get Brand Scrape Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Email Content": {
      "main": [
        [
          {
            "node": "Send Email via Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Competitor Data": {
      "main": [
        [
          {
            "node": "Split Out - Individual Competitors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set - Brand Variables": {
      "main": [
        [
          {
            "node": "AI Agent - Identify Competitors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait - Brand Scraping": {
      "main": [
        [
          {
            "node": "Extract Brand Job ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Brand Scrape Results": {
      "main": [
        [
          {
            "node": "Merge Brand & Competitor Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent - Identify Competitors",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Extract Competitor Job IDs": {
      "main": [
        [
          {
            "node": "Get Competitor Scrape Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form Trigger - Brand Input": {
      "main": [
        [
          {
            "node": "Set - Brand Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Competitor Websites": {
      "main": [
        [
          {
            "node": "Wait - Competitor Scraping",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait - Competitor Scraping": {
      "main": [
        [
          {
            "node": "Extract Competitor Job IDs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Target Brand Website": {
      "main": [
        [
          {
            "node": "Wait - Brand Scraping",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Competitor Scrape Results": {
      "main": [
        [
          {
            "node": "Merge Brand & Competitor Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge Brand & Competitor Data": {
      "main": [
        [
          {
            "node": "AI Agent - Generate AEO Strategy",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent - Identify Competitors": {
      "main": [
        [
          {
            "node": "Parse Competitor Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent - Generate AEO Strategy": {
      "main": [
        [
          {
            "node": "Format Email Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out - Individual Competitors": {
      "main": [
        [
          {
            "node": "Scrape Target Brand Website",
            "type": "main",
            "index": 0
          },
          {
            "node": "Scrape Competitor Websites",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}