IVR Demo

This demo is an example of how you can automate the transfer of a Nexus session form Self-Support to Agent Support using your own IVR.


When a consumer requests Agent Support and selects the "Call" option, they are given a phone number and a connection code. When the consumer enters this code into your IVR, you can lookup the session and assign it to the appropriate Agent or Skill.

This is your API call

Please enter an agent's email

Please enter an server name

Please enter client id

Please enter client secret

            
 $.ajax({
    url: "https://mycompany.nexus.support.com/api/v1/oauth2/token",
    type: 'POST',
    dataType: 'json',
    data: client,
    success: function(result) {
       var accesstoken = result.access_token;
       $.ajax({
         url: 'https://mycompany.nexus.support.com/api/v1/sessions/search',
         type: 'POST',
         dataType: 'json',
         data:  search_session, // or $('#myform').serializeArray()
         beforeSend: function (xhr) {
           xhr.setRequestHeader ("Authorization", "Bearer " + accesstoken);
         },
         success: function(data) {
           var session_id = data[0].id;
           var session_user = {"email":user_email};
           var update_data = {"user":session_user};
           $.ajax({
             url: 'https://mycompany.nexus.support.com/api/v1/sessions/'+session_id,
             type: 'PUT',
             dataType: 'json',
             data:  update_data, // or $('#myform').serializeArray()
             beforeSend: function (xhr) {
                xhr.setRequestHeader ("Authorization", "Bearer " + accesstoken);
             },
             success: function(result) {
               console.log('result',result);
             }
           });
         }
       });
     }
 });
            
            

This is your IVR

Please enter your connection code

1 2 3
4 5 6
7 8 9
DEL 0 CLR