Skip to content

assistants

assistants close-conversation

Close a GenAI assistant conversation

Usage

bash
pega assistants close-conversation <assistantId> [flags]

Source endpoint: PUT /assistants/{assistantID}/conversations/{conversationID}/closeview command source

Arguments

ArgumentRequiredDescription
assistantIdYesAssistant 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 assistants close-conversation MYASSISTANT --conversation PXCONV-1

assistants get-conversation

Get details of a single GenAI assistant conversation

Usage

bash
pega assistants get-conversation <assistantId> [flags]

Source endpoint: GET /assistants/{assistantID}/conversations/{conversationID}view command source

Arguments

ArgumentRequiredDescription
assistantIdYesAssistant 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 assistants get-conversation MYASSISTANT --conversation PXCONV-503025

assistants list-conversations

List conversations for a GenAI assistant

Usage

bash
pega assistants list-conversations <assistantId> [flags]

Source endpoint: GET /assistants/{assistantID}/conversationsview command source

Arguments

ArgumentRequiredDescription
assistantIdYesAssistant 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 or landing-page context)
--page-sizeoptionNoResults per page
--page-indexoptionNoPage index (0-based)

Examples

sh
pega assistants list-conversations MYASSISTANT --context-id MYORG-WORK\!M-123
sh
pega assistants list-conversations MYASSISTANT --context-id CTX --page-size 20 --page-index 0

assistants send-message

Send a message in a GenAI assistant conversation

Usage

bash
pega assistants send-message <assistantId> [flags]

Source endpoint: PATCH /assistants/{assistantID}/conversations/{conversationID}view command source

Arguments

ArgumentRequiredDescription
assistantIdYesAssistant 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
--requestoptionYesUser query text

Examples

sh
pega assistants send-message MYASSISTANT --conversation PXCONV-1 --request "hello"

assistants start-conversation

Start a new GenAI assistant conversation

Usage

bash
pega assistants start-conversation <assistantId> [flags]

Source endpoint: POST /assistants/{assistantID}/conversationsview command source

Arguments

ArgumentRequiredDescription
assistantIdYesAssistant 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

Examples

sh
pega assistants start-conversation MYASSISTANT --context-id MYORG-WORK\!M-123
sh
pega assistants start-conversation MYASSISTANT --no-execute-starter