Create Answer Filter
Add an answer filter to an agent. Answer filters help fine-tune the agent for specific queries by providing examples of good and bad responses.Path Parameters
The unique identifier of the agent
Request Body
Array of query strings that this filter should apply to
Threshold value for triggering the filter (0.0 - 1.0, default: 0.5)
Array of examples of bad/unwanted responses
Array of examples of good/desired responses
Response
Answer filter unique identifier
ID of the agent this filter belongs to
Threshold value for triggering the filter
Array of query strings this filter applies to
Array of bad response examples
Array of good response examples
When the filter was created (ISO 8601 format)
When the filter was last updated (ISO 8601 format)
Get Answer Filters
Get all answer filters for an agent.Path Parameters
The unique identifier of the agent
Response
Total number of answer filters
Whether there are more results available
Array of answer filter objects
Update Answer Filter
Update an existing answer filter for an agent.Path Parameters
The unique identifier of the agent
The unique identifier of the answer filter
Request Body
Updated array of query strings that this filter should apply to
Updated threshold value for triggering the filter (0.0 - 1.0)
Updated array of examples of bad/unwanted responses
Updated array of examples of good/desired responses
Response
Returns the updated answer filter object.Delete Answer Filter
Delete an answer filter from an agent.Path Parameters
The unique identifier of the agent
The unique identifier of the answer filter to delete
Response
Returns a 204 status code on successful deletion.Understanding Answer Filters
Answer filters are a powerful mechanism for improving agent responses through example-based learning. They work by:1
Query Matching
When a user query comes in, the system calculates similarity scores against the filter’s query examples
2
Threshold Check
If the similarity score exceeds the trigger threshold, the filter activates
3
Response Guidance
The agent uses the good/bad response examples to guide its answer generation
4
Quality Improvement
Over time, this leads to more consistent and higher-quality responses for specific topics
Best Practices
Query Examples
Query Examples
- Include 3-5 different ways users might ask the same question
- Use natural language variations and synonyms
- Consider different levels of formality
- Include common misspellings or abbreviations if relevant
Response Examples
Response Examples
- Provide 2-3 examples of ideal responses
- Include 2-3 examples of poor responses to avoid
- Make examples specific and detailed
- Ensure good examples follow your brand voice and guidelines
Threshold Tuning
Threshold Tuning
- Start with 0.5 and adjust based on performance
- Higher thresholds (0.7-0.9) for very specific topics
- Lower thresholds (0.3-0.5) for broader topic categories
- Monitor and adjust based on activation frequency
Maintenance
Maintenance
- Regularly review and update filters based on new queries
- Remove or modify filters that are no longer relevant
- Add new filters for emerging topics or issues
- Test filters with real user queries
Use Cases
Customer Support
Filter common support queries like refunds, shipping, or technical issues to ensure consistent, accurate responses
Product Information
Standardize responses about product features, specifications, and availability
Policy Clarification
Ensure accurate communication of company policies, terms of service, or legal information
Brand Voice
Maintain consistent tone and messaging across all agent interactions
Answer filters complement but do not replace comprehensive training data. They work best for fine-tuning specific response patterns rather than teaching entirely new knowledge.