# Monitor suspicious transactions with Google Sheets and Groq AI: n8n workflow

> Started by an event in a connected app, and works across Gmail and Google Sheets. It hands the judgement calls to Groq.

Source: https://millionrounds.com/workflow/monitor-suspicious-transactions-with-google-sheets-and-groq- (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Monitor suspicious transactions with Google Sheets and Groq AI

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

Medium Calls a model: Groq

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmonitor-suspicious-transactions-with-google-sheets-and-groq-)

**15 steps** Medium: a working afternoon

**2** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 2 Logic 6 Service 6

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

- 1 **Groq Chat Model** Lm Chat Groq *Model*
- 2 **Starting Trigger** Manual trigger *Starts it*
- 3 **Generate Risk Analysis** Agent *Model*
- 4 **Fetch Transactions** Google Sheets *Service*
- 5 **Merge AI Output with Transactions** Merge *Logic*
- 6 **Update Transaction date** Google Sheets *Service*
- 7 **Fetch Updated Rows from Sheet** Google Sheets *Service*
- 8 **filters today's transactions** If *Logic*
- 9 **Map Final Fields for Update** Set *Logic*
- 10 **Calculate Transaction Metrics** Code *Logic*
- 11 **Update suspicious** Google Sheets *Service*
- 12 **Prepare Transaction Data** Set *Logic*
- 13 **Risk Email** Gmail *Service*
- 14 **Check suspicious** If *Logic*
- 15 **Update non-suspicious** Google Sheets *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 15, 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. 15 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 15 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmonitor-suspicious-transactions-with-google-sheets-and-groq-)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Analyze real estate submarket trends with OpenAI and Gmail** 15 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/analyze-real-estate-submarket-trends-with-openai-and-gmail)
- [**Automated stock news alerts with Google RSS and Gemini** 15 steps · calls a model · Google Sheets, RSS](https://millionrounds.com/workflow/automated-stock-news-alerts-with-google-rss-and-gemini)
- [**Create daily Google Alerts digest with Gemini and Gmail** 15 steps · calls a model · Gmail](https://millionrounds.com/workflow/create-daily-google-alerts-digest-with-gemini-and-gmail)
- [**Generate DraftKings DFS lineups with Google Sheets and Slack** 15 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/generate-draftkings-dfs-lineups-with-google-sheets-and-slack)
- [**Generate document summaries & Q&As from PDF/TXT with OpenAI** 15 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/generate-document-summaries-and-q-and-as-from-pdf-txt-with-o)
- [**Monitor budget variance with Google Sheets and Gemini** 15 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/monitor-budget-variance-with-google-sheets-and-gemini)
