n8n
Workflow
Store And Send Information About The Weather For Any City Via Sms
This n8n workflow sends tasks and integrates with various services. Store And Send Information About The Weather For Any City Via Sms - ready to import and run in your n8n instance.
n8n
workflow.json
About This Script
This n8n workflow sends tasks and integrates with various services. Store And Send Information About The Weather For Any City Via Sms - ready to import and run in your n8n instance.
Features:
- Receives webhook events
- Sends notifications or updates
Source Code
{
"nodes": [
{
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
450,
300
],
"webhookId": "39f1b81f-f538-4b94-8788-29180d5e4016",
"parameters": {
"path": "39f1b81f-f538-4b94-8788-29180d5e4016",
"options": {
"rawBody": true
},
"httpMethod": "POST",
"authentication": "headerAuth"
},
"credentials": {
"httpHeaderAuth": "Webhook Workflow Credentials"
},
"typeVersion": 1,
"id": "5266211f-d82f-4d04-886a-66294457dbba"
},
{
"name": "Set",
"type": "n8n-nodes-base.set",
"position": [
650,
300
],
"parameters": {
"values": {
"string": [
{
"name": "Name",
"value": "={{$json[\"body\"][\"name\"]}}"
},
{
"name": "Number",
"value": "={{$json[\"body\"][\"number\"]}}"
},
{
"name": "City",
"value": "={{$json[\"body\"][\"city\"]}}"
}
]
},
"options": [],
"keepOnlySet": true
},
"typeVersion": 1,
"id": "2982f04d-6e5a-440c-a334-5f875fbc4ff7"
},
{
"name": "Airtable",
"type": "n8n-nodes-base.airtable",
"position": [
850,
300
],
"parameters": {
"table": "Table 1",
"options": [],
"operation": "append"
},
"credentials": {
"airtableApi": "Airtable Credentials n8n"
},
"typeVersion": 1,
"id": "46c3ca29-df91-4b6f-a577-7aef3ba0139a"
},
{
"name": "OpenWeatherMap",
"type": "n8n-nodes-base.openWeatherMap",
"position": [
1050,
300
],
"parameters": {
"cityName": "={{$node[\"Webhook\"].json[\"body\"][\"city\"]}}"
},
"credentials": {
"openWeatherMapApi": "open-weather-map"
},
"typeVersion": 1,
"id": "f7ff64aa-c764-425b-96a7-c5fd5f3fd940"
},
{
"name": "Twilio",
"type": "n8n-nodes-base.twilio",
"position": [
1250,
300
],
"parameters": {
"to": "={{$node[\"Webhook\"].json[\"body\"][\"number\"]}}",
"message": "=The weather in {{$json[\"name\"]}}, {{$json[\"sys\"][\"country\"]}} is {{$json[\"main\"][\"temp\"]}} \u2103 with {{$json[\"weather\"][0][\"description\"]}}. Humidity is {{$json[\"main\"][\"humidity\"]}} and windspeed is {{$json[\"wind\"][\"speed\"]}}."
},
"credentials": {
"twilioApi": "twilio"
},
"typeVersion": 1,
"id": "8b3b7ff4-9918-41a3-8a8f-41feb0a75b52"
}
],
"connections": {
"Set": {
"main": [
[
{
"node": "Airtable",
"type": "main",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"Airtable": {
"main": [
[
{
"node": "OpenWeatherMap",
"type": "main",
"index": 0
}
]
]
},
"OpenWeatherMap": {
"main": [
[
{
"node": "Twilio",
"type": "main",
"index": 0
}
]
]
}
},
"n8n_version": "1.5.0"
}
Requirements
n8n instance, Airtable API credentials
Tags
#n8n
#automation
#workflow