---
sourceDocument: Brazil ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/servicenow-platform

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Input workflow activity

# Input workflow
activity {#r_WorkflowActivityGather__p4w_5ks_3x}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Input workflow activity

The Input workflow activity in ServiceNow creates an interactive phone menu during a Notify call by presenting callers with a list of selectable options.
This activity captures caller input through keypad digits and transitions the workflow based on their selections.
Show full answer Show less  

## Key Features

* **Configurable Input Variables:** Allows setting the maximum number of digits a caller can enter, the finish key to complete input, and a timeout duration to close the menu automatically if no input is received.
* **Advanced Script Option:** Supports building phone menus dynamically using a JavaScript object that defines menu options with either audio URLs or text-to-speech strings, including support for multiple languages and custom data attributes.
* **Conditions for Menu Options:** Each menu option is defined as a workflow condition, with the text read to the caller and transitions triggered based on digits entered. Language codes can prefix option text for localization.
* **Error Handling:** You can configure an error condition that the activity transitions to if the input script returns invalid data or if menu option text is empty.
* **Scratchpad Integration:** The activity writes caller input and menu data to the workflow scratchpad, enabling other activities to access the caller's selections and related menu information for further processing.

## Practical Application for ServiceNow Customers

This activity enables ServiceNow customers to create customizable, multi-option phone menus within their workflows, improving automated call handling and user experience during Notify calls. By leveraging script-based menu definitions and localized prompts, customers can tailor interactions to specific use cases and languages. Access to caller input and menu details via the scratchpad allows seamless integration with subsequent workflow steps, supporting complex call routing, data capture, and personalized responses.  
The Input activity creates a phone menu by presenting a list of options on a Notify call.{#r_WorkflowActivityGather__wf-input-activity-shortdesc}

## Input Variables

Input variables determine the initial behavior of the activity.
{#r_WorkflowActivityGather__table_pgm_tfy_jr__entry__2}

| Variable | Description |
|-|-|
| Number of digits | Specify the maximum number of digits the caller can enter. A caller can enter fewer digits than the maximum and press the Finish key to complete the entry. |
| Finish key | Specify the key a caller can press on their phone when finished selecting a menu option. |
| Timeout (in seconds) | Specify the amount of time to wait before closing the menu automatically when the caller does not select a menu option. |
| Advanced | Select this check box to use a script to build the phone menu, instead of using the activity conditions. |
| Script | Define the script to build the phone menu. The script must specify an answer variable as a JavaScript object with the following format: answer = { "1": { "play": "https://some_url.com/options/one.mp3", "myCustomData": "some data here" }, "2": { "play": "https://some_url.com/options/two.mp3", "myCustomData": "some other data here" }, "3": { "speak": "type 3 to speak to a representative", "language": "en-US", "myCustomData": "some more data here" } }; The script may specify either a text-to-speech string and language code using the speak attribute or URL of the music to be played using the play attribute. You can also add optional attributes to store related information, such as myCustomData in the example above. Note: The script object continues to support say attribute for backward compatibility. |
[Table 1. Input Variables]

{#r_WorkflowActivityGather__table_pgm_tfy_jr}

## Conditions

The conditions determine the transition that comes after this activity.

The input activity does not specify any conditions by default. You
must define conditions to build the phone menu. Each condition is one option on the phone
menu. Notify reads the text from each condition Name to the caller,
up to 100 characters per condition.

You can specify a language for each condition by prefixing the message with the language
code, in the format xx-XX:\<Message\>. For example, add
fr-CA: for Canadian French. Available languages are stored on the
Notify Language \[notify_language\] table.

The condition that the activity transitions through depends on the digits entered by the
caller. Set the condition Condition value to
parseInt(workflow.scratchpad.digits) == \<expected digits\>. For
example, to transition through a condition when the caller presses the number 3, set the
Condition to parseInt(workflow.scratchpad.digits) == 3.

You can add an error condition to this activity. The activity transitions through the error
condition if the advanced script returns an invalid value, or if the text to say for a
condition is empty.

## Scratchpad Entries

The activity uses the workflow scratchpad to write persistent values.
{#r_WorkflowActivityGather__table_o2s_wgy_jr__entry__2}

| Entry | Description |
|-|-|
| workflow.scratchpad.digits | The digits entered by the caller, as a string. |
| workflow.scratchpad.menu\<activity name\> | The entire answer variable, if using the advanced script option. You can access this menu from other activities after this activity successfully executes. For example, if the activity name is <kbd class="ph userinput">choices</kbd>, you can access values from the menu using var previousActivity = "choices"; var choicesMenu = workflow.scratchpad.menu[previousActivity]; var menuItem = choicesMenu[workflow.scratchpad.digits];  // Selects the menu item based on the caller's input. var selectedValue = menuItem.myCustomData; //get the custom data for the selected menu item. |
[Table 2. Values written to scratchpad]

{#r_WorkflowActivityGather__table_o2s_wgy_jr}

