Problem
When sending a message to SUSI.AI web client (e.g., "tell me a joke"), the Server sometimes returns a response format with properties like answer.text and answer.source, whereas Web UI expects response.answer. This discrepancy can break response rendering.
Steps to Reproduce
- Open https://susi.ai
- Send a chat intent like "tell me a joke"
- Inspect the network response JSON
- Notice mismatch in property names (e.g.,
answer.text vs response.answer)
Expected Behavior
Client and server should share consistent response schema:
- Either Server sends
response.answer
- Or Web client handles both
answer.text & response.answer
Suggested Fix
- Validate API response schema in Server
/cms/intent endpoints
- Update Web client chat logic to handle both cases
- Add sample API contract in documentation (README or developer docs)
Happy to submit a PR aligning schema or updating Web parser logic!
Labels: bug, good first issue, api, help wanted