Automated LinkedIn posts with AI-generated content using OpenAI GPT
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: OpenAI (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| OpenAI (legacy) OpenAI Content Generation | OpenAI node (AI section) |
Nodes used (4)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - OpenAI
n8n-nodes-base.openAi - LinkedIn
n8n-nodes-base.linkedIn - Manual Trigger
n8n-nodes-base.manualTrigger
What it does
LinkedIn Auto-Post Agent for n8n π Automate your LinkedIn presence with AI-powered content generation This n8n workflow automatically generates and publishes engaging LinkedIn posts using OpenAI's GPT models. Perfect for professionals and businesses who want to maintain an active LinkedIn presence without manual effort. β¨ Features - π€ AI-Powered Content: Generate professional LinkedIn posts using OpenAI GPT-3.5-turbo or GPT-4 - β° Automated Scheduling: Post content automatically on weekdays at 9 AM (customizable) - π― Manual Trigger: Generate and post content on-demand - π Secure: All credentials stored securely in n8n's encrypted credential system - π Error Handling: Built-in retry logic and error notifications - π¨ Customizable: Easily modify prompts, scheduling, and content parameters ποΈ Architecture This workflow uses a streamlined 3-node architecture: Schedule/Manual Trigger β OpenAI Content Generation β LinkedIn Post Node Details 1. Schedule Trigger: Automatically triggers the workflow (default: weekdays at 9 AM) 2. Manual Trigger: Allows on-demand content generation 3. OpenAI Content Generation: Creates LinkedIn-optimized content using AI 4. LinkedIn Post: Publishes the generated content to LinkedIn π Prerequisites - n8n instance (self-hosted or cloud) - OpenAI API account and API key - LinkedIn account with API access - Basic familiarity with n8n workflows π Quick Start 1. Import the Workflow 1. Download the linkedin-auto-post-agent.json file 2. In your n8n instance, go to Workflows β Import from File 3. Select the downloaded JSON file 4. Click Import 2. Set Up Credentials OpenAI API Credentials 1. Go to Credentials in your n8n instance 2. Click Create New Credential 3. Select OpenAI 4. Enter your OpenAI API key 5. Name it "OpenAI API" and save LinkedIn OAuth2 Credentials 1. Create a LinkedIn App at LinkedIn Developer Portal 2. Configure OAuth 2.0 settings: - Redirect URL: https://your-n8n-instance.com/rest/oauth2-credential/callback - Scopes: rliteprofile, wmembersocial 3. In n8n, create new LinkedIn OAuth2 credentials 4. Enter your LinkedIn App's Client ID and Client Secret 5. Complete the OAuth authorization flow 3. Configure the Workflow 1. Open the imported workflow 2. Click on the OpenAI Content Generation node 3. Select your OpenAI credentials 4. Customize the content prompt if desired 5. Click on the LinkedIn Post node 6. Select your LinkedIn OAuth2 credentials 7. Save the workflow 4. Test the Workflow 1. Click the Manual Trigger node 2. Click Execute Node to test content generation 3. Verify the generated content in the LinkedIn node output 4. Check your LinkedIn profile to confirm the post was published 5. Activate Automated Posting 1. Click the Active toggle in the top-right corner 2. The workflow will now run automatically based on the schedule βοΈ Configuration Options Scheduling The default schedule posts content on weekdays at 9 AM. To modify: 1. Click the Schedule Trigger node 2. Modify the Cron Expression: 0 9 1-5 - 0 9 1-5: Weekdays at 9 AM - 0 12 : Daily at noon - 0 9 1,3,5: Monday, Wednesday, Friday at 9 AM Content Customization Modify the OpenAI prompt to change content style: 1. Click the OpenAI Content Generation node 2. Edit the System Message to adjust tone and style 3. Modify the User Message to change topic focus Example Prompts Professional Development Focus: Create a LinkedIn post about professional growth, skill development, or career advancement. Keep it under 280 characters and include 2-3 relevant hashtags. Industry Insights: Generate a LinkedIn post sharing an industry insight or trend in technology. Make it thought-provoking and include relevant hashtags. Motivational Content: Write an inspiring LinkedIn post about overcoming challenges or achieving goals. Keep it positive and engaging with appropriate hashtags. Model Selection Choose between OpenAI models based on your needs: - gpt-3.5-turbo: Cost-effective, good quality - gpt-4: Higher quality, more expensive - gpt-4-turbo: Lat