Skip to main content

Automated Thai content creation & publishing with Ollama, Gemini & Telegram

Workflow preview

Workflow preview
100%
Automated Thai content creation & publishing with Ollama, Gemini & Telegram preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automated AI Content Publisher This n8n workflow is your all in one solution for automated content creation and publishing. It intelligently crafts unique articles in Thai, generates captivating AI...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmollama, n8n-nodes-base.httprequest, n8n-nodes-base.telegram, n8n-nodes-base.converttofile, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.readwritefile

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by athipat.

Original n8n.io source

1.1 Workflow description

Title
Automated Thai content creation & publishing with Ollama, Gemini & Telegram
Workflow name
Automated Thai content creation & publishing with Ollama, Gemini & Telegram

Automated AI Content Publisher

This n8n workflow is your all-in-one solution for automated content creation and publishing. It intelligently crafts unique articles in Thai, generates captivating AI images, and seamlessly publishes them to your website while notifying you via Telegram. Say goodbye to manual content pipelines and hello to effortless, AI-driven publishing.

How It Works This workflow kicks off when new news data hits your designated Google Sheet, then it springs into action:

Smart Image Selection: An AI analyzes your news content to decide if a general photorealistic image or a more artistic, risoprint-style AI image is the best fit.

Article Generation: Another AI drafts a high-quality, long-form article in flawless Thai, adapting its format (listicle or analytical) to perfectly suit the topic.

SEO & Marketing Boost: A specialized AI then optimizes your content by generating concise titles, engaging excerpts, and relevant tags in both Thai and English. It also creates the perfect prompts for image generation.

AI Image Creation: Leveraging Google Gemini, the workflow generates stunning visuals, producing either photorealistic or artistic risoprint-style images based on the AI's prompts.

Seamless Publishing: Your newly created article, complete with its AI-generated image and all metadata, is automatically posted to your website.

Instant Notifications: You'll get a quick ping on Telegram with a summary of the new post, so you're always in the loop.

Setup To get this workflow up and running, you'll need to configure a few things:

Google Sheet: Link your Google Sheet and specify the sheet name and the column containing your news description.

Ollama: Set up your Ollama API credentials to connect the workflow to your local or remote Ollama instance.

Google Gemini API: Provide your Google Gemini API key to enable AI image generation.

Website API: Create a credential for your website, including its posting URL, an API Key for authentication, and your desired user_id and username for posts. You can also add optional fields like bgColor, LinkAff, postType, and embeddedContent here.

Telegram: Set up your Telegram API credential with your bot token and the chatId where you want to receive notifications.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Ollama: Article Writer Model

Type / Role
@n8n/n8n-nodes-langchain.lmOllama - lmOllama
Config choices
Version 1

Block 2 - HTTP Request: Post to Website

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 3

Block 3 - Telegram: Send Notification

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1

Block 4 - Google Gemini: Generate Photo

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 1

Block 5 - Convert AI Image to File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 6 - Ollama: SEO & Marketing Model

Type / Role
@n8n/n8n-nodes-langchain.lmOllama - lmOllama
Config choices
Version 1

Block 7 - LLM: Article Writer

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 8 - LLM: SEO & Marketing

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 9 - Function: Prepare Post Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - If: Is Real Image?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Convert AI Risoprint Image to File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 12 - Function: Parse LLM Output

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - If: Is AI Image?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 14 - Function: Image Type Analyzer

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - HTTP Request: Fetch Real Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - Read/Write Files from Disk (Local)

Type / Role
n8n-nodes-base.readWriteFile - readWriteFile
Config choices
Version 1

Block 17 - Extract Image Binary Data

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 18 - Merge Image Data

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 19 - Convert Extracted Image to File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 20 - Function: Attach Image Binary

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Google Sheets: Read News

Type / Role
n8n-nodes-base.googleSheetsTrigger - googleSheetsTrigger
Config choices
Version 1

Block 22 - LLM: Image Type Analyzer

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 23 - Ollama: Image Type Model

Type / Role
@n8n/n8n-nodes-langchain.lmOllama - lmOllama
Config choices
Version 1

Block 24 - Google Gemini: Generate Risoprint Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 1

3. Summary Table

Workflow Automated Thai content creation & publishing with Ollama, Gemini & Telegram
Complexity advanced
Nodes 24
Categories Content Creation, Multimodal AI
Author athipat
Published 09 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5818/5818.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated Thai content creation & publishing with Ollama, Gemini & Telegram do?

Automated AI Content Publisher This n8n workflow is your all in one solution for automated content creation and publishing. It intelligently crafts unique articles in Thai, generates captivating AI...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.