workflows.fit
Back to n8n workflows
n8n templateFreeBy ömer

Social media content generator and publisher | X, Linkedin

Generate and Publish AI Content to LinkedIn and X (Twitter) with n8n Overview This n8n workflow automates the generation and publishing of AI-powered social media content across LinkedIn and X (formerly Twitter). By l...

MarketingCommunicationAILangchainCore NodesLm Chat Google GeminiForm TriggerAgent
Loading interactive preview...

Template notes

Generate and Publish AI Content to LinkedIn and X (Twitter) with n8n

Overview This n8n workflow automates the generation and publishing of AI-powered social media content across LinkedIn and X (formerly Twitter). By leveraging AI, this workflow helps social media managers, marketers, and content creators streamline their posting process.

Who is this for? - Social media managers - Content creators - Digital marketers - Businesses looking to automate content generation

Features - AI-powered content creation tailored for LinkedIn and X (Twitter) - Automated publishing to both platforms - Structured output parsing to ensure consistency - OAuth2 authentication for secure posting - Merge and confirmation steps to track successful postings

Setup Instructions Prerequisites Before using this workflow, ensure you have: - An n8n instance set up - API credentials for: - Google Gemini AI (for content generation) - X Developer Account with OAuth2 authentication - LinkedIn Developer Account with OAuth2 authentication - A form submission service integrated with n8n

Workflow Breakdown

1. Trigger: Form Submission - A user submits a form containing the post title. - The form is secured with Basic Authentication. - The submitted title is passed to the AI Agent.

2. AI Content Generation - The Google Gemini Chat Model processes the title and generates: - LinkedIn post content - Twitter (X) post content - Hashtags - Call-to-action (LinkedIn) - Character limit check (Twitter)