Automatisation / sample.json
FreudArthur's picture
Connecting Database : Migration from sqlite3 to Postgree
bad1b41
Raw History Blame Contribute Delete
2.94 kB
{
"nodes": [
{
"parameters": {
"chatId": "6082428873",
"text": "=_hello_\nWhat's happens today\n{{ $json.explanation }}\n\n",
"additionalFields": {
"appendAttribution": false,
"parse_mode": "HTML"
}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
304,
-16
],
"id": "5e060d6a-6430-49c8-ba7e-1c988192c2de",
"name": "Send a text message",
"webhookId": "0c1cefb9-feb2-40f1-8d56-fd3efdfd7251",
"credentials": {
"telegramApi": {
"id": "xtyS4FnQD7jP4b6g",
"name": "Telegram account"
}
}
},
{
"parameters": {
"rule": {
"interval": [
{
"field": "seconds"
}
]
}
},
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.3,
"position": [
-176,
-16
],
"id": "b79d01c3-9f5a-4c72-ac2d-2e96df4b031d",
"name": "Schedule Trigger"
},
{
"parameters": {
"operation": "sendPhoto",
"chatId": "6082428873",
"file": "={{ $('Get the astronomy picture of the day').item.json.url }}",
"additionalFields": {}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
512,
-16
],
"id": "1ef30f8b-1d20-4414-b1cc-dd57e62c63ba",
"name": "Send a photo message",
"webhookId": "c8d34612-6add-4096-bc20-a55d90625c9a",
"credentials": {
"telegramApi": {
"id": "xtyS4FnQD7jP4b6g",
"name": "Telegram account"
}
}
},
{
"parameters": {
"additionalFields": {}
},
"type": "n8n-nodes-base.nasa",
"typeVersion": 1,
"position": [
112,
-16
],
"id": "c9cc9387-ce74-4aab-a3d7-fbc2d505f448",
"name": "Get the astronomy picture of the day",
"credentials": {
"nasaApi": {
"id": "FnPqtSq3RyHqM6Ay",
"name": "NASA account"
}
}
}
],
"connections": {
"Send a text message": {
"main": [
[
{
"node": "Send a photo message",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Get the astronomy picture of the day",
"type": "main",
"index": 0
}
]
]
},
"Get the astronomy picture of the day": {
"main": [
[
{
"node": "Send a text message",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "48f9007a4d0e1a91936b441574a682e3216460c6ca816348665f2c35d7390c3f"
}
}