{
  "version": 1,
  "structures": [
    {
      "name": "faq_answer_response",
      "description": "针对客户问题的回答与置信度",
      "example": {
        "answer": "你可以在登录页面重置密码。",
        "confidence": 0.92,
        "topic": "account",
        "needs_human": false
      },
      "schema": {
        "type": "object",
        "properties": {
          "answer": {
            "type": "string"
          },
          "confidence": {
            "type": "number"
          },
          "topic": {
            "type": "string"
          },
          "needs_human": {
            "type": "boolean"
          }
        },
        "required": [
          "answer",
          "confidence",
          "topic",
          "needs_human"
        ],
        "additionalProperties": false
      }
    }
  ],
  "workflows": [
    {
      "name": "faq_knowledge_workflow",
      "description": "基于知识库回答问题",
      "provider": "xai",
      "model": "grok-4.5",
      "backups": [
        {
          "provider": "anthropic",
          "model": "claude-haiku-4-5-20251001"
        }
      ],
      "request_type": "chat",
      "system_instructions": "使用系统指令中的知识库回答客户问题。给出清晰友好的回答，评估置信度，并标记需要人工客服的问题。绝不要编造政策。",
      "structure": "faq_answer_response",
      "customer_fields": [
        "customer_name",
        "question"
      ],
      "test_mode": false,
      "cache_window_seconds": 1800,
      "backend_pipeline": {
        "enabled": true,
        "events": [
          {
            "name": "question_received"
          },
          {
            "name": "answer_ready"
          }
        ]
      }
    }
  ]
}
