About This Guide
Prerequisites
API Versions
Create Deployments
addCustomDetail
setName
addCustomDetail.doKnowledgeSearch
Find and Create Records Deployment API Code Sample
Deployment API Code Sample
Use the knowledgeSearch method to automatically search for Knowledge articles based on criteria in a pre-chat form.
Retrieves a custom detail value from a pre-chat form when a customer requests a chat with an agent. After an agent accepts the chat request, this value is used as a search keyword to find articles in the Knowledge One widget. The doKnowledgeSearch() method conducts a search by using the value parameter in the addCustomDetail method. Available in API version 31.0 and later.
liveagent.addCustomDetail(String label, String value, (optional) Boolean displayToAgent).doKnowledgeSearch()