Track competitor risk from Gmail and webhooks with Groq, Slack and Sheets
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Gmail, Groq Chat Model, Slack and Google Sheets and 1 more.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Normalize - Webhook Data (Edit Fields (Set)): sets 5 fields: source, unique_id, raw_content…
- Normalize - Email Data (Edit Fields (Set)): sets 5 fields: source, unique_id, raw_content…
- Slack: uses Slack
- Deduplicate - Webhook Events (Remove Duplicates): removes duplicate items
- Merge: merges the data from its input branches
- AI Agent: runs an AI agent, with model: Groq Chat Model; output parser: Competitor Intelligence Schema
- Validate - AI Output (If): checks a condition and branches into true / false
- Enrich - Add Source Context and Risk Score (Edit Fields (Set)): sets 10 fields: competitors, context, deal_stage…
- Log - Invalid AI Output (Edit Fields (Set)): sets 3 fields: status, reason, logged_at
- Gate - Competitors Detected? (If): checks a condition and branches into true / false
…plus 8 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail - New Email Received).
Nodes used (14)
- Code
n8n-nodes-base.code - Gmail Trigger
n8n-nodes-base.gmailTrigger - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - AI Agent
@n8n/n8n-nodes-langchain.agent - Slack
n8n-nodes-base.slack - Split Out
n8n-nodes-base.splitOut - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Remove Duplicates
n8n-nodes-base.removeDuplicates - Merge
n8n-nodes-base.merge - Google Sheets
n8n-nodes-base.googleSheets - Webhook
n8n-nodes-base.webhook - Salesforce
n8n-nodes-base.salesforce
From the author
Quick Overview This workflow monitors Gmail and a webhook for sales notes, uses Groq (Llama 3.3) to extract competitor intelligence, then routes confirmed competitor signals to Salesforce, Slack, and Google Sheets for real-time alerting and logging. How it…