Automation library · AI assistants

HARO automation with OpenRouter and Gmail

Started by an arriving email, and works across Gmail and Outlook. It hands the judgement calls to OpenRouter. 14 steps: a working afternoon to understand properly.

MediumCalls a model: OpenRouter

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

The flow

Starts it 1Model 6Logic 2Service 5

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

  1. 1OpenRouter Chat ModelLm Chat Open RouterModel
  2. 2Gmail TriggerGmail triggerStarts it
  3. 3Structured Output ParserOutput Parser StructuredModel
  4. 4Structured Output Parser1Output Parser StructuredModel
  5. 5OpenRouter Chat Model1Lm Chat Open RouterModel
  6. 6AI AgentAgentModel
  7. 7Get a messageGmailService
  8. 8AI Agent1AgentModel
  9. 9Split OutSplit OutLogic
  10. 10Split Out1Split OutLogic
  11. 11Send a messageMicrosoft OutlookService
  12. 12Send a message1Microsoft OutlookService
  13. 13Send a message2Microsoft OutlookService
  14. 14Send a message3Microsoft OutlookService

How it's built

Starts on
An arriving email
Steps
14
Size
Medium: a working afternoon
Connects to
Gmail, Outlook
Model
OpenRouter

Questions

What does it need to run?

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

What starts it?

It starts on an arriving email.

Does it use AI?

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

How long does it take to set up?

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