ChatGPTCreativeVideoAI score · 73/100AI-assisted edit · no obvious prompt-injection riskn8n.io

Generate Short Videos from Telegram Images: n8n + GPT-4.1 + Seedance/Veo3

Input: Telegram image with caption → Process: AI Agent generates video prompt and calls Seedance API → Output: Auto-delivered generated video back to Telegram

ExperiencedStepsWorkflowPromptTip
Who
Content creators or automation engineers who want to build a Telegram image-to-video pipeline in n8n and already have Google and Wavespeed credentials
You get
Users send an image and description to a Telegram Bot and automatically receive a short video generated by Seedance/Veo3
You need
n8n · telegram · google-drive · google-sheets

Constraints

Prerequisites: n8n instance; configured credentials for Telegram Bot, Google Drive, Google Sheets, OpenAI, and Wavespeed/Seedance; replace the Google Drive folder ID and Google Sheet document ID in the workflow. Experience: experienced. Cost: Wavespeed/Seedance API charged per call, OpenAI charged per token; refer to each platform for current rates.

What they did

Author marconi published this workflow template on n8n.io, demonstrating how to receive user images and captions via Telegram Bot, use a LangChain AI Agent (OpenAI GPT-4.1-mini) to generate video prompts, call the Wavespeed/Seedance seedance-v1-pro-i2v-480p endpoint to generate short videos, and automatically return them to Telegram. The template includes a YouTube video tutorial that splits the logic into two separate workflows for demonstration.

How it went

The template has 7,526 views on n8n.io (as of collection date) and status published. The author reports the pipeline can fully automate the process from image receipt to video delivery. (author_report)

Worth knowing

1. This template uses community nodes and credential-based HTTP API calls; all credentials must be configured before running. 2. The workflow.json contains REDACTED values for Google Drive folderId, Google Sheets documentId, and multiple credential fields that users must replace. 3. The AI Agent systemMessage contains a typo 'effecgive' which is preserved as-is from the source. 4. Video generation depends on third-party Wavespeed/Seedance service; availability and pricing are subject to the platform. 5. The polling logic uses fixed 15-second intervals without exponential backoff or max retry limits shown. 6. This site has not actually executed the workflow; reproduction=not_tested.

n8n workflow template

Structure checked · Not run-tested

Use “Import from File” in n8n, or copy the JSON and paste it into the editor. Connect your own accounts, then try test data. The template is inactive by default.

Setup and test checklist

Credentials to connect

  • Wavespeed Get node: connect R credentials.
  • Wavespeed Get node: connect E credentials.
  • Wavespeed Get node: connect D credentials.
  • Wavespeed Get node: connect A credentials.
  • Wavespeed Get node: connect C credentials.
  • Wavespeed Get node: connect T credentials.
  • Wavespeed Post node: connect R credentials.
  • Wavespeed Post node: connect E credentials.
  • Wavespeed Post node: connect D credentials.
  • Wavespeed Post node: connect A credentials.
  • Wavespeed Post node: connect C credentials.
  • Wavespeed Post node: connect T credentials.
  • Google Sheets1 node: connect R credentials.
  • Google Sheets1 node: connect E credentials.
  • Google Sheets1 node: connect D credentials.
  • Google Sheets1 node: connect A credentials.
  • Google Sheets1 node: connect C credentials.
  • Google Sheets1 node: connect T credentials.
  • Telegram2 node: connect R credentials.
  • Telegram2 node: connect E credentials.
  • Telegram2 node: connect D credentials.
  • Telegram2 node: connect A credentials.
  • Telegram2 node: connect C credentials.
  • Telegram2 node: connect T credentials.

Configuration to replace

  • Source template is n8n public workflow #6976 (~22 nodes). Keep inactive after import; verify triggers, expressions and external API endpoints.
  • Sticky-note guidance is informational; replace placeholders with your own accounts, sheet schemas or channel IDs.

