Automation library · Content

Automated SEO audit: URL input, email extraction, Serpstat

Started by an incoming Telegram message, and works across Gmail, Google Docs and Telegram. It hands the judgement calls to OpenAI. 19 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

MediumCalls a model: OpenAI

19 stepsMedium: a working afternoon
1Branch: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 1Model 3Logic 8Service 7

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

  1. 1Start: User sends message on TelegramTelegram triggerStarts it
  2. 2Check: Is it text or voice?CodeLogic
  3. 3Branch: Voice or Text PathIfLogic
  4. 4Step: Receive Voice NoteTelegramService
  5. 5Code contentCodeLogic
  6. 6WaitWaitLogic
  7. 7Prepare: Extract text contentCodeLogic
  8. 8Step: Download Voice FileTelegramService
  9. 9Step: Extract Domain from TextHttp RequestService
  10. 10Step: Transcribe Voice to TextOpen AiModel
  11. 11AI: Extract Company Info from HTMLOpen AiModel
  12. 12Transform: Normalize JSON OutputCodeLogic
  13. 13Prepare: Store Company InfoSetLogic
  14. 14Fetch: SERPSTAT SEO DataHttp RequestService
  15. 15AI: Generate SEO Audit ReportOpen AiModel
  16. 16Prepare: Audit Report TextSetLogic
  17. 17Step: Create Google Doc (Audit Template)Google DocsService
  18. 18Final: Insert Audit into Google DocGoogle DocsService
  19. 19Send a messageGmailService

How it's built

Starts on
An incoming Telegram message
Steps
19, with 1 branch, 1 loop or waits
Size
Medium: a working afternoon
Connects to
Gmail, Google Docs, Telegram
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on an incoming Telegram message.

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?

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