Skip to content

ai-agents

ai-agents close-conversation

Close an AI agent conversation

Usage

bash
pega ai-agents close-conversation <agentId> [flags]

Source endpoint: PUT /ai-agents/{agentID}/conversations/{conversationID}/closeview command source

Arguments

ArgumentRequiredDescription
agentIdYesAgent rule ID

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--conversationoptionYesConversation ID

Examples

sh
pega ai-agents close-conversation MYAGENT --conversation PXCONV-1

ai-agents dislike

Dislike a message in an AI agent conversation

Usage

bash
pega ai-agents dislike <agentId> [flags]

Source endpoint: PUT /ai-agents/{agentID}/conversations/{conversationID}/messages/{messageID}/dislikeview command source

Arguments

ArgumentRequiredDescription
agentIdYesAgent rule ID

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--conversationoptionYesConversation ID
--messageoptionYesMessage ID to dislike
--feedbackoptionYesFree-text feedback (becomes feedbackText in body)

Examples

sh
pega ai-agents dislike MYAGENT --conversation PXCONV-1 --message MSG-1 --feedback "off topic"

ai-agents get-conversation

Get details of a single AI agent conversation

Usage

bash
pega ai-agents get-conversation <agentId> [flags]

Source endpoint: GET /ai-agents/{agentID}/conversations/{conversationID}view command source

Arguments

ArgumentRequiredDescription
agentIdYesAgent rule ID (pxInsName)

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--conversationoptionYesConversation ID

Examples

sh
pega ai-agents get-conversation MYAGENT --conversation PXCONV-503025

ai-agents like

Like a message in an AI agent conversation

Usage

bash
pega ai-agents like <agentId> [flags]

Source endpoint: PUT /ai-agents/{agentID}/conversations/{conversationID}/messages/{messageID}/likeview command source

Arguments

ArgumentRequiredDescription
agentIdYesAgent rule ID

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--conversationoptionYesConversation ID
--messageoptionYesMessage ID to like

Examples

sh
pega ai-agents like MYAGENT --conversation PXCONV-1 --message MSG-1

ai-agents list

Fetch all AI agents enabled for external access

Usage

bash
pega ai-agents list [flags]

Source endpoint: GET /ai-agentsview command source

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile

Examples

sh
pega ai-agents list

ai-agents list-conversations

List conversations for an AI agent

Usage

bash
pega ai-agents list-conversations <agentId> [flags]

Source endpoint: GET /ai-agents/{agentID}/conversationsview command source

Arguments

ArgumentRequiredDescription
agentIdYesAgent rule ID (pxInsName)

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--context-idoptionYesContext ID (case context or landing-page context)
--page-sizeoptionNoResults per page
--page-indexoptionNoPage index (0-based)

Examples

sh
pega ai-agents list-conversations MYAGENT --context-id MYORG-MYAPP-WORK\!M-123
sh
pega ai-agents list-conversations MYAGENT --context-id CTX --page-size 20 --page-index 0

ai-agents send-message

Send a message in an AI agent conversation

Usage

bash
pega ai-agents send-message <agentId> [flags]

Source endpoint: PATCH /ai-agents/{agentID}/conversations/{conversationID}view command source

Arguments

ArgumentRequiredDescription
agentIdYesAgent rule ID (pxInsName)

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--conversationoptionYesConversation ID
--requestoptionYesUser query text
--attachmentsoptionNoJSON array of attachment descriptors (inline JSON, @file, or - for stdin)
--active-channeloptionNoChannel type (Web, Email, Chat, ...)
--active-channel-idoptionNoUnique ID of the channel

Examples

sh
pega ai-agents send-message MYAGENT --conversation PXCONV-1 --request "hello"
sh
pega ai-agents send-message MYAGENT --conversation PXCONV-1 --request "with file" --attachments @attachments.json

ai-agents start-conversation

Start a new AI agent conversation

Usage

bash
pega ai-agents start-conversation <agentId> [flags]

Source endpoint: POST /ai-agents/{agentID}/conversationsview command source

Arguments

ArgumentRequiredDescription
agentIdYesAgent rule ID (pxInsName)

Flags

FlagTypeRequiredDefaultDescription
--formatoptionNojsonOutput format (json, compact, yaml, table)
--fieldsoptionNoComma-separated top-level fields to include in output
--dry-runbooleanNoPrint HTTP request details and exit without executing
--quietbooleanNoSuppress all stderr progress/warning output
--verbosebooleanNoEmit full HTTP request/response details to stderr
--no-cachebooleanNoBypass token file cache; perform fresh OAuth exchange
--profileoptionNodefaultNamed config profile
--context-idoptionNoContext ID (case or landing-page context)
--interaction-idoptionNoUnique ID for external-app interactions
--execute-starterbooleanNoWhether to execute the configured starter question on initiation
--active-channeloptionNoChannel type (Web, Email, Chat, ...)
--active-channel-idoptionNoUnique ID of the channel

Examples

sh
pega ai-agents start-conversation MYAGENT --context-id MYORG-WORK\!M-123
sh
pega ai-agents start-conversation MYAGENT --no-execute-starter