Workflow: Twilio Cron Send

Workflow Details

Download Workflow
{
    "id": "34",
    "name": "Monitoring and alerting",
    "nodes": [
        {
            "name": "Cron",
            "type": "n8n-nodes-base.cron",
            "position": [
                250,
                200
            ],
            "parameters": [],
            "typeVersion": 1
        },
        {
            "name": "Postgres",
            "type": "n8n-nodes-base.postgres",
            "position": [
                450,
                200
            ],
            "parameters": {
                "query": "SELECT * FROM n8n WHERE value > 70 AND notification = false;",
                "operation": "executeQuery"
            },
            "credentials": {
                "postgres": "Postgres"
            },
            "typeVersion": 1
        },
        {
            "name": "Twilio",
            "type": "n8n-nodes-base.twilio",
            "position": [
                650,
                200
            ],
            "parameters": {
                "to": "",
                "from": "",
                "message": "=\ud83d\udea8 The Sensor ({{$node[\"Postgres\"].json[\"sensor_id\"]}}) showed a reading of {{$node[\"Postgres\"].json[\"value\"]}}."
            },
            "credentials": {
                "twilioApi": "Twilio"
            },
            "typeVersion": 1
        },
        {
            "name": "Set",
            "type": "n8n-nodes-base.set",
            "position": [
                850,
                200
            ],
            "parameters": {
                "values": {
                    "number": [
                        {
                            "name": "id",
                            "value": "={{$node[\"Postgres\"].json[\"id\"]}}"
                        }
                    ],
                    "boolean": [
                        {
                            "name": "notification",
                            "value": true
                        }
                    ]
                },
                "options": [],
                "keepOnlySet": true
            },
            "typeVersion": 1
        },
        {
            "name": "Postgres1",
            "type": "n8n-nodes-base.postgres",
            "position": [
                1050,
                200
            ],
            "parameters": {
                "table": "n8n",
                "columns": "notification",
                "operation": "update"
            },
            "credentials": {
                "postgres": "Postgres"
            },
            "typeVersion": 1
        }
    ],
    "active": false,
    "settings": [],
    "connections": {
        "Set": {
            "main": [
                [
                    {
                        "node": "Postgres1",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Cron": {
            "main": [
                [
                    {
                        "node": "Postgres",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Twilio": {
            "main": [
                [
                    {
                        "node": "Set",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Postgres": {
            "main": [
                [
                    {
                        "node": "Twilio",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}
Back to Workflows

Related Workflows

Filter Convertkit Create Triggered
View
OpenAI ImageGen1 Template
View
Telegram-bot AI Da Nang
View
Dsp agent
View
Calendly Noop Create Triggered
View
Receive updates when an event occurs in Taiga
View
HTTP Slack Create Webhook
View
Splitout Filter Export Scheduled
View
Insert data into a new row for a table in Coda
View
Image-to-3D
View