🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Telegram + OpenAI: Reel scripts ready to film fast

Lisa Granqvist Partner Workflow Automation Expert

Reel ideas show up at the worst times. You jot them down in Notes, DM yourself, lose the thread, then stare at a blank page when it’s finally time to film.

Social media managers feel it when they need five new concepts before lunch. Content creators feel it when momentum disappears after one missed post. And if you run a small brand, this Telegram OpenAI scripts automation stops “idea capture” from turning into a weekly guilt ritual.

This workflow lets you send a text or voice note to Telegram and get back hooks, a full 30–60 second Reel script, a caption, and visual direction. You’ll also learn how to log the best outputs into Google Sheets so you build a reusable content bank.

How This Automation Works

Here’s the complete workflow you’ll be setting up:

n8n Workflow Template: Telegram + OpenAI: Reel scripts ready to film fast

Why This Matters: Turning raw ideas into filmable scripts

The hard part of Reels usually isn’t filming. It’s getting from a messy thought (“something about saving time…”) to a tight hook, a clear structure, and visuals you can actually shoot today. When you do it manually, you bounce between notes, prompts, rewrites, and half-finished captions. Then you second-guess everything. By the time you have something usable, the idea is cold, your energy is gone, and you still don’t have a repeatable system for tomorrow’s post.

It adds up fast. Here’s where it breaks down in real life.

  • You waste about 30 minutes per idea just trying to find a “good” opening line that stops the scroll.
  • Voice-note ideas are the easiest to capture, but they often die because transcribing and cleaning them up is annoying.
  • Captions end up repeating the video, which weakens engagement and makes the post feel flat.
  • Without a content bank, you keep reinventing the wheel and you can’t scale beyond your best week.

What You’ll Build: A Telegram-to-Reel script generator

This workflow turns Telegram into your “always available” creative intake. You message your bot with a rough idea (text or voice), and the automation routes it correctly. Text goes straight into an AI content agent. Voice notes get fetched from Telegram, transcribed by OpenAI, and then treated like text input. From there, OpenAI generates three hook options, a complete Reel script (hook, subtitle, body, CTA), a caption that supports the video instead of copying it, and a specific visual concept with direction you can follow while filming. Finally, the result is posted back into the same Telegram chat so it’s ready when you are.

If you enable the optional Google Sheets step, every finished scenario can be logged automatically. That’s how this becomes a system: your best ideas stop disappearing, and your library grows quietly in the background.

What You’re Building

Expected Results

Say you want four Reels planned for the week. Manually, a realistic pace is about 45 minutes per Reel to brainstorm hooks, outline the talking points, write a caption, and think through visuals, so that’s roughly 3 hours. With this workflow, you can drop four quick Telegram messages (or voice notes) in about 10 minutes total, then wait a few minutes for responses. You still choose what to film, but you get the “blank page” part out of the way.

Before You Start

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Telegram to collect ideas via text or voice.
  • OpenAI for transcription and script generation.
  • OpenAI API key (get it from your OpenAI API dashboard).

Skill level: Beginner. You’ll mostly connect accounts, paste API keys, and test a few example messages.

Want someone to build this for you? Talk to an automation expert (free 15-minute consultation).

Step by Step

A Telegram message kicks things off. The workflow listens for new messages sent to your Telegram bot, which means you can capture ideas from your phone in seconds.

The input gets routed by type. If it’s text, n8n maps your message into a clean “idea” field. If it’s a voice note, the workflow fetches the audio file and sends it to OpenAI for transcription, so you end up with text either way.

OpenAI turns that text into a Reel scenario. A memory buffer keeps conversational context, which helps when you refine an idea over a few messages. Then the content agent generates hook variants, a script structure, a caption, and visual concepts that are actually actionable.

The finished output comes back to Telegram (and optionally Sheets). You get the full scenario in your chat so you can copy it into your filming notes. If Google Sheets logging is enabled, the workflow also writes a new row so your best concepts don’t get buried in old chats.

You can easily modify the prompt and formatting to match your brand voice, or switch the logging from Google Sheets to another tool based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Telegram Trigger

Set up the workflow to listen for incoming Telegram messages that will start the scenario generation.

  1. Add and open Telegram Message Trigger.
  2. Credential Required: Connect your telegramApi credentials.
  3. Set Updates to message.

Step 2: Route Text vs Voice Input

Route messages to the correct path depending on whether a text message or a voice note was received.

  1. Open Route Input Type and review the three outputs: Audio, Text, and Error.
  2. Confirm the Audio condition uses {{ $json.message.voice.file_id }} with exists.
  3. Confirm the Text condition uses {{ $json.message.text || "" }} with exists.
  4. Leave the Error output as a fallback path for invalid input.

Route Input Type outputs to Fetch Voice File, Map User Text, and Define Error Text based on the message type.

Step 3: Map Text and Transcribe Voice Input

Normalize the incoming content so it can be sent to the AI generator regardless of whether it came from text or audio.

  1. In Map User Text, set the text value to {{ $json.message.text }}.
  2. In Fetch Voice File, set Resource to file and File ID to {{ $json.message.voice.file_id }}.
  3. Credential Required: Connect your telegramApi credentials in Fetch Voice File.
  4. In Transcribe Audio to Text, set Resource to audio and Operation to transcribe.
  5. Credential Required: Connect your openAiApi credentials in Transcribe Audio to Text.

