[
  {
    "type": "multi-input",
    "id": "messenger",
    "title": "Messenger and Instagram settings",
    "content": "Synchronize your Messenger and Instagram accounts.",
    "help": "https://board.support/docs/#messenger",
    "value": [
      {
        "type": "select",
        "id": "messenger-sync-mode",
        "title": "Sync mode",
        "value": [
          [ "", "Automatic" ],
          [ "manual", "Manual" ]
        ]
      },
      {
        "type": "password",
        "id": "messenger-key",
        "title": "Secret key"
      },
      {
        "type": "button",
        "id": "messenger-path-btn",
        "title": "Configuration URL",
        "button-text": "Get configuration URL",
        "button-url": "#"
      },
      {
        "type": "button",
        "id": "messenger-sync-btn",
        "title": "Synchronize now",
        "button-text": "Synchronize now",
        "button-url": "#"
      },
      {
        "type": "button",
        "id": "messenger-unsubscribe",
        "title": "Unsubscribe",
        "button-text": "Unsubscribe",
        "button-url": "#"
      }
    ]
  },
  {
    "type": "repeater",
    "id": "messenger-pages",
    "title": "Facebook pages",
    "content": "You will get this information by completing the synchronization.",
    "items": [
      {
        "type": "text",
        "name": "Page name",
        "id": "messenger-page-name"
      },
      {
        "type": "text",
        "name": "Page ID",
        "id": "messenger-page-id"
      },
      {
        "type": "password",
        "name": "Page token",
        "id": "messenger-page-token"
      },
      {
        "type": "number",
        "name": "Instagram ID",
        "id": "messenger-instagram-id"
      },
      {
        "type": "select-ajax",
        "name": "Department",
        "id": "messenger-page-department"
      },
      {
        "type": "text",
        "name": "Tags",
        "id": "messenger-page-tags"
      }
    ]
  },
  {
    "type": "repeater",
    "id": "messenger-dm-comment",
    "title": "DM for Comments",
    "content": "Send a direct message when a user posts their first comment.",
    "help": "https://board.support/docs/#comments",
    "items": [
      {
        "type": "select-ajax",
        "name": "Post ID",
        "id": "messenger-dm-comment-post-id"
      },
      {
        "type": "textarea",
        "name": "Message",
        "id": "messenger-dm-comment-message"
      }
    ]
  },
  {
    "type": "checkbox",
    "id": "fb-disable-chatbot",
    "title": "Disable chatbot",
    "content": "Disable the chatbot for this channel only."
  },
  {
    "type": "checkbox",
    "id": "fb-disable-chatbot-comments",
    "title": "Disable chatbot for comments",
    "content": "Disable the chatbot for comments only."
  }
]