Skip to main content
Community template Uses AIContent CreationMultimodal AI

Create viral ads with AI: NanoBanana & publish on socials via upload-post - n8n workflow template

This workflow is designed for marketers, content creators, and small businesses who want to automate the creation of engaging social media ads without spending hours on manual design, video editing, or publishing. --- Manually creating ads for multiple platforms is…

Template by Dr. Firas · Original listing (opens in a new tab)

Starts on
App event
Nodes
35 nodes
Level
Advanced
Setup
About 38 min

Workflow preview

How this workflow runs

  1. 1

    Trigger: Receive Idea via Telegram

    Starts the workflow when a message is received by the Telegram bot.

  2. 2

    Structured Output Parser

    Forces the AI output into a structured JSON schema for reliable downstream use.

  3. 3

    Think

    Gives the AI agent a 'think' scratchpad step for intermediate reasoning.

  4. 4

    OpenAI Chat Model

    Provides the OpenAI chat model (GPT) that powers the AI reasoning in this workflow.

  5. 5

    Telegram: Get Image File

    Sends or receives messages through a Telegram bot.

  6. 6

    Google Drive: Upload Image

    Uploads, downloads, or manages files in Google Drive.

  7. 7

    Parse Idea Into Prompts

    Runs custom JavaScript to transform or manipulate the data flowing through the workflow.

  8. 8

    Generate Image Prompt

    The AI agent that orchestrates the workflow — it reasons over the input and decides which tools to call.

  9. 9

    NanoBanana: Create Image

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  10. 10

    Wait for Image Edit

    Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).

Creator's notes and setup

Written by Dr. Firas for the original listing.

Create viral Ads with NanoBanana & Seedance, publish on socials via upload-post

Who is this for?

This workflow is designed for marketers, content creators, and small businesses who want to automate the creation of engaging social media ads without spending hours on manual design, video editing, or publishing.


What problem is this workflow solving? / Use case

Manually creating ads for multiple platforms is time-consuming and repetitive. You need to generate visuals, edit videos, add music, and then publish them across social channels.
This workflow automates the end-to-end ad production pipeline, saving time while ensuring consistent, professional-quality output.


What this workflow does

  • Receives ad ideas via Telegram.
  • Uses NanoBanana to generate and edit realistic product images.
  • Transforms images into engaging short videos with Seedance.
  • Generates background music with Suno.
  • Merges video and audio into a polished final ad.
  • Reads brand info and generates ad copy with AI (OpenAI).
  • Publishes ads to Instagram, TikTok, YouTube, Facebook, and X via upload-post.
  • Stores media and campaign data in Google Drive and Google Sheets for tracking.
  • Sends back notifications and previews via Telegram.

Setup

  1. Connect your accounts:

    • Telegram
    • Google Drive
    • Google Sheets
    • OpenAI API
    • NanoBanana API
    • Seedance API
    • Suno API
    • Upload-post
  2. Prepare Google Sheets:

    • Add a sheet for brand details (name, category, features, website).
    • Add another sheet for video logs (status, links, captions).
  3. Configure upload-post:

    • Ensure your social accounts (TikTok, Instagram, YouTube, Facebook, X) are linked to upload-post.

How to customize this workflow to your needs

  • Prompts → Adjust the image/video/music prompts to better reflect your brand’s tone and products.
  • Ad copy → Modify the AI prompt inside the Ads Copywriter Generator to control wording, style, and structure.
  • Publishing scope → Choose only the platforms you want (TikTok, Instagram, etc.) inside the upload-post node.
  • Storage → Update Google Drive folder IDs and Google Sheets document IDs to match your own workspace.

With this template, you get a fully automated viral ad production system powered by AI visuals, video rendering, and auto-publishing across social platforms. Perfect for scaling your content strategy while saving time.

Documentation: Notion Guide

Demo Video

