Use this advanced n8n workflow to generate, refine, and publish viral X (Twitter) threads using voice or text input via Telegram, powered by GPT. Features an approval loop.
Download this n8n workflow template and start using it instantly.
This sophisticated n8n workflow revolutionizes social media content creation by integrating the conversational flexibility of Telegram messaging with the powerful capabilities of GPT. It solves the pain point of time-consuming manual drafting and constant context switching. Users can initiate a post idea simply by sending a text or a voice note, and the AI drafts an optimized, 5-part X thread.
The central innovation is the iterative approval loop, managed by the Langchain memory n8n node, allowing users to request tone, style, or length revisions until the content is perfect. Only upon receiving explicit approval keywords (e.g., 'ok' or 'approved') does the n8n workflow automatically trigger the publishing sequence via the Blotato API, followed by status monitoring and a final confirmation message. This advanced n8n workflow showcases best practices for building interactive, mission-critical AI automation.
This high-density n8n automation starts with a Telegram n8n trigger:
Start: Telegram Message n8n trigger activates upon receiving a message. The flow immediately checks if the input is a voice note. If so, it downloads the file and uses the OpenAI Speech to Text n8n node (Whisper) to transcribe the audio into usable text input.AI: Draft & Revise Post Langchain Agent n8n node, which uses the OpenAI Chat Model (with powerful system instructions) and the Window Buffer Memory n8n node. This memory is key, allowing the AI to recall previous messages and revisions, enabling an ongoing conversation.Check if Approved n8n node directs the flow to the Post Suggestion Or Ask For Approval Telegram n8n node, sending the draft back to the user.Check if Approved n8n node detects this format and passes the data to the custom Approval: Extract Final Post Text Code n8n node, which parses the JSON and extracts the five individual tweet texts.Create post with Blotato n8n node. A Wait n8n node introduces a short delay before the workflow begins polling the post status via the Check post status Blotato n8n node.Published? and In Progress?) determines if the post is live. If published, the Send a confirmation message Telegram n8n node sends the user the public link, concluding the n8n workflow execution.To set up this powerful n8n workflow template, follow these steps:
Start: Telegram Message n8n trigger and all Telegram output nodes.Speech to Text (Whisper) and the OpenAI Chat Model (GPT) nodes.Create post with Blotato n8n node, ensure the correct platform and Account ID for your X profile are selected.AI: Draft & Revise Post n8n node to tailor the tone, style, and hashtag rules to match your brand's voice.{"thread": [...]} JSON, and map the five thread elements into distinct variables for subsequent publishing nodes.Automate Microsoft Outlook email sorting using a custom local AI agent (Ollama). This advanced n8n workflow template processes, categorizes, and moves emails to specific folders.

This powerful n8n workflow automates daily ingestion of CVE and IOC threat feeds, applies custom AI logic for risk triage, and triggers incident response actions like email alerts, Google Sheets logging, and EDR isolation requests. Use this n8n template for compliant security operations.

Automate bug tracking by syncing Zendesk tickets tagged 'bug' into a centralized Google Sheets dashboard using this robust n8n workflow. Use this n8n template to streamline QA and support reporting.

Automate documentation syncing using this robust n8n workflow. Triggers on GitHub PR merges, summarizes changes with GPT-4o Mini, and notifies Slack teams instantly.

Use this powerful n8n workflow to automatically track expenses shared via LINE messages or images. Utilizes GPT-4 for data extraction, Google Sheets for logging, and robust deduplication logic.








































