Skip to main content

Automate Chinese language teaching posts on Facebook with Gemini & Recraft.ai

Workflow preview

Workflow preview
100%
Automate Chinese language teaching posts on Facebook with Gemini & Recraft.ai preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow automates the process of creating and publishing engaging Facebook posts that teach Chinese words to a Thai speaking audience. It integrates multiple AI models, APIs, and tools to gen...

Best for

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

Tools used

n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatopenrouter, n8n-nodes-base.facebookgraphapi, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by [email protected].

Original n8n.io source

1.1 Workflow description

Title
Automate Chinese language teaching posts on Facebook with Gemini & Recraft.ai
Workflow name
Automate Chinese language teaching posts on Facebook with Gemini & Recraft.ai

Workflow Overview

This workflow automates the process of creating and publishing engaging Facebook posts that teach Chinese words to a Thai-speaking audience. It integrates multiple AI models, APIs, and tools to generate content, create visuals, and publish posts seamlessly. Below is a detailed breakdown of the workflow:

Who Is This Template For?

  • Social Media Managers: Teams managing Facebook pages and looking for automated, engaging content creation.
  • Content Creators: Professionals who want to streamline the process of generating educational and visually appealing posts.
  • Language Enthusiasts: Individuals or organizations teaching languages (e.g., Chinese) to a Thai-speaking audience.

What Problem Does This Workflow Solve?

Creating engaging social media content manually can be time-consuming and inconsistent. This workflow solves that by:

  • Automating the generation of educational posts in Thai with Chinese vocabulary.
  • Creating visually appealing images tailored to the post's theme.
  • Publishing posts directly to Facebook using the Pages API.

What This Workflow Does

  1. Input Handling The workflow starts with an input word (e.g., received via chat or fetched from a Google Sheet). The input is split into two variables (word and input) to ensure data persistence throughout the workflow.
  2. Generate Text Content An AI model (OpenRouter Chat Model) generates a structured Facebook post in Thai, including:
  • Engaging hook
  • Core vocabulary (Chinese word, Pinyin, and Thai meaning)
  • Real-world usage examples
  • Pro-tip or fun fact
  • Call-to-action for engagement
  • Relevant hashtags
  1. Describe Image Concept Another AI model creates a brief description of the visual theme for the post. This description is used as input for generating an image.
  2. Generate Image The workflow uses Recraft.ai to generate an image based on the description. The image is styled consistently using predefined themes (e.g., digital illustration).
  3. Publish Post The generated text and image are published to Facebook using the Pages API. The post includes: The educational content as the caption. The generated image as the visual element.

Setup Guide

Pre-Requisites

Access to the following APIs:

  • OpenRouter.ai: For generating text content and image descriptions.
  • Recraft.ai: For generating images.
  • Facebook Graph API: For publishing posts.

Step-by-Step Setup

  1. Configure Input Source: Replace the chat input node with your preferred source (e.g., Google Sheet, email, or manual input). Set Up OpenRouter.ai:
  2. Configure the credentials for OpenRouter.ai in the respective nodes (OpenRouter Chat Model and OpenRouter Chat Model1).
  3. Set Up Recraft.ai: Add your API key for Recraft.ai in the Generate Image (Recraft.ai) node.
  4. Configure Facebook Graph API: Set up the Facebook Graph API credentials with the required permissions (pages_manage_posts, pages_read_engagement, etc.).
  5. Update the page_id and graphApiVersion in the Facebook Graph API node.
  6. Test the Workflow: Run the workflow manually to verify that it generates content, creates images, publishes posts, and logs details correctly.

How to Customize This Workflow to Your Needs

  • Change Input Source: Replace the chat input with a Google Sheet, email, or database query.
  • Modify Content Style: Adjust the AI prompts to suit your audience (e.g., professional tone, casual language).
  • Use Different Image Styles: Experiment with other styles/themes in Recraft.ai for the generated images.
  • Expand Use Cases: Adapt the workflow to other social media platforms (e.g., Instagram, LinkedIn) by modifying the API calls.
Why Use This Template?
  • Efficiency: Automates repetitive tasks like content creation and image generation. Consistency: Ensures posts follow a consistent format and style.
  • Engagement: Creates visually appealing and interactive content to boost audience engagement.
  • Scalability: Easily adaptable for different topics, languages, or platforms. Additional Resources

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 - Generate Image (Recraft.ai)

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

Block 2 - Create FB Post Content

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 3 - Structured Output Parser2

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 4 - Create Image Prompt

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 5 - Text Over Image

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

Block 6 - Sticky Note2

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

Block 7 - OpenRouter Chat Model

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

Block 8 - OpenRouter Chat Model1

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

Block 9 - Facebook Graph API

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

Block 10 - Sticky Note

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

Block 11 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 12 - Code

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

Block 13 - Sticky Note3

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

Block 14 - Sticky Note4

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

Block 15 - Sticky Note5

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

Block 16 - Sticky Note7

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

Block 17 - Sticky Note8

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

3. Summary Table

Workflow Automate Chinese language teaching posts on Facebook with Gemini & Recraft.ai
Complexity advanced
Nodes 17
Categories Multimodal AI
Author [email protected]
Published 18 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7533/7533.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 Automate Chinese language teaching posts on Facebook with Gemini & Recraft.ai do?

This workflow automates the process of creating and publishing engaging Facebook posts that teach Chinese words to a Thai speaking audience. It integrates multiple AI models, APIs, and tools to gen...

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 Multimodal AI use case.