Use Case - Schedule Automatic Callbacks from a Nimbus Queue

In this scenario we demonstrate how to schedule a callback out of a Nimbus queue, when a caller has chosen this option instead of waiting any longer.

Expand to see a preview of the flow…

 
 

PRECONDITIONS

In this use case we assume that you've already created a Nimbus service and workflow, which we will now extend to facilitate automatic callbacks.

Enterprise Routing Contact Center Your service needs to have an Enterprise Routing or Contact Center service license assigned to be able to use the advanced workflow activities and integrate into Power Automate. See Nimbus Features for a full overview of all available features by license.

 

Show icon legend

💡 = A hint to signal learnings, improvements or useful information in context. 🔍 = Info points out essential notes or related page in context.
☝ = Notifies you about fallacies and tricky parts that help avoid problems. 🤔 = Asks and answers common questions and troubleshooting points.
❌ = Warns you of actions with irreversible / data-destructive consequence. ✅ = Intructs you to perform a certain (prerequired) action to complete a related step.
 
 

Preparing in Nimbus

Define the parameters

First, we define two Parameters named "CallBackNumber" and "CallMeBack" which our workflow requires:

 

We leave their default values empty.

Adding a callback option to the Nimbus workflow

In this example, we're using an Input Customer activity in our Nimbus workflow to ask the caller whether they would prefer to keep waiting or rather leave the queue and be called back later instead.

We are using the Save to Parameter activity to store the caller's phone number and indicate that they specifically asked for a callback.

💡You can extend your workflow to be even more dynamic at this point, e.g. by first playing back the number that will be used for the callback as part of an announcement and asking the caller to confirm whether this is correct or they would like to enter a different number instead (using the Collect Information workflow activity).

Creating the Power Automate Flow

We will now proceed with creating a new Power Automate flow that reacts specifically to the "CallMeBack" parameter being updated by the Nimbus workflow.

  1. Sign in to Power Automate at https://make.powerautomate.com/.
  2. Go to "My Flows".
  3. Click "+ New Flow" and create a blank "Automated Cloud Flow".
  4. Give your new flow a meaningful name, e.g., Schedule Callback.
  5. In the text box underneath, search for Luware Nimbus and choose the “When a task changes state” trigger.
  6. Click “Create”.

Configure the trigger

  1. Select the "When a task changes state" trigger.
  2. In the "Services" dropdown, select the Nimbus service's UPN.
    💡 You can also select multiple services.
  3. In the "Task Events" dropdown, select "Parameter Updated".
  4. Switch to the “Settings” tab and click "Add" (under “Trigger conditions”).
  5. Enter @and(equals(triggerOutputs()?['body/updatedParameterName'], 'CallMeBack'),equals(triggerOutputs()?['body/updatedParameterValue'], 'True'))
    💡 This will ensure that the Power Automate flow only starts if the "CallMeBack" parameter is updated and only if its assigned value is "True".
    ☝ We are specifically monitoring updates to the "CallMeBack" parameter here as the "CallBackNumber" parameter may receive multiple updates within the Nimbus workflow until finalized.

Extract callback number

  1. Click and select "Add an action".
  2. Search for and select the "Filter array" action.
  3. Click into the "From" field and select “Task Information Custom Context Parameters”.
  4. Under "Filter Query", click into the left-side "Choose a value" field and choose "Insert Expression" and add the expression item()['Name']
  5. On the right side, enter "CallBackNumber" (or whichever name you chose for your parameter) in plain text.
  1. Next, click and select "Add an action" again.
  2. Search for and select the "Initialize variable" action.
  3. Set the name to "CallBackNumber".
  4. Set the type to "String".
  5. For the value, enter first(body('Filter_array'))?['Value'] as an expression.
 

Schedule outbound call

  1. Click and select "Add an action".
  2. Search for and select the "Schedule a new outbound call" action from the "Luware Nimbus" connector.
  3. Schedule a new outbound call at a time of your choosing. In our example, we're using the following expression to get a point in time ten minutes from now: getFutureTime(10, ‘Minute’)

Table of Contents