removedOutput schema / properties
Removed value: -{
- "candidates": {
- "description": "Where the card may be added without the reply going to someone else, the rules' target first; empty once decided.",
- "items": {
- "properties": {
- "channel_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "contact_id": {
- "type": "string"
- },
- "conversation_id": {
- "type": "string"
- },
- "resolved": {
- "description": "Joining it reopens it.",
- "type": "boolean"
- },
- "status": {
- "type": "string"
- },
- "untrusted_customer_content": {
- "properties": {
- "contact_name": {
- "type": "string"
- },
- "subject": {
- "type": "string"
- }
- },
- "type": "object"
- },
- "updated_at": {
- "type": "string"
- }
- },
- "required": [
- "conversation_id",
- "status",
- "resolved",
- "untrusted_customer_content"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "card": {
- "properties": {
- "ai_decision": {
- "description": "On a card AI decided by itself (decided_by ai): decision_id, action, target_conversation_id, confidence, runner_up_confidence, model (the one the channel asked), fallback_model (the model that answered instead when the channel's model did not, else null), created_at; its reason under untrusted_customer_content. Null for a card the rules or a person decided.",
- "type": [
- "object",
- "null"
- ]
- },
- "channel_id": {
- "type": "string"
- },
- "closed_at": {
- "type": "string"
- },
- "contact_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "conversation_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "conversation_ref": {
- "description": "The code people know the conversation by (CHD-2026-0008, #12).",
- "type": [
- "string",
- "null"
- ]
- },
- "decide_by": {
- "type": [
- "string",
- "null"
- ]
- },
- "decided_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "decided_by": {
- "enum": [
- "rules",
- "ai",
- "agent",
- null
- ],
- "type": [
- "string",
- "null"
- ]
- },
- "decided_by_agent_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "fallback": {
- "type": "boolean"
- },
- "files": {
- "description": "The card's first files (at most 8): read one with colliedesk_attachment_get and gathering_id, item_id, file_index. status stored can be read; failed says why in error (for example larger than the channel accepts).",
- "items": {
- "properties": {
- "content_type": {
- "type": "string"
- },
- "error": {
- "type": [
- "string",
- "null"
- ]
- },
- "file_index": {
- "type": "integer"
- },
- "item_id": {
- "type": "string"
- },
- "size": {
- "type": [
- "integer",
- "null"
- ]
- },
- "status": {
- "type": "string"
- },
- "untrusted_customer_content": {
- "properties": {
- "name": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "item_id",
- "file_index",
- "content_type",
- "status",
- "untrusted_customer_content"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "id": {
- "type": "string"
- },
- "ignore_reason": {
- "enum": [
- "chat",
- "handled_in_chat",
- "duplicate",
- "other",
- null
- ],
- "type": [
- "string",
- "null"
- ]
- },
- "item_count": {
- "type": "integer"
- },
- "opened_at": {
- "type": "string"
- },
- "place_kind": {
- "description": "A one-to-one chat or a group.",
- "enum": [
- "direct",
- "group",
- null
- ],
- "type": [
- "string",
- "null"
- ]
- },
- "review_reason": {
- "description": "Why it waits for a person: no_command, ai_unavailable, lane_blocked (behind an earlier card of the same sender), requeued…",
- "type": [
- "string",
- "null"
- ]
- },
- "rules": {
- "description": "What the channel's rules decided: what applies when AI does not decide in time.",
- "type": "object"
- },
- "scope": {
- "type": "string"
- },
- "state": {
- "enum": [
- "deciding",
- "review",
- "created",
- "attached",
- "ignored",
- "applied",
- "cancelled"
- ],
- "type": "string"
- },
- "suggestion": {
- "description": "What AI suggested and did not do (not_applied_reason says why), unless a person decided since: action, target_conversation_id, target_status, runner_up_conversation_id, runner_up_confidence, confidence, command, reply_kind, ignore_reason; its subject, reason and the conversations' subjects under untrusted_customer_content. Follow it with colliedesk_intake_decide and follows_decision_id = its decision_id.",
- "type": [
- "object",
- "null"
- ]
- },
- "thread_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "untrusted_customer_content": {
- "properties": {
- "place_name": {
- "description": "The group's name on the channel.",
- "type": "string"
- },
- "preview": {
- "type": "string"
- },
- "sender": {
- "type": "string"
- },
- "sender_name": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "id",
- "channel_id",
- "state",
- "rules",
- "item_count",
- "untrusted_customer_content"
- ],
- "type": "object"
- },
- "commands": {
- "description": "The channel's commands that open a request, for create.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "decisions": {
- "items": {
- "type": "object"
- },
- "type": "array"
- },
- "items": {
- "items": {
- "properties": {
- "agent_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "body": {
- "description": "What the team or the channel said; a customer's words are under untrusted_customer_content.",
- "type": "string"
- },
- "contact_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "direction": {
- "enum": [
- "in",
- "out"
- ],
- "type": "string"
- },
- "disposition": {
- "enum": [
- "unresolved",
- "gathering",
- "conversation",
- "pending_review",
- "not_request",
- "staff",
- "bot",
- "archived"
- ],
- "type": "string"
- },
- "disposition_reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "id": {
- "type": "string"
- },
- "is_other_customer": {
- "description": "A customer who is not the conversation's (a group).",
- "type": "boolean"
- },
- "link_reason": {
- "type": [
- "string",
- "null"
- ]
- },
- "linked": {
- "type": "boolean"
- },
- "message_id": {
- "description": "The conversation message it became, read with colliedesk_conversation_get.",
- "type": [
- "string",
- "null"
- ]
- },
- "occurred_at": {
- "type": "string"
- },
- "role": {
- "enum": [
- "customer",
- "staff",
- "bot"
- ],
- "type": "string"
- },
- "thread_id": {
- "type": "string"
- },
- "untrusted_customer_content": {
- "properties": {
- "body": {
- "type": "string"
- },
- "files": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "quote_external_id": {
- "type": "string"
- },
- "sender": {
- "type": "string"
- },
- "sender_name": {
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "id",
- "thread_id",
- "direction",
- "role",
- "disposition",
- "occurred_at",
- "untrusted_customer_content"
- ],
- "type": "object"
- },
- "type": "array"
- }
-}