PromptCraft AI

Intermédiaire

Ceci est unDesign, AIworkflow d'automatisation du domainecontenant 12 nœuds.Utilise principalement des nœuds comme Telegram, GoogleDrive, HttpRequest, GoogleSheets, Agent, combinant la technologie d'intelligence artificielle pour une automatisation intelligente. Générer des images IA améliorées via Telegram avec DALL-E et GPT

Prérequis
  • Token Bot Telegram
  • Informations d'identification Google Drive API
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
  • Informations d'identification Google Sheets API
  • Clé API OpenAI
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": "EYffbq7nZzy74ND8",
  "meta": {
    "instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc",
    "templateCredsSetupCompleted": true
  },
  "name": "PromptCraft AI",
  "tags": [],
  "nodes": [
    {
      "id": "d9cee081-13cd-4ed4-843c-84e3e4e6c3d5",
      "name": "Image Prompt",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -720,
        -240
      ],
      "parameters": {
        "text": "={{ $json.message.text }}",
        "options": {
          "systemMessage": "=Overview\nYou are an expert image prompt engineer. "
        },
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "9d2a73d3-fc71-47e4-94c5-1c79dd6b3a30",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -240,
        140
      ],
      "parameters": {
        "name": "=ai image",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultUrl": "https://drive.google.com/drive",
          "cachedResultName": "/ (Root folder)"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "IPz4dCJVFC8uaoHw",
          "name": "Google Drive account 2"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "a4ac1967-64d1-455c-abef-bc3804d0cad4",
      "name": "Image Log",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        20,
        140
      ],
      "parameters": {
        "columns": {
          "value": {
            "Title": "={{ $json.name }}",
            "Heygen video url": "={{ $json.webViewLink }}"
          },
          "schema": [
            {
              "id": "Heygen video url",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Heygen video url",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Title",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Title",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "video  caption",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "video  caption",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JqOTd49heNBdmrf5hSwxI66X724tspAmSjzWoA6-EU0/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1oA-qdMkm1dUh0TpPAQ3KVeijGmDs0PsfSPpZ9bXvP6A",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1oA-qdMkm1dUh0TpPAQ3KVeijGmDs0PsfSPpZ9bXvP6A/edit?usp=drivesdk",
          "cachedResultName": "Avatar video"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "vL25dYTf9oT1CSvl",
          "name": "Google Sheets account 2"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "67ae3f89-2d7d-47c3-a55d-251a47a08072",
      "name": "Note adhésive2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -820,
        60
      ],
      "parameters": {
        "color": 6,
        "height": 180,
        "content": "## Model"
      },
      "typeVersion": 1
    },
    {
      "id": "230b29c6-ae1b-4cd0-9a35-dce2a0b15c05",
      "name": "Note adhésive7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        -380
      ],
      "parameters": {
        "color": 6,
        "width": 540,
        "height": 420,
        "content": "# Send Image"
      },
      "typeVersion": 1
    },
    {
      "id": "b9bcd205-679b-4cb0-a6a5-cf2bd8b58887",
      "name": "Note adhésive6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        40
      ],
      "parameters": {
        "color": 2,
        "width": 540,
        "height": 240,
        "content": "# Write to Drive & Sheets"
      },
      "typeVersion": 1
    },
    {
      "id": "fd75b2ba-57f8-4ce3-8d39-915a96f7cef8",
      "name": "Envoyer une photo",
      "type": "n8n-nodes-base.telegram",
      "position": [
        160,
        -240
      ],
      "webhookId": "8fcbda9c-8396-41f7-8f2d-39e4ae4337c7",
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.from.id }}",
        "operation": "sendPhoto",
        "binaryData": true,
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "W7s4K928CwuY1sKA",
          "name": "Telegram account 2"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "91e34b1e-4d15-482f-bb07-86c81c32b478",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -920,
        -240
      ],
      "webhookId": "a9997053-40e2-4d1d-9abc-f2e5b6582096",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "W7s4K928CwuY1sKA",
          "name": "Telegram account 2"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "14caf60f-2813-4e39-8960-0dc85adce28d",
      "name": "Créer une image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -420,
        -240
      ],
      "parameters": {
        "url": "https://api.openai.com/v1/images/generations",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "prompt",
              "value": "={{ $json.output }}"
            },
            {
              "name": "size",
              "value": "1024x1024"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer <token>"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "f63c6038-a6dd-41c6-9db1-c42e6f21636a",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -720,
        100
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "AAQM78g30SkuHYxB",
          "name": "OpenAi success"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "2959d03f-5f3f-4009-b09e-6700fc1ef3d9",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -200,
        -240
      ],
      "parameters": {
        "url": "={{ $json.data[0].url }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "9573f5b8-9c0b-423a-81f9-7c0689c40c72",
      "name": "Note adhésive",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -360
      ],
      "parameters": {
        "content": "## Loom Link Demo\n**https://www.loom.com/share/9d4743b32c204b189a237d8b9446f45d?sid=af5f3a1d-fb78-4bba-ac01-f4f29ac7f14a**"
      },
      "typeVersion": 1
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "c6f12f08-d7e1-42a4-8be8-73f1c6cbc2b2",
  "connections": {
    "14caf60f-2813-4e39-8960-0dc85adce28d": {
      "main": [
        [
          {
            "node": "2959d03f-5f3f-4009-b09e-6700fc1ef3d9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9d2a73d3-fc71-47e4-94c5-1c79dd6b3a30": {
      "main": [
        [
          {
            "node": "a4ac1967-64d1-455c-abef-bc3804d0cad4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2959d03f-5f3f-4009-b09e-6700fc1ef3d9": {
      "main": [
        [
          {
            "node": "9d2a73d3-fc71-47e4-94c5-1c79dd6b3a30",
            "type": "main",
            "index": 0
          },
          {
            "node": "fd75b2ba-57f8-4ce3-8d39-915a96f7cef8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d9cee081-13cd-4ed4-843c-84e3e4e6c3d5": {
      "main": [
        [
          {
            "node": "14caf60f-2813-4e39-8960-0dc85adce28d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "91e34b1e-4d15-482f-bb07-86c81c32b478": {
      "main": [
        [
          {
            "node": "d9cee081-13cd-4ed4-843c-84e3e4e6c3d5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f63c6038-a6dd-41c6-9db1-c42e6f21636a": {
      "ai_languageModel": [
        [
          {
            "node": "d9cee081-13cd-4ed4-843c-84e3e4e6c3d5",
            "type": "ai_languageModel",
            "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 - Design, Intelligence Artificielle

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œuds12
Catégorie2
Types de nœuds8
Description de la difficulté

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

Auteur
David Olusola

David Olusola

@dae221

I love building smart, efficient automations with n8n that help businesses save time and scale effortlessly. Turning complex workflows into simple solutions is where I have the most fun

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34