Skip to content

AI

Bases: DuploTenantResourceV3

Resource for creating tickets in the DuploCloud AI HelpDesk.

create_ticket

Create DuploCloud AI ticket.

Create a ticket in the DuploCloud AI HelpDesk.

Usage
duploctl ai create_ticket --title <title> --content <content> --agent_name <agent name> --instance_id <instance id> [--api_version v1]
Create DuploCloud AI helpdesk ticket

Run this command Create a ticket for a failed build pipeline in test environment.

duploctl ai create_ticket \
  --title "Build pipeline failed for release-2025.07.10" \
  --content "Build pipeline failed at unit test stage with error ..." \
  --agent_name "cicd" \
  --instance_id "cicd" \
  --api_version v1

Parameters:

Name Type Description Default
title TITLE

Title of the ticket.

required
agent_name AGENTNAME

The agent name.

required
instance_id INSTANCEID

The agent instance ID.

required
content MESSAGE

Content or message of the ticket.

None
api_version APIVERSION

Helpdesk API version.

'v1'

Returns:

Name Type Description
ticket_response dict

A dictionary containing the following keys:
ticketname : The name of the created AI helpdesk ticket.
ai_response: The AI agent's response object or message content returned from the service.
chat_url: The URL to the helpdesk chat interface for the created ticket.

send_message

Send DuploCloud AI Message.

Send a message to an existing ticket in the DuploCloud AI HelpDesk.

Usage
duploctl ai send_message --ticket_id <ticket id> --content <content>
Send a message to an AI helpdesk ticket

Run this command to send a message to ai helpdesk ticket.

duploctl ai send_message \
  --ticket_id "andy-250717131532" \
  --content "My app is still failing after restarting the pod." \
  --api_version v1

Parameters:

Name Type Description Default
ticket_id TICKETID

Ticket ID to send the message to.

required
content MESSAGE

The message content.

required
api_version APIVERSION

Helpdesk API version.

'v1'

Returns:

Name Type Description
chat_response dict

A dictionary containing the following keys:
ai_response: The AI agent's response object or message content returned from the service.
chat_url: The URL to the helpdesk chat interface for the specified ticket.