Automate Chinese language teaching posts on Facebook with Gemini & Recraft.ai
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when a chat message arrives. Along the way it connects OpenRouter Chat Model and Facebook Graph API. It also calls external.api.recraft.ai and api.segmind.com over HTTP.
How it runs
Trigger: When a chat message arrives.
- Code: runs custom JavaScript code
- Create FB Post Content (AI Agent): runs an AI agent, with model: OpenRouter Chat Model
- Create Image Prompt (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; output parser: Structured Output Parser
- Generate Image (Recraft.ai) (HTTP Request): calls external.api.recraft.ai (POST)
- Facebook Graph API: uses Facebook Graph API
- Text Over Image (HTTP Request): calls api.segmind.com (POST)
Services it uses
Other Facebook + OpenRouter templates (19)
HTTP calls to: external.api.recraft.ai, api.segmind.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Facebook Graph API
n8n-nodes-base.facebookGraphApi - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Code
n8n-nodes-base.code
From the author
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…