From Bright Pattern Documentation
Jump to: navigation, search
• 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., "").

 <script type="text/javascript" src="https://<tenant>"> 
 <iframe id="repeater" style="position:absolute; right: 8px; width: 300px; height: 700px;" src="https://<tenant>"></iframe>
 <button onclick="bpspat.api.getState(log)">Get State</button>
 <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
 <div id="log">Logs...</div>
 <script type="text/javascript">
 function log(data) {
 let div = document.createElement("div");
 div.innerHTML = JSON.stringify(data);

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 >