{
  "name": "Prerona $0 competitive intelligence",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 */6 * * *"
            }
          ]
        }
      },
      "id": "92bf529c-b34c-4af0-b0e0-e211a0fa237b",
      "name": "Monitor Every 6 Hours",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.1,
      "position": [
        -1760,
        112
      ]
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "b623af0d-7386-431e-8976-6bf1e6c39e46",
      "name": "Competitor Configuration",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.3,
      "position": [
        -1536,
        112
      ]
    },
    {
      "parameters": {
        "jsCode": "const competitors = JSON.parse($input.first().json.competitors);\nconst allUrls = [];\n\nfor (const competitor of competitors) {\n  // Add pricing page\n  if (competitor.pricing_url) {\n    allUrls.push({\n      competitor: competitor.name,\n      type: 'pricing',\n      url: competitor.pricing_url,\n      priority: competitor.priority\n    });\n  }\n  \n  // Add product page\n  if (competitor.product_url) {\n    allUrls.push({\n      competitor: competitor.name,\n      type: 'product',\n      url: competitor.product_url,\n      priority: competitor.priority\n    });\n  }\n  \n  // Add jobs page\n  if (competitor.jobs_url) {\n    allUrls.push({\n      competitor: competitor.name,\n      type: 'jobs',\n      url: competitor.jobs_url,\n      priority: competitor.priority\n    });\n  }\n}\n\nreturn allUrls.map(item => ({ json: item }));"
      },
      "id": "ce9c52a5-082a-424e-8cb0-713a635e4631",
      "name": "Create URL List",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -1328,
        112
      ]
    },
    {
      "parameters": {
        "url": "={{ $json.url }}",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "User-Agent",
              "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
            }
          ]
        },
        "options": {
          "timeout": 30000
        }
      },
      "id": "433fcad5-a829-460e-90e9-60af91543c1e",
      "name": "Fetch Current Page",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        -1104,
        112
      ]
    },
    {
      "parameters": {
        "authentication": "oAuth2Api",
        "resource": "table"
      },
      "id": "ffe361a2-b1e1-4798-9590-1ce4e91c1e81",
      "name": "Get Previous Version",
      "type": "n8n-nodes-base.airtable",
      "typeVersion": 2,
      "position": [
        -880,
        112
      ]
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "gpt-4o",
          "mode": "list",
          "cachedResultName": "GPT-4O"
        },
        "messages": {
          "values": [
            {
              "content": "You are a competitive intelligence analyst. Compare two web page versions and identify significant business changes. Rate significance 1-10 and provide analysis.\n\nFocus on:\n- Pricing changes (new prices, plans, discounts)\n- Product updates (new features, discontinued items)\n- Strategic changes (new hires, partnerships)\n- Content changes (blog posts, announcements)\n\nFormat:\nSIGNIFICANCE: [1-10]\nCHANGE_TYPE: [pricing/product/strategic/content/none]\nSUMMARY: [Brief description]\nIMPACT: [Business impact]\nACTION: [Recommended response]",
              "role": "system"
            },
            {
              "content": "Compare these versions of {{ $json.competitor }} {{ $json.type }} page:\n\nPREVIOUS CONTENT (first 1500 chars):\n{{ $('Get Previous Version').first().json.fields?.Content?.substring(0, 1500) || 'No previous version available' }}\n\nCURRENT CONTENT (first 1500 chars):\n{{ $('Fetch Current Page').first().json.data?.substring(0, 1500) || 'Unable to fetch current content' }}\n\nAnalyze the changes and provide structured response."
            }
          ]
        },
        "options": {
          "maxTokens": 800,
          "temperature": 0.2
        }
      },
      "id": "8d567b51-674e-4587-8bf2-72f8ea36c36d",
      "name": "AI Change Analysis",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.3,
      "position": [
        -656,
        112
      ],
      "credentials": {
        "openAiApi": {
          "id": "6yRycz4XM5yUcPUf",
          "name": "OpenAi account 4"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const analysis = $input.first().json.choices[0].message.content;\n\n// Extract significance score\nconst significanceMatch = analysis.match(/SIGNIFICANCE:\\s*(\\d+)/i);\nconst significance = significanceMatch ? parseInt(significanceMatch[1]) : 0;\n\n// Extract other fields\nconst changeTypeMatch = analysis.match(/CHANGE_TYPE:\\s*([^\\n]+)/i);\nconst summaryMatch = analysis.match(/SUMMARY:\\s*([^\\n]+)/i);\nconst impactMatch = analysis.match(/IMPACT:\\s*([^\\n]+)/i);\nconst actionMatch = analysis.match(/ACTION:\\s*([^\\n]+)/i);\n\nreturn [{\n  json: {\n    ...($('Create URL List').first().json),\n    significance_score: significance,\n    change_type: changeTypeMatch ? changeTypeMatch[1].trim() : 'unknown',\n    summary: summaryMatch ? summaryMatch[1].trim() : 'No summary',\n    impact: impactMatch ? impactMatch[1].trim() : 'No impact analysis',\n    action: actionMatch ? actionMatch[1].trim() : 'No action specified',\n    full_analysis: analysis,\n    timestamp: new Date().toISOString(),\n    current_content: $('Fetch Current Page').first().json.data?.substring(0, 5000) || 'No content'\n  }\n}];"
      },
      "id": "b77c2114-d01d-4f54-91fd-7385652c4937",
      "name": "Parse Analysis Results",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -448,
        112
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "significance_threshold",
              "leftValue": "={{ $json.significance_score }}",
              "rightValue": "5",
              "operator": {
                "type": "number",
                "operation": "gte"
              }
            }
          ]
        },
        "options": {}
      },
      "id": "3209424f-0d4d-4f6f-ab59-c51359767dab",
      "name": "Significant Change Filter",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        -224,
        112
      ]
    },
    {
      "parameters": {
        "authentication": "oAuth2Api",
        "resource": "table"
      },
      "id": "4929bdb7-aef8-4ca5-a8b8-7224a5cba1df",
      "name": "Save Significant Change",
      "type": "n8n-nodes-base.airtable",
      "typeVersion": 2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "url": "<https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK>",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n  \"text\": \"🚨 Competitor Intelligence Alert\",\n  \"attachments\": [\n    {\n      \"color\": \"{{ $json.significance_score >= 8 ? 'danger' : ($json.significance_score >= 7 ? 'warning' : 'good') }}\",\n      \"fields\": [\n        {\n          \"title\": \"Competitor\",\n          \"value\": \"{{ $json.competitor }}\",\n          \"short\": true\n        },\n        {\n          \"title\": \"Page Type\",\n          \"value\": \"{{ $json.type }}\",\n          \"short\": true\n        },\n        {\n          \"title\": \"Significance\",\n          \"value\": \"{{ $json.significance_score }}/10\",\n          \"short\": true\n        },\n        {\n          \"title\": \"Change Type\",\n          \"value\": \"{{ $json.change_type }}\",\n          \"short\": true\n        },\n        {\n          \"title\": \"Summary\",\n          \"value\": \"{{ $json.summary }}\",\n          \"short\": false\n        },\n        {\n          \"title\": \"Business Impact\",\n          \"value\": \"{{ $json.impact }}\",\n          \"short\": false\n        },\n        {\n          \"title\": \"Recommended Action\",\n          \"value\": \"{{ $json.action }}\",\n          \"short\": false\n        }\n      ],\n      \"actions\": [\n        {\n          \"type\": \"button\",\n          \"text\": \"View Page\",\n          \"url\": \"{{ $json.url }}\"\n        }\n      ]\n    }\n  ]\n}",
        "options": {}
      },
      "id": "18cc2e5c-78f0-49b4-9937-aa57d37dd35a",
      "name": "Send Slack Alert",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        0,
        112
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "critical_threshold",
              "leftValue": "={{ $json.significance_score }}",
              "rightValue": "8",
              "operator": {
                "type": "number",
                "operation": "gte"
              }
            }
          ]
        },
        "options": {}
      },
      "id": "347275e3-577a-4d41-87f5-115655dafc74",
      "name": "Critical Alert Filter",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        224,
        112
      ]
    },
    {
      "parameters": {
        "authentication": "oAuth2Api",
        "resource": "table"
      },
      "id": "5e4b4709-c790-4dc0-b1db-2e7a6f1fd919",
      "name": "Save No Change",
      "type": "n8n-nodes-base.airtable",
      "typeVersion": 2,
      "position": [
        0,
        208
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 9 * * 1"
            }
          ]
        }
      },
      "id": "24d0d23e-618d-4966-b7c7-e6a17635590c",
      "name": "Weekly Report Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.1,
      "position": [
        -1760,
        608
      ]
    },
    {
      "parameters": {
        "authentication": "oAuth2Api",
        "resource": "table"
      },
      "id": "b3df4dd8-b783-4692-8958-2a2af31ad295",
      "name": "Get Weekly Data",
      "type": "n8n-nodes-base.airtable",
      "typeVersion": 2,
      "position": [
        -1536,
        608
      ]
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "gpt-4o-mini",
          "mode": "list",
          "cachedResultName": "GPT-4O-MINI"
        },
        "messages": {
          "values": [
            {
              "content": "Create a strategic weekly competitive intelligence report. Focus on trends, threats, opportunities, and actionable recommendations.",
              "role": "system"
            },
            {
              "content": "Generate a weekly competitive intelligence report based on this data:\n\nTotal Changes: {{ $json.records.length }}\nHigh Priority Changes (7+): {{ $json.records.filter(r => r.fields.Significance >= 7).length }}\nCritical Changes (8+): {{ $json.records.filter(r => r.fields.Significance >= 8).length }}\n\nTop Changes:\n{{ $json.records.slice(0, 5).map(r => `${r.fields.Competitor} (${r.fields.Type}): ${r.fields.Summary} [Score: ${r.fields.Significance}]`).join('\\n') }}\n\nCreate sections:\n1. EXECUTIVE SUMMARY\n2. KEY COMPETITIVE MOVES\n3. STRATEGIC IMPLICATIONS  \n4. RECOMMENDED ACTIONS\n5. MONITORING PRIORITIES"
            }
          ]
        },
        "options": {
          "maxTokens": 1200,
          "temperature": 0.3
        }
      },
      "id": "058b7bf2-7f0f-4c54-80b7-a3abdaeaa97c",
      "name": "Generate Weekly Report",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.3,
      "position": [
        -1328,
        608
      ],
      "credentials": {
        "openAiApi": {
          "id": "6yRycz4XM5yUcPUf",
          "name": "OpenAi account 4"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "omg@omg.com",
        "subject": "=🚨 CRITICAL: {{ $json.competitor }} Major Change Detected ({{ $json.significance_score }}/10)",
        "message": "=<html> <body style=\"font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto;\">  <div style=\"background: #dc3545; color: white; padding: 20px; text-align: center; border-radius: 8px; margin-bottom: 20px;\">   <h1 style=\"margin: 0; font-size: 24px;\">🚨 CRITICAL COMPETITOR ALERT</h1>   <p style=\"margin: 5px 0 0 0; font-size: 16px;\">Immediate Action Required</p> </div>  <div style=\"background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 20px;\">   <table style=\"width: 100%; border-collapse: collapse;\">     <tr style=\"border-bottom: 1px solid #dee2e6;\">       <td style=\"padding: 10px 0; font-weight: bold; width: 30%;\">Competitor:</td>       <td style=\"padding: 10px 0;\">{{ $json.competitor }}</td>     </tr>     <tr style=\"border-bottom: 1px solid #dee2e6;\">       <td style=\"padding: 10px 0; font-weight: bold;\">Page Type:</td>       <td style=\"padding: 10px 0;\">{{ $json.type }}</td>     </tr>     <tr style=\"border-bottom: 1px solid #dee2e6;\">       <td style=\"padding: 10px 0; font-weight: bold;\">Significance:</td>       <td style=\"padding: 10px 0; color: #dc3545; font-weight: bold; font-size: 18px;\">{{ $json.significance_score }}/10</td>     </tr>     <tr style=\"border-bottom: 1px solid #dee2e6;\">       <td style=\"padding: 10px 0; font-weight: bold;\">Change Type:</td>       <td style=\"padding: 10px 0;\">{{ $json.change_type }}</td>     </tr>     <tr>       <td style=\"padding: 10px 0; font-weight: bold;\">Detected:</td>       <td style=\"padding: 10px 0;\">{{ $json.timestamp }}</td>     </tr>   </table> </div>  <div style=\"margin-bottom: 20px;\">   <h3 style=\"color: #495057; border-bottom: 2px solid #007bff; padding-bottom: 5px;\">📋 Change Summary</h3>   <p style=\"background: white; padding: 15px; border-left: 4px solid #007bff; margin: 0;\">{{ $json.summary }}</p> </div>  <div style=\"margin-bottom: 20px;\">   <h3 style=\"color: #495057; border-bottom: 2px solid #28a745; padding-bottom: 5px;\">💼 Business Impact</h3>   <p style=\"background: white; padding: 15px; border-left: 4px solid #28a745; margin: 0;\">{{ $json.impact }}</p> </div>  <div style=\"margin-bottom: 30px;\">   <h3 style=\"color: #495057; border-bottom: 2px solid #ffc107; padding-bottom: 5px;\">⚡ Recommended Action</h3>   <p style=\"background: white; padding: 15px; border-left: 4px solid #ffc107; margin: 0;\">{{ $json.action }}</p> </div>  <div style=\"text-align: center; margin: 30px 0;\">   <a href=\"{{ $json.url }}\" style=\"display: inline-block; background: #007bff; color: white; padding: 15px 30px; text-decoration: none; border-radius: 5px; font-weight: bold; margin-right: 15px;\">🔗 View Competitor Page</a>   <a href=\"<https://airtable.com/appYOUR_APP_ID\>" style=\"display: inline-block; background: #28a745; color: white; padding: 15px 30px; text-decoration: none; border-radius: 5px; font-weight: bold;\">📊 View Intelligence Database</a> </div>  <div style=\"background: #fff3cd; border: 1px solid #ffeaa7; padding: 15px; border-radius: 5px; margin-top: 20px;\">   <p style=\"margin: 0; color: #856404;\"><strong>⏰ Time-Sensitive:</strong> This change has been classified as critical (8+ significance). Review immediately and coordinate team response within 2 hours for maximum competitive advantage.</p> </div>  <div style=\"background: #e7f3ff; padding: 15px; border-radius: 5px; margin-top: 20px;\">   <h4 style=\"margin: 0 0 10px 0; color: #0066cc;\">🎯 Next Steps Checklist:</h4>   <ul style=\"margin: 0; padding-left: 20px; color: #0066cc;\">     <li>□ Review competitor change in detail</li>     <li>□ Assess impact on our strategy</li>     <li>□ Coordinate team response if needed</li>     <li>□ Update competitive intelligence database</li>     <li>□ Monitor for related changes</li>   </ul> </div>  <hr style=\"border: none; height: 1px; background: #dee2e6; margin: 30px 0;\">  <div style=\"text-align: center; color: #6c757d; font-size: 14px;\">   <p>Generated automatically by Competitive Intelligence System<br>   Monitoring competitor moves 24/7 so you don't have to</p> </div>  </body> </html>",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        432,
        16
      ],
      "id": "ad646493-c647-4994-932f-519eebb20718",
      "name": "Send a message",
      "webhookId": "5917e9df-53b8-4f63-8065-12ddc4e8a286",
      "credentials": {
        "gmailOAuth2": {
          "id": "Up72KehcfUD8BVcI",
          "name": "Gmail account"
        }
      }
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "select": "user",
        "user": {
          "__rl": true,
          "value": "U0831U9KB53",
          "mode": "list",
          "cachedResultName": "ashwini"
        },
        "text": "{   \"text\": \"🚨 CRITICAL COMPETITOR ALERT 🚨\",   \"blocks\": [     {       \"type\": \"header\",       \"text\": {         \"type\": \"plain_text\",         \"text\": \"🚨 CRITICAL COMPETITIVE INTELLIGENCE ALERT\"       }     },     {       \"type\": \"section\",       \"fields\": [         {           \"type\": \"mrkdwn\",           \"text\": \"*Competitor:* {{ $json.competitor }}\"         },         {           \"type\": \"mrkdwn\",           \"text\": \"*Page Type:* {{ $json.type }}\"         },         {           \"type\": \"mrkdwn\",           \"text\": \"*Significance:* {{ $json.significance_score }}/10 🔥\"         },         {           \"type\": \"mrkdwn\",           \"text\": \"*Change Type:* {{ $json.change_type }}\"         },         {           \"type\": \"mrkdwn\",           \"text\": \"*Priority:* {{ $json.priority }}\"         },         {           \"type\": \"mrkdwn\",           \"text\": \"*Detected:* {{ $json.timestamp }}\"         }       ]     },     {       \"type\": \"section\",       \"text\": {         \"type\": \"mrkdwn\",         \"text\": \"*📋 Change Summary:*\\n{{ $json.summary }}\"       }     },     {       \"type\": \"section\",       \"text\": {         \"type\": \"mrkdwn\",         \"text\": \"*💼 Business Impact:*\\n{{ $json.impact }}\"       }     },     {       \"type\": \"section\",       \"text\": {         \"type\": \"mrkdwn\",         \"text\": \"*⚡ Recommended Action:*\\n{{ $json.action }}\"       }     },     {       \"type\": \"actions\",       \"elements\": [         {           \"type\": \"button\",           \"text\": {             \"type\": \"plain_text\",             \"text\": \"🔗 View Competitor Page\"           },           \"style\": \"primary\",           \"url\": \"{{ $json.url }}\"         },         {           \"type\": \"button\",           \"text\": {             \"type\": \"plain_text\",             \"text\": \"📊 Intelligence Database\"           },           \"style\": \"default\",           \"url\": \"<https://airtable.com/appYOUR_APP_ID\>"         },         {           \"type\": \"button\",           \"text\": {             \"type\": \"plain_text\",             \"text\": \"👥 Discuss in Thread\"           },           \"style\": \"default\",           \"action_id\": \"discuss_thread\"         }       ]     },     {       \"type\": \"context\",       \"elements\": [         {           \"type\": \"mrkdwn\",           \"text\": \"🎯 *Critical Alert:* Score 8+ requi",
        "otherOptions": {}
      },
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        368,
        144
      ],
      "id": "3db0dac3-e6aa-4f35-aafc-411cc1c800f8",
      "name": "Send a message1",
      "webhookId": "2c40886f-1c00-4a7c-ab5e-fb697799336d",
      "credentials": {
        "slackOAuth2Api": {
          "id": "F8TDcOgh23UmM6yr",
          "name": "Slack account 3"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "omg@omg.com",
        "subject": "📊 Weekly Competitive Intelligence Report - {{ $now.format('MMM Do, YYYY') }}",
        "message": "=<html> <body style=\"font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 800px; margin: 0 auto; padding: 20px;\">  <div style=\"background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 30px; text-align: center; border-radius: 10px; margin-bottom: 30px;\">   <h1 style=\"margin: 0; font-size: 28px;\">📊 Weekly Competitive Intelligence</h1>   <p style=\"margin: 10px 0 0 0; font-size: 18px; opacity: 0.9;\">{{ $now.format('MMMM Do, YYYY') }}</p> </div>  <div style=\"background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 25px; border-left: 5px solid #007bff;\">   <h3 style=\"color: #495057; margin: 0 0 15px 0;\">📈 Week at a Glance</h3>   <div style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; text-align: center;\">     <div style=\"background: white; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">       <div style=\"font-size: 24px; font-weight: bold; color: #007bff;\">{{ $('Get Weekly Data').first().json.records?.length || 0 }}</div>       <div style=\"font-size: 14px; color: #6c757d;\">Total Changes</div>     </div>     <div style=\"background: white; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">       <div style=\"font-size: 24px; font-weight: bold; color: #ffc107;\">{{ $('Get Weekly Data').first().json.records?.filter(r => r.fields.Significance >= 7).length || 0 }}</div>       <div style=\"font-size: 14px; color: #6c757d;\">High Priority</div>     </div>     <div style=\"background: white; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">       <div style=\"font-size: 24px; font-weight: bold; color: #dc3545;\">{{ $('Get Weekly Data').first().json.records?.filter(r => r.fields.Significance >= 8).length || 0 }}</div>       <div style=\"font-size: 14px; color: #6c757d;\">Critical Alerts</div>     </div>     <div style=\"background: white; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);\">       <div style=\"font-size: 24px; font-weight: bold; color: #28a745;\">{{ Math.round(($('Get Weekly Data').first().json.records?.filter(r => r.fields.Significance >= 5).length || 0) / ($('Get Weekly Data').first().json.records?.length || 1) * 100) }}%</div>       <div style=\"font-size: 14px; color: #6c757d;\">Alert Rate</div>     </div>   </div> </div>  <div style=\"background: white; padding: 25px; border-radius: 8px; border: 1px solid #dee2e6; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 25px;\">   <h3 style=\"color: #495057; border-bottom: 2px solid #007bff; padding-bottom: 10px; margin-top: 0;\">🎯 AI Strategic Analysis</h3>   <div style=\"white-space: pre-wrap; line-height: 1.8; color: #495057;\">{{ $('Generate Weekly Report').first().json.choices[0].message.content }}</div> </div>  <div style=\"background: #e7f3ff; padding: 20px; border-radius: 8px; border-left: 5px solid #007bff; margin-bottom: 25px;\">   <h4 style=\"color: #0066cc; margin: 0 0 15px 0;\">🚀 Key Actions This Week</h4>   <ul style=\"margin: 0; padding-left: 20px; color: #495057;\">     <li style=\"margin-bottom: 8px;\">Review top 3 competitor changes for strategic impact</li>     <li style=\"margin-bottom: 8px;\">Update competitive positioning based on new intelligence</li>     <li style=\"margin-bottom: 8px;\">Brief sales team on relevant competitive updates</li>     <li style=\"margin-bottom: 8px;\">Monitor competitors showing increased activity patterns</li>     <li style=\"margin-bottom: 8px;\">Assess market positioning relative to competitive moves</li>   </ul> </div>  <div style=\"background: #fff3cd; padding: 20px; border-radius: 8px; border-left: 5px solid #ffc107; margin-bottom: 25px;\">   <h4 style=\"color: #856404; margin: 0 0 15px 0;\">⚠️ Competitive Threats to Monitor</h4>   <div style=\"color: #856404;\">     <strong>High Priority Competitors:</strong>      {{ $('Get Weekly Data').first().json.records?.filter(r => r.fields.Significance >= 7).map(r => r.fields.Competitor).join(', ') || 'None this week' }}   </div>",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        -976,
        608
      ],
      "id": "5aa05fda-159c-4dd8-a851-29a124f980f0",
      "name": "Send a message2",
      "webhookId": "96533aac-bdb5-47aa-8abc-7c92d64c7243",
      "credentials": {
        "gmailOAuth2": {
          "id": "Up72KehcfUD8BVcI",
          "name": "Gmail account"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Monitor Every 6 Hours": {
      "main": [
        [
          {
            "node": "Competitor Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Competitor Configuration": {
      "main": [
        [
          {
            "node": "Create URL List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create URL List": {
      "main": [
        [
          {
            "node": "Fetch Current Page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Current Page": {
      "main": [
        [
          {
            "node": "Get Previous Version",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Previous Version": {
      "main": [
        [
          {
            "node": "AI Change Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Change Analysis": {
      "main": [
        [
          {
            "node": "Parse Analysis Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Analysis Results": {
      "main": [
        [
          {
            "node": "Significant Change Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Significant Change Filter": {
      "main": [
        [
          {
            "node": "Save Significant Change",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Slack Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Critical Alert Filter",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Save No Change",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Critical Alert Filter": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a message1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weekly Report Trigger": {
      "main": [
        [
          {
            "node": "Get Weekly Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Weekly Data": {
      "main": [
        [
          {
            "node": "Generate Weekly Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Weekly Report": {
      "main": [
        [
          {
            "node": "Send a message2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        []
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "aa58545d-e8fe-4541-85b6-e2e85c7f3a7d",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "7d020be849f9ba16b7ca29501c92aff75d0716e38c47c340a1ae2ea6cd82f384"
  },
  "id": "YYtjukxUz1YlFO7D",
  "tags": []
}