Automation library · Content

Telegram to WordPress Auto Publisher with OCR

Started by an incoming Telegram message, and works across Telegram and WordPress. It hands the judgement calls to OpenAI. 17 steps, 3 branches: a working afternoon to understand properly.

MediumCalls a model: OpenAI

17 stepsMedium: a working afternoon
3Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Model 1Logic 8Service 7

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

  1. 1Telegram TriggerTelegram triggerStarts it
  2. 2Verify Authorized UserIfLogic
  3. 3Switch Message TypeSwitchLogic
  4. 4Set Text Post FieldsSetLogic
  5. 5Select Highest Resolution PhotoCodeLogic
  6. 6Code Pick Photo + CaptionCodeLogic
  7. 7WP Create Post (Text)WordpressService
  8. 8Download Telegram PhotoTelegramService
  9. 9Get a file (Caption Photo)TelegramService
  10. 10OCR and Extract Post ContentOpen AiModel
  11. 11Upload Image to WordPressHttp RequestService
  12. 12Prepare OCR Post DataSetLogic
  13. 13Prepare WordPress Image PostSetLogic
  14. 14IF OCR OKIfLogic
  15. 15WP Create Post (Text+Image)WordpressService
  16. 16WP Create Post (OCR)WordpressService
  17. 17TG Notify OCR FailTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
17, with 3 branches
Size
Medium: a working afternoon
Connects to
Telegram, WordPress
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Telegram and WordPress 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. 17 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 17 steps before you point it at anything that matters.