Skip to content

Chat

API Authorization

NOTE

  • To obtain the AUTH_TOKEN, please refer to the Authorization section and find the AUTH_TOKEN section.
  • Please make sure that all API requests include the AUTH_TOKEN in the request header, as shown below:

SDK Authorization

NOTE

  • Before integrating the SDK, please make sure that you have obtained the APP_ID and APP_KEY.
  • To obtain the APP_ID and APP_KEY, please refer to the Authorization section and find the Obtain APP_ID & APP_KEY section.

Chat(Server-Sent Events)

API Request

  • Example
  • Field description
Parameter NameTypeRequiredDescription
queryStringYDialogue content.

API Response

  • Example
  • Field description
Parameter NameTypeRequiredDescription
identifyIntegerYUnique identifier for the dialogue, which remains the same within the same session.
generatedTextStringYGenerated text for the dialogue.

API Request

  • Example
  • Field description
Parameter NameTypeRequiredDescription
queryStringYDialogue content.
typeStringYDialogue type, including CHAT/PAGE/AGENT

API Response

  • Example
  • Field description
Parameter NameTypeRequiredDescription
idIntegerYUnique identifier
nameStringYDialogue content.
typeStringYDialogue type, including CHAT/PAGE/AGENT
dataObjectYSupplementary information for the dialogue type.