ONPAGEOPEN
                                                        This help page is for Studio. This information is also available for Desktop Studio.
| 
                                                                         
                                                                              | 
                                                                    
                                                                         Transitions an agent through a series of screens or popups depending on how a contact responds to specific questions. Invoking Agent Scripting cuts down on training, improves call handling, and gives you more control over how calls are being handled.  | 
                                                                
Dependencies
- Be sure to use a Pageclose action to conclude a sequence of Page actions. Not closing out a Page may result in "stuck" contacts as an agent may be able to click Next within the popped page even after the interaction is finished.
 - To preview a page, use the OnPreview action.
 
Supported Script Types
| 
                                                                         
                                                                              | 
                                                                    
                                                                         
                                                                              | 
                                                                    
                                                                         
                                                                              | 
                                                                    
                                                                         
                                                                              | 
                                                                    
                                                                         
                                                                              | 
                                                                    
                                                                         
                                                                              | 
                                                                    
                                                                         
                                                                              | 
                                                                    
                                                                         
                                                                              | 
                                                                
| 
                                                                         Generic  | 
                                                                    Chat | Phone | Voicemail | Work Item | SMS | Digital | 
Input Properties
These properties define data that the action uses when executing.
| 
                                                                     Property  | 
                                                                
                                                                     Description  | 
                                                            
|---|---|
| 
                                                                     Add Caption  | 
                                                                
                                                                     Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon.  | 
                                                            
| 
                                                                     Skill Name Variable  | 
                                                                The name of the variable to receive the name of the current ACD skill | 
                                                            
| 
                                                                     Agent First Name  | 
                                                                The name of the variable to receive the first name of the agent who answered the contact. Default: FIRST | 
| 
                                                                     Agent Last Name  | 
                                                                The name of the variable to receive the last name of the agent who answered the contact. Default: LAST | 
| 
                                                                     Agent ID  | 
                                                                The variable to receive the agent ID of the agent who answered the contact. Default: AGENTID | 
Result Branch Conditions
Result branch conditions allow you to create branches in your script to handle different outcomes when an action executes.
| 
                                                                     Condition  | 
                                                                
                                                                     Description  | 
                                                            
|---|---|
| 
                                                                     Default  | 
                                                                Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined. |