Créez des propositions commerciales sur mesure en quelques clics, à partir des informations client et produit, puis envoyez-les par email automatiquement.
Créez des propositions commerciales sur mesure en quelques clics, à partir des informations client et produit, puis envoyez-les par email automatiquement.
{
"name": "Image generator",
"nodes": [
{
"parameters": {
"operation": "toBinary",
"sourceProperty": "data[0].b64_json",
"options": {}
},
"type": "n8n-nodes-base.convertToFile",
"typeVersion": 1.1,
"position": [
-180,
-240
],
"id": "c99dc6a0-d93b-410f-8647-d38281fe50e7",
"name": "Convert to File"
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.imagePrompt }}",
"options": {
"systemMessage": "=OverviewnYou are an expert image prompt engineer. Your role is to take a simple image topic or concept and expand it into a fully detailed image prompt that can be fed into a text-to-image generation model.nPrompt InstructionsnYour detailed prompt must clearly describe the following:nnMain Subject: What is the primary focus of the image?nBackground/Setting: What is happening in the background or environment?nStyle: Specify the visual style (e.g., hyper-realistic, digital painting, watercolor, anime, 3D render, etc.).nMood/Lighting: Describe the emotional tone and lighting (e.g., soft warm sunset, moody storm clouds, futuristic neon lights).nAdditional Details: Mention any specific objects, clothing, colors, textures, or notable features that should appear.nnOutput FormatnnBegin with a clean, natural-sounding descriptive prompt that integrates all of the above elements seamlessly.nThe description should sound like it's written specifically for an AI to generate a professional, high-quality image.nAvoid repeating the original topic verbatim — instead, reframe it into a vivid scene or visual concept.nUse rich, vivid language and imagery.n## Examplen- Input: "A futuristic city"nA vast metropolis of tomorrow stretching toward the horizon, where crystalline skyscrapers of impossible heights pierce low-hanging clouds. Aerial vehicles with luminous trails navigate between buildings connected by transparent skyways. The cityscape pulses with holographic billboards casting prismatic light onto rain-slicked streets below. Crowds move through plazas adorned with floating gardens and quantum fountains. Photorealistic digital art with cinematic composition, dramatic depth of field, volumetric fog diffusing the glow of countless azure and magenta lights. Ultra-detailed architecture featuring carbon-nanotube structures and self-illuminating glass. Ray-traced reflections on every surface, golden hour atmosphere with artificial stars visible through gaps in the urban canopy."
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.9,
"position": [
-720,
-240
],
"id": "d9cee081-13cd-4ed4-843c-84e3e4e6c3d5",
"name": "Image Prompt"
},
{
"parameters": {
"name": "={{ $('When Executed by Another Workflow').item.json.imageTitle }}.png",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive"
},
"folderId": {
"__rl": true,
"value": "1TgQu-5hlOzO1X28TMMzLxfhunhPSUIqy",
"mode": "list",
"cachedResultName": "AI Image Generation",
"cachedResultUrl": "https://drive.google.com/drive/folders/1TgQu-5hlOzO1X28TMMzLxfhunhPSUIqy"
},
"options": {}
},
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 3,
"position": [
-240,
140
],
"id": "9d2a73d3-fc71-47e4-94c5-1c79dd6b3a30",
"name": "Google Drive",
"credentials": {
"googleDriveOAuth2Api": {
"id": "IPz4dCJVFC8uaoHw",
"name": "Google Drive account 2"
}
}
},
{
"parameters": {
"operation": "append",
"documentId": {
"__rl": true,
"value": "1JqOTd49heNBdmrf5hSwxI66X724tspAmSjzWoA6-EU0",
"mode": "list",
"cachedResultName": "Marketing Team Log",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JqOTd49heNBdmrf5hSwxI66X724tspAmSjzWoA6-EU0/edit?usp=drivesdk"
},
"sheetName": {
"__rl": true,
"value": "gid=0",
"mode": "list",
"cachedResultName": "Sheet1",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1JqOTd49heNBdmrf5hSwxI66X724tspAmSjzWoA6-EU0/edit#gid=0"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"Request": "={{ $('When Executed by Another Workflow').item.json.imagePrompt }}",
"ID": "={{ $json.id }}",
"Link": "={{ $json.webViewLink }}",
"Title": "={{ $('When Executed by Another Workflow').item.json.imageTitle }}",
"Type": "Image"
},
"matchingColumns": [],
"schema": [
{
"id": "Title",
"displayName": "Title",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true,
"removed": false
},
{
"id": "Type",
"displayName": "Type",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true,
"removed": false
},
{
"id": "Request",
"displayName": "Request",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "ID",
"displayName": "ID",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "Link",
"displayName": "Link",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "Post",
"displayName": "Post",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true,
"removed": false
}
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {}
},
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.5,
"position": [
20,
140
],
"id": "a4ac1967-64d1-455c-abef-bc3804d0cad4",
"name": "Image Log",
"credentials": {
"googleSheetsOAuth2Api": {
"id": "vL25dYTf9oT1CSvl",
"name": "Google Sheets account 2"
}
}
},
{
"parameters": {
"content": "## Model",
"height": 180,
"color": 6
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-820,
60
],
"id": "67ae3f89-2d7d-47c3-a55d-251a47a08072",
"name": "Sticky Note2"
},
{
"parameters": {
"content": "# Send Image",
"height": 420,
"width": 520,
"color": 6
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-280,
-380
],
"id": "230b29c6-ae1b-4cd0-9a35-dce2a0b15c05",
"name": "Sticky Note7"
},
{
"parameters": {
"content": "# Write to Drive & Sheets",
"height": 240,
"width": 540,
"color": 2
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
-280,
40
],
"id": "b9bcd205-679b-4cb0-a6a5-cf2bd8b58887",
"name": "Sticky Note6"
},
{
"parameters": {
"operation": "sendPhoto",
"chatId": "={{ $('When Executed by Another Workflow').item.json.chatID }}",
"binaryData": true,
"additionalFields": {}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
60,
-240
],
"id": "fd75b2ba-57f8-4ce3-8d39-915a96f7cef8",
"name": "Send Photo",
"webhookId": "8fcbda9c-8396-41f7-8f2d-39e4ae4337c7",
"credentials": {
"telegramApi": {
"id": "W7s4K928CwuY1sKA",
"name": "Telegram account 2"
}
}
},
{
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"type": "n8n-nodes-base.telegramTrigger",
"typeVersion": 1.2,
"position": [
-920,
-240
],
"id": "91e34b1e-4d15-482f-bb07-86c81c32b478",
"name": "Telegram Trigger",
"webhookId": "a9997053-40e2-4d1d-9abc-f2e5b6582096",
"credentials": {
"telegramApi": {
"id": "W7s4K928CwuY1sKA",
"name": "Telegram account 2"
}
}
},
{
"parameters": {
"modelName": "models/gemini-2.5-pro-preview-05-06",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
-740,
120
],
"id": "bf169f97-b545-4969-94c3-73be107c4c70",
"name": "Ai model",
"credentials": {
"googlePalmApi": {
"id": "BDF7KRsGso5UTRSX",
"name": "PAID 22"
}
}
},
{
"parameters": {
"method": "POST",
"url": "https://api.openai.com/v1/images/generations",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "model",
"value": "gpt-image-1"
},
{
"name": "prompt",
"value": "={{ $json.output.replace(/"/g, '') }}"
},
{
"name": "size",
"value": "1024x1024"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
-420,
-240
],
"id": "14caf60f-2813-4e39-8960-0dc85adce28d",
"name": "Create Image",
"credentials": {
"httpHeaderAuth": {
"id": "euhHX6WDp8giBroo",
"name": "paystackj22"
}
}
}
],
"pinData": {},
"connections": {
"Image Prompt": {
"main": [
[
{
"node": "Create Image",
"type": "main",
"index": 0
}
]
]
},
"Convert to File": {
"main": [
[
{
"node": "Google Drive",
"type": "main",
"index": 0
},
{
"node": "Send Photo",
"type": "main",
"index": 0
}
]
]
},
"Google Drive": {
"main": [
[
{
"node": "Image Log",
"type": "main",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "Image Prompt",
"type": "main",
"index": 0
}
]
]
},
"Ai model": {
"ai_languageModel": [
[
{
"node": "Image Prompt",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Create Image": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "c43ac7b7-f538-4479-80e3-86bb743788b8",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc"
},
"id": "EYffbq7nZzy74ND8",
"tags": []
}