Skip to main content

Get chat session

Get chat history for given session id.

Path Parameters
    projectId uuid required

    Your magic AI project id

    sessionId string required

    Your chat session id

Responses

successful


Schema
  • Array [
  • question string

    The text message that you sent to your AI chat bot

    answer string

    The response you get from your AI chat bot

    projectId uuid

    Your Magic AI project id

    sourceDocuments object[]

    The documents that your AI chat bot used to generate the response

  • Array [
  • pageContent string

    The text message that you want to send to your AI chat bot

    metadata object
    title string

    The title of the datasource used to train the AI model

    url string

    If the datasource is a web page, this is the url of the page

  • ]
  • ]
Loading...