Workflow de Telegram vers Nano Banana

Intermédiaire

Ceci est unContent Creation, Multimodal AIworkflow d'automatisation du domainecontenant 15 nœuds.Utilise principalement des nœuds comme If, Wait, Telegram, GoogleDrive, HttpRequest. Amélioration des photos immobilières en utilisant Google Nano Banana AI via un bot Telegram

Prérequis
  • Token Bot Telegram
  • Informations d'identification Google Drive API
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "yo4uYVB632LSnvSU",
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "name": "Telegram to Nano Banana Workflow",
  "tags": [],
  "nodes": [
    {
      "id": "7c24c0ee-5f38-4bba-92e6-d1d01e436581",
      "name": "Requête POST Nano Banana",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        336,
        16
      ],
      "parameters": {
        "url": "https://api.wavespeed.ai/api/v3/google/nano-banana/edit",
        "method": "POST",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "jsonBody": "={\n  \"enable_base64_output\": false,\n  \"enable_sync_mode\": false,\n  \"images\": [\n    \"{{ $json.webContentLink }}\"\n  ],\n  \"output_format\": \"jpeg\",\n  \"prompt\": \"Enhance this apartment photo to make it appealing for real-estate listing. Brighten the overall lighting and create a warm, inviting atmosphere. Improve color balance, contrast, and sharpness to highlight the space. Tidy up and declutter visible items (e.g., remove small messes, smooth out wrinkles on furniture, clear counters). Add natural daylight tones through the windows and enhance shadows for depth. Do not alter permanent fixtures such as flooring, walls, windows, doors, or built-in cabinetry. Keep the original layout intact but ensure the space looks clean, modern, and move-in ready.\"\n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "1f3805fc-c2d2-4b48-a340-7dafa0b0379f",
      "name": "Attendre 15 secondes",
      "type": "n8n-nodes-base.wait",
      "position": [
        608,
        0
      ],
      "parameters": {
        "amount": 15
      },
      "typeVersion": 1.1
    },
    {
      "id": "50fb891b-0525-4df6-9dfd-37b1e6eddf36",
      "name": "Obtenir le résultat du nœud Nano Banana",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        864,
        0
      ],
      "parameters": {
        "url": "=https://api.wavespeed.ai/api/v3/predictions/{{ $json.data.id }}/result",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "25f5c3eb-ae6b-4df1-8c1e-7e555e2869f3",
      "name": "Si",
      "type": "n8n-nodes-base.if",
      "position": [
        1072,
        0
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "b84517df-a71f-4e28-b744-35bb1e55b85f",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.data.status }}",
              "rightValue": "completed"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "6969741a-716f-4db3-98ac-2c5fefba0a69",
      "name": "Attendre à nouveau 15 secondes",
      "type": "n8n-nodes-base.wait",
      "position": [
        1136,
        176
      ],
      "parameters": {
        "amount": 15
      },
      "typeVersion": 1.1
    },
    {
      "id": "a9c30d3e-a5ee-4d4c-bea2-dda831661fb1",
      "name": "Note adhésive",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1360,
        -288
      ],
      "parameters": {
        "color": 3,
        "width": 304,
        "height": 800,
        "content": "Get Image and Upload"
      },
      "typeVersion": 1
    },
    {
      "id": "b1005b6a-4a02-4734-989f-892ac418fa8a",
      "name": "Note adhésive1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -288
      ],
      "parameters": {
        "color": 4,
        "width": 784,
        "height": 800,
        "content": "Get Results from Nano Banana"
      },
      "typeVersion": 1
    },
    {
      "id": "c5ec9b6b-812d-4baf-ad63-d9e43035edbb",
      "name": "Note adhésive2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        -288
      ],
      "parameters": {
        "color": 5,
        "height": 800,
        "content": "Telegram Trigger"
      },
      "typeVersion": 1
    },
    {
      "id": "63fd933d-4aa0-466d-8a56-6eba6613ed3f",
      "name": "Note adhésive3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -288
      ],
      "parameters": {
        "width": 384,
        "height": 800,
        "content": "Download from Telegram"
      },
      "typeVersion": 1
    },
    {
      "id": "5fd8202f-6bbe-4568-a4ac-7c5153b51b1c",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -368,
        16
      ],
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "f97b1dbe-7641-4041-b481-d6437a535c71",
      "name": "Obtenir un fichier",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -128,
        16
      ],
      "parameters": {
        "fileId": "={{ $json.message.photo[3].file_id }}",
        "resource": "file",
        "additionalFields": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "b191aac9-9a9b-407f-a02e-d448fed08e4d",
      "name": "Téléverser un fichier",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        80,
        16
      ],
      "parameters": {
        "name": "Image",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "478dedf1-4436-424f-a3bf-2b36853fc61a",
      "name": "Note adhésive4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        -288
      ],
      "parameters": {
        "width": 336,
        "height": 800,
        "content": "POST Request to Nano Banana"
      },
      "typeVersion": 1
    },
    {
      "id": "a2acb7ab-2d20-4d05-879b-e6c432c4569c",
      "name": "Envoyer un message photo",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1424,
        -16
      ],
      "parameters": {
        "file": "={{ $json.data.outputs[0] }}",
        "chatId": "={{ $('Telegram Trigger').item.json.message.from.id }}",
        "operation": "sendPhoto",
        "additionalFields": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "3d2e0dd0-6fd0-4706-bb0c-1d8716294f23",
      "name": "Note adhésive5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1248,
        -304
      ],
      "parameters": {
        "width": 720,
        "height": 1072,
        "content": "🤖 Telegram Image Editor with Nano Banana\n\nSend an image to your Telegram bot, and this workflow will automatically enhance it with Google’s Nano Banana (via Wavespeed API), then return the polished version back to the same chat—seamlessly.\n\n👉 Watch step-by-step video tutorials of workflows like these on www.youtube.com/@automatewithmarc\n\nWhat it does\n\nListens on Telegram for incoming photo messages\n\nDownloads the file sent by the user\n\nUploads it to Google Drive (temporary storage for processing)\n\nSends the image to Nano Banana API with a real-estate style cleanup + enhancement prompt\n\nPolls until the job is complete (handles async processing)\n\nReturns the edited image back to the same Telegram chat\n\nPerfect for\n\nReal-estate agents previewing polished property photos instantly\n\nSocial media managers editing on-the-fly from Telegram\n\nAnyone who wants “send → cleaned → returned” image flow without manual edits\n\nApps & Services\n\nTelegram Bot API (Trigger + Send/Receive files)\n\nGoogle Drive (Temporary file storage)\n\nWavespeed / Google Nano Banana (AI-powered image editing)\n\nSetup\n\nConnect your Telegram Bot API token in n8n.\n\nAdd your Wavespeed API key for Nano Banana.\n\nLink your Google Drive account (temporary storage).\n\nDeploy the workflow and send a test photo to your Telegram bot.\n\nCustomization\n\nAdjust the Nano Banana prompt for different styles (e.g., ecommerce cleanup, portrait retouching, color correction).\n\nReplace Google Drive with another storage service if preferred.\n\nAdd logging to Google Sheets or Airtable to track edits."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a4042770-302d-44b7-8d75-3178a190b8c9",
  "connections": {
    "25f5c3eb-ae6b-4df1-8c1e-7e555e2869f3": {
      "main": [
        [
          {
            "node": "a2acb7ab-2d20-4d05-879b-e6c432c4569c",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "6969741a-716f-4db3-98ac-2c5fefba0a69",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f97b1dbe-7641-4041-b481-d6437a535c71": {
      "main": [
        [
          {
            "node": "b191aac9-9a9b-407f-a02e-d448fed08e4d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "b191aac9-9a9b-407f-a02e-d448fed08e4d": {
      "main": [
        [
          {
            "node": "7c24c0ee-5f38-4bba-92e6-d1d01e436581",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1f3805fc-c2d2-4b48-a340-7dafa0b0379f": {
      "main": [
        [
          {
            "node": "50fb891b-0525-4df6-9dfd-37b1e6eddf36",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5fd8202f-6bbe-4568-a4ac-7c5153b51b1c": {
      "main": [
        [
          {
            "node": "f97b1dbe-7641-4041-b481-d6437a535c71",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6969741a-716f-4db3-98ac-2c5fefba0a69": {
      "main": [
        [
          {
            "node": "50fb891b-0525-4df6-9dfd-37b1e6eddf36",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7c24c0ee-5f38-4bba-92e6-d1d01e436581": {
      "main": [
        [
          {
            "node": "1f3805fc-c2d2-4b48-a340-7dafa0b0379f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "50fb891b-0525-4df6-9dfd-37b1e6eddf36": {
      "main": [
        [
          {
            "node": "25f5c3eb-ae6b-4df1-8c1e-7e555e2869f3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Création de contenu, IA Multimodale

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds15
Catégorie2
Types de nœuds7
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur
Automate With Marc

Automate With Marc

@marconi

Automating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34