Automation library · Money admin

Extract and log invoice data to Google Sheets with Ainoflow

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

MediumCalls a model: OpenAI, OpenRouter

20 stepsMedium: a working afternoon
1Branch: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 3Logic 6Service 10

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

  1. 1OpenRouter Chat ModelLm Chat Open RouterModel
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3OpenAI Chat ModelLm Chat Open AiModel
  4. 4OPTIONSSetLogic
  5. 5Invoice to JSONAgentModel
  6. 6Get invoiceGmailService
  7. 7Clear jsonCodeLogic
  8. 8invoice clearCodeLogic
  9. 9Stop and ErrorStop And ErrorLogic
  10. 10Get row(s) in sheetGoogle SheetsService
  11. 11Campos FacturaSetLogic
  12. 12IfIfLogic
  13. 13ConvertAinoflow ConvertService
  14. 14Invoice RepeatGmailService
  15. 15Append row in sheetGoogle SheetsService
  16. 16HTTP RequestHttp RequestService
  17. 17Send a messageGmailService
  18. 18SuccessGmailService
  19. 19Move invoiceGmailService
  20. 20Remove labelGmailService

How it's built

Starts on
A clock
Steps
20, with 1 branch
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets
Model
OpenAI, OpenRouter

Questions

What does it need to run?

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

How long does it take to set up?

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