Create and train a chatbot
https://api.chat-data.com/ api/ v2/ create- chatbot/ create-chatbotCreate a chatbot using one of our medical chat models, your own uploaded data, or a custom model. model is required; a request without a valid model is rejected with a 400.
Available models:
custom-data-upload: For training with your own data using OpenAI GPT models includingGPT 5.6 Sol,GPT 5.6 Terra, andGPT 5.6 Luna; Anthropic Claude models includingClaude Opus 5andClaude Sonnet 5; Google Gemini models includingGemini 3.7 FlashandGemini 3.5 Flash Lite; plus earlier supported models.medical-chat-human: For human medical questionsmedical-chat-vet: For veterinary medical questionscustom-model: For using a custom model
For the custom-data-upload model, you can provide training data using sourceText, urlsToScrape, products or qAndAs. Other models do not use these fields, but urlsToScrape must still contain valid URLs and products must still be an array.
For the custom-model model, customBackend is required and bearer is optional. Chat Data sends a test request to the backend first and creates the chatbot only if the backend answers as expected.
You can poll the status of the training with GET /chatbot/status/{chatbotId} at an interval of 10 seconds. Training generally takes 1-2 minutes, depending on the length of the provided text or websites.
Note: The training data is subject to character limits based on your plan.
This operation requires a workspace API key; chatbot-scoped keys get a 403.
Request body
Sending 1 of 8 fieldsmodelstring- For training with your own data:
custom-data-upload - For human medical questions:
medical-chat-human - For veterinary medical questions:
medical-chat-vet - For a custom model:
custom-model
sourceText, urlsToScrape, products and qAndAs are not used, though urlsToScrape must still contain valid URLs and products must still be an array.Only these fields are sent (application/json).