Automation library · Lead generation

Manage Patreon and Ko-fi leads with Gmail and OpenAI

Started by another system calling it, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI. 28 steps, 6 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 1Logic 10Service 16

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

  1. 1WebhookWebhookStarts it
  2. 2SwitchSwitchLogic
  3. 3Get Newsletter SubsGoogle SheetsService
  4. 4Set TokenSetLogic
  5. 5Person Exists on the List?IfLogic
  6. 6Parse Kofi PayloadCodeLogic
  7. 7Add New Sub to NewsletterGoogle SheetsService
  8. 8MergeMergeLogic
  9. 9Token ValidationIfLogic
  10. 10Message a modelOpen AiModel
  11. 11Get Newsletter Subs1Google SheetsService
  12. 12Fake Payload AlertGmailService
  13. 13Switch2SwitchLogic
  14. 14Person Exists on the List?1IfLogic
  15. 15Send a messageGmailService
  16. 16Send a message1GmailService
  17. 17Send a message2GmailService
  18. 18Send a message7GmailService
  19. 19Send a message3GmailService
  20. 20Send a message4GmailService
  21. 21Send a message5GmailService
  22. 22Send a message6GmailService
  23. 23Add New Sub to Newsletter1Google SheetsService
  24. 24Merge1MergeLogic
  25. 25Switch1SwitchLogic
  26. 26Thank you LetterGmailService
  27. 27Thank you Letter1GmailService
  28. 28Thank you Letter2GmailService

How it's built

Starts on
Another system calling it
Steps
28, with 6 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
OpenAI

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 another system calling it.

Does it use AI?

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

How long does it take to set up?

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