This flow is supposed to send me the tasks that are overdue and are due today from Todoist. I am not able to merge both and show it on one message. I am not sure what is the issue.
{
"nodes": [
{
"parameters": {
"operation": "getAll",
"returnAll": true,
"filters": {
"filter": "today"
}
},
"id": "72525a02-8f15-45de-94a2-559aef58d7ab",
"name": "Today tasks",
"type": "n8n-nodes-base.todoist",
"position": [
560,
0
],
"executeOnce": true,
"retryOnFail": true,
"typeVersion": 1,
"alwaysOutputData": true,
"credentials": {
"todoistApi": {
"id": "2pfirzy3hSRgtgdC",
"name": "Todoist account"
}
}
},
{
"parameters": {
"operation": "getAll",
"returnAll": true,
"filters": {
"filter": "overdue"
}
},
"id": "e872539b-a124-4670-a2d2-d71559565b87",
"name": "Overdue tasks",
"type": "n8n-nodes-base.todoist",
"position": [
560,
200
],
"executeOnce": true,
"retryOnFail": true,
"typeVersion": 1,
"alwaysOutputData": true,
"credentials": {
"todoistApi": {
"id": "2pfirzy3hSRgtgdC",
"name": "Todoist account"
}
}
},
{
"parameters": {
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "content",
"renameField": true,
"outputFieldName": "contentOverdue"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
"position": [
800,
200
],
"id": "92c372ad-e5ab-4b08-94d4-c60c2488ce0c",
"name": "Aggregate1",
"alwaysOutputData": false
},
{
"parameters": {
"fieldsToAggregate": {
"fieldToAggregate": [
{
"fieldToAggregate": "content",
"renameField": true,
"outputFieldName": "contentToday"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
"position": [
800,
0
],
"id": "320d6517-9836-44df-89e6-4d6fff9d423a",
"name": "Aggregate2",
"alwaysOutputData": false
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
300,
200
],
"id": "c81b97c4-1dea-48fc-bc49-90efb35cb467",
"name": "When clicking ‘Test workflow’"
},
{
"parameters": {},
"type": "n8n-nodes-base.merge",
"typeVersion": 3.1,
"position": [
1100,
20
],
"id": "edf3b4f5-961a-42ce-8a0a-80656695c5a3",
"name": "Merge"
},
{
"parameters": {
"chatId": "924028505",
"text": "=Todays Tasks:\n{{$json[\"contentToday\"].join(\"\\n\")}}\n\nOverdue Tasks:\n{{$json[\"contentOverdue\"].join(\"\\n\")}}",
"additionalFields": {
"appendAttribution": false
}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
1340,
20
],
"id": "848ea71d-5dec-4005-85ac-08d4691384e0",
"name": "Telegram1",
"webhookId": "166970a5-6af0-48ae-9926-3684fedac67b",
"credentials": {
"telegramApi": {
"id": "S1ACGaxgo6cPnniq",
"name": "Telegram account"
}
}
},
{
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 9,
"triggerAtMinute": 10
}
]
}
},
"id": "90dbd5b6-4dee-4fb9-90fb-9b441adca001",
"name": "Every day at 9am",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
300,
0
],
"typeVersion": 1.1
}
],
"connections": {
"Today tasks": {
"main": [
[
{
"node": "Aggregate2",
"type": "main",
"index": 0
}
]
]
},
"Overdue tasks": {
"main": [
[
{
"node": "Aggregate1",
"type": "main",
"index": 0
}
]
]
},
"Aggregate1": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Aggregate2": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "Today tasks",
"type": "main",
"index": 0
},
{
"node": "Overdue tasks",
"type": "main",
"index": 0
}
]
]
},
"Merge": {
"main": [
[
{
"node": "Telegram1",
"type": "main",
"index": 0
}
]
]
},
"Telegram1": {
"main": [
[]
]
},
"Every day at 9am": {
"main": [
[
{
"node": "Today tasks",
"type": "main",
"index": 0
},
{
"node": "Overdue tasks",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "2e218fecf5c04a88437ae39a19ce9dbf066b10b553090cad3b6cca6305fe75c8"
}
}```