Series: Architect tutorial for advanced users
Advanced lesson: Create a screen pop script and add it to a call flow
In this example, create and publish a screen pop script in PureCloud Scripts. Next, create a call flow in Architect that looks up the customer’s Salesforce ID based on the caller’s telephone number and includes the published script. The call flow passes the ID to this script, which opens the customer record in a browser. With modification, this technique can be used with other browser-based CRMs.
In this lesson, you will:
- Configure and publish an outbound screen pop script.
- Create an outbound call flow in Architect that uses the telephone number to look up a caller’s customer ID number in Salesforce CRM.
- Complete the call flow by adding the script, which will pop the customer record on an agent’s display.
Estimated time to complete: 30 minutes
- Review the Script editor overview and Scripts page articles
- Review task building, including Bridge Action and Set Screen Pop Action
- Ensure access to a Bridge Server, installed Connector, and defined Bridge Action. These configurations are created and managed within the administration interface.
When this script is popped by an Architect call flow, the caller’s CRM record appears in the agent’s default web browser:
An example screen pop in Salesforce CRM.
In this section, create and publish the screen pop script in PureCloud. When this script is called by an Architect call flow, it initiates the caller’s CRM record on the agent’s default web browser. Next, in an Architect call flow, set up a starting task. The starting task will include a Call Screen Pop action that calls the previously created script immediately when the call flow is initiated.
To create an inbound script that works cooperatively with Architect to screen pop CRM records:
Under Contact Center, click Scripts.
Name the script
Pop URLand under Select A Template, choose Blank Script.
Next, define a variable to receive customer ID information from Architect. On the right side of the page, click the Variables icon.
To add a new variable, click + and then under Basic Types, choose the String data type.
In the Name box, type
ContactIDand optionally enter a description.
- Under Input, slide the toggle bar to True.
Leave the remaining settings unchanged and click Apply.
Note: Make note of the variable name. You will provide it later to the person responsible for creating the Architect call flow portion of this solution.
Next, define the action needed to open the customer record in the CRM. Click the Actions icon.
To add a new action, click +.
The Custom Action Editor appears.
In the Custom Action Name box, type
Open CRM URL.
Click Add Step. Then select Scripter.Open URL from the list of actions.
Under Scripter.Open URL, in the URL box type
Replace my.salesforce.com with the URL of an actual CRM server. Note that the value of the ContactID variable is appended to the address, to open the customer's specific record. Note also that HTTPS is required by this action type.
Click Save to save the action.
From the Script list, click Script Properties.
Under Features, click to expand Outbound and then click to enable it.
Under Contact List, select an outbound contact list.
Under Contact Data Load Action, do the following:.
Click No Action Selected, the Select Action list opens.
Click Open CRM URL.
The action has no arguments to configure. Click Select. The action will execute when the script's contact data loads.
- Click X to close the Select Action box.
From the Script list, click Save.
From the Script list, click Publish.
In this task, create the outbound call flow and set up the initial greeting.
- In Architect, create a new outbound call flow.
- Create a new reusable task and set it as the starting task.
- Name the starting task Salesforce Lookup and in the Initial Greeting area add Thank you for calling PureCloud Banking Support as either TTS or a recorded prompt.
- Click Edit Task.
In this task, we will configure a Bridge Action to query the CRM for the caller’s phone number and retrieve the contact information.
- Add a Play Audio action to the task directly below the Start box, and do the following:
- Name the action Account lookup audio.
- In the Audio field add Please remain on the line while we look up your account information as either TTS or a recorded prompt.
- Add a Call Bridge Action directly below the Play Audio action and do the following:
- Name the action Look up account.
- Select the Category that contains the desired bridge action.
- Select the appropriate Bridge Action.
- Configure the Bridge Action’s Input and Output settings: Note: The following settings are specific to this example’s Bridge Action selection. Your options may vary, depending on your Bridge Action configuration.
- In the Inputs section, locate the PhoneNumber field, type Call.Ani and press Enter.
- In the Outputs section, locate the Contact.FullName field, type Task.ContactFullName, and press Enter.
- In the Outputs section, locate the Contact.ID field, type Task.ContactID, and press Enter.
Add an audio sequence that greets callers by name and lets them know they’ll be transferred to a specialist.
- Add a Play Audio action just below the Look up account Bridge Action’s Success path.
- Name the action Greet the caller.
- Click the Edit Audio Sequence button and in the Edit Audio Sequence dialog box, do the following:
- In the Text To Speech box, type Thank you for calling.
- Click the Add Data button and in the Data box type Task.ContactFullName.
- Click the arrow at the end of the Select Options drop-down list and select Text to speech.
- Click the Add TTS button and in the Text To Speech box type Please wait while we transfer you to your support specialist.
- Click Close.
Select the screen pop script you want to appear on the agent’s screen when he or she receives the call.
- Expand the Flow category and add a Set Screen Pop action directly below the Greet the caller Play Audio action.
- Leave the Name unchanged.
- Click the arrow at the end of the Screen Pop Script drop-down list and select Pop URL.
- In the Inputs area, locate the ContactID box and type Call.ContactID.
- Add a Transfer to ACD directly below the Set Screen Pop action and do the following:
- Name the action Transfer to Customer Service.
- In the Pre-Transfer Audio area, add Someone will be with you shortly as TTS or a recorded prompt.
- Select the Customer Service queue. Note: Available queues may vary, depending on your configuration.
- Leave the remaining settings unchanged.
- Click Validate.
- Resolve any errors and click Publish.
Now it’s your turn. Try creating a screen pop script and including it in an outbound call flow for your own environment. For additional assistance, refer to the corresponding task instructions and the supporting video.