Skip to main content

Create data source

Create a new data source with text content.

Path Parameters
    projectId uuid required

    Your magic AI project id

Request Body required

Project request body

    name string required

    Name of the datasource. Please give it a meaningful name so that you can easily find it later.

    text string required

    The text content of the data source. This text will be used to train your custom AI chat bot.

Responses

successful operation


Schema
    id uuid

    The unique identifier of the data source

    projectId uuid

    Your Magic AI project id

    name string

    The name of the data source.

    status string

    Possible values: [pending, processing, ready, failed]

    The status of the data source. If the status is ready, it means that the data source is ready to be used to train the AI model. If the status is processing, it means that the data source is still being processed. You can not use the data source until the status is ready.

    sourceType string

    Possible values: [file, drive, notion, web, text]

    Data source type. This is automatically set by the system depending on how did you connect your data source. You can not change it.

    summary string

    A short summary of the data source. When you first upload your data source, the system will automatically generate a summary for you.

    characterCount integer
Loading...