GCX-SCR Sample Questions & Answers
Script variables tie with secure, data, and transfer actions for the heaviest weighting, built on where scripts come from and who can access them, the Script Editor interface, and managing a script's lifecycle.
Launch the full GCX-SCR simulator →Showing 10 of 20 free samples.
- Question 1Beginner
Overview of Scripting · Types of Scripts in Genesys Cloud
A contact center needs to provide agents with a script for handling inbound email interactions. The script must display the email body, subject line, and allow the agent to categorize the email using a dropdown list before sending a reply. Which script type must be selected when creating this script?
Show answer & explanation
Correct answer: C
Genesys Cloud provides specific script types for different interaction channels. For handling emails, the 'Inbound Email' script type must be used. This type provides built-in components and variables specifically for accessing email content like the body and subject.
- Question 2Advanced
Variables in Scripts · Custom Script Variables
A Data Action returns a JSON array of customer order objects. A developer needs to display the 'orderId' and 'status' of each order in a formatted text area within the script. The variable storing the result is named 'Orders.OrderHistory'. Which approach correctly processes this array?
Show answer & explanation
Correct answer: C
When a Data Action returns a JSON array, the corresponding script variable should be of the 'Dynamic' type. This allows the scripting engine to treat it as a collection. The 'Count(Orders.OrderHistory)' expression can be used to get the number of items, and 'GetAt(Orders.OrderHistory, index)' can be used within a loop to access each object and its properties (e.g., 'GetAt(Orders.OrderHistory, index).orderId').
- Question 3Intermediate
Script Management · Script and Component Templates
A script administrator is tasked with updating the company logo displayed on all 50 of the contact center's scripts. Each script uses a simple 'Image' component. To avoid manually editing each script, the administrator wants to use the most efficient method available. What is the recommended approach?
Show answer & explanation
Correct answer: B
This scenario highlights the primary benefit of using component templates for reusable elements. If the logo was initially deployed via a component template, the administrator only needs to edit the template itself. Once the template is saved, the change propagates to all scripts that reference it. The scripts would then need to be republished to make the change live for agents.
- Question 4Intermediate
Actions in Scripts · Contact List Integration
A contact center is running a preview campaign. The script needs to allow agents to add a new person to the campaign's contact list if they discover a new lead during a call. Which action and prerequisite are necessary to enable this functionality?
Show answer & explanation
Correct answer: A
The dedicated action for this is 'Outbound.CreateContact'. However, this action will only function if a contact list has been explicitly associated with the script on the script's settings page. This association tells the script which contact list to add the new record to.
- Question 5Intermediate
Variables in Scripts · Built-in Variables
A script needs to display the current date and time formatted as 'YYYY-MM-DD HH:mm:ss'. Which built-in variable or expression should be used to achieve this?
Show answer & explanation
Correct answer: A
The
Now()function returns the current date and time. To format it into a specific string representation, it must be passed to theFormatDateTimefunction along with a string specifying the desired format pattern. The pattern 'yyyy-MM-dd HH:mm:ss' matches the requirement exactly. - Question 6AdvancedSelect 3
Overview of Scripting · Script Design Fundamentals
A consultant is designing a script for a high-volume helpdesk. The script must be highly performant and load quickly for agents. Which of the following design choices can negatively impact script loading times and should be used judiciously? (Select THREE)
Show answer & explanation
Correct answers: B, C, E
A single page with hundreds of components and complex visibility rules takes longer for the browser to render. Breaking the logic into multiple, simpler pages can improve perceived performance.
Executing numerous data lookups when the script first loads will block the rendering of the page until all actions complete, leading to significant initial load delays for the agent.
Large image assets must be downloaded when the script loads, increasing the payload size and overall load time. Images should be optimized for the web.
- Question 7Beginner
Script Editor Interface · Script Validation
The 'Validation' tab in the Script Editor is primarily used for what purpose?
Show answer & explanation
Correct answer: B
The Validation tab automatically checks the script for common configuration errors. It will flag issues like actions referencing variables that don't exist, unbound component properties, or incomplete action configurations, helping developers find and fix problems before publishing.
- Question 8Intermediate
Actions in Scripts · Consult Transfers
An administrator needs to create a script that allows an agent to perform a consult transfer to a specific workgroup of experts. The agent must be able to speak with an expert before completing the transfer. Which action should be configured in the script to meet this requirement?
Show answer & explanation
Correct answer: B
The 'Scripter.Consult Transfer' action is designed for this purpose. It allows the initiating agent to connect with the transfer target (a user or a queue) and speak with them privately before deciding to complete the transfer, conference them in, or cancel the transfer.
- Question 9Advanced
Variables in Scripts · Built-in Variables
A developer is using the
{{Scripter.Agent.name}}built-in variable to display the current agent's name. However, the business requirement is to display only the agent's last name. The agent's full name is always formatted as 'FirstName LastName'. How can the developer extract just the last name?Show answer & explanation
Correct answer: C
This combination of expressions provides a dynamic solution.
Find(Scripter.Agent.name, " ")locates the position of the space character. Adding 1 to this position gives the starting point of the last name. TheSubstringfunction then extracts the portion of the string from that starting point to the end, correctly isolating the last name regardless of its length. - Question 10Advanced
Actions in Scripts · Data Actions and Script Flow
Case Study:
A healthcare provider, "HealthFirst Clinic," needs to streamline their appointment scheduling process. They want a new script for their agents that integrates with their internal Electronic Health Record (EHR) system.
Current Situation: Agents currently use two separate systems: Genesys Cloud for calls and a legacy desktop application for the EHR. This process is slow and error-prone, as agents manually copy patient information between systems. The EHR system has a REST API that can be used to search for patients and retrieve available appointment slots.
Requirements:
- On script load, the agent should be prompted to enter a Patient Medical Record Number (MRN).
- Using the MRN, the script must call the EHR's API to retrieve the patient's name, date of birth, and insurance status.
- This retrieved patient information must be displayed clearly in the script.
- The script must then display a list of available appointment slots, also retrieved from the EHR API.
- Agents must not be able to proceed with scheduling until the patient information has been successfully retrieved and displayed.
Question:
Which sequence of components and actions represents the most logical and efficient design for the initial patient lookup functionality on the first page of the script?Show answer & explanation
Correct answer: A
This design is the most robust and user-friendly. It separates the data entry from the action trigger, preventing accidental API calls. Using the button's 'On Click' event to fire the Data Action is standard practice. Critically, linking the enabling of navigation and population of fields to the Data Action's 'Success' path ensures that the agent cannot proceed without a successful patient lookup, meeting requirement #5.
Ready for the real thing?
The full GCX-SCR simulator has every exam-style question, timed mode, and instant scoring.