How do I set up Sunwave with RingCentral to capture and manage inbound call data?

How do I set up Sunwave with RingCentral to capture and manage inbound call data?

This article explains how to configure Sunwave and RingCentral so that incoming call information is captured in Sunwave and users receive real-time call notifications. It covers webhook setup, user mapping, and options for creating Leads or Opportunities.

Table of Contents

Configure Sunwave Webhook in RingCentral

  • Login to the RingCentral Developer Portal: https://developers.ringcentral.com/login.html#/

  • Once you login, click “Skip” in the Welcome to the RingCentral developer platform screen

    image-20241216-193420.png
  • Navigate to the Developer Guide:

    image-20241216-193640.png
  • Navigate to Notifications and Events > WebHooks > Getting Started, then click Create Webhook App:

     

  • Enter an App Name, for example Sunwave Integration, and optionally provide a description:

  • Under the Auth section, select JWT auth flow:

    image-20241216-193846.png

     

  • For Issue refresh tokens? Click “Yes”.

  • Under the Security section:

    • Add Call Control to the list of App Permissions.

    • Make sure the option “This app is private…” is selected.

    • Click the Create button at the bottom.

    image-20241216-193938.png

Configuring Sunwave

This section describes how to configure Sunwave to work with the RingCentral webhook.

Phone Setup

  • In Sunwave, go to Phone Setup under the user profile drop down:

     

  • In Phone ANI Param Name, type ANI (Automatic Number Identification) and click Save.

Mapping RingCentral Users to Sunwave Users

To map a user in RingCentral to the corresponding user in Sunwave, first get the RingCentral user ID:

  • Open the RingCentral Online Portal for the RingCentral App.

  • Go to Manage Users:

     

  • Click on a user, then copy the RingCentral user ID from the URL:

     

  • In Sunwave, go to Practice Setup > Users, then click on the corresponding Sunwave user:

     

  • Click Ok to save changes.

Configuring Lead vs. Opportunity Creation

When a Sunwave user answers an inbound call to RingCentral and the pop-up appears, customers can choose whether they want to create a new Lead or a new Opportunity.

To configure Lead vs. Opportunity Creation:

  • In Master Data > Manage Realms, modify the Incoming Call - Create Opportunity option:

    • Unchecked will provide the option to create a new Lead.

    • Checked will provide the option to create a new Opportunity.

Configuring RingCentral

This section describes how to configure RingCentral’s API Reference

Create a RingCentral Subscription

Subscriptions in RingCentral are used to monitor for specific events and trigger actions when they occur. This section describes how to create the subscription used to trigger calling the Sunwave Webhook.

  • Open the RingCentral API Reference:

    image-20241216-194649.png

     

  • Navigate to Events & Notifications > Create Subscription:

    • In eventFilters*, enter /restapi/v1.0/account/~/telephony/sessions to trigger the Sunwave Webhook for all telephony session events.

    • For expiresIn, enter: 315360000

      • This means the API will be active for 10 years

    • For transportType, select WebHook.

    • For address, enter:
      https://emr.sunwavehealth.com/SunwaveEMR/phoneWebHook?method=ring_central_callback&sunwave_public_key=####################&sunwave_private_key=####################

      • sunwave_public_key and sunwave_private_key can be found in Sunwave under User Profile dropdown > Phone Setup:

  • Then click the image-20250107-000223.png:

    image-20250107-000814.png
  • Then click Authorize:

    image-20250107-000301.png
  • You should receive a message indicating you are now ready to make API calls, click OK:

Verify the Subscription

  • Navigate to Events and Notifications → Subscriptions → List Subscriptions → image-20250107-000223.png:

image-20250107-000729.png
  • Then click Authorize:

    image-20250107-000301.png
  • You should receive a message indicating you are now ready to make API calls, click OK:

  • Click image-20250107-000223.png again and you should see a 200 response in the Console (black, right-panel):

    image-20250107-001011.png

     

  • In the “records”, click the […] to expand

    image-20250107-001054.png

     

  • Then, click the {…} to expand

    image-20250107-001110.png

Using RingCentral integration in Sunwave

This section describes how end users will work with the RingCentral integration within Sunwave.

Users answering inbound calls in RingCentral can receive a pop-up upon answering a call, providing quick access to create a new Lead or Opportunity, or modify an existing opportunity if one is found associated with the Caller ID.

To enable pop-up call notifications in Sunwave, toggle the Receive Calls option in the banner area of Sunwave:

When the user answers a call from a new caller, the following pop-up will appear:

Click on New button to create a new Lead or Opportunity based on the realm configuration.

Inbound calls can be reviewed in the CRM > Calls section, here they can view all data captured about inbound calls including Caller Number, Disposition, Station User, Created by, Created date and time and Opportunity Id (if one is associated with the call):

RingCentral call data can also be analyzed using the CRM > Calls Dynamic Report:

Good to Know

  • There is no campaign association between Sunwave and RingCentral like CTM

  • There is no Google Parameters sent from RingCentral to Sunwave