Help centre
العربية Back to sayvara.com

3CX

Send a survey after each answered 3CX call, with a call-journaling template that sends 3CX's end-of-call report to Sayvara.

Updated

What it does

3CX can report every finished call to a CRM through a CRM integration template (the ReportCall call-journaling scenario). A Sayvara template sends that report to Sayvara, which queues one survey for each answered call.

Status

Add-on, available on request. The recipe below is built into Sayvara and tested with sample reports. Our team sets it up with you and checks it on your 3CX (version 18 or 20) before your first surveys go out. Ask at support@sayvara.com.

The recipe

  1. Start from a 3CX CRM template and add Sayvara's ReportCall scenario. It posts JSON to https://api.sayvara.com/v1/triggers/pbx/3cx with the header Authorization: Bearer [ApiKey], where ApiKey is a template parameter your 3CX admin fills in:
<Scenario Id="ReportCall" Type="REST">
  <Request Url="https://api.sayvara.com/v1/triggers/pbx/3cx" RequestType="Post"
           RequestEncoding="Json" RequestContentType="application/json" ResponseType="Json">
    <Headers><Value Key="Authorization">Bearer [ApiKey]</Value></Headers>
    <PostValues>
      <Value Key="event" Passes="0" Type="String">call_end</Value>
      <Value Key="number" Passes="0" Type="String">[Number]</Value>
      <Value Key="agent" Passes="0" Type="String">[Agent]</Value>
      <Value Key="callType" Passes="0" Type="String">[CallType]</Value>
      <Value Key="duration" Passes="0" Type="String">[Duration]</Value>
      <Value Key="startUtc" Passes="2" Type="String">[[CallStartTimeUTC].ToString("yyyy-MM-ddTHH:mm:ssZ")]</Value>
      <Value Key="endUtc" Passes="2" Type="String">[[CallEndTimeUTC].ToString("yyyy-MM-ddTHH:mm:ssZ")]</Value>
    </PostValues>
  </Request>
</Scenario>
  1. In the 3CX admin console, upload the template under the CRM integration settings and turn on call journaling.
  2. Make an answered test call. The call appears in Sayvara under Contacts.

3CX cannot make the Sayvara-Signature. If signed triggers are on for your organisation, the template posts to a small relay instead, which signs and forwards the same body (see Phone systems).

How the call is read

Sayvara 3CX
Call id 3CX's report has none, so Sayvara uses the number, the agent and the start and end time
Customer number [Number]; national numbers are read with the country option
Direction and answered [CallType]: Inbound and Outbound were answered; Missed and Notanswered get no survey
Talk time [Duration] (hh:mm:ss)
End time [CallEndTimeUTC], else start plus duration

For the answers Sayvara gives, see Phone systems.