Skip to main content

Query Agent Historical Conversation Information

GET 

/v1/aibot/bots/:botId/records

Query Agent Historical Conversation Information

Request

Path Parameters

    botId stringrequired

    Agent ID

    Example: bot-xxx

Query Parameters

    sort stringrequired

    Sort by creation time in ascending (asc) or descending (desc) order

    Example: desc
    pageSize number

    Pagination parameter, default to 10

    Example: 10
    pageNumber number

    Pagination parameter, default to 1

    Example: 1

Responses

Returned when chat records are successfully queried

Response Headers
  • X-Request-Id string

    Request ID

Schema
    recordList object[]required

    Historical Conversation List

  • Array [
  • botId string

    Agent ID

    recordId string

    Conversation 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 link generated by the conversation

    triggerSrc string

    Conversation initiation source

    replyTo string

    Record ID of the conversation reply

    createTime string

    Conversation time

  • ]
  • total numberrequired

    Total number of conversations

Loading...