---
sourceDocument: Brazil Customer Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/customer-service-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Customer Service Management

ft:clusterId :

    - csm

bundleId :

    - csm

workflow :

    - Customer and Industry


---

# Context inputs

# Context inputs in Recommended Actions {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 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 Context inputs in Recommended Actions

Context inputs in Recommended Actions allow you to associate multiple entities beyond the primary context table, enabling dynamic and real-time updates to recommendations as the context changes.
These JSON-based inputs support enhanced recommendation relevance and operational efficiency by including data such as user selections and additional table records.
Multiple active context inputs can coexist for a single context, improving the precision and adaptability of recommendations.
Show full answer Show less  

## Key Features

* **Support for multiple data types:** String, List, Integer, Long, Choice, True-false, Reference, Reference dot walked, Sys id.
* **Creation and management:** Context inputs are created from the Context inputs related list in the Context form. Note that if a context has a parent, context inputs cannot be created unless the parent context is removed.
* **Mapping capabilities:** Context inputs can be mapped to default search terms, rules, recommendations, and resource generators, enabling their use in various forms and logic builders.
* **UI Builder integration:** JSON-format context inputs must be added to the Recommended Actions UI Builder component on record pages to pass values dynamically. The JSON can be copied from the Context input related list.
* **Mandatory inputs:** If a context input is marked mandatory, failing to configure it in the UI Builder component will prevent recommendations from generating.

## Configuration Guidance

* Create context inputs via the Context inputs related list on the Context form.
* Map context inputs appropriately depending on use: search terms, rules, recommendations, or resource generators.
* Add the associated JSON input to the Recommended Actions UI Builder component on record pages to ensure dynamic value passing.

## Limitations

* You can either define a parent context or configure context inputs for a context, but not both simultaneously.
* Defining context inputs for a parent context breaks inheritance of rules and recommendations by child contexts, removing previously inherited items.
* To enable context inputs on a context with a parent, the parent context link must be removed first.

## Practical Benefits for ServiceNow Customers

By leveraging context inputs, ServiceNow customers can create more precise and adaptive recommendation systems that react dynamically to changing context data across multiple tables. This flexibility enhances operational efficiency and ensures users receive relevant, timely recommendations tailored to complex scenarios involving multiple related entities.  
A context input enables you to associate entities beyond just the context table with a context ensuring that recommendations are updated dynamically as the context
evolves.
You can create a context input from the Context inputs related list in the Context form. These dynamic JSON-based context inputs enable you to include real-time updates such as user selections, additional table records, and so on, to refine recommendations and support multiple active contexts. This enhances recommendation relevance and operational efficiency. For example, you can create a context input for the Incident table and use in the Case context record.  
Note:  
You can create multiple active context inputs for a context.  
The following data types are supported for a context input:

* String
* List
* Integer
* Long
* Choice
* True- false
* Reference
* Reference dot walked
* Sys id
{#ra-csm-dynamic-context-inputs__ul_rbf_v3x_zfc}

## Configuring a context using a context input {#ra-csm-dynamic-context-inputs__section_s42_fkw_zfc}

Configuring a context using context inputs includes the following steps:

* Creating a context input. For more information on how to create a context input, see [Create a context input in Recommended Actions](https://servicenow-prod.fluidtopics.net/v_3RCKw3HCQ7tk4Y0RvFdw "As an admin or RA author, create a context input for a context and use it in rule condition builder, resource generator input and recommendation-action mappings.").  
  Note:  
  * If a context has a parent context defined, you can't create context inputs for it.
  * You can have multiple active context inputs simultaneously.
  {#ra-csm-dynamic-context-inputs__ul_v5r_rr1_1gc}
* Mapping the context input to the following according to your requirement:
  * default search term by adding it in the Contextual AI Search Config section on Context form.
  * rules by using it in the condition builder on Rules form.
  * recommendations by adding it in fields of the Action inputs section on Recommendations form.
  * resource generators by adding it in the fields of Generator inputs section on Resource Generators form.
  {#ra-csm-dynamic-context-inputs__ul_g5y_kpw_zfc}
* Adding the JSON-format of the context inputs to the Recommended Actions component for the required record pages in the UI Builder. For more information, see [Configuring Recommended Actions UIB component for context inputs](https://servicenow-prod.fluidtopics.net/jonUJSsmOHaSu1SWYjGZNQ#ra-csm-dynamic-context-inputs__section-config-ra-ci).
{#ra-csm-dynamic-context-inputs__ul_zy1_tkw_zfc}

The context inputs appear along with the context table in the appropriate fields of Rule, Recommendation and Resource generator forms so that you can include the data other than that of the context table to update the
recommendations.

## Configuring Recommended Actions
UIB component for context inputs {#ra-csm-dynamic-context-inputs__section-config-ra-ci}

As an RA author or admin, you must add the JSON-format of the context inputs in the Context input field of Recommended Actions UIB component of a record page to pass the values. You can get the JSON-format of the context input by selecting the Copy input JSON button on the Context input related
list in the Context form. The JSON-format includes all the active context inputs. When a context input is deleted or deactivated after configuring the Recommended Actions UIB component, an empty value is passed for these context inputs in UIB from the upcoming iterations.  
Note:  
If you set a context input as [mandatory](https://servicenow-prod.fluidtopics.net/v_3RCKw3HCQ7tk4Y0RvFdw#ra-csm-create-context-inputs__entry-ci-mandatory) in the Context input form and fail to set contextual inputs on Recommended Actions component of the record page in the UIB, the recommendations are not be generated.

## Context Input configuration limitations {#ra-csm-dynamic-context-inputs__section-ci-config-limits}

The limitations for context inputs configuration are as follows:

* You can either define a parent context or configure context inputs for a context.
* When context inputs are defined for a parent content, then it's rules and recommendations cannot be inherited by its child contexts. In other words, the parent context does not appear in the Parent context field of the Child context.
* To define context inputs for a context which has a parent context defined already, delete the parent context in the Parent context field so that the Context inputs related list appears. And in the Context inputs related list, select the New button to create context inputs.
* When a context input is defined for a parent context which has a child context associated, then the parent-child context link is broken. In the child context, the inherited rules and recommendations will be removed from the Inherited Rules and Recommendations related list respectively.
{#ra-csm-dynamic-context-inputs__ul_lwb_32l_bgc}

