|
vaSystem.applyLinkTemplate\(String sysId, String tableName, String actionName\)
|
Creates an external link that is specific to a portal.
|
|
vaSystem.attachRecordToConversation\(String tableName, String sysId\)
|
Attach ServiceNow records to the Related Tasks list in a Virtual Agent interaction record. These records are updated or created during a Virtual Agent conversation.
|
|
vaSystem.attachToRecord\(String mediaId, String tableName, String sysId\)
|
Attach an uploaded image to a ServiceNow record. The method uses the following parameters:
- `mediaId`: The path for the image to be attached. To use an image entered by the customer, use `getValue()` on an image input variable. For example, `vaInputs.image_input.getValue()`.
- `tableName`: A string that contains the name of the table.
- `sysId`: The sys\_id of the record.
|
|
vaSystem.connectToAgent\(\)
|
Connects the customer to a live agent. For more information on this method, see [Transferring Virtual Agent conversations to a live agent](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/transfer-to-live-agent.md).
|
|
vaSystem.didConnectToLiveAgent\(\)
|
Returns a Boolean \(true or false\) value whether the current conversation was connected to a live agent.
|
|
vaSystem.getClosingMessage\(\)
|
Returns a closing message for a conversation from system property: **com.glide.cs.general.closing\_message**. \(The message is different for third-party messaging apps such as Microsoft Teams and Slack\).
|
|
vaSystem.getConversationId\(\)
|
Returns the conversation ID of the current conversation.
|
|
vaSystem.getGreetingMessage\(\)
|
Returns a greeting message from UI Message with the key "Hi, I'm your Virtual Agent. Let me know how I can help you today."
|
|
vaSystem.getInteractionSysId\(\)
|
Returns the interaction ID of the current conversation.
|
|
vaSystem.getSearchText\(\)
|
Returns the last utterance typed by the user.
|
|
vaSystem.getTopicSelectionMessage\(\)
|
Returns a UI message with the key "What's your issue or request? Or take a look at what I can help with." \(The message is different for third party messaging apps such as Microsoft Teams and Slack\). This method is returned from the system property **com.glide.cs.topic\_picker\_msg**.
|
|
vaSystem.getTranscript\(\)
|
Gets the conversation transcript.
|
|
vaSystem.isLiveAgentAvailable\(\)
|
Checks whether a live agent is available to receive a conversation that is transferred from the bot. To transfer a conversation to a live agent, call this method before using `vaSystem.connectToAgent()`.
|
|
vaSystem.isLiveAgentConfigured\(\)
|
Returns whether live chat is enabled.
|
|
vaSystem.resetAllEntities\(\)
|
Resets all entities logged in the conversation.
|
|
vaSystem.sendBatchedMessages\(\)
|
Immediately sends queued messages.
|
|
vaSystem.sendSeparatorMessage\(\)
|
Sends a separator message line and returns the closing message from `getClosingMessage()`.
|
|
vaSystem.sendSystemMessage\(String message, Boolean showAvatar\)
|
Sends a system message and returns greetings message from `getGreetingMessage()`.
|
|
vaSystem.sendTopicPickerControl\(String topicSelectionMessage, String topicPickerButtonLabel\)
|
Sends a topic picker control with associated values for the message and "Show me everything" button label.
|
|
vaSystem.sendSkillPickerControl\(skillSelectionMessage, args\)
|
Sends the skill picker control to the user.
The `skillSelectionMessage` is the message displayed before showing the picker.The `args` parameter allows additional configuration options:
- `hideSkillDetails` hides the skill selection message. It defaults to `false`.
- `hidePromotedTopics` hides promoted topics from the skill picker. It defaults to `false`.
- `hideShowMeEverything` removes the "Show Me Everything" button from the skill picker. It defaults to `false`.
- `showNoSkillsConfigured` displays a "No Skills Configured" message if there are no applicable skills. It defaults to `false`.
- `appendPromotedSkillsToMsg` appends a bulleted list of promoted skills to the skill selection message. It defaults to `true`.
|
|
vaSystem.switchTopicByName\(\)
|
Enables the user to jump from the current conversation topic to the specified topic name. The **X** button is available, so that the user can end the conversation. After the topic ends, the user resumes the global topic. When the conversation ends, the user can select **Click here to start a new conversation** at the bottom of the chat window to restart the topic.The optional **resumeBehavior** parameter specifies how the conversation flow resumes, as follows:
- If **resumeBehavior=resume**, Virtual Agent resumes the calling topic.
- If **resumeBehavior=skip**, Virtual Agent skips the calling topic.
If **resumeBehavior** is not specified, the default behavior for the instance is used.
|
|
vaSystem.switchTopicById\(sysid\)
|
This method is the sysid of **sys\_cb\_topic**, and enables the user to jump from the current conversation topic to the specified topic ID. The **X** button is available, so that the user can end the conversation. After the topic ends, the user resumes the global topic. When the conversation ends, the user can select **Click here to start a new conversation** at the bottom of the chat window to restart the topic.The optional **resumeBehavior** parameter specifies how the conversation flow resumes, as follows:
- If **resumeBehavior=resume**, Virtual Agent resumes the calling topic.
- If **resumeBehavior=skip**, Virtual Agent skips the calling topic.
If **resumeBehavior** is not specified, the default behavior for the instance is used.
|
|
vaSystem.topicDiscovery\(String searchTextOverride, Boolean keywordImpl\)
|
Performs topic discovery based on term in the **searchTextOverride** parameter. The method uses the following parameters:- `searchTextOverride`: A string on which to run topic discovery.
- `keywordImpl`: A Boolean that determines whether to use keywords.
|