The audio path runs Fetch Voice FileTranscribe Audio to TextCreate Reel Scenario, while the text path runs Map User TextCreate Reel Scenario.

Step 4: Set Up AI Scenario Generation

Configure the AI agent, memory, and language model that generate the Reel scenario from user input.

  1. Open Create Reel Scenario and set Text to {{ $json.text }}.
  2. In Create Reel Scenario, keep the System Message as provided to control tone and output format.
  3. Open OpenAI Chat Model and set Model to gpt-4o.
  4. Credential Required: Connect your openAiApi credentials in OpenAI Chat Model.
  5. Open Chat Context Buffer and set Session Key to {{ $('Telegram Message Trigger').item.json.message.chat.id }}.
  6. Set Context Window Length to 10 in Chat Context Buffer.

Chat Context Buffer is an AI memory sub-node. Add credentials to the parent nodes (e.g., OpenAI Chat Model), not to the memory itself.

Optional: Log to Sheets is a disabled AI tool node. If you enable it, Credential Required: Connect your googleSheetsOAuth2Api credentials and set Document ID and Sheet Name before running.

Step 5: Configure Output to Telegram

Send the generated scenario back to the user and prepare an error message for fallback cases.

  1. Open Post Scenario to Telegram and set Text to {{ $json.output }}.
  2. Set Chat ID to {{ $('Telegram Message Trigger').item.json.message.chat.id }} in Post Scenario to Telegram.
  3. Credential Required: Connect your telegramApi credentials in Post Scenario to Telegram.
  4. Open Define Error Text and set Error to An error has occurred.
  5. Open Post Error to Telegram and set Text to {{ $json.output }} and Chat ID to {{ $('Telegram Message Trigger').item.json.message.chat.id }}.
  6. Credential Required: Connect your telegramApi credentials in Post Error to Telegram.

Define Error TextPost Error to Telegram handles unexpected input from Route Input Type.

Step 6: Test and Activate Your Workflow

Validate the full flow with both text and voice messages, then enable the workflow for production use.

  1. Click Execute Workflow and send a Telegram text message to the bot to trigger Telegram Message Trigger.
  2. Verify that the text path runs Map User TextCreate Reel ScenarioPost Scenario to Telegram and returns a formatted script.
  3. Send a Telegram voice note and verify the audio path runs Fetch Voice FileTranscribe Audio to TextCreate Reel ScenarioPost Scenario to Telegram.
  4. If an error is sent, confirm Define Error TextPost Error to Telegram responds correctly.
  5. When everything works, toggle the workflow to Active to run continuously.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Troubleshooting Tips

  • Telegram credentials can fail if your bot token is wrong or privacy settings block messages. Check BotFather settings (especially /setprivacy) and confirm the token inside your Telegram Trigger and Telegram send nodes.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.

Quick Answers

What’s the setup time for this Telegram OpenAI scripts automation?

About 30 minutes if your Telegram bot and OpenAI key are ready.

Is coding required for this Reel script automation?

No. You’ll connect Telegram and OpenAI, then paste in credentials. Most of the work is testing with a few real messages.

Is n8n free to use for this Telegram OpenAI scripts workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI API costs, which are usually a few cents per script depending on the model and how long your prompts are.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I modify this Telegram OpenAI scripts workflow for different use cases?

Yes, and you probably should. The simplest change is updating the “Create Reel Scenario” agent instructions so it writes in your tone, includes your offer, and uses your preferred CTA style. You can also swap the Google Sheets logging step for Airtable/Notion, or add a second Telegram message that sends only the hooks for quick scanning. If you want separate outputs for different clients, add a routing rule based on a keyword at the start of the message (like “CLIENT: ACME”).

Why is my Telegram connection failing in this workflow?

Usually it’s the bot token or bot privacy settings. Regenerate the token in BotFather if you’re not sure, then update every Telegram node in n8n that uses credentials. Also check /setprivacy in BotFather; if your bot can’t read messages, the trigger won’t fire. Finally, confirm you’re messaging the bot (not a personal account) and that the workflow is activated.

What volume can this Telegram OpenAI scripts workflow process?

On a typical n8n Cloud plan, it can comfortably handle dozens of ideas per day for a small team, and self-hosting can go higher depending on your server. The practical limit is usually OpenAI rate limits and how many concurrent voice transcriptions you run.

Is this Telegram OpenAI scripts automation better than using Zapier or Make?

Often, yes. n8n is better when you want branching logic (text vs voice), memory/context, and optional logging without paying per tiny step, which adds up fast in other tools. It also gives you a self-hosted path if you outgrow monthly execution limits. Zapier or Make can still be fine if you only want “Telegram message in, OpenAI message out” with no transcription and no content bank. If you’re torn, Talk to an automation expert and we’ll help you pick the simplest setup that won’t box you in later.

Once this is running, your best ideas stop leaking away into screenshots and half-notes. The workflow handles the messy middle so you can focus on filming and publishing.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal