Sửa chia hội thoại tự động
inbox.auto_assign.setMCP:inbox_auto_assign_setBộ công cụ: Thiết lập tự chạyChange automatic conversation assignment (round robin / by load, members, accounts). Pass the `revision` from inbox_auto_assign_get as expectedRevision to avoid overwriting a newer change.
Cần Idempotency-Key
Quản trị
Quyền: Thiết lập tự chạy
Gọi bằng REST v2
curl -X POST https://zl.builera.app/api/public/v2/ops/inbox.auto_assign.set \
-H "Authorization: Bearer za_live_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"config":{}}'Mỗi khoá/kết nối tối đa 300 lệnh đọc và 60 lệnh ghi mỗi phút. Gọi lại cùng Idempotency-Key trả đúng kết quả cũ, không làm lại.
Gọi qua MCP
{
"method": "tools/call",
"params": {
"name": "inbox_auto_assign_set",
"arguments": {
"config": {}
}
}
}Thêm https://zl.builera.app/mcp vào ứng dụng AI rồi cho phép kết nối; AI chỉ thấy công cụ trong bộ bạn chọn.
Kết quả
HTTP 200
{ "status": "succeeded", "operationId": "…", "data": { … } }Ví dụ đầu vào
{
"config": {}
}Thay mã (id) mẫu bằng mã thật lấy từ các thao tác liệt kê/tìm kiếm.
Lược đồ đầu vào (JSON Schema)
{
"type": "object",
"properties": {
"config": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false
},
"mode": {
"type": "string",
"enum": [
"round_robin",
"least_load"
],
"default": "round_robin"
},
"memberIds": {
"type": "array",
"items": {
"type": "string",
"format": "uuid"
},
"maxItems": 200,
"default": []
}
},
"additionalProperties": false
},
"expectedRevision": {
"type": "integer",
"minimum": 1,
"description": "Workspace settings `revision` you read; changed meanwhile → conflict."
}
},
"required": [
"config"
],
"additionalProperties": false
}