Back to Templates

Design and Post LinkedIn Content with AI Captions and Custom Templates

Last update

Last update 20 days ago

Share


This workflow leverages n8n to automate LinkedIn content creation from start to finish. Upload an image and quote through a web form, and get a professionally designed post with AI-generated captions, ready to publish in seconds.

Features

  • Randomly selects from 6 professional design templates for visual variety
  • Converts HTML designs to high-quality images (90-95% JPEG quality)
  • Generates engaging captions using OpenAI's GPT models
  • Built-in caption editor for customization before posting
  • Direct publishing to LinkedIn profiles or company pages
  • Auto-compresses images for optimal LinkedIn upload

Prerequisites

  1. N8N Instance: A running n8n instance (cloud or self-hosted)
  2. OpenAI API: Active account with API access for caption generation
  3. LinkedIn Account: Profile or company page with API access
  4. Image Conversion API: HTML CSS to Image account
  5. Web Hosting: Platform to host the web form (Netlify, Vercel, or custom server)

Setup Instructions

1. Deploy Web Form

  • Download the provided web form template
  • Host on your preferred platform
  • Copy both webhook URLs from your n8n workflow
  • Update form's webhook endpoints with your n8n URLs

2. Configure Image Conversion

  • Sign up at htmlcsstoimage.com
  • Get your API credentials (User ID + API Key)
  • Add to HTTP Request node as Basic Auth credentials

3. Connect OpenAI API

  • Create API key at OpenAI Platform
  • In the ChatGPT HTTP Request node, add Header parameter:
    • Key: Authorization
    • Value: Bearer YOUR_API_KEY
  • Recommended model: gpt-4 or gpt-3.5-turbo

4. Authenticate LinkedIn

  • Create LinkedIn OAuth2 credential in n8n
  • Follow the authentication flow and grant required permissions
  • Select the credential in the "Create a post" LinkedIn node
  • Choose post destination (personal profile or company page)

5. Test the Workflow

  • Submit test data through the web form
  • Monitor n8n execution panel for successful completion
  • Verify image generation, caption quality, and LinkedIn posting
  • Adjust settings as needed based on results

Notes

  • Processing time averages 10-20 seconds from upload to preview
  • All 6 design templates are fully responsive and LinkedIn-optimized
  • Caption editor allows full customization before publishing to LinkedIn

For questions or issues, please contact me for consulting and support : Linkedin.

🔗 Test with sample data first.

Access Web Form Template