{"product_id":"n8n-workflow-monitor-gmail-webhooks-for-competitor-alerts","title":"n8n Workflow: Monitor Gmail \u0026 Webhooks for Competitor Alerts","description":"\u003ch3\u003eDetect competitor moves instantly—by monitoring Gmail and Webhooks\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow watches for new \u003cstrong\u003eGmail\u003c\/strong\u003e messages and incoming \u003cstrong\u003ewebhook\u003c\/strong\u003e POSTs, uses \u003cstrong\u003eGroq (Llama 3.3)\u003c\/strong\u003e to extract competitor intelligence, then routes confirmed signals to \u003cstrong\u003eSalesforce\u003c\/strong\u003e, \u003cstrong\u003eSlack\u003c\/strong\u003e, and \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e for real-time alerting and logging.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTriggers\u003c\/strong\u003e when a new Gmail email arrives or when an external system sends a POST request to the workflow’s \u003cstrong\u003ewebhook endpoint\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes and deduplicates\u003c\/strong\u003e incoming data into a consistent event format and removes duplicate webhook events using a \u003cstrong\u003eunique ID\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts structured intelligence\u003c\/strong\u003e by sending cleaned text to \u003cstrong\u003eGroq (Llama 3.3)\u003c\/strong\u003e to produce a structured JSON report (competitors, deal stage, sentiment, risk level, urgency, insights, recommended actions).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates AI output\u003c\/strong\u003e; logs malformed or empty results to \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSkips non-relevant events\u003c\/strong\u003e: if no competitor names are detected, the workflow logs the event and moves on.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEnriches results\u003c\/strong\u003e with source context and a calculated risk score, then splits the competitor list into \u003cstrong\u003eone record per competitor\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates a Salesforce Opportunity\u003c\/strong\u003e by mapping each competitor to a Salesforce stage and alert priority.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAlerts your team\u003c\/strong\u003e by posting a formatted message to \u003cstrong\u003eSlack\u003c\/strong\u003e and appending full intelligence records to \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e (with Slack error alerts if downstream steps fail).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSales and RevOps teams want \u003cstrong\u003ecompetitor alerting\u003c\/strong\u003e from sales emails and external systems.\u003c\/li\u003e\n  \u003cli\u003eSaaS operators need \u003cstrong\u003eAI-assisted competitive intelligence\u003c\/strong\u003e tracked in Google Sheets and surfaced in Salesforce.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers require reliable routing with deduplication, validation, and Slack-based error visibility.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations \/ nodes:\u003c\/strong\u003e if, set, code, merge, \u003cstrong\u003eSlack\u003c\/strong\u003e, and \u003cstrong\u003ewebhook\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI engine:\u003c\/strong\u003e \u003cstrong\u003eGroq\u003c\/strong\u003e using \u003cstrong\u003eLlama 3.3\u003c\/strong\u003e to extract competitor intelligence as structured JSON\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eData storage \u0026amp; logging:\u003c\/strong\u003e \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCRM action:\u003c\/strong\u003e create \u003cstrong\u003eSalesforce Opportunity\u003c\/strong\u003e per competitor\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eSetup\u003c\/h3\u003e\n\u003cp\u003eAdd credentials for \u003cstrong\u003eGmail\u003c\/strong\u003e, \u003cstrong\u003eGroq\u003c\/strong\u003e, \u003cstrong\u003eSlack\u003c\/strong\u003e, \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e, and \u003cstrong\u003eSalesforce\u003c\/strong\u003e. Configure your source system to POST competitor-intel events to the workflow’s webhook URL, and update the target \u003cstrong\u003eSlack channel IDs\u003c\/strong\u003e.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45748946534579,"sku":"N8N-17686","price":11.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/iRzAW7td-4fi7zBTdCWEi_9xqR9m2C.png?v=1785575528","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-monitor-gmail-webhooks-for-competitor-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}