{
  "name": "Missed call text back workflow for contractors and local businesses (mahirmunaj.com)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "call-status",
        "options": {}
      },
      "id": "e542f66e-f328-5e34-9b35-97ce0acb76b1",
      "name": "Call status (Webhook)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": false
          },
          "conditions": [
            {
              "id": "1",
              "leftValue": "={{ ['no-answer','busy','failed'].includes($json.body.CallStatus) }}",
              "rightValue": true,
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "b30247c1-a145-50f2-8b1e-80f3f279e336",
      "name": "Missed?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        220,
        300
      ]
    },
    {
      "parameters": {
        "from": "+1YOURTWILIONUMBER",
        "to": "={{ $json.body.From }}",
        "message": "Sorry we missed your call! This is [Business]. How can we help? Reply here and we'll get right back to you.",
        "options": {}
      },
      "id": "0225f99b-d6d2-5640-8af6-598154e2beed",
      "name": "Text the caller",
      "type": "n8n-nodes-base.twilio",
      "typeVersion": 1,
      "position": [
        440,
        200
      ]
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_SHEET_ID"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "Missed calls"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "caller": "={{ $('Call status (Webhook)').item.json.body.From }}",
            "time": "={{ $now.toISO() }}"
          }
        },
        "options": {}
      },
      "id": "b97f0c92-ad61-5ec8-873b-51fa31a6c12d",
      "name": "Log missed call",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        660,
        200
      ]
    },
    {
      "parameters": {
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "#calls"
        },
        "text": "=📞 Missed call from {{ $('Call status (Webhook)').item.json.body.From }}. Auto-text sent.",
        "otherOptions": {}
      },
      "id": "7963cb86-d37e-5d15-932b-718a41310282",
      "name": "Ping me in Slack",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [
        880,
        200
      ]
    }
  ],
  "connections": {
    "Call status (Webhook)": {
      "main": [
        [
          {
            "node": "Missed?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Missed?": {
      "main": [
        [
          {
            "node": "Text the caller",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Text the caller": {
      "main": [
        [
          {
            "node": "Log missed call",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log missed call": {
      "main": [
        [
          {
            "node": "Ping me in Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false,
    "source": "https://mahirmunaj.com/templates/n8n-missed-call-text-back-workflow"
  }
}