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

560 views · ✨ AI & LLMs

💡 Pro Tip — If you’ve run into Facebook’s Graph API permission restrictions, ScraperNode is a community node that scrapes pages, groups, posts, and comments directly — no app review needed.

View All Scrapers

Description

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?

What Problem Does This Workflow Solve?

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

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:
  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:

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

Why Use This Template?

🔗 Nodes Used

HTTP Request, Facebook Graph API, AI Agent, Structured Output Parser, Chat Trigger, OpenRouter Chat Model

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup