{
  "name": "Make outbound sales calls from Google Sheets using a Retell AI voice agent",
  "nodes": [
    {
      "id": "3033d295-aca5-4e11-8014-5a5529272046",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        496,
        912
      ],
      "parameters": {
        "width": null,
        "height": 432,
        "content": "## Make Phone Call\n**⚙️ Setup:**\n**Create a free Retell account**  [Retell AI – $10 FREE credits](https://dashboard.retellai.com/?ref=retell-n8n) \n\n"
      }
    },
    {
      "id": "08e73ac6-8da3-4902-9d95-eeef09c82461",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1136,
        912
      ],
      "parameters": {
        "width": 288,
        "height": 432,
        "content": "## When a lead arrives\n"
      }
    },
    {
      "id": "df3b824e-aaad-48b9-b814-a246f82178ea",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -832,
        912
      ],
      "parameters": {
        "width": 576,
        "height": 432,
        "content": "## Santise the phone number\nPhone numbers are messy; For the call to work, we need to strip away all spaces, dashes, plus signs, and brackets so all we have left are numbers. Next, we're filtering out"
      }
    },
    {
      "id": "75df0ca6-fb3d-4252-ba5a-dd59c49e501f",
      "name": "Make phone call",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        560,
        1056
      ]
    },
    {
      "id": "fb28e354-faa1-4e4e-9962-474551fd7a04",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        912
      ],
      "parameters": {
        "width": 720,
        "height": 432,
        "content": "## Wait for the call to finish\nThis poll's Retell AI until the call has finished. For a more elegant approach, you can use [a webhook](https://docs.retellai.com/features/webhook-overview) but this app"
      }
    },
    {
      "id": "77f2dd86-1d67-4cb8-8524-c998cbb3ca6c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        912
      ],
      "parameters": {
        "width": 720,
        "height": 432,
        "content": "## Check it's daytime (in their timezone)\nWe don't want to call leads at 2am, so this step checks the lead's timezone (based on their phone number) and only calls within the 8am-5pm window."
      }
    },
    {
      "id": "cf181a33-7778-41ba-b395-b75e1df6b796",
      "name": "Get lead's timezone",
      "type": "n8n-nodes-base.code",
      "position": [
        -160,
        1072
      ]
    },
    {
      "id": "7e839392-632c-49d9-bd68-521cc0994a7d",
      "name": "Cleanse phone numbers",
      "type": "n8n-nodes-base.code",
      "position": [
        -736,
        1072
      ]
    },
    {
      "id": "2a8f1a88-5638-400e-a535-db4ba9d5ff13",
      "name": "New lead",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -1056,
        1072
      ]
    },
    {
      "id": "67dc5f93-74ea-45ea-b698-629268a9d7cf",
      "name": "Is it between 8am-5pm for them?",
      "type": "n8n-nodes-base.if",
      "position": [
        96,
        1072
      ]
    },
    {
      "id": "1b1ce178-dca3-4b6c-be73-56de95f1fe46",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        304,
        1152
      ]
    },
    {
      "id": "5de17c52-cbc4-4786-8fa4-2570eea19ae7",
      "name": "Wait 1 minute",
      "type": "n8n-nodes-base.wait",
      "position": [
        848,
        1056
      ]
    },
    {
      "id": "b97b854d-9950-473d-b5d4-5d81a35a245c",
      "name": "Call has finished",
      "type": "n8n-nodes-base.if",
      "position": [
        1232,
        1056
      ]
    },
    {
      "id": "29c2d2f2-80f0-4b65-846d-faee8ccb9ac2",
      "name": "Get Call Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1040,
        1056
      ]
    },
    {
      "id": "c97bd9e5-b038-4c36-826e-b069d21f73b1",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        912
      ],
      "parameters": {
        "width": 512,
        "height": 432,
        "content": "## Update Google Sheet\n\n"
      }
    },
    {
      "id": "23763512-2dee-4728-8b6d-0df2fee84e71",
      "name": "Filter numbers we've already called",
      "type": "n8n-nodes-base.filter",
      "position": [
        -432,
        1072
      ]
    },
    {
      "id": "dd47c895-1915-4227-b163-c991ff4cd29d",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1792,
        640
      ],
      "parameters": {
        "width": 592,
        "height": 1040,
        "content": "## 📞 Automated Outbound Lead Caller\n\nAutomatically call new leads from a Google Sheet using [Retell AI](https://www.retellai.com/?via=intellagents), with built-in timezone awareness to ensure you're o"
      }
    },
    {
      "id": "47bd5d82-dcec-4bc4-8209-25fadaf45254",
      "name": "Update Google Sheets with call information",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1696,
        1040
      ]
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Get lead's timezone",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New lead": {
      "main": [
        [
          {
            "node": "Cleanse phone numbers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 1 minute": {
      "main": [
        [
          {
            "node": "Get Call Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Call Status": {
      "main": [
        [
          {
            "node": "Call has finished",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Make phone call": {
      "main": [
        [
          {
            "node": "Wait 1 minute",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call has finished": {
      "main": [
        [
          {
            "node": "Update Google Sheets with call information",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 1 minute",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get lead's timezone": {
      "main": [
        [
          {
            "node": "Is it between 8am-5pm for them?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cleanse phone numbers": {
      "main": [
        [
          {
            "node": "Filter numbers we've already called",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is it between 8am-5pm for them?": {
      "main": [
        [
          {
            "node": "Make phone call",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter numbers we've already called": {
      "main": [
        [
          {
            "node": "Get lead's timezone",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}