{
  "name": "Voiceflow demo support chatbot",
  "nodes": [
    {
      "id": "15f8f140-66b6-4c83-8a33-cf8cafdc32d4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        -740
      ],
      "parameters": {
        "width": 1440,
        "height": 620,
        "content": "![voiceflow](https://uploads.n8n.io/templates/voiceflow.png)\n## Find Customer\nThis portion of the workflow queries the customer database and returns customer details to the AI agent if found. If not f"
      }
    },
    {
      "id": "00b35d71-a6e6-43e8-a57b-a29a0c476b23",
      "name": "Check if user found",
      "type": "n8n-nodes-base.if",
      "position": [
        380,
        -380
      ]
    },
    {
      "id": "83d5be62-92f2-4018-bb5e-e4c068223370",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        -80
      ],
      "parameters": {
        "width": 1460,
        "height": 540,
        "content": "![zendesk](https://uploads.n8n.io/templates/zendesk.png)\n## Create Zendesk Ticket \nCreates a Zendesk ticket on behalf of the customer when needed."
      }
    },
    {
      "id": "19f99374-82a6-4978-a159-9b68accda619",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        480
      ],
      "parameters": {
        "width": 1920,
        "height": 700,
        "content": "![Gcal](https://uploads.n8n.io/templates/calendar.png)\n## Schedule a meeting\nThis gives availability for google calendar and schedules a meeting as well "
      }
    },
    {
      "id": "ad83adab-eecb-49f7-ba95-b53889f8dded",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        1220
      ],
      "parameters": {
        "width": 900,
        "height": 540,
        "content": "![voiceflow](https://uploads.n8n.io/templates/airtable.png)\n## Give Product team transcripts for analysis\nNeed to help your product team out"
      }
    },
    {
      "id": "4b224fd9-d056-4f2a-aa91-aa4cbee4c44a",
      "name": "Check if available",
      "type": "n8n-nodes-base.if",
      "position": [
        520,
        800
      ]
    },
    {
      "id": "60067000-0c90-4a9d-bf11-e22a864b0ad8",
      "name": "Check for malformed date",
      "type": "n8n-nodes-base.if",
      "position": [
        100,
        880
      ]
    },
    {
      "id": "ad9f1857-2179-4d1d-ac25-04975b23390f",
      "name": "Create Ticket",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        340,
        180
      ]
    },
    {
      "id": "5b5c0f60-4495-4040-9926-194b672e6850",
      "name": "Create Customer in DB",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        120,
        180
      ]
    },
    {
      "id": "3e5dd684-ee28-4431-849b-c8ab42bd93a0",
      "name": "Check if submitted succesfully",
      "type": "n8n-nodes-base.if",
      "position": [
        540,
        180
      ]
    },
    {
      "id": "c2fac290-0e6e-4b36-864e-f6bb2d25753c",
      "name": "Ticket Created Successfully",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        800,
        80
      ]
    },
    {
      "id": "71a2c455-5de7-455c-9bed-b710a09c3d07",
      "name": "Error Creating Ticket",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        800,
        260
      ]
    },
    {
      "id": "fcd6ceca-d231-4c49-bb1c-716d239dc0c4",
      "name": "Airtable Endpoint",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -300,
        1560
      ]
    },
    {
      "id": "53783abf-8254-46e2-8b1f-c797f880fa1b",
      "name": "Gcal Endpoint",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -340,
        800
      ]
    },
    {
      "id": "df6a885b-d9ea-4033-bb2d-6a222ca9153f",
      "name": "Zendesk Endpoint",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -320,
        180
      ]
    },
    {
      "id": "993c83c7-c376-4bc8-8cb9-995de92d6c4e",
      "name": "Voiceflow Endpoint",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -320,
        -380
      ]
    },
    {
      "id": "399c2471-3a3d-458a-bb5d-a0a5e42f3121",
      "name": "Extract Phone Number",
      "type": "n8n-nodes-base.set",
      "position": [
        -100,
        -380
      ]
    },
    {
      "id": "3391ccd4-cf64-4f48-9cfc-9a02131c37b6",
      "name": "Extract Zendesk Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -100,
        180
      ]
    },
    {
      "id": "63789194-f11c-42f1-8075-849ba1fedfd7",
      "name": "Extract Gcal Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -120,
        800
      ]
    },
    {
      "id": "813b50b7-2255-441a-8ad6-15cde81ec14d",
      "name": "Extract Airtable Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        1560
      ]
    },
    {
      "id": "830ee1b3-2bc3-4809-a0e7-c9c966053fbe",
      "name": "Create Airtable Data",
      "type": "n8n-nodes-base.airtable",
      "position": [
        180,
        1560
      ]
    },
    {
      "id": "42f007f1-3929-4d65-a3b5-c60693da3ad3",
      "name": "Query Google Sheets for Phone",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        160,
        -380
      ]
    },
    {
      "id": "d0948a72-c8a8-48f6-b5d8-adb52a44a169",
      "name": "Respond to Webhook with Customer Data",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        640,
        -520
      ]
    },
    {
      "id": "12e0e2b3-90e1-4b77-a6bb-12dc4603d4f7",
      "name": "Respond to Webhook with Error",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        780,
        -280
      ]
    },
    {
      "id": "9de11b89-bbe8-4ce4-9838-27e497146966",
      "name": "Set Error Data",
      "type": "n8n-nodes-base.set",
      "position": [
        620,
        -280
      ]
    },
    {
      "id": "37b2289b-bc9a-440f-9974-fffe433c2069",
      "name": "Check Calendar Availability",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        300,
        800
      ]
    },
    {
      "id": "52732530-e120-4403-b623-e087a0005383",
      "name": "Create Calendar Event",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        800,
        680
      ]
    },
    {
      "id": "643a6c39-f70d-4453-be96-54eadb0b9667",
      "name": "Set Calendar Success Message",
      "type": "n8n-nodes-base.set",
      "position": [
        1020,
        680
      ]
    },
    {
      "id": "10b7bdfc-15a9-4d3c-9c58-e7f0d7356d98",
      "name": "Respond with Success",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1240,
        680
      ]
    },
    {
      "id": "4c8de5b6-d11f-454e-b198-eb7ea4bf8151",
      "name": "Set Calendar Error Data",
      "type": "n8n-nodes-base.set",
      "position": [
        800,
        920
      ]
    },
    {
      "id": "b8d54018-4f15-41d7-bc74-e5fa42c2eae8",
      "name": "Respond With Calendar Error data",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1040,
        920
      ]
    },
    {
      "id": "1be55353-b20d-41aa-bd82-c5a21ec1ca56",
      "name": "Set Invalid Data Error",
      "type": "n8n-nodes-base.set",
      "position": [
        320,
        1020
      ]
    },
    {
      "id": "a4e01bfd-4f65-457e-bf84-8140f2d58168",
      "name": "Respond with Generic Error",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        500,
        1020
      ]
    }
  ],
  "connections": {
    "Create Ticket": {
      "main": [
        [
          {
            "node": "Check if submitted succesfully",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gcal Endpoint": {
      "main": [
        [
          {
            "node": "Extract Gcal Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Error Data": {
      "main": [
        [
          {
            "node": "Respond to Webhook with Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Zendesk Endpoint": {
      "main": [
        [
          {
            "node": "Extract Zendesk Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable Endpoint": {
      "main": [
        [
          {
            "node": "Extract Airtable Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Gcal Data": {
      "main": [
        [
          {
            "node": "Check for malformed date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if available": {
      "main": [
        [
          {
            "node": "Create Calendar Event",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Calendar Error Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Voiceflow Endpoint": {
      "main": [
        [
          {
            "node": "Extract Phone Number",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if user found": {
      "main": [
        [
          {
            "node": "Respond to Webhook with Customer Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Error Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Phone Number": {
      "main": [
        [
          {
            "node": "Query Google Sheets for Phone",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Calendar Event": {
      "main": [
        [
          {
            "node": "Set Calendar Success Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Customer in DB": {
      "main": [
        [
          {
            "node": "Create Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Airtable Data": {
      "main": [
        [
          {
            "node": "Create Airtable Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Zendesk Fields": {
      "main": [
        [
          {
            "node": "Create Customer in DB",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Invalid Data Error": {
      "main": [
        [
          {
            "node": "Respond with Generic Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Calendar Error Data": {
      "main": [
        [
          {
            "node": "Respond With Calendar Error data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for malformed date": {
      "main": [
        [
          {
            "node": "Check Calendar Availability",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set Invalid Data Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Calendar Availability": {
      "main": [
        [
          {
            "node": "Check if available",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Calendar Success Message": {
      "main": [
        [
          {
            "node": "Respond with Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Query Google Sheets for Phone": {
      "main": [
        [
          {
            "node": "Check if user found",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if submitted succesfully": {
      "main": [
        [
          {
            "node": "Ticket Created Successfully",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error Creating Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}