Skip to content

/AWS1/CL_QQB=>UPDATECHATRESPONSECONF()

About UpdateChatResponseConfiguration

Updates an existing chat response configuration in an Amazon Q Business application. This operation allows administrators to modify configuration settings, display name, and response parameters to refine how the system generates responses.

Method Signature

IMPORTING

Required arguments:

iv_applicationid TYPE /AWS1/QQBAPPLICATIONID /AWS1/QQBAPPLICATIONID

The unique identifier of the Amazon Q Business application containing the chat response configuration to update.

iv_chatresponseconfid TYPE /AWS1/QQBCHATRESPONSECONFID /AWS1/QQBCHATRESPONSECONFID

The unique identifier of the chat response configuration to update within the specified application.

it_responseconfigurations TYPE /AWS1/CL_QQBRESPONSECONF=>TT_RESPONSECONFIGURATIONS TT_RESPONSECONFIGURATIONS

The updated collection of response configuration settings that define how Amazon Q Business generates and formats responses to user queries.

Optional arguments:

iv_displayname TYPE /AWS1/QQBDISPLAYNAME /AWS1/QQBDISPLAYNAME

The new human-readable name to assign to the chat response configuration, making it easier to identify among multiple configurations.

iv_clienttoken TYPE /AWS1/QQBSTRING /AWS1/QQBSTRING

A unique, case-sensitive identifier to ensure idempotency of the request. This helps prevent the same update from being processed multiple times if retries occur.

RETURNING

oo_output TYPE REF TO /aws1/cl_qqbupdchatrspconfrsp /AWS1/CL_QQBUPDCHATRSPCONFRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->/aws1/if_qqb~updatechatresponseconf(
  it_responseconfigurations = VALUE /aws1/cl_qqbresponseconf=>tt_responseconfigurations(
    (
      VALUE /aws1/cl_qqbresponseconf=>ts_responseconfs_maprow(
        key = |string|
        value = new /aws1/cl_qqbresponseconf(
          io_instructioncollection = new /aws1/cl_qqbinstructioncoll(
            iv_custominstructions = |string|
            iv_examples = |string|
            iv_identity = |string|
            iv_outputstyle = |string|
            iv_perspective = |string|
            iv_responselength = |string|
            iv_targetaudience = |string|
            iv_tone = |string|
          )
        )
      )
    )
  )
  iv_applicationid = |string|
  iv_chatresponseconfid = |string|
  iv_clienttoken = |string|
  iv_displayname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.