From Bright Pattern Documentation
Jump to: navigation, search
This page contains changes which are not marked for translation.
• 5.19 • 5.3 • 5.8

Start a Conference Call

You can use the singleStepConference method to have a logged-in agent transfer and add another party to his or her active call. For more information about conferencing, see the Contact Center Administrator Guide, section How to Host a Conference.

The singleStepConference method can be attached to a web element, such as a button, on your webpage. When clicked, the button will process the API method. Add a field to enter the phone number of the third party to be included in the conference.

In this article, you will learn how to:

  • Attach singleStepConference to a button
  • Add a field to enter the phone number of the party to be dialed
  • Place sample JavaScript into HTML


Sample Code

In this sample code, the methods are attached to button elements.

Copy this sample code for pasting into your HTML file. This is the bare minimum that you need for the SDK to work. Make sure you replace "<tenant>" with the name of your Agent Desktop web server (e.g., "example.brightpattern.com").

 <script type="text/javascript" src="https://<tenant>.brightpattern.com/agentdesktop/libs/servicepattern-sdk-v1.js"> 
 </script>
 
 <iframe id="repeater" style="position:absolute; right: 8px; width: 300px; height: 700px;" src="https://<tenant>.brightpattern.com/agentdesktop/UniversalRepeater.jsp"></iframe>
 
 <button onclick="bpspat.api.getState(log)">Get State</button>
 <br>
 <br>
 <input id="transfer_number" type="text" placeholder="Number"/>
 <button onclick="bpspat.api.singleStepConference(document.getElementById('transfer_number').value)">Single Step Conference</button>//Button with singleStepConference method attached
 <br>
 <br>
 <div id="log">Logs...</div>
 <br>
 <br>
 <script type="text/javascript">
 window.bpspat.api.init("https://<tenant>.brightpattern.com");
 function log(data) {
 let div = document.createElement("div");
 div.innerHTML = JSON.stringify(data);
 document.getElementById("log").appendChild(div);
 }
 
 </script>


Example Exercise

There are many ways to style your page elements and Agent Desktop widget display. The following is provided for example purposes only.

  1. Paste the sample code into the body of your HTML file.

  2. Save and open the page in your web browser. Make sure the agent is logged in and "Ready."

  3. The call comes in.

    Incoming call


  4. The agent answers.

    Agent answers call


  5. Enter the phone number (e.g., "1020") of the person who you want to include in the conference, and click Single Step Conference to dial it.

  6. When the other person accepts the call, the conference begins and you see all parties in the Active Conversations List.

    Conference call with supervisor Christy, agent Jeffery, and customer Tracy



< Previous | Next >