On this page
Step 1 – Preliminary setup in Movidesk
Step 2 – Create a RingCentral app
Step 3 – Create a Heroku account
Step 5 – Install the Heroku CLI
Step 6 – Configure the Heroku config vars
Step 7 – Download the integration
Step 8 – Deploy to the Sandbox environment
Step 9 – Graduate your RingCentral app for production
Step 10 – Update the Heroku config vars for production
Step 11 – Re-deploy the integration in Heroku
Step 12 – Test the integration
This article will guide you on how to set up an integration between RingCentral and Movidesk.
Though there is no native integration between RingCentral and Movidesk, this integration makes use of the Movidesk and RingCentral APIs.
You can use your own servers to host the integration agent, but this to facilitate a plug-and-play setup this guide assumes you will be using Heroku to host the integration agent.
Heroku’s free plan is sufficient for the initial deployment and testing of the integration, but you will need to upgrade to one of the paid plans. The Hobby plan is only $7/month and should be sufficient for most organizations, but larger operations can also use one of the other paid plans for improved performance.
This integration is designed to avoid disrupting your existing RingCentral setup. It uses RingCentral’s call queue control and routing, so you don’t have to reconfigure call queue controls and call distribution in Movidesk.
Before configuring your RingCentral integration, we strongly recommend reading the following articles. These cover how to grant the relevant permissions in Movidesk, and basic concepts on how to configure and use the Telephony module.
- Understanding and enabling your telephony channel
- Creating call groups
- Working with phone calls
- Telephony APIs
Step 1 – Preliminary setup in Movidesk
Create call groups in Movidesk corresponding to call queues in RingCentral.
You only need to create call groups in Movidesk for call queues where the RingCentral users are also Movidesk users.
The Queue ID for each call group in Movidesk should be the RingCentral extension for the corresponding call queue.
See the Creating call groups article for more information on how to configure call groups.
Also ensure that every agent in a call group has a Phone extension registered in the Other contacts section of their profile. This should match their individual extension in RingCentral.
Direct calls to agents
In some organizations, customers may be able to contact your agents by phone directly, without being routed by a call queue.
If you don’t want to trigger the Telephony module in Movidesk for direct calls, no action is needed.
If you want to trigger the Telephony module in Movidesk for direct calls, determine whether:
- An existing call group will be used as the default for direct calls, or
- Direct calls should be broken out into a “Direct calls” call group.
When creating a “Direct calls” call group, we suggest using 999 as the Queue ID, but you can choose any number.
Step 2 – Create a RingCentral app
Go to developers.ringcentral.com and sign in with your RingCentral account.
Select the Console tab, then select Create app.
Select the following parameters when creating the app:
- What type of app are you creating?
- Other Non-UI (e.g. cronjob, daemon, command line)
- Who will be authorized to access your app?
- Only members of my organization/company
- Do you intend to promote your app in our App Gallery?
- No
Select Next to continue creating the app.
Enter a name and description for the app.
Select the following app permissions:
- Call Control
- Read Accounts
- Webhook Subscriptions
Select a primary contact for the app.
Select Create to finish creating the app.
Step 3 – Create a Heroku account
Go to signup.heroku.com and create a Heroku account.
While creating the account, select Node.js as the primary development language.
Check your email to confirm your account and create a password.
After creating your account, select Create a new app.
Enter an app name, for example “yourcompany-movidesk-rc-integration”, then select Create app.
In the Deploy tab for the app, select Heroku Git as the deployment method.
Step 4 – Install Git
You can skip this step if you already have Git installed.
To install Git visit this webpage.
Follow the instructions for your operating system to install Git.
If installing on Windows, we suggest using the https://git-scm.com/download/win link instead of installing the Chocolatey package.
When installing Git, we recommend using the default install settings unless you are familiar with version control tools.
Step 5 – Install the Heroku CLI
Download and install the Heroku CLI.
Step 6 – Configure the Heroku config vars
Go to the Settings tab in your Heroku app.
Select Reveal Config Vars.
Add the following key-value pairs:
|
Key |
Value |
|
H_APP_NAME |
Your Heroku app name |
|
DEFAULT_QUEUE |
The Queue ID for the “Direct calls” call group you created in Step 1. Use |
|
EXTENSIONS_PER_PAGE |
Number of extensions returned per request, which will be used for pagination. We recommend setting to |
|
REFRESH_INTERVAL |
Number of minutes before the extension list is refreshed. We recommend setting to 60 |
|
IGNORE_INTERNAL_CALLS |
Set to Set to |
|
MOVIDESK_TOKEN |
Enter your Movidesk API token. To find the token go to the Environment tab in in Configurations > Parameters. |
|
WEBHOOK_TOKEN |
Enter a validation token that will be used to identify valid RingCentral events. This token can be any unguessable text. |
|
RC_APP_KEY |
Enter the Client ID* for your RingCentral app. |
|
RC_APP_SECRET |
Enter the Client Secret* for your RingCentral app. |
|
RC_USERNAME |
Your RingCentral username*. Either a phone number (e.g. +15551234567) or your email, whichever you use to sign in to RingCentral. Must be an administrator level RingCentral user or higher in your RingCentral Sandbox environment. Will be replaced by your username in the production environment in a later step. |
|
RC_PASSWORD |
The password* corresponding to your user in the RingCentral Sandbox environment. Will be replaced by your password in the production environment in a later step. |
|
RC_EXTENSION |
The RingCentral extension* corresponding to your user in the RingCentral Sandbox environment. Will be replaced by your extension in the production environment in a later step. |
|
RC_SERVER |
The URL for the RingCentral API. Use the Sandbox environment URL: Will be replaced by the production environment URL in a later step. |
* To find the Client ID and Client Secret for your RingCentral app—as well as your Username and Extension—go to https://developers.ringcentral.com/. Select the Console tab, then select your app. Finally, select Credentials in the sidebar and you’ll be able to see these credentials for the Sandbox and Production environments. Note that you’ll need to select “Click to see” in order to see the Client Secret. Here you will also be able to reset the Password used in RC_PASSWORD.
Step 7 – Download the integration
Download the .zip file attached at the bottom of this article, then unzip the file.
Step 8 – Deploy to the Sandbox environment
Run Git Bash in the directory
Now we need to run Git Bash in the directory with the integration files.
If you are on Windows, you can right-click inside the folder that contains the integration files and select Git Bash here.
Alternatively, you can run the Git Bash application and enter a command to change directory in the terminal.
For example, if the the directory with the integration files is:
"C:\Users\Your User\Downloads\Movidesk-RingCentral-Integration"
Enter the command: cd "/c/Users/Your User/Downloads/Movidesk-RingCentral-Integration/"
Note how the backslashes in the file path need to be converted into slashes, and the colon after the root directory (C) is removed.
Log in to the Heroku CLI and deploy
Enter the following command, then follow the prompts to log into the Heroku CLI:
heroku
login
Enter the following commands—replacing with your Heroku app name—to deploy the integration to Heroku:
heroku
git:remote -a your-heroku-app-name
git
push Heroku master
Wait until the deployment is completed, then wait a few seconds before entering this command to verify the connection with RingCentral was successful:
heroku
logs
You should see the message "SUBSCRIPTION CREATED SUCCESSFULLY."
|
|
If you have already deployed the integration previously, you may instead see the message “SUBSCRIPTION ALREADY EXISTS.” This is expected and simply prevents the creation of duplicate subscriptions if the subscription already exists in RingCentral. The integration will continue functioning normally. |
Step 9 – Graduate your RingCentral app for production
RingCentral requires your app to run successfully in the Sandbox before it can be used in the Production environment.
|
|
There is a known issue with the RingCentral API where there is a mismatch between the API endpoints and the required App permissions.
We have updated the integration to account for this, but it requires you to make 5 phone calls from an external phone number to your RingCentral Sandbox phone number in order to meet the RingCentral graduation requirements. Note that you do not need to answer the phone calls and can hang up after hearing the Interactive Voice Response prompt.
After making the five phone calls, you can proceed to the steps below. |
To meet the required number of API requests, wait overnight. This will give the application enough time to make the requests, and for the RingCentral servers to refresh the analytics data used to verify the requirements.
After waiting, go to https://developers.ringcentral.com/. Select the Console tab, then select your app. Finally, select Status & Review in the sidebar and verify the graduation requirements have been met.
Then select Apply for production.
You will be prompted to fill out a form. Enter your information, and finally paste the blurb below as the comment on the final step:
NodeJS application deployed on Heroku.
Application obtains a list of user and call queue extensions, which is updated at a set interval. Application creates a subscription for telephony events.
Application listens for requests from the subscription waits until an agent answers a call. Then it sends a request to the Movidesk API to display a list of tickets related to the caller to the agent which answered the call.
In the event of a missed call, the application sends an API request to Movidesk to create a ticket for follow-up.
Your application will likely be auto-approved by the RingCentral graduation bot, but may fall for manual review. Manual review by the RingCentral team may take up to a week.
Step 10 – Update the Heroku config vars for production
After your RingCentral app is graduated to production, you must obtain your RingCentral Client ID and Client Secret for the production environment.
Go to https://developers.ringcentral.com/ and sign-in. Select the Console tab, then select your app. Finally, select Credentials in the sidebar and you’ll now be able to see the credentials for the Production environment. Note that you’ll need to select “Click to see” in order to see the Client Secret.
In another window go to https://dashboard.heroku.com/apps/ and sign-in.
Go to the Settings tab in your Heroku app and scroll down until you see Maintenance mode. Toggle maintenance mode on, then select Reveal Config Vars.
Select the pencil icon to update the following key-value pairs. Note that you must select Save changes after updating each value.
|
Key |
Value |
|
RC_APP_KEY |
Enter your production Client ID. |
|
RC_APP_SECRET |
Enter your production Client Secret. |
|
RC_USERNAME |
Enter your production RingCentral username. Either a phone number (e.g. +15551234567) or your email, whichever you use to sign in to RingCentral. Must be an administrator level RingCentral user or higher in your RingCentral production environment. |
|
RC_PASSWORD |
Enter your production RingCentral password. |
|
RC_EXTENSION |
Enter your RingCentral extension. Note that this may be different than the example extension listed in the Credentials screen where you found the Client ID. |
|
RC_SERVER |
Replace with the production URL for the RingCentral API: |
Go to Maintenance mode and toggle maintenance mode off.
Step 11 – Re-deploy the integration in Heroku
After toggling off maintenance mode in Heroku, open the Heroku CLI.
Enter the following commands:
heroku
restart
heroku
logs -t
You should see the message "SUBSCRIPTION CREATED SUCCESSFULLY."
Step 12 – Test the integration
The integration is now live and deployed in production.
Make a few phone calls to your RingCentral phone numbers from external phone numbers to validate that everything is working as expected.
We recommend testing the following scenarios:
- Call answered by a customer support agent opens the telephony module in Movidesk.
- Abandoned call generates a ticket in Movidesk for follow-up.