Create LinkedIn posts and Twitter threads from Telegram with Groq AI

Go to Workflow
12 views
Built by Aman Aman
Created on July 27, 2026

Description

Quick overview
This workflow turns Telegram text or voice notes into a ready-to-publish LinkedIn post (and copyable Twitter thread text) using Groq (Whisper + Llama), publishes the LinkedIn post via LinkedIn, and sends the formatted results back to the user in Telegram.

How it works
Triggers when a new Telegram message is received.
If the message starts with /start, it sends a Telegram welcome message with usage instructions.
If the message is a voice note, it downloads the audio file from Telegram, renames it to .ogg, and transcribes it using Groq Whisper.
If the message is text (or after transcription), it sends the raw idea to Groq Llama to generate a JSON payload containing LinkedIn post text, an image prompt, and a formatted Telegram message with the LinkedIn post and Twitter thread.
It parses the LLM response into structured fields (falling back to plain text if parsing fails).
It publishes the generated post to LinkedIn and then sends the formatted “tap-to-copy” message back to the originating Telegram chat.

Setup
Create a Telegram bot, connect Telegram credentials in n8n, and enable the Telegram Trigger so Telegram can send updates to your workflow.
Add Groq API authentication for the HTTP requests (Whisper transcription and Llama chat completions).
Connect your LinkedIn OAuth2 credentials and set the target LinkedIn person ID used for posting.
Review and adjust the Groq model names and the prompt content to match your desired writing style and output format.

Nodes Used (4)

Code
n8n-nodes-base.code
HTTP Request
n8n-nodes-base.httpRequest
LinkedIn
n8n-nodes-base.linkedIn
Telegram
n8n-nodes-base.telegram