Watch the full tutorial here: [YouTube Demo](

n8n nodes used (13 types)

What every node does (35)
  • Telegram: Get Image File (Telegram)Sends or receives messages through a Telegram bot.
  • Trigger: Receive Idea via Telegram (Telegram Trigger)Starts the workflow when a message is received by the Telegram bot.
  • Google Drive: Upload Image (Google Drive)Uploads, downloads, or manages files in Google Drive.
  • Parse Idea Into Prompts (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Generate Image Prompt (Agent)The AI agent that orchestrates the workflow — it reasons over the input and decides which tools to call.
  • Structured Output Parser (Output Parser Structured)Forces the AI output into a structured JSON schema for reliable downstream use.
  • Think (Tool Think)Gives the AI agent a 'think' scratchpad step for intermediate reasoning.
  • OpenAI Chat Model (LLM Chat Open AI)Provides the OpenAI chat model (GPT) that powers the AI reasoning in this workflow.
  • NanoBanana: Create Image (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Wait for Image Edit (Wait)Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
  • Download Edited Image (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Rewrite Caption (TikTok/Instagram) (Open AI)Calls the OpenAI API for chat, image, or audio generation.
  • Upload Post (Upload Post)Uploads and publishes a post to a social platform.
  • Seedance: Generate Video from Image (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Wait for Rendering (Wait)Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
  • Download Video from Seedance (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Set: Video URL (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Wait: Music Rendering (Wait)Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
  • Wait: Music Rendering1 (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Download Music File (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Set: Audio URL (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Merge Audio + Video (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Check Merge Status (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Wait: Merge Process (Wait)Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
  • Download Final Video (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Upload Final Video to Google Drive (Google Drive)Uploads, downloads, or manages files in Google Drive.
  • Read Brand Settings (Google Sheets)Reads from or writes rows to a Google Sheets spreadsheet.
  • Extract Brand Info (Code)Runs custom JavaScript to transform or manipulate the data flowing through the workflow.
  • Message a model (Open AI)Calls the OpenAI API for chat, image, or audio generation.
  • Save Ad Data to Google Sheets (Google Sheets)Reads from or writes rows to a Google Sheets spreadsheet.
  • Send Video URL via Telegram (Telegram)Sends or receives messages through a Telegram bot.
  • Send a video (Telegram)Sends or receives messages through a Telegram bot.
  • Post Video on Social Media (FB, TikTok, YT) (Upload Post)Uploads and publishes a post to a social platform.
  • Save Publishing Status to Google Sheets (Google Sheets)Reads from or writes rows to a Google Sheets spreadsheet.
  • Telegram: Send notification (Telegram)Sends or receives messages through a Telegram bot.

FAQ

Create viral ads with AI: NanoBanana & publish on socials via upload-post: questions

How do I import the "Create viral ads with AI: NanoBanana & publish on socials via upload-post" workflow into n8n?

Copy the workflow JSON from this page, open the n8n editor, click on an empty canvas and paste with Ctrl+V (Cmd+V on macOS). You can also download the .json file and choose Import from File in the workflow menu. Save the workflow, then attach credentials before activating it.

Which nodes and credentials does "Create viral ads with AI: NanoBanana & publish on socials via upload-post" use?

It uses Google Sheets, HTTP Request, Set, Telegram, Telegram Trigger and Google Drive, plus 7 more. Any node that connects to an external service needs your own credential — open each node after import and select or create one. Trigger, logic and transformation nodes usually need no credentials.

Can it run on n8n Cloud and on self-hosted n8n?

The workflow format is the same on both. If a node appears as unknown or outdated after import, update n8n to a recent version or, on self-hosted instances, install the required community node package. Features such as $env access are available on self-hosted instances only.

How can I customise "Create viral ads with AI: NanoBanana & publish on socials via upload-post"?

Start by changing the trigger (schedule, webhook or app event) and the destination nodes to match your stack — it is listed under Content Creation, Multimodal AI. Edit prompts, field mappings and filters in the relevant nodes, use expressions like {{ $json.field }} to map data, and test with a manual execution before activating.

n8n is a trademark of n8n GmbH. AltFTool is not affiliated with, endorsed by or sponsored by n8n. Community templates are credited to their creators and link to the original listing; AltFTool originals are written and tested by the AltFTool team.

About this page

Free n8n workflow templates to copy and import

The AltFTool n8n library collects free n8n workflow templates for AI agents, Gmail, Google Sheets, Telegram and other apps. Each workflow page shows a preview, the list of nodes and the credentials it needs, and lets you copy or download the JSON to import into your own n8n.

Search the templates by app or task, or browse them by category and by node. The Workflow Inspector checks any workflow JSON for triggers, credentials and hardcoded keys before you share it, and the expressions cheat sheet gives copy-paste n8n expression examples. AltFTool is not affiliated with n8n.

People also search for

  • n8n workflow templates
  • n8n templates
  • n8n automation examples
  • n8n json workflows
  • n8n nodes
  • free n8n workflow templates
  • n8n ai agent template
  • n8n expressions cheat sheet