n8n

How to Automate Gmail to LinkedIn Posts?

Turn email newsletters into ready posts on LinkedIn. Great for marketers and founders who want to share news fast without writing from scratch. It saves time and keeps a steady posting habit.

Here is how it works. You run the workflow on demand. Gmail pulls the latest email from a chosen sender and limits to one message for quick testing. An OpenAI step scans the email and extracts about five key news items as clean structured data. A Split Out node sends each item one by one to another OpenAI step that writes a short post in a smart, calm voice. The LinkedIn node publishes each post to your profile so your audience sees timely updates.

Setup is simple. Connect Gmail, OpenAI, and LinkedIn credentials in n8n, set the sender filter, and run a test with a real newsletter. Most teams cut drafting time from about 60 minutes to under 10 minutes per email. It works well for weekly industry digests, partner updates, and product news. Plan a quick review of early posts to tune the tone and length before wider use.

What are the key features?

  • Manual trigger lets you test and review before posting
  • Gmail filter pulls the latest email from a specific sender and limits to one message
  • OpenAI extraction finds the main news items and returns clean JSON
  • Split Out processes each news item one at a time for reliable posting
  • OpenAI writing step crafts concise LinkedIn copy in a smart, calm style
  • LinkedIn node publishes posts directly to your profile

What are the benefits?

  • Reduce manual writing time from about 60 minutes to under 10 minutes per newsletter
  • Automate around 80 percent of LinkedIn copy creation for news updates
  • Turn one newsletter into up to five posts with consistent tone
  • Keep style and structure steady across posts using prompts
  • Connect Gmail, OpenAI, and LinkedIn in one simple flow

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Gmail, LinkedIn and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, connect Gmail: double click the Gmail node, open the Credential to connect with dropdown, click Create new credential, choose Gmail OAuth2, then follow the on screen steps to grant access to your mailbox.
  4. Configure the Gmail node: set Operation to Get All, set a sender filter to the newsletter address you want to use, and keep the limit at 1 while testing.
  5. Add OpenAI credentials: double click each OpenAI node, open the credential dropdown, click Create new credential, choose OpenAI API Key, and paste your API key from the OpenAI account API page.
  6. Review the prompt in the Extract News Items node and keep JSON output enabled so the results include a news_items array.
  7. Confirm the Split Out node targets message.content.news_items so each item becomes its own run.
  8. Open the Create LinkedIn Posts node and adjust the tone or length in the prompt if you want shorter or longer posts.
  9. Connect LinkedIn: double click the LinkedIn node, create a new LinkedIn OAuth2 credential, and approve access to your LinkedIn account. Select the correct profile if prompted.
  10. Run a test with the manual trigger. Check the execution data to confirm the extraction found several news items and that each item produced a post.
  11. If no email loads, relax the Gmail sender filter or remove the limit temporarily. If a post fails on LinkedIn, shorten the text to fit LinkedIn limits and try again.
  12. After validation, raise the Gmail limit or loop over more messages as needed, and keep a quick human review step until the tone matches your brand.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Gmail

Sign up

No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

LinkedIn

Sign up

Self-serve developer products (e.g., Sign In with LinkedIn, Share on LinkedIn): $0; Partner/Marketing APIs require approval and have no public pricing.

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.