Chat Data icon

Chat Data

Basic Chat Data Node

Overview

The node enables creating a new chatbot with customizable training data and model options. It supports different chatbot models, including training with your own knowledge base, specialized medical chat models (veterinary or human), or connecting to a custom backend endpoint.

This node is useful when you want to programmatically create chatbots tailored to specific domains or datasets, such as:

  • Building a chatbot trained on your own text data or URLs scraped from websites.
  • Creating domain-specific medical chatbots for veterinary or human medicine.
  • Integrating with your own AI backend by specifying a custom API endpoint and authorization token.

For example, you can create a chatbot trained on a set of URLs containing product FAQs or company documentation, or instantiate a medical chatbot for customer support in a healthcare setting.

Properties

Name Meaning
Chatbot Name The name to assign to the newly created chatbot.
Model The chatbot model to use. Options:
• Train With Your Own Knowledge Base
• Veterinarity Medical Chat Model
• Human Medical Chat Model
• Your Own Backend Endpoint
Source Text Text content used to train the chatbot. Only applicable if the selected model is "Train With Your Own Knowledge Base".
Custom Backend The URL endpoint of your custom backend service. Used only when the model is "Your Own Backend Endpoint".
Bearer Token Authorization token (bearer token) for accessing the custom backend endpoint. Used only with the custom backend model.
URLs to Scrape One or more URLs to scrape and use as training data for the chatbot. Only shown when the model is "Train With Your Own Knowledge Base".

Output

The output JSON contains the response from the chatbot creation API call. Typically, it includes fields indicating success status, chatbot ID, and any additional metadata returned by the service.

Example output structure:

{
  "success": true,
  "chatbotId": "string",
  // other response fields depending on the API
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating requests to the chatbot service's REST API.
  • The node makes HTTP POST requests to the /api/v2/create-chatbot endpoint of the configured base URL.
  • Proper configuration of the API base URL and API key credential is necessary.
  • If using a custom backend model, the user must provide the backend endpoint URL and bearer token for authorization.

Troubleshooting

  • Missing or invalid API credentials: Ensure that the API base URL and API key are correctly configured in the node credentials.
  • Invalid input parameters: Required fields like "Chatbot Name" must be provided; otherwise, the node will throw an error.
  • Model-specific fields: For the "custom-data-upload" model, ensure that source text or URLs to scrape are properly formatted. For the "custom-model," verify that the custom backend URL and bearer token are valid.
  • API errors: If the API returns an error status, the node surfaces the error message. Check the API response for details and correct issues accordingly.
  • JSON parsing errors: Input fields expecting JSON (like arrays of URLs) must be well-formed to avoid parsing failures.

Links and References

Discussion