--- title: Contextual actions for custom chat integrations description: Commands with a pre-defined behavior can be mapped to certain user-friendly keywords and passed as user input. This input is mapped to supported contextual actions for the most appropriate response in the chat.Map user inputs to base system contextual actions. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/conversational-interfaces/virtual-agent/contextual-actions.html release: australia product: Virtual Agent classification: virtual-agent topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 2 breadcrumb: [Supported features for custom chat integrations, Conversational custom chat integrations, Integrate VA with other channels, Virtual Agent, Conversational Interfaces] --- # Contextual actions for custom chat integrations Commands with a pre-defined behavior can be mapped to certain user-friendly keywords and passed as user input. This input is mapped to supported contextual actions for the most appropriate response in the chat. ## Getting started with contextual actions User inputs can be mapped to a contextual action in two ways. - UI-based mapping of comma-separated keywords to available contextual actions. For example: Hi, Hola - Start Conversation - Script-based mapping of user actions to available contextual actions. For example: User clicks "Start" menu - Start Conversation ## Available contextual actions |Name|Description| |----|-----------| |Agent|Command to request transfer to a live agent| |Bye|Command to end a conversation with a live agent or a virtual agent whenever you are outside of a topic-selection prompt| |Help|Command to request help using the bot| |Hi|Command to start or end a conversation| |Logout|Command to unlink the user messaging account from ServiceNow| |Notifications|Command to subscribe or unsubscribe from receiving notifications| |Restart|Command to end a bot conversation that is either in progress or runs into an error, and then begin a new conversation| **Parent Topic:**[Supported Virtual Agent and Agent Chat features for custom chat integrations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/va-features-custom-chat-integrations.md) ## Contextual action mapping Map user inputs to base system contextual actions. ### Before you begin Role required: admin ### About this task Use the Contextual Actions \[sys\_cs\_contextual\_action\] table to review the commands used in the chat integrations. You can add more keywords for a command. Each record for a pre-built command has this information:
| Field | Description |
|---|---|
| Name | Name of the command. |
| Commands | Keyword for the command. You can add multiple keywords, separated by commas. |
| Description | Explanation of the command |
| Applicability | Application in which the command is used:- Virtual Agent only - Agent Chat only - Virtual Agent and Agent Chat |