Plantilla-Jsoncut-Watermark
Este es unContent Creation, Multimodal AIflujo de automatización del dominio deautomatización que contiene 14 nodos.Utiliza principalmente nodos como If, Wait, Merge, Aggregate, FormTrigger. Crear marcas de agua profesionales en imágenes usando la API JSONCut
- •Pueden requerirse credenciales de autenticación para la API de destino
Nodos utilizados (14)
Categoría
{
"id": "0LwqeMMNkwmniCvR",
"meta": {
"instanceId": "9d644af8fe730dfb972042f018ed45ff1dc2e7905a9737d59584dbe5b8c7f571"
},
"name": "Template-Jsoncut-watermark",
"tags": [],
"nodes": [
{
"id": "0de163b2-1be3-4ef2-879d-4ce701de702b",
"name": "Form Trigger",
"type": "n8n-nodes-base.formTrigger",
"position": [
-304,
80
],
"webhookId": "b355dccf-d9fa-46e0-9c3c-8d3c743aa037",
"parameters": {
"path": "b355dccf-d9fa-46e0-9c3c-8d3c743aa037",
"options": {},
"formTitle": "Image Watermark Generator",
"formFields": {
"values": [
{
"fieldType": "file",
"fieldLabel": "Main Image",
"requiredField": true
},
{
"fieldType": "file",
"fieldLabel": "Watermark Image",
"requiredField": true
}
]
},
"formDescription": "Upload your main image and watermark to create a watermarked image"
},
"typeVersion": 2
},
{
"id": "fca14091-7089-48b5-bc5f-3c5261f093c9",
"name": "Cargar Imagen Principal",
"type": "n8n-nodes-base.httpRequest",
"position": [
-80,
-32
],
"parameters": {
"url": "https://api.jsoncut.com/api/v1/files/upload",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "file",
"parameterType": "formBinaryData",
"inputDataFieldName": "Main_Image"
}
]
},
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Accept",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "SX6i9sHw3AcKihne",
"name": "JsonCut API Key"
}
},
"typeVersion": 4.1
},
{
"id": "a3e639ed-f4e2-437e-b4b0-72ae227a1a1a",
"name": "Cargar Marca de Agua",
"type": "n8n-nodes-base.httpRequest",
"position": [
-80,
176
],
"parameters": {
"url": "https://api.jsoncut.com/api/v1/files/upload",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"sendHeaders": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "file",
"parameterType": "formBinaryData",
"inputDataFieldName": "Watermark_Image"
}
]
},
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Accept",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "SX6i9sHw3AcKihne",
"name": "JsonCut API Key"
}
},
"typeVersion": 4.1
},
{
"id": "e397f050-48ba-4573-9ac2-54a07239d6ff",
"name": "Combinar Cargas",
"type": "n8n-nodes-base.merge",
"position": [
144,
80
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "7452ecb9-0de4-439c-adc6-3fb93eb33ae6",
"name": "Esperar",
"type": "n8n-nodes-base.wait",
"position": [
768,
80
],
"webhookId": "af7c133c-b0a0-4785-860e-922f31e1b204",
"parameters": {
"unit": "seconds",
"amount": 3
},
"typeVersion": 1
},
{
"id": "c7e3fb3a-c2c3-4ead-8586-51686f114023",
"name": "Si Éxito",
"type": "n8n-nodes-base.if",
"position": [
1184,
80
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json.data.status }}",
"value2": "COMPLETED"
}
]
}
},
"typeVersion": 1
},
{
"id": "0c3f84ed-cbed-4d86-a019-85f0542e5cc5",
"name": "Si Error",
"type": "n8n-nodes-base.if",
"position": [
1328,
336
],
"parameters": {
"conditions": {
"string": [
{
"value1": "={{ $json.data.status }}",
"value2": "FAILED"
},
{
"value1": "={{ $json.data.status }}",
"value2": "CANCELLED"
}
]
}
},
"typeVersion": 1
},
{
"id": "dcd47447-ba95-4ee7-a695-a95033ab251d",
"name": "Descargar Imagen",
"type": "n8n-nodes-base.httpRequest",
"position": [
1504,
64
],
"parameters": {
"url": "=https://api.jsoncut.com/api/v1/files/{{ $json.data.outputFileId }}/download",
"options": {
"response": {
"response": {
"responseFormat": "file"
}
}
},
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Accept",
"value": "application/octet-stream"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "SX6i9sHw3AcKihne",
"name": "JsonCut API Key"
}
},
"typeVersion": 4.1
},
{
"id": "387771b8-e659-4f2d-86ce-4c7dbab16cb7",
"name": "Error Stop",
"type": "n8n-nodes-base.stopAndError",
"position": [
1536,
336
],
"parameters": {
"errorMessage": "Failed to generate image"
},
"typeVersion": 1
},
{
"id": "c698754d-f788-4d06-b09e-c86f531f8986",
"name": "Agregar",
"type": "n8n-nodes-base.aggregate",
"position": [
288,
80
],
"parameters": {
"options": {},
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "data.storageUrl"
},
{}
]
}
},
"typeVersion": 1
},
{
"id": "bb3fed4e-dc72-4af3-97b5-0d5e491da0bd",
"name": "Nota Adhesiva",
"type": "n8n-nodes-base.stickyNote",
"position": [
-176,
-80
],
"parameters": {
"width": 272,
"height": 432,
"content": "### Upload Files to JsonCut API"
},
"typeVersion": 1
},
{
"id": "43b6603f-eaa1-47d0-90eb-22985a41e92f",
"name": "Nota Adhesiva1",
"type": "n8n-nodes-base.stickyNote",
"position": [
464,
0
],
"parameters": {
"color": 4,
"width": 1248,
"height": 320,
"content": "### Create Job with Jsoncut API and wait for the result"
},
"typeVersion": 1
},
{
"id": "c7dec839-3324-4c26-afe3-c0cce706359f",
"name": "Crear Trabajo JsonCut",
"type": "n8n-nodes-base.httpRequest",
"position": [
544,
80
],
"parameters": {
"url": "https://api.jsoncut.com/api/v1/jobs",
"method": "POST",
"options": {},
"jsonBody": "={\n \"type\":\"image\",\n \"config\":{\n \"width\":800,\n \"height\":600,\n \"layers\":[\n {\n \"type\":\"image\",\n \"path\":\"{{ $json.storageUrl[0] }}\",\n \"x\":0,\n \"y\":0,\n \"width\":800,\n \"height\":600,\n \"fit\":\"cover\"\n },\n {\n \"type\":\"image\",\n \"path\":\"{{ $json.storageUrl[1] }}\",\n \"width\":90,\n \"height\":90,\n \"position\":{\n \"x\":0.95,\n \"y\":1,\n \"originX\":\"right\",\n \"originY\":\"bottom\"\n },\n \"fit\":\"contain\",\n \"opacity\":0.5\n }\n ]\n }\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "Accept",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "SX6i9sHw3AcKihne",
"name": "JsonCut API Key"
}
},
"typeVersion": 4.1
},
{
"id": "10029720-1b82-4b47-9caf-4f8d15d20e71",
"name": "Verificar Estado del Trabajo JsonCut",
"type": "n8n-nodes-base.httpRequest",
"position": [
992,
80
],
"parameters": {
"url": "=https://api.jsoncut.com/api/v1/jobs/{{ $json.data.jobId }}",
"options": {},
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Accept",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "SX6i9sHw3AcKihne",
"name": "JsonCut API Key"
}
},
"typeVersion": 4.1
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "5d01db84-ed88-4692-8fdd-956e1badccac",
"connections": {
"7452ecb9-0de4-439c-adc6-3fb93eb33ae6": {
"main": [
[
{
"node": "10029720-1b82-4b47-9caf-4f8d15d20e71",
"type": "main",
"index": 0
}
]
]
},
"0c3f84ed-cbed-4d86-a019-85f0542e5cc5": {
"main": [
[
{
"node": "387771b8-e659-4f2d-86ce-4c7dbab16cb7",
"type": "main",
"index": 0
}
],
[
{
"node": "7452ecb9-0de4-439c-adc6-3fb93eb33ae6",
"type": "main",
"index": 0
}
]
]
},
"c698754d-f788-4d06-b09e-c86f531f8986": {
"main": [
[
{
"node": "c7dec839-3324-4c26-afe3-c0cce706359f",
"type": "main",
"index": 0
}
]
]
},
"c7e3fb3a-c2c3-4ead-8586-51686f114023": {
"main": [
[
{
"node": "dcd47447-ba95-4ee7-a695-a95033ab251d",
"type": "main",
"index": 0
}
],
[
{
"node": "0c3f84ed-cbed-4d86-a019-85f0542e5cc5",
"type": "main",
"index": 0
}
]
]
},
"0de163b2-1be3-4ef2-879d-4ce701de702b": {
"main": [
[
{
"node": "fca14091-7089-48b5-bc5f-3c5261f093c9",
"type": "main",
"index": 0
},
{
"node": "a3e639ed-f4e2-437e-b4b0-72ae227a1a1a",
"type": "main",
"index": 0
}
]
]
},
"e397f050-48ba-4573-9ac2-54a07239d6ff": {
"main": [
[
{
"node": "c698754d-f788-4d06-b09e-c86f531f8986",
"type": "main",
"index": 0
}
]
]
},
"dcd47447-ba95-4ee7-a695-a95033ab251d": {
"main": [
[]
]
},
"a3e639ed-f4e2-437e-b4b0-72ae227a1a1a": {
"main": [
[
{
"node": "e397f050-48ba-4573-9ac2-54a07239d6ff",
"type": "main",
"index": 1
}
]
]
},
"fca14091-7089-48b5-bc5f-3c5261f093c9": {
"main": [
[
{
"node": "e397f050-48ba-4573-9ac2-54a07239d6ff",
"type": "main",
"index": 0
}
]
]
},
"c7dec839-3324-4c26-afe3-c0cce706359f": {
"main": [
[
{
"node": "7452ecb9-0de4-439c-adc6-3fb93eb33ae6",
"type": "main",
"index": 0
}
]
]
},
"10029720-1b82-4b47-9caf-4f8d15d20e71": {
"main": [
[
{
"node": "c7e3fb3a-c2c3-4ead-8586-51686f114023",
"type": "main",
"index": 0
}
]
]
}
}
}¿Cómo usar este flujo de trabajo?
Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.
¿En qué escenarios es adecuado este flujo de trabajo?
Intermedio - Creación de contenido, IA Multimodal
¿Es de pago?
Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.
Flujos de trabajo relacionados recomendados
Kev
@kesim0Compartir este flujo de trabajo