/answer endpoint processes support tickets through the RAG system, combining ML triage classification with retrieval-augmented generation to provide comprehensive, citation-backed answers.
Endpoint
Request Body
The subject line of the support ticket
The full body/description of the support ticket
Optional specific question from the user. If not provided, the system will generate an answer based on the subject and body.
Response
ML triage classification results
AI-generated draft response to send to the customer
List of recommended next steps for internal support team
Source documents and snippets used to generate the answer
Flag indicating whether the ticket requires human review before responding
Example Request
How It Works
The/answer endpoint performs the following operations:
- Triage Classification - Predicts the ticket category and priority using ML models
- Document Retrieval - Searches the knowledge base for relevant information
- Answer Generation - Uses an LLM to generate a structured response with:
- Customer-facing draft reply
- Internal next steps for support agents
- Citations from source documents
- Human review flag based on confidence scores
Ensure documents have been ingested into the knowledge base using the
/ingest endpoint before querying for answers.