# Monitor viral competitor Instagram posts with Apify and Groq: n8n workflow

> Started by a clock, and works across Google Sheets and Slack. It hands the judgement calls to Groq.

Source: https://millionrounds.com/workflow/monitor-viral-competitor-instagram-posts-with-apify-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 viral competitor Instagram posts with Apify and Groq

Started by a clock, and works across Google Sheets and Slack. It hands the judgement calls to Groq. 21 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Groq

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmonitor-viral-competitor-instagram-posts-with-apify-and-groq)

**21 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 2 Model 2 Logic 14 Service 3

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

- 1 **Every morning** Schedule trigger *Starts it*
- 2 **When clicking 'Test workflow'** Manual trigger *Starts it*
- 3 **Groq chat model** Lm Chat Groq *Model*
- 4 **Config** Set *Logic*
- 5 **Read the caption with AI** Information Extractor *Model*
- 6 **Accounts, one per item** Code *Logic*
- 7 **Build one row per post** Code *Logic*
- 8 **Loop over accounts** Split In Batches *Logic*
- 9 **Column order** Set *Logic*
- 10 **Post rows only (skip profile and summary rows)** If *Logic*
- 11 **Fetch this account's latest posts** Http Request *Service*
- 12 **Append the new rows to Google Sheets** Google Sheets *Service*
- 13 **Only posts we have not seen before** Remove Duplicates *Logic*
- 14 **Did anything go viral?** If *Logic*
- 15 **Any new posts?** If *Logic*
- 16 **Collect the viral posts** Aggregate *Logic*
- 17 **No breakout posts today** No Op *Logic*
- 18 **Flag the breakout posts** Code *Logic*
- 19 **Nothing new today** No Op *Logic*
- 20 **Write the Slack alert** Code *Logic*
- 21 **Alert Slack about the breakout posts** Slack *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 21, with 3 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Slack
- **Model:** Groq

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets 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 a clock.

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 21 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 21 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-viral-competitor-instagram-posts-with-apify-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.

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

## Workflows like it

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

- [**Automated Gmail classification and labeling with OpenAI** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automated-gmail-classification-and-labeling-with-openai)
- [**Automated n8n error monitoring alerts - Telegram, Slack & email** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automated-n8n-error-monitoring-alerts-telegram-slack-and-ema)
- [**Monitor and score new real estate listings with BrowserAct** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/monitor-and-score-new-real-estate-listings-with-browseract)
- [**Monitor asset health and predict maintenance with Claude** 21 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/monitor-asset-health-and-predict-maintenance-with-claude)
- [**Monitor supply chain risks and disruptions with OpenAI** 21 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/monitor-supply-chain-risks-and-disruptions-with-openai)
- [**Outlook inbox tamer: GPT-4.1 powered categorization, auto** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/outlook-inbox-tamer-gpt-4-1-powered-categorization-auto)
