n8n-workflows/workflows/1_My_workflow.json
2025-05-14 11:58:29 +03:00

155 lines
3.0 KiB
JSON

{
"id": 1,
"name": "My workflow",
"nodes": [
{
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
320,
300
],
"parameters": {},
"typeVersion": 1
},
{
"name": "Send Email",
"type": "n8n-nodes-base.emailSend",
"position": [
1520,
300
],
"parameters": {
"options": {
"allowUnauthorizedCerts": true
},
"subject": "Certificate For Course",
"toEmail": "={{$node[\"SplitInBatches\"].json[\"email\"]}}",
"fromEmail": "bhavabhuthi@riseup.net",
"attachments": "data"
},
"credentials": {
"smtp": {
"id": "1",
"name": "SMTP account"
}
},
"typeVersion": 1
},
{
"name": "Read Binary File",
"type": "n8n-nodes-base.readBinaryFile",
"position": [
560,
300
],
"parameters": {
"filePath": "/home/shashikanth/Documents/Cert-Gen-Test/data.csv",
"dataPropertyName": "csv"
},
"typeVersion": 1,
"alwaysOutputData": false
},
{
"name": "Spreadsheet File",
"type": "n8n-nodes-base.spreadsheetFile",
"position": [
840,
300
],
"parameters": {
"options": {
"headerRow": true
},
"binaryPropertyName": "csv"
},
"typeVersion": 1
},
{
"name": "SplitInBatches",
"type": "n8n-nodes-base.splitInBatches",
"position": [
1080,
300
],
"parameters": {
"options": {
"reset": false
},
"batchSize": 5
},
"typeVersion": 1
},
{
"name": "Read Binary File1",
"type": "n8n-nodes-base.readBinaryFile",
"position": [
1300,
300
],
"parameters": {
"filePath": "=/home/shashikanth/Documents/Cert-Gen-Test/generator-output/{{$json[\"name\"]}}.png"
},
"typeVersion": 1
}
],
"active": false,
"settings": {},
"connections": {
"SplitInBatches": {
"main": [
[
{
"node": "Read Binary File1",
"type": "main",
"index": 0
}
]
]
},
"Read Binary File": {
"main": [
[
{
"node": "Spreadsheet File",
"type": "main",
"index": 0
}
]
]
},
"Spreadsheet File": {
"main": [
[
{
"node": "SplitInBatches",
"type": "main",
"index": 0
}
]
]
},
"Read Binary File1": {
"main": [
[
{
"node": "Send Email",
"type": "main",
"index": 0
}
]
]
},
"On clicking 'execute'": {
"main": [
[
{
"node": "Read Binary File",
"type": "main",
"index": 0
}
]
]
}
}
}