Automation library · CRM

Track competitor risk from Gmail and webhooks with Groq

Started by another system calling it, and works across Gmail, Google Sheets, Salesforce and Slack. It hands the judgement calls to Groq. 22 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Groq

22 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
4Services it connects to

The flow

Starts it 2Model 3Logic 11Service 6

The steps in the order they run, from what starts it.

  1. 1Gmail - New Email ReceivedGmail triggerStarts it
  2. 2Groq Chat ModelLm Chat GroqModel
  3. 3Competitor Intelligence SchemaOutput Parser StructuredModel
  4. 4Webhook - Notes and CRM EventsWebhookStarts it
  5. 5Normalize - Email DataSetLogic
  6. 6Slack - Error AlertSlackService
  7. 7AI AgentAgentModel
  8. 8Normalize - Webhook DataSetLogic
  9. 9Merge - All Normalized EventsMergeLogic
  10. 10Validate - AI OutputIfLogic
  11. 11Deduplicate - Webhook EventsRemove DuplicatesLogic
  12. 12Enrich - Add Source Context and Risk ScoreSetLogic
  13. 13Log - Invalid AI OutputSetLogic
  14. 14Gate - Competitors Detected?IfLogic
  15. 15Log Invalid AI OutputsGoogle SheetsService
  16. 16Split - One Row Per CompetitorSplit OutLogic
  17. 17Log - No Competitor DetectedSetLogic
  18. 18Priority Router & Stage MapperCodeLogic
  19. 19Log No Competitor OutputsGoogle SheetsService
  20. 20Salesforce - Create OpportunitySalesforceService
  21. 21Notify - Slack Competitor AlertSlackService
  22. 22Store - Google Sheets Intelligence LogGoogle SheetsService

How it's built

Starts on
Another system calling it
Steps
22, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, Salesforce, Slack
Model
Groq

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets, Salesforce and Slack accounts, and a key for Groq. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls Groq. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.