{
  "description": "Use nanobot from Slack workspaces.",
  "requirements": "Slack app token, bot token, workspace install",
  "setup": {
    "docsLabel": "Open Slack setup",
    "officialLabel": "Open Slack apps",
    "tryIt": "Mention the Slack app or send it a direct message.",
    "summary": "Slack uses Socket Mode by default, so it needs both app-level and bot-level tokens.",
    "steps": [
      "Create a Slack app from the provided manifest and enable Socket Mode.",
      "Install the app to your workspace and copy the app and bot tokens.",
      "Save and enable Slack, then mention the app or send it a direct message."
    ],
    "actions": {
      "slack-manifest": "Copy manifest"
    },
    "fields": {
      "appToken": {
        "label": "App token",
        "placeholder": "xapp-...",
        "help": "Create this from Slack Socket Mode."
      },
      "botToken": {
        "label": "Bot token",
        "placeholder": "xoxb-...",
        "help": "Use the bot token after installing the Slack app."
      },
      "groupPolicy": {
        "label": "Group behavior",
        "choices": {
          "mention": "Mention only",
          "open": "All messages",
          "allowlist": "Allowlist"
        }
      }
    }
  }
}
