Automation library · Data collection

Manage finances, tasks, tweets and Gmail with OpenAI

Started by someone opening a chat with it, and works across Gmail and Google Sheets. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 33 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

33 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Model 15Logic 4Service 12

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

  1. 1CalculatorTool CalculatorModel
  2. 2Append row in sheet in Google SheetsGoogle Sheets ToolService
  3. 3Get row(s) in sheet in Google SheetsGoogle Sheets ToolService
  4. 4OpenAI Chat Model4Lm Chat Open AiModel
  5. 5Create Tweet in XTwitter ToolService
  6. 6OpenAI Chat Model3Lm Chat Open AiModel
  7. 7Get many messages in GmailGmail ToolService
  8. 8OpenAI Chat Model2Lm Chat Open AiModel
  9. 9OpenAI Chat Model1Lm Chat Open AiModel
  10. 10OpenAI Chat ModelLm Chat Open AiModel
  11. 11WebhookWebhookStarts it
  12. 12Simple MemoryMemory Buffer WindowModel
  13. 13Create a task in Google TasksHttp Request ToolService
  14. 14create listHttp Request ToolService
  15. 15update taskHttp Request ToolService
  16. 16get listHttp Request ToolService
  17. 17When chat message receivedChat triggerStarts it
  18. 18get tasksHttp Request ToolService
  19. 19quick-web-searchTool Serp ApiModel
  20. 20main-agentAgentModel
  21. 21expense-trackerAgent ToolModel
  22. 22Tweet-agentAgent ToolModel
  23. 23get-gmailAgent ToolModel
  24. 24Task-manager-agentAgent ToolModel
  25. 25SwitchSwitchLogic
  26. 26IfIfLogic
  27. 27download-audioHttp RequestService
  28. 28audio to 0SetLogic
  29. 29Generate audioOpen AiModel
  30. 30send text responseHttp RequestService
  31. 31Transcribe a recordingOpen AiModel
  32. 32send audio responseHttp RequestService
  33. 33set audio to oneSetLogic

How it's built

Starts on
Someone opening a chat with it
Steps
33, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

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

What starts it?

It starts on someone opening a chat with it.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 33 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 33 steps before you point it at anything that matters.