[
  {
    "type": "checkbox",
    "id": "dialogflow-active",
    "title": "Active",
    "content": "Activate the Dialogflow bot."
  },
  {
    "type": "button",
    "id": "dialogflow-button",
    "title": "Dialogflow synchronization",
    "content": "Click the button to start the Dialogflow synchronization.",
    "button-text": "Start synchronization",
    "button-url": "#"
  },
  {
    "type": "text",
    "id": "dialogflow-token",
    "title": "Refresh token",
    "content": "You will get this code by completing the Dialogflow synchronization."
  },
  {
    "type": "text",
    "id": "dialogflow-project-id",
    "title": "Project ID",
    "content": "Insert the Project ID of your bot. You can obtain this by clicking the top right gear icon near your bot name. See the docs for more details."
  },
  {
    "type": "checkbox",
    "id": "dialogflow-multilingual",
    "title": "Multilingual",
    "content": "Activate the multilingual feature for the bot."
  },
  {
    "type": "checkbox",
    "id": "dialogflow-timetable",
    "title": "Disable during office hours",
    "content": "Enable the bot outside of scheduled office hours only."
  },
  {
    "type": "multi-input",
    "id": "dialogflow-human-takeover",
    "title": "Human takeover request",
    "content": "If the bot doesn't understand a user's question/intent, automatically ask the user if he would like to contact an agent. If the user confirms the action the conversation is marked as unread, and the agents are notified via email. If you're using Slack, no messages will be sent if the bot knows the answer.",
    "value": [
      {
        "type": "checkbox",
        "id": "dialogflow-human-takeover-active",
        "title": "Active"
      },
      {
        "type": "checkbox",
        "id": "dialogflow-human-takeover-email",
        "title": "Request email"
      },
      {
        "type": "textarea",
        "id": "dialogflow-human-takeover-message",
        "title": "Message"
      },
      {
        "type": "textarea",
        "id": "dialogflow-human-takeover-message-confirmation",
        "title": "Confirmation message"
      },
      {
        "type": "text",
        "id": "dialogflow-human-takeover-confirm",
        "title": "Confirm button text"
      },
      {
        "type": "text",
        "id": "dialogflow-human-takeover-cancel",
        "title": "Cancel button text"
      }
    ]
  },
  {
    "type": "checkbox",
    "id": "bot-unknow-notify",
    "title": "Notify agents of a fallback response",
    "content": "If the bot doesn't understand a user's question/intent, automatically notify agents via email and leave the conversation marked as unread. If you're using Slack, no messages will be sent if the bot knows the answer."
  },
  {
    "type": "number",
    "id": "dialogflow-bot-delay",
    "title": "Bot response delay",
    "content": "Add a delay (in milliseconds) to the bot's responses. Default is 2000."
  },
  {
    "type": "checkbox",
    "id": "dialogflow-knowledge-active",
    "title": "Knowledge base",
    "content": "Activate the knowledge base feature."
  },
  {
    "type": "repeater",
    "id": "dialogflow-knowledge",
    "title": "Knowledge base document names",
    "content": "Insert here the knowledge documents names. See the docs for more details.",
    "items": [
      {
        "type": "text",
        "name": "Name",
        "id": "knowledge-name"
      }
    ]
  }
]