Skip to content

Agent

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.

Agent

API Request

  • Example
  • Field description
Parameter NameTypeRequiredDescription
pageIntegerNPage number (starting from 0)
sizeIntegerNNumber of records per page returned
keywordStringNKeyword

API Response

  • Example
  • Field description
Parameter NameTypeRequiredDescription
pageNumIntegerYPage number (starting from 0)
pageSizeIntegerYNumber of records per page returned
totalIntegerYTotal number of records
pagesIntegerYTotal number of pages
currentPageTotalIntegerYNumber of records in the current page
contentArray<Object>YKnowledge base list content
content.idIntegerYAgent unique identifier
content.nameStringYAgent name
content.descriptionStringYAgent description
content.statusStringYAgent status
ENABLED/DISABLED
content.createDatetimeTimestampYAgent creation time
content.updateDatetimeTimestampYAgent update time

Agent Execute

Process Trigger

API Request

  • Example
  • Field description
Parameter NameTypeRequiredDescription
agentIdIntegerYAgent unique identifier
queryStringYAgent conversation input

API Response

  • Example
  • Field description
Parameter NameTypeRequiredDescription
taskIdIntegerYAgent task ID
statusStringYAgent task status
CREATED/IN_PROCESS/FAILED/FINISHED

Process Detail

API Request

  • Example
  • Field description
Parameter NameTypeRequiredDescription
idIntegerYAgent task ID

API Response

  • Example
  • Field description
Parameter NameTypeRequiredDescription
taskIdIntegerYAgent task ID
statusStringYAgent task status
CREATED/IN_PROCESS/FAILED/FINISHED
nodesArray<Object>YList of nodes
nodes.numberIntegerYNode number
nodes.idIntegerYNode ID
nodes.statusStringYNode status
CREATED/IN_PROCESS/FAILED/FINISHED
nodes.resultStringYProcessing result of the node
nodes.costTimeIntegerYTime consumed to process the node
nodes.nodeInputsArray<Object>YList of input fields of the node
nodes.nodeInputs.nameStringYField name of the node
nodes.nodeInputs.valueStringYField value of the node
nodes.nodeInputs.typeStringYField type of the node
REFERENCE/INPUT
nodes.nodeOutputsArray<Object>YList of output fields of the node
nodes.nodeOutputs.nameStringYField name of the node
nodes.nodeOutputs.valueStringYField value of the node
nodes.nodeOutputs.typeStringYField type of the node
STRING,INTEGER,BOOLEAN,NUMBER,OBJECT,
ARRAY_STRING,ARRAY_INTEGER,
ARRAY_BOOLEAN,ARRAY_NUMBER,
ARRAY_OBJECT

Agent Question-Answering