{
  "version": 1,
  "structures": [
    {
      "name": "chatbot_response",
      "description": "包含会话洞察和后续操作的结构化聊天回复",
      "example": {
        "reply": "你的名字是 Vishal，你经营 Sunrise Bakes，业务位于 Bangalore。",
        "summary": "从本次会话中回忆了用户的姓名、企业和城市。",
        "sentiment": "neutral",
        "confidence": "high",
        "topics": [
          "个人资料",
          "企业信息"
        ],
        "action_items": []
      },
      "schema": {
        "type": "object",
        "properties": {
          "reply": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "sentiment": {
            "type": "string",
            "enum": [
              "positive",
              "neutral",
              "negative",
              "mixed"
            ]
          },
          "confidence": {
            "type": "string",
            "enum": [
              "high",
              "medium",
              "low"
            ]
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "action_items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "task": {
                  "type": "string"
                },
                "priority": {
                  "type": "string",
                  "enum": [
                    "high",
                    "medium",
                    "low"
                  ]
                }
              },
              "required": [
                "task",
                "priority"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "reply",
          "summary",
          "sentiment",
          "confidence",
          "topics",
          "action_items"
        ],
        "additionalProperties": false
      }
    }
  ],
  "workflows": [
    {
      "name": "mr_chatbot_workflow",
      "description": "生成结构化实时回复，并记住当前会话",
      "provider": "openai",
      "model": "gpt-5.6-luna",
      "backups": [
        {
          "provider": "anthropic",
          "model": "claude-haiku-4-5-20251001"
        }
      ],
      "request_type": "chat",
      "system_instructions": "作为乐于助人且简洁的客户助手。回答时使用当前会话之前轮次中的相关事实。如果会话中没有某项信息，请说明不知道，不要编造。不要声称记得所提供会话之外的信息。返回直接回复、简短摘要、情感、置信度、主题以及明确的后续操作项。",
      "structure": "chatbot_response",
      "customer_fields": [],
      "test_mode": false,
      "sessions_enabled": true,
      "backend_pipeline": {
        "enabled": true,
        "events": [
          {
            "name": "webhook_received"
          }
        ]
      }
    }
  ]
}
