Feedback

  • Contents
 

IS_Action_StartReceivingCalls

Definition

When Scripter Client is started with the /nostartreceiving optional command line parameter, an agent can log into Interaction Scripter and set status to available, but Interaction Dialer will not place calls for that agent until the IS_Action_StartReceivingCalls action is called. This feature is used primarily with Preview campaigns.

  • Scripts should not call this action unless the /nostartreceving scripter command line option is used.  

  • IS_Action_StartReceivingCalls should only be called once in the script when the agent or script is first ready to receive calls. Calling it more than once can cause problems.

  • If you want the IS_Action_StartReceivingCalls Predictive action to function on a per campaign basis rather than on a per agent basis, you will need to use the Dialer StartReceivingCalls Per Campaign server parameter with the value set to 1. Keep in mind that this action only works for agents who have the Logon Campaign right.

  • For additional information, see the Server Parameters topic in the Dialer Manager Help system.

Attributes

[campaigns]

An optional, comma separated list of campaign names to notify Dialer the agent is ready to start receiving calls from. To use this attribute, the "Dialer StartReceivingCalls Per Campaign" server parameter must to be enabled.

[callback]

The callback property ensures that this action executes asynchronously in Interaction Connect. Starting with 2018 R3, all Interaction Scripter actions (IS_Actions) provide a callback property for use in Connect scripts only. In the example below, statements inside the highlighted callback function block execute only after the action completes. The callback will return an error if the action fails. See Writing custom scripts for Interaction Connect or Scripter .NET.

Here's how to use the .callback property in a script for Interaction Connect:

function IS_Action_StartReceivingCalls() {
  IS_Action_StartReceivingCalls.callback = function(error) {
    if (error) {
      console.error("IS_Action_StartReceivingCalls failed.");
    } else {
      console.log("IS_Action_StartReceivingCalls succeeded.");
    }
  }
}

Example

<head>
    <meta name="IS_Action_StartReceivingCalls">
    <script language=javascript>
        function
        StartReceivingCalls() {
            IS_Action_StartReceivingCalls.click();
        }
    </script>
</head>
<body>     <input type=button value="StartReceivingCalls" onclick="StartReceivingCalls();"> </body>

Example 2

IS_Action_StartReceivingCalls.campaigns = "Campaign1,Campaign2,Campaign3";
IS_Action_StartReceivingCalls.click();