Uploading data sources
How to upload data sources to your chatbot using the AI Chatbot Hub API
Prerequisites
Before you begin, ensure you have:
An API key to access the AI Chatbot Hub API.
A development environment or tool to make HTTP requests, such as Curl or a programming language like Python.
API Endpoint
The API endpoint for uploading data sources to your chatbot is:
https://app.aichatbothub.com/api/v1/chatbot/{uuid}/data-source/url
Replace {uuid}
with your chatbot’s unique identifier (UUID).
Request Body
To upload a data source, send a POST request to the API endpoint. The request body should include the URL of the data source you want to upload. Below is an example:
Request Body Details
url
(string, required): The URL of the data source you wish to upload.
Example Request
Here’s an example command to upload a data source using the AI Chatbot Hub API. Replace <token>
with your actual API key.
You’ve successfully learned how to upload data sources to your chatbot using the AI Chatbot Hub API. Now your chatbot can leverage the uploaded data for more specific and enriched interactions!
Last updated