Communicating with Lightning Components

If you set up Salesforce Voice with Partner Telephony, enable communication between the Lightning components and your telephony system. You can do this by creating a Lightning Message Service (LMS) bridge and/or configuring the Salesforce Voice Toolkit APIs.

With the Lightning Message Service (LMS) bridge, you can:

  • Send messages to the connector and receive messages from the connector at any time.
  • Send custom messages between the telephony system and components on the page.

With the Salesforce Voice Toolkit API, you can:

  • Receive telephony events, including start, end, and mute call events.
  • Take advantage of a predefined set of Voice-related messages, such as CALL_STARTED, CALL_CONNECTED, and PAUSE_RECORDING.

We recommend using the LMS Bridge for communication between the Omni-Channel softphone and your components because it’s more secure and flexible. However, you can use the Salesforce Voice Toolkit API instead because of its simplicity.