Ticket
Bases: DuploResource
Manage AI HelpDesk tickets in DuploCloud.
Tickets live inside an AI HelpDesk workspace and are handled by an
agent. Workspace and agent resolution is delegated to the
workspace and agent resources so the same name-or-id lookup
is shared across the CLI.
Commands
create_ticket
Create an AI HelpDesk ticket.
The workspace is resolved via --workspace (name) or
--workspace-id. Provide either --agent_id (preferred, skips
the lookup) or --agent_name (resolved via the agent
resource). When --content is supplied the initial message is
sent to the agent.
CLI Usage
Returns:
| Name | Type | Description |
|---|---|---|
ticket_response |
dict
|
A dict with |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the workspace cannot be resolved, or if neither agent_id nor agent_name is provided. |
Parameters:
--title, --title
required
--workspace, --workspace, --wksp, -W
--workspace_id, --workspace-id, --wksp-id
--agent_id, --agent_id, --aid
--agent_name, --agent_name, --agent
--message, --content, --msg, --message, -f
--helpdesk_origin, --helpdesk-origin, --origin
--streaming, --streaming
--api_version, --api-version
find
Find an AI HelpDesk ticket within a workspace.
The ticket is fetched directly by its identifier (name or --id).
The workspace is resolved via --workspace (name) or
--workspace-id.
CLI Usage
Returns:
| Name | Type | Description |
|---|---|---|
resource |
dict
|
The ticket object. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If no ticket identifier or workspace selector is given. |
Parameters:
name
positional
--id, --id
--workspace, --workspace, --wksp, -W
--workspace_id, --workspace-id, --wksp-id
--api_version, --api-version
send_message
Send a message to an existing AI HelpDesk ticket.
The ticket's assigned agent is fetched to decide whether to use the
streaming endpoint; --streaming forces it on regardless.
CLI Usage
Returns:
| Name | Type | Description |
|---|---|---|
chat_response |
dict
|
A dict with |
Raises:
| Type | Description |
|---|---|
DuploError
|
If no ticket identifier, workspace, or message is provided. |
Parameters:
name
positional
--id, --id
--workspace, --workspace, --wksp, -W
--workspace_id, --workspace-id, --wksp-id
--message, --content, --msg, --message, -f
--streaming, --streaming
--api_version, --api-version