Automation library · Alerts and monitoring

Reconcile trade mismatches in Google Sheets with Groq

Started by an event in a connected app, and works across Gmail and Google Sheets. It hands the judgement calls to Groq. 18 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: Groq

18 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 2Logic 7Service 8

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

  1. 1Groq Chat ModelLm Chat GroqModel
  2. 2Starting TriggerManual triggerStarts it
  3. 3Generate AI Reconciliation InsightAgentModel
  4. 4Fetch Internal TradesGoogle SheetsService
  5. 5Fetch External TradesGoogle SheetsService
  6. 6Extract AI OutputSetLogic
  7. 7Merge Internal & External TradesMergeLogic
  8. 8Check Valid RowIfLogic
  9. 9Detect Trade BreaksCodeLogic
  10. 10Update Internal Trades SheetGoogle SheetsService
  11. 11Insert Missing Internal TradeGoogle SheetsService
  12. 12Classify SeverityCodeLogic
  13. 13Update External Trades SheetGoogle SheetsService
  14. 14Insert External Trade RecordGoogle SheetsService
  15. 15Prepare Trade DataSetLogic
  16. 16Check Trade MismatchIfLogic
  17. 17Send Missing Trade Alert EmailGmailService
  18. 18Send Trade Break Alert EmailGmailService

How it's built

Starts on
An event in a connected app
Steps
18, with 2 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets
Model
Groq

Questions

What does it need to run?

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

What starts it?

It starts on an event in a connected app.

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?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

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 18 steps before you point it at anything that matters.