Warddocs
API

POST /api/v1/ask

Field Type Description
question string, required The question, English or Spanish
context statement | document | screen | none What the result is; default none
result object The result of the decision
session_id string The chat's context window
previous_intent string intent of the last answer about this result
previous_query object query of the last answer, for follow-ups that point back

Response: intent, confidence, alternatives[] (intent, label, confidence), answer, model, latency_ms, context (the window meter). Below 0.45 confidence intent is unsure.

POST /api/v1/ask/feedback with {"question", "context", "intent"} records which answer was meant. See Ask.