Chatbot Training Guide

Free Format Json Data

This section provides a step-by-step guide on uploading your JSON object into Chat Data.


Understanding JSON Objects

A JSON (JavaScript Object Notation) object is a lightweight data-interchange format that is easy for humans to read and write, and easy for machines to parse and generate. It is primarily used to transmit data between a server and web application as an alternative to XML.

Example of JSON Syntax:

{
    "name": "John Doe",
    "age": 30,
    "isStudent": false,
    "courses": ["Mathematics", "Science"],
    "address": {
        "street": "123 Elm St",
        "city": "Anytown"
    }
}
  • Keys must be strings wrapped in double quotes.
  • Values can be strings (in double quotes), numbers (integer or floating point), booleans (true or false), arrays (ordered lists enclosed in square brackets []), null values, or other JSON objects.

Uploading JSON to Chat Data

To upload JSON objects in bulk, they can be converted into a CSV format and uploaded.

Converting JSON to CSV

Convert the keys of the JSON object to the header row of the CSV file, and the values to the subsequent rows. For example, the JSON object shown above would be represented in a CSV as follows:

name, age, isStudent, courses, address.street, address.city
John Doe, 30, false, Mathematics; Science, 123 Elm St, Anytown

Uploading the CSV File

Follow the instructions in the .csv section to upload the CSV file to Chat Data for training.

Previous
Debug And Optimization