RingCentral

Updated 1 month ago by Romain Lapeyre

You can use Zapier to create tickets in Gorgias when a customer calls you on RingCentral. We recommend setting up 3 zaps for different trigger events:

  • When a call has ended
  • When a call is missed
  • When there's a new voicemail

Create a Gorgias ticket when a call has ended

  1. In your Gorgias account, go to your profile
  2. Click on Rest API, and copy the base API URL, the username and the password
  3. Create a Zap with the App RingCentral and Call Ended as a trigger. The zap will run when this event happens in your RingCentral account. 
  1. Add an action to the Zap and rename it Create Gorgias ticket.
  2. Select the option Webhooks by Zapier as the app
  3. Select Custom request
  1. Now let's build your request
    1. "Method:" POST
    2. "URL:" https://{{your base api url from step 2}}.gorgias.io/api/tickets (see above)
    3. "Data Pass-Through?:" No
    4. "Data:" (see code below)
    5. "Unflatten:" no
    6. "Basic Auth:" {{username from step 2}}|{{password from step 2}}
    7. "Headers:"
      Content-Type
      application/json
{
"subject": "Call from {from phone number from step1} just ended",
"channel": "phone",
"via": RingCentral
"messages": [
{
"public": true,
"channel": "phone",
"status": "closed",
"from_agent": false,
"via": "RingCentral",
"source": {
"type": "phone",
"from": {
"address": "{from phone number from step 1}",
"name":"{from name from step 1}"
},
"to": [
{
"address": "{to phone number from step1}",
"name":{to name from step1}"
}
]
},
"body_text": "A call has ended",
"body_html": "A call has ended"
}
]
}

Create a Gorgias ticket when a call is missed

  1. In your Gorgias account, go to your profile
  2. Click on Rest API, and copy the base API URL, the username and the password
  3. Create a Zap with the App RingCentral and Call Ended as a trigger. The zap will run when this event happens in your RingCentral account. 
  1. Add an action to the Zap and rename it Create Gorgias ticket.
  2. Select the option Webhooks by Zapier as the app
  3. Select Custom request
  1. Now let's build your request
    1. "Method:" POST
    2. "URL:" https://{{your base api url from step 2}}.gorgias.io/api/tickets (see above)
    3. "Data Pass-Through?:" No
    4. "Data:" (see code below)
    5. "Unflatten:" no
    6. "Basic Auth:" {{username from step 2}}|{{password from step 2}}
    7. "Headers:"
      Content-Type
      application/json
{
"subject": "Missed call from {from phone number from step1}",
"channel": "phone",
"via": "RingCentral",
"messages": [
{
"public": true,
"channel": "phone",
"via": "RingCentral",
"source": {
"type": "phone",
"from": {
"address": "{from phone number from step 1}",
"name":"{from name from step 1}"
},
"to": [
{
"address": "{to phone number from step1}",
"name":{to name from step1}"
}
]
},
"body_text": "Missed call from {from name from step 1}",
"body_html": "Missed call from {from name from step 1}"
}
]
}

Create a Gorgias ticket when there's a new voicemail

  1. In your Gorgias account, go to your profile
  2. Click on Rest API, and copy the base API URL, the username and the password
  3. Create a Zap with the App RingCentral and Call Ended as a trigger. The zap will run when this event happens in your RingCentral account. 
  1. Add an action to the Zap and rename it Create Gorgias ticket.
  2. Select the option Webhooks by Zapier as the app
  3. Select Custom request
  1. Now let's build your request
    1. "Method:" POST
    2. "URL:" https://{{your base api url from step 2}}.gorgias.io/api/tickets (see above)
    3. "Data Pass-Through?:" No
    4. "Data:" (see code below)
    5. "Unflatten:" no
    6. "Basic Auth:" {{username from step 2}}|{{password from step 2}}
    7. "Headers:"
      Content-Type
      application/json
{
"subject": "Voicemail call from {from phone number from step1}",
"channel": "phone",
"via": "helpdesk",
"messages": [
{
"public": true,
"channel": "aircall",
"via": "helpdesk",
"source": {
"type": "aircall",
"from": {
"address": "{from phone number from step1}"
},
"to": [
{
"address": "{to phone number from step1}"
}
]
},
"body_text": "New voicemail",
"body_html": "<audio src=\"{messageContent from step 1}\" type=\"audio/mpeg\" controls=\"\"></audio>"
}
]
}

Note that in the case of the voicemail don't hesitate to also load the recording in a cloud storage system so your agents can access it outside of the RingCentral platform. See for instance an example set of actions set-up in the Zap:

**Please note, this integration is available to all customers but will only be supported for Advanced and Enterprise plan customers. While any plan can set up the integration following the instructions,  due to the manual work it requires on our end, if you are on the Basic or Pro plan we will not be able to provide support in setting it up or fixing any issues with it should they arise.


How did we do?

Powered by HelpDocs (opens in a new tab)