Generate social posts and images with Claude, Gemini, and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Anthropic Chat Model, Google Gemini Chat Model and OpenAI Chat Model. It also calls api.openai.com and generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Settings (Edit Fields (Set)): sets 1 field: image_generation_enabled
- Test Input (Edit Fields (Set)): sets or maps fields
- Validate Input (Code): runs custom JavaScript code
- Is Valid? (If): checks a condition and branches into true / false
- Route by Provider (Switch): routes items into 3 branches
- Respond Bad Request (Respond to Webhook): sends the response back to the webhook caller
- Generate Social Content (Claude) (Basic LLM Chain): sends a prompt to an LLM, with model: Anthropic Chat Model; output parser: Structured Output Parser
- Generate Social Content (Gemini) (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Chat Model; output parser: Structured Output Parser
- Generate Social Content (OpenAI) (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Image Requested? (If): checks a condition and branches into true / false
…plus 6 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Gemini templates (249) · Other OpenAI + Anthropic templates (115) · Other Anthropic + Google Gemini templates (51)
HTTP calls to: api.openai.com, generativelanguage.googleapis.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 (13)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Respond to Webhook
n8n-nodes-base.respondToWebhook - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Switch
n8n-nodes-base.switch - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - HTTP Request
n8n-nodes-base.httpRequest - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick overview This workflow receives a webhook request with a topic and context, generates platform-specific copy for LinkedIn, X, Facebook, and Instagram using Anthropic Claude, Google Gemini, or OpenAI, optionally creates a matching image via OpenAI Images…