Service Cloud Voice Toolkit API

lightning-service-cloud-voice-toolkit-api

A collection of front-end event listeners and API methods for interacting with Service Cloud Voice using the lightning-service-cloud-voice-toolkit-api component. This component requires API version 52.0 and later.

For Use In

Lightning Experience

Service Cloud Voice Toolkit API is a collection of front-end event listeners and API methods for interacting with the Service Cloud Voice product. This toolkit takes advantage of Einstein Next Best Action to give agents what they need when they need it during a conversation.

To use the Service Cloud Voice Toolkit API in your component:

  • Add the lightning-service-cloud-voice-toolkit-api component to your component's HTML template file.
  • Include the lightning__ServiceCloudVoiceToolkitApi capability in your component’s configuration file, <component>.js-meta.xml.

For more information about configuration files, see XML Configuration File Elements.

Make your components context-aware by listening to events that take place during phone calls.

To subscribe to an event, add an event listener. For instance, the following code subscribes and unsubscribes to the callstarted event type.

When an event occurs, your listener function receives a JSON payload that contains the event type, along with any relevant data. For instance, the callstarted event contains the following payload.

For information about the available events, see Service Cloud Voice LWC Toolkit API Events.

The toolkit provides the updateNextBestActions method, which enables your component to give recommendations in real time with Next Best Action.

For more information, see Service Cloud Voice LWC Toolkit Next Best Action.