Training Data

Create training data

Create training data. Supports multiple types: text, url, file, video, qa. Processing happens automatically in the background.

post/training-data

Request

  • Base URL: https://api.weav.com/v1
  • URL: https://api.weav.com/v1/training-data
  • Auth: HTTP bearer

Request body

type'text' | 'url' | 'file' | 'video' | 'qa' required
contentstring

Required for type='text'

urlstring url

Required for type='url'

filestring binary

Required for type='file' (multipart/form-data)

video_urlstring url

Required for type='video'

questionstring

Required for type='qa'

answerstring

Required for type='qa'

titlestring nullable
descriptionstring nullable
agent_idsstring[] nullable

Array of agent UUIDs to attach this training data to

Example request

{
  "type": "text",
  "content": "Your text content here",
  "url": "https://example.com",
  "video_url": "https://youtube.com/watch?v=...",
  "question": "What is your return policy?",
  "answer": "Our return policy allows returns within 30 days."
}

Response

Training data created. Processing will happen in background.

idstring uuid
type'text' | 'url' | 'file' | 'video' | 'qa'
sourcestring
titlestring nullable
descriptionstring nullable
slugstring nullable
is_processedboolean
status'queued' | 'processing' | 'completed' | 'failed' nullable
training_folder_idstring uuid nullable
created_atstring date-time nullable
updated_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.