Automation library · Content

Automated Thai content creation & publishing with Ollama

Started by a change in a Google Sheet, and works across Google Sheets and Telegram. It hands the judgement calls to a local model. 24 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: a local model

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

The flow

Starts it 1Model 6Logic 7Service 10

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

  1. 1Ollama: Article Writer ModelLm OllamaModel
  2. 2Ollama: SEO & Marketing ModelLm OllamaModel
  3. 3Convert AI Risoprint Image to FileConvert To FileService
  4. 4Google Sheets: Read NewsGoogle Sheets triggerStarts it
  5. 5Ollama: Image Type ModelLm OllamaModel
  6. 6LLM: Article WriterChain LlmModel
  7. 7LLM: SEO & MarketingChain LlmModel
  8. 8HTTP Request: Post to WebsiteHttp RequestService
  9. 9LLM: Image Type AnalyzerChain LlmModel
  10. 10Function: Parse LLM OutputCodeLogic
  11. 11Telegram: Send NotificationTelegramService
  12. 12If: Is AI Image?IfLogic
  13. 13Function: Prepare Post DataCodeLogic
  14. 14Merge Image DataMergeLogic
  15. 15Function: Image Type AnalyzerCodeLogic
  16. 16If: Is Real Image?IfLogic
  17. 17HTTP Request: Fetch Real ImageHttp RequestService
  18. 18Google Gemini: Generate PhotoHttp RequestService
  19. 19Google Gemini: Generate Risoprint ImageHttp RequestService
  20. 20Read/Write Files from Disk (Local)Read Write FileService
  21. 21Convert AI Image to FileConvert To FileService
  22. 22Extract Image Binary DataExtract From FileService
  23. 23Convert Extracted Image to FileConvert To FileService
  24. 24Function: Attach Image BinaryCodeLogic

How it's built

Starts on
A change in a Google Sheet
Steps
24, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Telegram
Model
a local model

Questions

What does it need to run?

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

What starts it?

It starts on a change in a Google Sheet.

Does it use AI?

Yes. It calls a local model. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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