Data API
Frontnow Advisor provides a RESTful API that allows you to programmatically access and interact with the Advisor's functionality from your own application or website.
Frontnow Advisor's Data API allows you to add documents to the dataset, which can be used to train Frontnow Advisor's AI model. A document can contain a title, text, short description, preview URL, and corresponding website URL.
Authentication: To use the Data API, you need to authenticate with an API key. You can obtain an API key from the Frontnow Advisor dashboard.
API Endpoint: The API endpoint for adding documents is
https://api.frontnow.com/data/documents
.Request Body: The request body for adding a document is a JSON object that contains the following fields:
Add Document
POST
https://api.frontnow.com/data/documents.
Adding Documents to the Dataset for Training the AI Model
Headers
API_KEY*
String
Frontnow API Key to access the REST API.
Request Body
title*
String
The title of the document.
metadata
JSON
A JSON object containing metadata for the document.
website_url
String
The URL of the website that the document corresponds to.
preview_url
String
A preview URL for the document.
description
String
A short description of the document.
text*
String
The unstructured text of the document.
Here's an example request body:
Response Body: The response body for adding a document is a JSON object that contains the following fields:
status
: The status of the request. Possible values aresuccess
andfailure
.message
: A message indicating whether the request was successful or not.
Training the AI Model: Once the document has been added to the dataset, it can be used to train Frontnow Advisor's AI model. The more documents added to the dataset, the better the AI model will be at generating relevant and accurate answers to customer questions.
By using the Data API to add documents to the dataset for training the Frontnow Advisor's AI model, you can provide the best possible answers to customer questions that are tailored to your brand, products, or services. If you have any questions or need assistance, please don't hesitate to contact us.
Was this helpful?