Skip to main content

Schedule LinkedIn posts with AI content generation and Telegram approval

Workflow preview

Workflow preview
100%
Schedule LinkedIn posts with AI content generation and Telegram approval preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow automates LinkedIn posts using OpenAI. The prompts are stored in the workflow and can be customized as needed to fit your needs. The workflow uses a combination of a Schedule Trigger,...

Best for

  • Social Media automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.if, n8n-nodes-base.telegram, n8n-nodes-base.manualtrigger, n8n-nodes-base.linkedin

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Chad McGreanor.

Original n8n.io source

1.1 Workflow description

Title
Schedule LinkedIn posts with AI content generation and Telegram approval
Workflow name
Schedule LinkedIn posts with AI content generation and Telegram approval

Overview

This workflow automates LinkedIn posts using OpenAI. The prompts are stored in the workflow and can be customized as needed to fit your needs. The workflow uses a combination of a Schedule Trigger, some code that determines what day of the week it is (no posting Friday - Sunday), a prompts node to set your OpenAI prompts, a random selection of a prompt so that you are not generating content that looks repetitive. We send that all to OpenAI API, select a random time, have the final LinkedIn post sent to your Telegram for approval, once approved wait for the correct time slot, and then Post to your LinkedIn account using the LinkedIn node.

How it works:

Run or schedule the workflow in n8n The automation can be triggered manually or on a custom schedule (excluding weekends if needed).

You should customize the prompts in the Prompt Node to suit your needs.

A random LinkedIn post prompt is selected Pre-written prompts are rotated to keep content fresh and non-repetitive.

OpenAI generates the LinkedIn post The prompt is sent to OpenAI via API, and the result is returned in clean, ready-to-use form.

You receive the draft via Telegram. The post is sent to Telegram for quick approval or review.

Post is scheduled or published via the LinkedIn Connector

Once approved, the workflow delays until the target time, then sends the content to LinkedIn.

What's needed:

An OpenAPI API key, LinkedIn Account, and a Telegram Account.

For Telegram you will need to configure the Bot service.

Step-by-Step: Telegram Approval for Your Workflow A. Set Up a Telegram Bot 1. Open Telegram and search for “@BotFather”. 2. Start a chat and type /newbot to create a bot. 3. Give your bot a name and a unique username (e.g., YourApprovalBot). 4. Copy the API token that BotFather gives you.

B. Add Your Bot to a Private Chat (with You)

  • Find your bot in Telegram, click “Start” to activate it.
  • Send a test message (like “hello”) so the chat is created.

C. Get Your User ID

  • Search for “userinfobot” or use sites like userinfobot in Telegram. Type /start and it will reply with your Telegram user ID.

OpenAI powers the LinkedIn post creation

  1. Add Your OpenAI API Key:
    • Log in to your OpenAI Platform account: https://platform.openai.com/.
    • Go to API keys and create a new secret key.
    • In n8n, create a new "OpenAI API" credential and paste your API key. Give it a name.
  2. Apply Credential to Nodes: OpenAI Message Node

Connect your LinkedIn account to the Linked in Node

  1. Select your account from the LinkedIn Dropdown box.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Prompts

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Random Prompt

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - OpenAI Message

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 5 - Telegram Approved

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - Random Time

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Send message and wait for response

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 8 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 9 - Create a post

Type / Role
n8n-nodes-base.linkedIn - linkedIn
Config choices
Version 1

Block 10 - Notify Post Active

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 11 - Check Day

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 12 - Wait for Time Selected

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Get Day

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Schedule LinkedIn posts with AI content generation and Telegram approval
Complexity advanced
Nodes 18
Categories Social Media, Multimodal AI
Author Chad McGreanor
Published 25 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6451/6451.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Schedule LinkedIn posts with AI content generation and Telegram approval do?

This workflow automates LinkedIn posts using OpenAI. The prompts are stored in the workflow and can be customized as needed to fit your needs. The workflow uses a combination of a Schedule Trigger,...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.