Typing indicators
reference brazil Updated Sep 10, 2026 1 min read ccci-typing-indicators.md
Display a typing indicator when a bot or live agent is preparing a response to a requester.
When Virtual Agent processes a request, the Start typing indicator action is called. When Virtual Agent completes the request processing, the End typing indicator action is called before Virtual Agent processes any output or input controls.
These actions call the defaultText control outbound transformation. The following example shows how the typing indicator is handled in the defaultText control outbound transformation.
Example: Typing indicator script
JavaScript
(function execute(inputs, outputs) { try { var richControl = inputs.rich_control; var actionType = richControl.type; if(actionType == 'StartTypingIndicatorActionMsg'){ outputs.result = '{activity:{type: "typing" }}' }else if(actionType == 'EndTypingIndicatorActionMsg'){ outputs.result = '{activity:{type: "message" , text: "Finished typing"}}' } /* Handle other type of control */ } catch (e) { gs.error("Error in default action outbound transformer : " + e.message); throw e; }})Parent Topic:Supported Virtual Agent and Agent Chat features for custom chat integrations
45 lines · 1.9 KB
---
title: Typing indicators
description: Display a typing indicator when a bot or live agent is preparing a response to a requester.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/conversational-interfaces/virtual-agent/ccci-typing-indicators.html
release: brazil
product: Virtual Agent
classification: virtual-agent
topic_type: reference
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Supported features for custom chat integrations, Create custom chat integrations, Configure, Virtual Agent, Conversational Interfaces]
---
# Typing indicators
Display a typing indicator when a bot or live agent is preparing a response to a requester.
When Virtual Agent processes a request, the Start typing indicator action is called. When Virtual Agent completes the request processing, the End typing indicator action is called before Virtual Agent processes any output or input controls.
These actions call the defaultText control outbound transformation. The following example shows how the typing indicator is handled in the defaultText control outbound transformation.
Example: Typing indicator script
```
(function execute(inputs, outputs) {
try {
var richControl = inputs.rich_control;
var actionType = richControl.type;
if(actionType == 'StartTypingIndicatorActionMsg'){
outputs.result = '{activity:{type: "typing" }}'
}else if(actionType == 'EndTypingIndicatorActionMsg'){
outputs.result = '{activity:{type: "message" , text: "Finished typing"}}'
}
/* Handle other type of control */
} catch (e) {
gs.error("Error in default action outbound transformer : " + e.message);
throw e;
}
})
```
**Parent Topic:**[Supported Virtual Agent and Agent Chat features for custom chat integrations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/conversational-interfaces/virtual-agent/va-features-custom-chat-integrations.md)
| title | Typing indicators |
| description | Display a typing indicator when a bot or live agent is preparing a response to a requester. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/conversational-interfaces/virtual-agent/ccci-typing-indicators.html |
| release | brazil |
| product | Virtual Agent |
| classification | virtual-agent |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Supported features for custom chat integrationsCreate custom chat integrationsConfigureVirtual AgentConversational Interfaces |