✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition
Configured with Agent, Chat Trigger, Execute Workflow Trigger, Extract From File, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- Subworkflow
- Data store
- Web / API
- Messaging
- Files / media
- AI & models
- Integration
- Transform
- Code
- Routing
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| When chat message received | Trigger | Chat Trigger | See node parameters |
| X-Twiter | Subworkflow | Tool Workflow | See node parameters |
| Subworkflow | Tool Workflow | See node parameters | |
| Window Buffer Memory | Data store | Memory Buffer Window | See node parameters |
| When Executed by Another Workflow | Trigger | Execute Workflow Trigger | See node parameters |
| Subworkflow | Tool Workflow | See node parameters | |
| Subworkflow | Tool Workflow | See node parameters | |
| Short | Subworkflow | Tool Workflow | See node parameters |
| YouTube Short | Subworkflow | Tool Workflow | See node parameters |
| pollinations.ai1 | Web / API | HTTP Request | See node parameters |
| Save Image to imgbb.com | Web / API | HTTP Request | POST |
| Gmail | Messaging | Gmail | See node parameters |
| Social Media Schema | Files / media | Google Docs | get |
| Social Media System Prompt | Files / media | Google Docs | get |
| gpt-40-mini | AI & models | OpenAI Chat Model | See node parameters |
| Instagram Image | Web / API | HTTP Request | POST |
| X Post | Messaging | See node parameters | |
| Instragram Post | Integration | Facebook Graph Api | See node parameters |
| Facebook Post | Integration | Facebook Graph Api | See node parameters |
| LinkedIn Post | Messaging | Linked In | See node parameters |
| Gmail User for Approval | Messaging | Gmail | sendAndWait |
| Get Social Post Image | Web / API | HTTP Request | See node parameters |
| gpt-40-mini1 | AI & models | OpenAI Chat Model | See node parameters |
| gpt-4o-mini | AI & models | OpenAI Chat Model | See node parameters |
| Schema | Transform | Edit Fields | See node parameters |
| System Prompt | Transform | Edit Fields | See node parameters |
| Parse Schema | Code | Code | See node parameters |
| Parse System Prompt | Code | Code | See node parameters |
| Compose Prompt & Schema | Transform | Edit Fields | See node parameters |
| Social Media Content Creator | AI & models | Agent | See node parameters |
| Merge Prompts and Schema | Transform | Merge | See node parameters |
| Social Content | Transform | Edit Fields | See node parameters |
| Save Image to Google Drive | Files / media | Google Drive | See node parameters |
| Merge | Transform | Merge | See node parameters |
| Save Social Post to Google Drive | Files / media | Google Drive | createFromText |
| Google Drive Image Meta | Transform | Edit Fields | See node parameters |
| Social Post JSON | Transform | Edit Fields | See node parameters |
| Respond with Google Drive Id | Transform | Edit Fields | See node parameters |
| Telegram Success Message (Optional) | Messaging | Telegram | See node parameters |
| Telegram Error Message (Optional) | Messaging | Telegram | See node parameters |
| Social Media Publishing Router | Routing | Switch | See node parameters |
| Prepare Email Contents | AI & models | Agent | See node parameters |
| Is Approved? | Routing | If | See node parameters |
| File Id | Transform | Edit Fields | See node parameters |
| Get Social Post from Google Drive | Files / media | Google Drive | download |
| Extract as JSON | Transform | Extract From File | fromJson |
| Merge Image and Post Contents | Transform | Merge | See node parameters |
| Implement Threads Here | Routing | No Op | See node parameters |
| Implement YouTube Shorts Here | Routing | No Op | See node parameters |
| X Response | Transform | Edit Fields | See node parameters |
| Instagram Response | Transform | Edit Fields | See node parameters |
| Facebook Response | Transform | Edit Fields | See node parameters |
| LinkedIn Response | Transform | Edit Fields | See node parameters |
| 🤖Social Media Router Agent | AI & models | Agent | See node parameters |
| SerpAPI | Integration | Tool Serp Api | See node parameters |
| Prepare Social Media Email Contents | AI & models | Agent | See node parameters |
| gpt-4o | AI & models | OpenAI Chat Model | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
facebookGraphApigmailOAuth2googleDocsOAuth2ApigoogleDriveOAuth2ApilinkedInOAuth2ApiopenAiApiserpApitelegramApitwitterOAuth2Api
Workflow notes
Create Post Image
Create Post Image
https://pollinations.ai/ https://image.pollinations.ai/prompt/[your image description]
Sticky Note41
💡Notes
Update all Social Media Platform Credentials as required.
Adjust parameters and content for each platform to suit your needs.
Sticky Note1
<youtube_short> Style: Short-form video content showcasing quick workflow tutorials or use cases. Tone: Authoritative yet approachable; establish workflows.diy as a leader in n8n automation solutions. Content Length: Tutorials/Reviews (long-form): 5-10 minutes Shorts/Highlights (short-form): Under 1 minute CTA: Encourage subscriptions, likes, comments (e.g., "Subscribe for more workflow tips!"). </youtube_short>
Sticky Note2
<youtube_short> { "type": "object", "properties": { "video_suggestion": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "call_to_action": { "type": "string" } } } </youtube_short>
Send Social Media Image and Post Contents to Gmail
Send Social Media Image and Post Contents to Gmail
(optional)
1️⃣System Prompt Composition from External Source
1️⃣System Prompt Composition from External Source
Centralized prompt management: Store and update system prompts in Google Docs for easy team collaboration
-
Consistent brand voice: Ensure all generated content maintains consistent tone and style across platforms
-
Flexible customization: Quickly modify prompts without changing workflow code
-
Version control: Track changes to prompts over time with Google Docs revision history
-
Role-specific access: Control who can edit core prompts while allowing broader viewing access
2️⃣Output Schema Composition from External Source
2️⃣Output Schema Composition from External Source
-
Structured content generation: Enforce consistent JSON output formats for each platform
-
Platform-specific optimization: Tailor content structure to each social network's requirements
-
Reduced errors: Validate content against schemas before publishing
-
Easy updates: Modify schemas as platform requirements change without workflow modifications
-
Standardized metadata: Ensure all required fields are included for each platform
4️⃣ Dynamic Social Media Content Creator Agent with Web Search Tool to Match Social Post and Platform Schema
4️⃣ Dynamic Social Media Content Creator Agent with Web Search Tool to Match Social Post and Platform Schema
-
Real-time research: Incorporate current events and trending topics into content
-
Fact-checking: Verify information before publishing to maintain credibility
-
Competitive analysis: Reference industry trends and competitor content
-
Contextual relevance: Create content that responds to current market conditions
-
Enhanced engagement: Generate content that aligns with trending conversations
5️⃣ Dynamic Image Creation to Match Social Post & Platform Schema
5️⃣ Dynamic Image Creation to Match Social Post & Platform Schema
-
Visual consistency: Generate platform-optimized images that match content themes
-
Automated alt text: Create accessibility-compliant image descriptions
-
Multi-format output: Generate images in various dimensions for different platforms
-
Brand compliance: Ensure all visuals align with brand guidelines
-
Reduced design bottlenecks: Eliminate waiting for custom graphics for each post
6️⃣ Image Archiving to Multiple Cloud Services for Future Use
6️⃣ Image Archiving to Multiple Cloud Services for Future Use
- Redundant storage: Prevent content loss with multi-location backups
-Searchable repository: Build a library of past content for reference and reuse
-
Asset tracking: Maintain records of which images were used for which campaigns
-
Compliance documentation: Keep records of published content for regulatory purposes
-
Resource optimization: Reuse successful visual assets for future campaigns
7️⃣ Telegram Messaging for Workflow Status
7️⃣ Telegram Messaging for Workflow Status
-
Real-time notifications: Get immediate alerts about workflow execution
-
Error tracking: Quickly identify and address failures in the content pipeline
-
Team coordination: Keep stakeholders informed of content progress
-
Audit trail: Maintain records of when content was created and published
-
Remote monitoring: Track workflow execution from mobile devices
8️⃣ Optional Workflow Reporting to Gmail in with Structured HTML Content
8️⃣ Optional Workflow Reporting to Gmail in with Structured HTML Content
-
Executive summaries: Provide management with clean, formatted reports
-
Content approval: Enable stakeholders to review content before publishing
-
Performance tracking: Document content metrics in standardized formats
-
Schedule adherence: Monitor if content is being published according to plan
-
Resource allocation: Track time and effort spent on different content types
9️⃣ Social Post Archiving to Google Drive for Future Use
9️⃣ Social Post Archiving to Google Drive for Future Use
-
Content library: Build a searchable repository of all published content
-
Performance correlation: Connect content with its performance metrics
-
Compliance records: Maintain documentation of published materials
-
Content repurposing: Easily find and adapt past successful content
-
Campaign documentation: Group related content for campaign analysis
3️⃣Dynamic System Prompt and Platform Schema Composition based on User Prompt using External Sources
3️⃣Dynamic System Prompt and Platform Schema Composition based on User Prompt using External Sources
-
Centralized prompt management: Store all system prompts in a single external source for easier maintenance and updates
-
Platform-specific optimization: Automatically tailor content to each platform's unique requirements and audience expectations
-
Consistent brand voice: Ensure all generated content maintains your brand's tone and messaging guidelines across platforms
-
Reduced technical debt: Modify prompts and schemas without changing workflow code or redeploying applications
-
Collaborative improvement: Enable marketing teams to refine prompts without developer intervention
-
Version control: Track changes to prompts and schemas over time with document revision history
-
A/B testing capability: Easily test different prompt variations to optimize content performance
-
Scalable content strategy: Add support for new platforms by simply creating new prompt and schema documents
-
Dynamic adaptation: Respond to platform algorithm changes by quickly updating external prompt documents
-
Knowledge preservation: Maintain institutional knowledge about effective platform-specific content strategies
-
Reduced onboarding time: New team members can understand content requirements by reviewing documented prompts
-
Compliance management: Ensure all generated content follows legal and brand guidelines by centralizing rules
Sticky Note43
💡Notes
-
Create Google Doc for the Social Media Schema and copy the provided schema.
-
Update the Google Doc ID in the Social Media Schema node.
-
Create Google Doc for the Social Media System Prompt and copy the provided System Prompt.
-
Update the Google Doc ID in the Social Media System Prompt node.
Adjust system prompt and platform specific prompts to suit your needs.
Sticky Note44
💡Notes
Replace pollinations.ai with any online image generation service that produces an image file you can download.
Sticky Note45
💡Notes
Replace Chat model with other LLMs and test out the results. Add more tools or try other web search tools to suit your use case.
✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition
✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition
Purpose and structure
This folder contains the ✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition workflow. Its executable nodes use agent, chatTrigger, code, executeWorkflowTrigger, extractFromFile, facebookGraphApi, gmail, googleDocs, googleDrive, httpRequest, if, linkedIn, lmChatOpenAi, memoryBufferWindow, merge, noOp, set, switch, telegram, toolSerpApi, toolWorkflow, twitter. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When chat message received, When Executed by Another Workflow
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Linkedin/1342_Linkedin_Telegram_Automate_Webhook.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- LLM
- Chat Memory
- 👍Start Here
- Social Media Publishing Router
- 1️⃣ X - Twitter
- 2️⃣ Instagram
- 3️⃣ Facebook
- 4️⃣ LinkedIn
- 5️⃣Threads
- 6️⃣YouTube Shorts
- Social Media Agent Tools
- 🏭Social Media Content Factory
- 👍 Approve Content Before Proceeding
- Prompt & Schema Composition from External Sources
- 👈System Prompt
- 👈Social Media Schema
- External System Prompt and Schema
- 📄 Publish to Social Media
- Social Media Content Creator
- Prepare Social Media Post and Save to Google Drive
- Social Media Schema
- System Prompt
- Social Media Router Agent
- Prepare Email Approval Contents as HTML
- 💫Features & Benefits