Automation library · Content

AI Content Writer - Telegram to WordPress with Gemini

Started by an incoming Telegram message, and works across Google Sheets, Telegram and WordPress. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 20 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: Gemini, OpenAIRetrieval

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

The flow

Starts it 1Model 7Logic 6Service 6

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

  1. 1OpenAI - Social WriterLm Chat Open AiModel
  2. 2ThinkTool ThinkModel
  3. 3Telegram Message TriggerTelegram triggerStarts it
  4. 4OpenAI AgentLm Chat Open AiModel
  5. 5Conversation MemoryMemory Buffer WindowModel
  6. 6Google Gemini Chat ModelLm Chat Google GeminiModel
  7. 7AI Agent - Social CaptionsAgentModel
  8. 8AI AgentAgentModel
  9. 9Owner FilterFilterLogic
  10. 10Parse Social ContentCodeLogic
  11. 11Parse AI ResponseCodeLogic
  12. 12Check Text or AudioSwitchLogic
  13. 13Google Sheets AppendGoogle SheetsService
  14. 14Route DecisionIfLogic
  15. 15Get Audio FileTelegramService
  16. 16Send Success ConfirmationTelegramService
  17. 17Prepare WordPress DataCodeLogic
  18. 18Send Question to UserTelegramService
  19. 19Transcribe AudioEleven LabsService
  20. 20WordPress Create PostWordpressService

How it's built

Starts on
An incoming Telegram message
Steps
20, with 2 branches
Size
Medium: a working afternoon
Connects to
Google Sheets, Telegram, WordPress
Model
Gemini, 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 Google Sheets, Telegram and WordPress accounts, and a key for Gemini and 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 Gemini and 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?

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