Automation library · Data collection

Score LinkedIn comments and draft replies with Azure OpenAI

Started by a clock, and works across Gmail and Google Sheets. It hands the judgement calls to Azure OpenAI. 17 steps: a working afternoon to understand properly.

MediumCalls a model: Azure OpenAI

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

The flow

Starts it 3Model 4Logic 5Service 5

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

  1. 1Trigger Every 15 Minutes1CronStarts it
  2. 2Watch Sheet for New Comment Rows1Google Sheets triggerStarts it
  3. 3Watch Sheet for Approved Replies1Google Sheets triggerStarts it
  4. 4Azure OpenAI Chat ModelLm Chat Azure Open AiModel
  5. 5Azure OpenAI Chat Model4Lm Chat Azure Open AiModel
  6. 6Search LinkedIn Posts via SerpAPISerp ApiService
  7. 7AI Reply Drafting Agent1AgentModel
  8. 8Build Media Team Email Report1CodeLogic
  9. 9AI Sentiment & Intent Detection Agent1AgentModel
  10. 10Parse & Filter Search ResultsCodeLogic
  11. 11Format Reply for Sheet Update1CodeLogic
  12. 12Send Email Report to Media Team1GmailService
  13. 13Parse Sentiment & Score Output1CodeLogic
  14. 14Fetch Post Comments via ConnectSafelyConnect Safely Linked InService
  15. 15Write AI Reply Back to Google Sheet1Google SheetsService
  16. 16Save Comments & Sentiment to Google Sheet1Google SheetsService
  17. 17Flatten Comments into RowsCodeLogic

How it's built

Starts on
A clock
Steps
17
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets
Model
Azure OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Sheets accounts, and a key for Azure OpenAI. 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 Azure OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 17 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 17 steps before you point it at anything that matters.