Sim & Teach API Documentation

API documentation for developers to integrate with the Sim and Teach endpoints.

Sim Endpoint

The /sim endpoint is used to query a chatbot for a response. Use the query parameter to pass your text query.

HTTP Method: GET

Endpoint: /sim

Parameters:

Example Request:

GET /sim?query=hello

Example Response:

{
  "author": "Jerome",
  "status": 200,
  "respond": "Hi! How can I help you?",
  "processingTime": "12.34ms"
}
      
Test Now

Teach Endpoint

The /teach endpoint is used to teach the chatbot new responses. Use the ask and ans parameters to pass the input query and the corresponding response.

HTTP Method: GET

Endpoint: /teach

Parameters:

Example Request:

GET /teach?ask=How%20are%20you?&ans=I%20am%20good,%20thank%20you!

Example Response:

{
  "author": "Jerome",
  "status": 200,
  "message": "Successfully taught the Bot Hosting API",
  "processingTime": "15.67ms"
}
      
Test Now