Files
n8n/flows/1.json

173 lines
3.9 KiB
JSON
Raw Normal View History

2022-05-26 20:57:30 +03:00
{
2022-10-27 21:01:19 +00:00
"createdAt": "2022-04-20T08:33:49.423Z",
2022-12-23 22:01:03 +00:00
"updatedAt": "2022-12-23T17:42:30.904Z",
2022-05-26 20:57:30 +03:00
"id": 1,
"name": "Bot to Get Weather Forecast (Telegram)",
2022-06-01 21:00:37 +00:00
"active": true,
2022-05-26 20:57:30 +03:00
"nodes": [
{
"parameters": {
"cityName": "chernihiv,ua",
"language": "ru"
},
"name": "OpenWeatherMap",
"type": "n8n-nodes-base.openWeatherMap",
"position": [
660,
80
],
"typeVersion": 1,
"credentials": {
"openWeatherMapApi": {
"id": "2",
"name": "OpenWeatherMap account"
}
2022-08-03 21:00:21 +00:00
},
"id": "7c2e941a-1cb2-4092-b1b2-b3c5bf84532a"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"chatId": "={{$node[\"Telegram_Trigger\"].json[\"message\"][\"chat\"][\"id\"]}}",
"text": "=Прямо сейчас, у нас {{$node[\"OpenWeatherMap\"].json[\"weather\"][0][\"description\"]}}. Температура {{$node[\"OpenWeatherMap\"].json[\"main\"][\"temp\"]}}°C но на самом деле ощущается как {{$node[\"OpenWeatherMap\"].json[\"main\"][\"feels_like\"]}}°C 🙂",
"additionalFields": {}
},
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
900,
80
],
"typeVersion": 1,
"credentials": {
"telegramApi": {
"id": "1",
"name": "Che weather bot"
}
2022-08-03 21:00:21 +00:00
},
"id": "4ac6e4b3-22a2-4396-84a8-cd03bf3c221b"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
240,
300
2022-08-03 21:00:21 +00:00
],
"id": "1969d781-74dd-436a-b4f9-b43fb276505f"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"name": "Telegram_Trigger",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
160,
80
],
"typeVersion": 1,
"credentials": {
"telegramApi": {
"id": "1",
"name": "Che weather bot"
}
2022-08-03 21:00:21 +00:00
},
"id": "168ba159-d725-47ce-997a-25014c7e53c6"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"message\"][\"text\"]}}",
"value2": "/weather"
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
380,
80
2022-08-03 21:00:21 +00:00
],
"id": "31a0e5d9-607c-4371-8ca6-855ee7cf536c"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"chatId": "={{$node[\"Telegram_Trigger\"].json[\"message\"][\"chat\"][\"id\"]}}",
"text": "=Я вас не понимаю :-)",
"additionalFields": {}
},
"name": "Telegram1",
"type": "n8n-nodes-base.telegram",
"position": [
820,
300
],
"typeVersion": 1,
"credentials": {
"telegramApi": {
"id": "1",
"name": "Che weather bot"
}
2022-08-03 21:00:21 +00:00
},
"id": "60bdeb82-fe16-45c5-ab71-325343dba060"
2022-05-26 20:57:30 +03:00
}
],
"connections": {
"OpenWeatherMap": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
},
"Telegram_Trigger": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "OpenWeatherMap",
"type": "main",
"index": 0
}
],
[
{
"node": "Telegram1",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {},
2022-06-09 21:00:39 +00:00
"staticData": null,
2022-12-18 22:00:50 +00:00
"dataLoaded": true,
2022-07-20 21:00:15 +00:00
"pinData": null,
2022-12-07 22:01:07 +00:00
"versionId": "b6c332ad-7437-43d5-a55a-4787a3589e01",
2022-12-21 22:01:02 +00:00
"triggerCount": 1,
2022-12-07 22:01:07 +00:00
"tags": []
2022-05-26 20:57:30 +03:00
}