{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsapp/json-schema/whatsapp-conversational-automation-request-schema.json",
  "title": "ConversationalAutomationRequest",
  "description": "Request payload for configuring conversational automation settings",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whatsapp-conversational-automation-api-openapi.yml#/components/schemas/ConversationalAutomationRequest",
  "type": "object",
  "properties": {
    "enable_welcome_message": {
      "type": "boolean",
      "description": "Whether to enable welcome messages for new conversations",
      "default": false
    },
    "prompts": {
      "type": "array",
      "description": "List of conversation prompts (ice breakers) to help guide customer interactions",
      "items": {
        "type": "string",
        "maxLength": 80,
        "description": "Individual conversation prompt text"
      },
      "maxItems": 3,
      "default": []
    },
    "commands": {
      "type": "array",
      "description": "List of bot commands for automated responses",
      "items": {
        "$ref": "#/$defs/BotCommand"
      },
      "maxItems": 30,
      "default": []
    }
  },
  "$defs": {
    "BotCommand": {
      "type": "object",
      "description": "Bot command configuration for automated responses",
      "required": [
        "command_name",
        "command_description"
      ],
      "properties": {
        "command_name": {
          "type": "string",
          "description": "Name of the bot command (without leading slash)",
          "maxLength": 30,
          "pattern": "^[a-zA-Z0-9_]+$"
        },
        "command_description": {
          "type": "string",
          "description": "Description of what the command does",
          "maxLength": 256
        }
      }
    }
  }
}