Chatbot Training Guide

Train Chatbots With JSON

This guide explains how to train your Chatbots with free format JSON objects.


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 Chatbots