Skip to content
FlowHubFluxonLab
A
AI Automationfree

Generate Platform-Optimized Social Media Content Across 6 Platforms with GPT-4o

by Luan Correiaadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentCall n8n Workflow ToolCall n8n Workflow ToolCCodeFacebook Graph APIFacebook Graph APIGmailGmailGoogle DocsGoogle DocsGoogle DriveGoogle DriveHTTP RequestHTTP RequestLinkedInOpenAI Chat ModelOpenAI Chat ModelSerpApi (Google Search)SerpApi (Google Search)SSimple MemoryTelegramTelegramX (Formerly Twitter)X (Formerly Twitter)
Share Post Share
ChWhen chat message receivedWhen chat messa…TWX-TwiterTWInstagramMBWindow Buffer MemoryWindow Buffer M…EWWhen Executed by Another WorkflowWhen Executed b…TWFacebookTWLinkedInTWShortTWYouTube ShortHRpollinations.ai1HRSave Image to imgbb.comSave Image to i…GmailSocial Media SchemaSocial Media Sc…Social Media System PromptSocial Media Sy…gpt-40-miniHRInstagram ImageX PostInstragram PostFacebook PostLinkedIn PostGmail User for ApprovalGmail User for …HRGet Social Post ImageGet Social Post…gpt-40-mini1gpt-4o-miniSeSchemaSeSystem PromptCoParse SchemaCoParse System PromptParse System Pr…SeCompose Prompt & SchemaCompose Prompt …AgSocial Media Content CreatorSocial Media Co…MeMerge Prompts and SchemaMerge Prompts a…SeSocial ContentSave Image to Google DriveSave Image to G…MeMergeSave Social Post to Google DriveSave Social Pos…SeGoogle Drive Image MetaGoogle Drive Im…SeSocial Post JSONSeRespond with Google Drive IdRespond with Go…Telegram Success Message (Optional)Telegram Succes…Telegram Error Message (Optional)Telegram Error …SwSocial Media Publishing RouterSocial Media Pu…AgPrepare Email ContentsPrepare Email C…IfIs Approved?SeFile IdGet Social Post from Google DriveGet Social Post…EFExtract as JSONMeMerge Image and Post ContentsMerge Image and…NOImplement Threads HereImplement Threa…NOImplement YouTube Shorts HereImplement YouTu…SeX ResponseSeInstagram ResponseInstagram Respo…SeFacebook ResponseFacebook Respon…SeLinkedIn ResponseLinkedIn Respon…Ag🤖Social Media Router Agent🤖Social Media …TSSerpAPIAgPrepare Social Media Email ContentsPrepare Social …gpt-4o12345678910111213141516171819202122232425262728293031
1/5
FLOWS
STEPS · 31
Starts from a chat message

Who’s it for This workflow is ideal for marketers, content creators, agencies, and small businesses that want to streamline the process of creating and publishing platform-optimized posts across multiple social media channels. How it works / What it does From a single user prompt, the workflow uses a custom system prompt and schema to generate tailored social media content for LinkedIn, Instagram, Facebook, Twitter (X), Threads, and YouTube Shorts. It creates platform-specific captions, hashtags, calls to action, and even AI-generated image suggestions, then routes the content to the correct publishing channel. How to set up Connect your social media platform credentials in n8n. Add your Google Docs links for the system prompt and content schema. Configure the IMGBB_API_KEY and any other required API credentials. Optionally connect Gmail and Telegram for approval workflows and notifications. Requirements n8n instance (self-hosted or cloud) API credentials for desired platforms Google Docs and Google Drive accounts How to customize the workflow Edit the system prompt and schema in Google Docs to adjust tone, style, and content format for each platform.

Tags

n8nreference-onlyagentfacebook-graph-apigmailgoogle-docsgoogle-drivelinked-inlm-chat-open-aimemory-buffer-windowtelegramtool-serp-apitool-workflowtwitter
Connects
AAI Agentcalln8nworkflowtoolCall n8n Workflow ToolCCodefacebookgraphapiFacebook Graph APIgmailGmailgoogledocsGoogle Docs
CategoryAI Automation
Triggermanual
Complexityadvanced
Nodes57
AddedAug 11, 2025

Related workflows

See all AI Automation
ACembeddingsopenai
free

Route WhatsApp support requests with Claude, Supabase, HubSpot and Slack

Quick overview This workflow turns incoming WhatsApp messages (text, audio, images, and documents) into actionable support interactions by extracting content, detecting sentiment, and using an AI agent with a Supabase knowledge base to route requests to Google Calendar, HubSpot, Slack, Gmail, and back to WhatsApp. How it works Receives incoming WhatsApp messages via a WhatsApp webhook trigger. Routes the message by type and converts it into text using OpenAI Whisper for audio, OpenAI GPT-4o Vision for images, or a PDF extractor for documents (or passes text messages through). Loads the sender’s session context from Supabase and runs sentiment/language detection on the extracted text. Uses a LangChain AI agent (Claude) with Supabase vector search (with OpenAI embeddings and Cohere reranking) plus tool access (Google Calendar, HubSpot, Slack, and Gmail) to produce a structured intent, response, and metadata. Logs conversation analytics (intent, sentiment, message type, and response length) to an n8n Data Table. Routes by intent to either create a Google Calendar event, create/update a HubSpot contact, email a document via Gmail (and upload it to Google Drive), create a HubSpot ticket

by Multifly
AopenaichatmodelserpapigooglesearchS
free

AI agent chat

This workflow employs OpenAI's language models and SerpAPI to create a responsive, intelligent conversational agent. It comes equipped with manual chat triggers and memory buffer capabilities to ensure seamless interactions. To use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

AI chatbot that can search the web

This workflow is designed for dynamic and intelligent conversational capabilities. It incorporates OpenAI's GPT-4o model for natural language understanding and generation. Additional tools include SerpAPI and Wikipedia for enriched, data-driven responses. The workflow is triggered manually, and utilizes a 'Window Buffer Memory' to maintain the context of the last 20 interactions for better conversational continuity. All these components are orchestrated through n8n nodes, ensuring seamless interconnectivity. To use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team