Salesforce Live Agent Error : Prechat API is not enabled by the specified deployment
In Live Agent, sometimes we need to pass some values from the page, where Start Chat button is located, to Pre-chat form.
To achieve this, we use
liveagent.addCustomDetail() function to set the values. On Pre-chat form page, we use
liveagent.details.preChatInit() function to access those details.
Follow below steps to enable it.
Go to Setup || Customize || Live Agent || Deployments || Edit or Create your Deployment || Enable “Allow Access to Pre-Chat API” || Save