setName

Use the setName method to set the visitor name displayed in the Chat console or the Salesforce console.

Usage 

Sets the visitor name displayed in the Salesforce console. The name will show in the chat’s primary tab, the agent’s chat log with the chat transcript, and in the Live Agent Supervisor panel. Available in API versions 28.0 and later.

Syntax 

setName(String name)

Parameters 

NameTypeDescriptionAvailable Versions
nameStringThe visitor name that appears in the Chat console or the Salesforce console.Available in API versions 28.0 and later.