Query (Explain)

Query API Request and Response

Our Query API allows a user to ask questions to your AskAI via a simple API call.

If your AskAI doesn't know the answer, the API will also return an additional field to confirm an answer wasn't found as well as 3 suggested questions the user can retry (these have a very high likelihood of being answered correctly):

"unknown_answer": "yes",

"suggestedQuestions": ["Example question", ...]

The query field has a 400 character limit. If this is exceeded you will see an error: {"error":"This question is longer than 400 characters. Please ensure questions are less than 400 characters."}

Last updated