n8n

How to Automate LinkedIn and X Content Posting?

Turn trending GitHub posts into ready social content without manual work. The flow collects top links from a tech news site, writes short posts with AI, and publishes them to LinkedIn and X after a short review window. It fits marketing teams and founders who want steady, relevant posts with low effort.

On a set schedule, the workflow crawls the news page and parses titles, links, and IDs with code. It checks an Airtable base to avoid reposting items. For each new GitHub link, it fetches the project page, converts the page to clean text, and asks an AI model to draft a LinkedIn post and a tweet. It validates the AI output, saves a record in Airtable, sends a Telegram message to the owner, waits five minutes, then posts to X and LinkedIn and marks both as done in Airtable. A filter step protects against failed generations or API errors.

You need accounts for Airtable, LinkedIn, X, OpenAI, and Telegram. Map your Airtable base and fields and connect social accounts in n8n Cloud. Expect faster content production, fewer duplicates, and consistent posting across channels. This is great for developer tools, open source projects, and tech brands that want to join live discussions with minimal effort.

What are the key features?

  • Scheduled crawl of a tech news homepage to find fresh posts
  • Python parsing to extract titles, GitHub links, and unique IDs
  • Airtable search to detect if a post was already shared
  • HTTP visit to the GitHub page and HTML to Markdown conversion for clean context
  • AI content generation for both a LinkedIn post and a tweet
  • Validation and error filter to stop bad outputs from posting
  • Telegram alert to notify the owner before publishing
  • Timed wait of five minutes, then auto post to X and LinkedIn
  • Airtable record creation and status updates for tracking
  • Merge and filter logic to keep the flow stable and prevent failures

What are the benefits?

  • Reduce manual curation from 2 hours to 10 minutes per day by automating link discovery and drafting
  • Automate 80 percent of repetitive social posting work with scheduled runs and one click approvals
  • Eliminate duplicate posts by checking Airtable before publishing
  • Connect Airtable, LinkedIn, X, OpenAI and Telegram in one flow to keep data and actions in sync
  • Maintain a five minute review window to catch errors before content goes live
  • Scale to handle many trending links per day without adding headcount

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 Airtable, LinkedIn, X, OpenAI and Telegram. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create an Airtable Personal Access Token credential. In Airtable, generate a token with read and write scope for the target base. Name the credential clearly, then select it in the Airtable nodes for Search Item, Create Item, Update X Status, and Update L Status.
  4. In the LinkedIn node, double click the node, choose Credential to connect with, click Create new credential, and follow the on screen instructions to connect your LinkedIn account. Choose to post as your profile. Confirm you can see your member profile in the node.
  5. In the X node, create a new Twitter OAuth2 credential. In your X developer portal, set up an app with write permissions. Paste the client ID and secret into n8n and complete the OAuth flow. Test by sending a test post in a safe sandbox if available.
  6. In the OpenAI node, create a new OpenAI API Key credential. From your OpenAI account, copy your API key and paste it into n8n. Select a stable model in the Generate Content node.
  7. For Telegram, create a bot with BotFather to get the bot token. In the Ping Me node, create a Telegram credential and enter the token. Set your chat ID or username so the alert reaches you.
  8. Open the Schedule Trigger and choose how often to run. Start with hourly or daily to avoid rate limits.
  9. In the Airtable nodes, set Base and Table to your target base. Make sure fields exist: Title, Url, Post, Tweet, Date, and boolean flags TDone and LDone. Match the exact field names used in the node mappings.
  10. Run once manually. After the run, check Airtable for new records, confirm you received a Telegram alert, and verify no LinkedIn or X posts are created until the five minute wait completes.
  11. If posts fail, open the Filter Errored path to see the message. Common issues include invalid tokens, missing Airtable fields, or social app permission errors. Fix credentials or field names, then run again.

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.

Airtable

Sign up

Free (1,000 API calls / mo)

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

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Free tier: $0 / mo, 1000 API calls per workspace / mo

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.