Automation library · Data collection

Register users and authenticate with Google Sheets

Started by someone submitting a form, and works across Gmail and Google Sheets. 30 steps, 5 branches: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 9Logic 10Service 11

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

  1. 1On form registerForm triggerStarts it
  2. 2On form loginForm triggerStarts it
  3. 3AuthWebhookStarts it
  4. 4ProfileWebhookStarts it
  5. 5Create password and tokenCodeLogic
  6. 6Check username/passwordGoogle SheetsService
  7. 7If has tokenIfLogic
  8. 8Check sid cookies headerCodeLogic
  9. 9Append or update row in sheetGoogle SheetsService
  10. 10If login successIfLogic
  11. 11Search by tokenGoogle SheetsService
  12. 12Invalid tokenRespond To WebhookStarts it
  13. 13Search sidGoogle SheetsService
  14. 14Send username/passwordGmailService
  15. 15If has token in DBIfLogic
  16. 16Redirect to login formFormService
  17. 17If token validIfLogic
  18. 18If has data with sidIfLogic
  19. 19Notice register successFormService
  20. 20Redirect to auth urlFormService
  21. 21Generate tokenCodeLogic
  22. 22Prepare sidCodeLogic
  23. 23Redirect to login form1Respond To WebhookStarts it
  24. 24Prepare htmlCodeLogic
  25. 25Redirect to loginRespond To WebhookStarts it
  26. 26Add token to DBGoogle SheetsService
  27. 27Redirect to profile and set cookiesRespond To WebhookStarts it
  28. 28Update sidGoogle SheetsService
  29. 29Show profile pageRespond To WebhookStarts it
  30. 30Redirect to auth with new tokenFormService

How it's built

Starts on
Someone submitting a form
Steps
30, with 5 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on someone submitting a form.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

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