{
  "version": "3.5",
  "client": "693a3055-fc3e-40b8-ac60-2dbd8f827a11",
  "chatbotId": "basic-landing-chatbot-travel",
  "launchNode": "startMessage",
  "nodes": {
    "startMessage": {
      "type": "message_button",
      "text": "Are you and existing customer?",
      "options": [
        {
          "buttonText": "Yes",
          "action": "existing"
        },
        {
          "buttonText": "No",
          "action": "noExisting"
        }
      ]
    },
    "existing": {
      "type": "message_button",
      "text": "Do you need customer support or help with booking your next holiday?",
      "options": [
        {
          "buttonText": "Customer support",
          "action": "customerSupport"
        },
        {
          "buttonText": "Book a holiday",
          "action": "noExisting"
        }
      ]
    },
    "noExisting": {
      "type": "message_simple",
      "text": "Do you need customer support or help with booking your next holiday?",
      "action": "chatOrCall"
    },
    "customerSupport": {
      "type": "message_simple",
      "text": "To help you in the best way possible, call us on {{phoneNumber}}",
      "action": "supportPageLink"
    },
    "supportPageLink": {
      "type": "message_link",
      "text": "or go to our Support page",
      "links": [
        {
          "linkText": "Support Page",
          "linkUrl": "https://www.whisbi.com/"
        }
      ]
    },
    "chatOrCall": {
      "type": "message_button",
      "text": "Do you want to talk via call or chat?",
      "options": [
        {
          "buttonText": "Call",
          "action": "call"
        },
        {
          "buttonText": "Chat",
          "action": "start",
          "displayLegal": true
        }
      ]
    },
    "call": {
      "type": "message_session_data",
      "text": "Please enter your phone number to be instantly called back for free",
      "fields": [
        {
          "type": "input_phone",
          "mandatory": true
        }
      ],
      "submit": {
        "displayLegal": true,
        "buttonText": "Connect now",
        "action": "start"
      },
      "alternateOptions": [
        {
          "buttonText": "Make a call",
          "displayLegal": true,
          "action": "inboundNode"
        },
        {
          "buttonText": "Book a call",
          "action": "agenda"
        }
      ]
    },
    "agenda": {
      "type": "message_session_data",
      "fields": [
        {
          "type": "input_phone",
          "mandatory": true
        },
        {
          "type": "input_datetime"
        }
      ],
      "submit": {
        "displayLegal": true,
        "buttonText": "Book an appointment",
        "action": "schedule"
      },
      "alternateOptions": [
        {
          "buttonText": "Receive a call",
          "action": "call"
        },
        {
          "buttonText": "Make a call",
          "displayLegal": true,
          "action": "inboundNode"
        }
      ]
    },
    "inboundNode": {
      "type": "message_inbound",
      "alternateOptions": [
        {
          "buttonText": "Receive a call",
          "action": "call"
        },
        {
          "buttonText": "Book a call",
          "action": "agenda"
        }
      ]
    }
  }
}