Test input and expected output

  • Manually run the main path once in a test workspace and confirm credentialed nodes authenticate without errors.
  • Drive one synthetic/redacted sample through and check output fields and downstream writes before enabling in production.

Template changes

  • Author credential bindings, webhookId and execution data are removed; the workflow is inactive. Nodes, connections and original prompts are preserved. Not run-tested in n8n.
  • No business-logic edits; verify keys, quotas and privacy compliance before use.

Template retrieved: 2026-10-24

Steps

  1. Configure credentials and import template

    Import template 6976 into n8n. Go to Credentials and add/configure: Telegram Bot, Google Drive, Google Sheets, OpenAI, and Wavespeed/Seedance (HTTP Header Auth). In the workflow's Google Drive and Google Sheets nodes, replace the REDACTED folderId and documentId with your actual IDs.

  2. Set up Telegram Trigger and conditional branch

    Ensure the Telegram Trigger node has webhook enabled and listens for message updates. The If node checks whether $json.message.photo exists: if absent (no image), take the false branch; if present, proceed to the AI Agent branch.

  3. Configure AI Agent for video prompt generation

    The AI Agent node uses the OpenAI Chat Model (default gpt-4.1-mini) and Simple Memory. The agent's input text is taken from the Telegram Trigger message text. The systemMessage instructs the model to generate a Seedance/Veo3-compatible video prompt and output JSON with two fields, prompt and image_url, where image_url is fetched from the last row of the attached Google Sheet tool.

    Execution prompt · Source text。AI Agent node Text input field

    ={{ $('Telegram Trigger').item.json.message.text }}

    Execution prompt · Source text。AI Agent node Options > System Message field

    =You are an assistant for video prompt and image-to-video generation.
    
    Your task is to:
    
    1. Create an effecgive Video Prompt to prompt a video generation model based on user's input
    
    2.Output only the following two values in JSON format:
    prompt: The text prompt for the video.
    image_url: The URL of the image to generate the video from. Fetch this value from the last row of the attached Google Sheet tool.
    Return only these two fields in your response, formatted as a JSON object.
  4. Upload image to Google Drive and log to Sheets

    The Telegram node downloads the user image via file_id and passes it to the Google Drive node for upload to the specified folder, with filename 'Image Upload - {{ $now }}'. The Google Sheets node appends a new row recording the current date (Date) and Google Drive share link (Image Uploaded on Google Drive).

  5. Call Wavespeed/Seedance API to generate video

    The Wavespeed Post node sends a POST request to https://api.wavespeed.ai/api/v3/bytedance/seedance-v1-pro-i2v-480p with body parameters: camera_fixed=false, duration=5, image={{ $json.message.content.image_url }}, prompt={{ $json.message.content.prompt }}, seed=-1. Uses HTTP Header Auth for authentication.

  6. Poll video generation status and send back to Telegram

    After an initial 15-second wait, the Wavespeed Get node calls GET /predictions/{id}/result to check status. The If1 node checks if data.status equals 'completed': if complete, the Telegram2 node sends the video file back to the user via sendVideo; if not complete, it enters 'Wait another 15 Seconds' and polls again.

Prompt you can copy

Setup guidance · Editorial suggestion。Hand to setup assistant to confirm inputs and permissions first

This block is the prompt. Ads are never placed here.

You are assisting with reproducing n8n template 6976: Telegram image-to-video workflow. Please first confirm the following are ready:
1. Access to an n8n instance;
2. Telegram Bot Token, Google OAuth credentials, OpenAI API Key, Wavespeed/Seedance API Key;
3. Google Drive target folder ID and Google Sheets document ID.
Once confirmed, proceed to import the template, replace placeholders, configure credentials, then activate the workflow and test by sending an image via Telegram.

This prompt is a setup starter for reproduction assistance, not a node execution instruction.

Source

Generate videos from images with Telegram, GPT-4.1 & Seedance/Veo3 integration · marconi · n8n.io · 2025-08-04

Comments & feedback

Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.

Loading…

    Related