{"product_id":"n8n-workflow-hn-github-posts-to-x-linkedin-with-openai-airtable","title":"n8n Workflow: HN GitHub Posts to X \u0026 LinkedIn with OpenAI + Airtable","description":"\u003ch3\u003eTurn Hacker News GitHub launches into ready-to-post X (Twitter) + LinkedIn updates—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow scans the Hacker News front page every 6 hours for posts that link to \u003cstrong\u003eGitHub\u003c\/strong\u003e, generates polished \u003cstrong\u003eX (Twitter)\u003c\/strong\u003e and \u003cstrong\u003eLinkedIn\u003c\/strong\u003e drafts with \u003cstrong\u003eOpenAI (gpt-4o-mini)\u003c\/strong\u003e, queues them in \u003cstrong\u003eAirtable\u003c\/strong\u003e, asks you to review via \u003cstrong\u003eTelegram\u003c\/strong\u003e, and then publishes to both platforms.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns on a schedule:\u003c\/strong\u003e executes every 6 hours to pull the Hacker News homepage and extract front-page submissions.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFilters GitHub links:\u003c\/strong\u003e keeps only submissions that link to \u003cstrong\u003eGitHub repositories\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDeduplicates with Airtable:\u003c\/strong\u003e checks Airtable for existing records matching each Hacker News post and only processes items not logged before.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eBuilds content using OpenAI:\u003c\/strong\u003e fetches each new GitHub repository page, converts it to Markdown, and sends the details to OpenAI (gpt-4o-mini) to generate Twitter\/X and LinkedIn copy in JSON format.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates output:\u003c\/strong\u003e drops any items where the expected \u003cem\u003etwitter\u003c\/em\u003e or \u003cem\u003elinkedin\u003c\/em\u003e fields are missing.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCreates drafts in Airtable:\u003c\/strong\u003e stores the source URL, title, and drafted X + LinkedIn content in a new Airtable record.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReview in Telegram:\u003c\/strong\u003e sends drafts to Telegram for review, waits five minutes, then publishes to \u003cstrong\u003eX\u003c\/strong\u003e and \u003cstrong\u003eLinkedIn\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eMarks completion:\u003c\/strong\u003e updates the Airtable record to flag the X and LinkedIn posts as published.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eShare daily\/weekly developer discovery on social without manual research.\u003c\/li\u003e\n  \u003cli\u003ePromote relevant GitHub projects found on Hacker News while keeping a verifiable Airtable log.\u003c\/li\u003e\n  \u003cli\u003eMaintain human-in-the-loop approval using Telegram before publishing to X and LinkedIn.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAirtable:\u003c\/strong\u003e Airtable Personal Access Token; base\/table IDs for storing Post, Title, Url, Tweet, LinkedIn, and publish completion fields (e.g., TDone\/LDone).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOpenAI (LangChain):\u003c\/strong\u003e uses \u003cstrong\u003egpt-4o-mini\u003c\/strong\u003e to generate X and LinkedIn drafts from GitHub content converted to Markdown.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTelegram:\u003c\/strong\u003e sends drafts for review and includes a \u003cstrong\u003e5-minute wait\u003c\/strong\u003e before posting.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eX \/ Twitter:\u003c\/strong\u003e publishes the validated draft content.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLinkedIn:\u003c\/strong\u003e publishes the validated draft content.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWorkflow nodes:\u003c\/strong\u003e code, no op, wait, merge, filter, twitter (as reflected in the workflow’s design).\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45738453434547,"sku":"N8N-17562","price":23.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/sWE7NSue4IXn67R6s99bs_4jgi7w4j.png?v=1785229327","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-hn-github-posts-to-x-linkedin-with-openai-airtable","provider":"N8N Commerce","version":"1.0","type":"link"}