Skip to main content

Query Agent conversation history

GET 

/v1/aibot/bots/:botId/records

Query Agent conversation history

Request

Path Parameters

    botId stringrequired

    Agent ID

    Example: bot-xxx

Query Parameters

    sort stringrequired

    Sort order by creation time, asc for ascending, desc for descending

    Example: desc
    pageSize number

    Pagination size, defaults to 10

    Example: 10
    pageNumber number

    Pagination page number, defaults to 1

    Example: 1

Responses

Returned when conversation history is queried successfully

Response Headers
  • X-Request-Id string

    Request ID

Schema
    recordList object[]required

    Conversation history list

  • Array [
  • botId string

    Agent ID

    recordId string

    Conversation record ID generated by the system

    role string

    Role in the conversation

    content string

    Conversation content

    conversation string

    User identifier

    type string

    Conversation data type

    image string

    Image URL generated in the conversation

    triggerSrc string

    Source of the conversation trigger

    replyTo string

    ID of the record being replied to

    createTime string

    Conversation time

  • ]
  • total numberrequired

    Total number of conversations

Loading...