Skip to main content

Chat

Send new chat message and get response from your AI chat bot

Request Body required

Chat message request body

    projectId uuid required

    Your Magic AI project id

    text string required

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

    sessionId string required

    The unique identifier of the session. If you don't provide it, the API will generate a new session id for you. You will need to save this on your side for consecutive requests. Otherwise you will loose chat history

Responses

successful operation


Schema
    text string

    The response you get from your AI chat bot

    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...