127 lines
2.3 KiB
JSON
127 lines
2.3 KiB
JSON
{
|
|
"id": "69",
|
|
"name": "Creating your first workflow",
|
|
"nodes": [
|
|
{
|
|
"name": "Cron",
|
|
"type": "n8n-nodes-base.cron",
|
|
"position": [
|
|
240,
|
|
250
|
|
],
|
|
"parameters": {
|
|
"triggerTimes": {
|
|
"item": [
|
|
{}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "OpenWeatherMap",
|
|
"type": "n8n-nodes-base.openWeatherMap",
|
|
"position": [
|
|
450,
|
|
250
|
|
],
|
|
"parameters": {
|
|
"cityName": "berlin,de"
|
|
},
|
|
"credentials": {
|
|
"openWeatherMapApi": "Weather"
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "IF",
|
|
"type": "n8n-nodes-base.if",
|
|
"position": [
|
|
650,
|
|
250
|
|
],
|
|
"parameters": {
|
|
"conditions": {
|
|
"number": [
|
|
{
|
|
"value1": "={{$node[\"OpenWeatherMap\"].json[\"main\"][\"feels_like\"]}}",
|
|
"value2": 18
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "Twilio",
|
|
"type": "n8n-nodes-base.twilio",
|
|
"position": [
|
|
850,
|
|
150
|
|
],
|
|
"parameters": {
|
|
"to": "",
|
|
"from": "",
|
|
"message": "=Wear a sweater today, it is {{$node[\"OpenWeatherMap\"].json[\"main\"][\"feels_like\"]}}°C outside right now."
|
|
},
|
|
"credentials": {
|
|
"twilioApi": "Twilio"
|
|
},
|
|
"typeVersion": 1
|
|
},
|
|
{
|
|
"name": "NoOp",
|
|
"type": "n8n-nodes-base.noOp",
|
|
"position": [
|
|
850,
|
|
350
|
|
],
|
|
"parameters": {},
|
|
"typeVersion": 1
|
|
}
|
|
],
|
|
"active": true,
|
|
"settings": {},
|
|
"connections": {
|
|
"IF": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Twilio",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "NoOp",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Cron": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "OpenWeatherMap",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"OpenWeatherMap": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "IF",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
} |