Create a context input in Recommended Actions
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.
Before you begin
Role required: sn_nb_action.next_best_action_author, or admin
About this task
After creating context inputs, you must configure the RA UIB component to pass the context input values. For more information, see Configuring Recommended Actions UIB component for context inputs.
Note:
Creating context inputs is not mandatory. You can create context inputs for a context only when you want to include or map parameters other than the context table.
Procedure
-
Navigate to All > Recommended Actions > Contexts.
-
Open a context that you want to edit.
-
On the Context inputs related list, select New.
Note: The Context inputs related list appears only when a parent context is not mapped to the context. For more information on the context input configuration limitations, see Context Input configuration limitations.
-
In the form, fill in the fields.
|
Field |
Description |
|---|---|
|
Type |
Field type of the input such as Choice, Reference, String, List, Integer, etc.Depending on the field type that you select, you might need to configure additional settings in the related tabs. For example, if you select Reference as the field type, you need to select a reference table. |
|
Application |
Scoped application name.The applicable name is populated by default. |
|
Mandatory |
When this check box is selected, you must set the values for these contextual inputs directly on Recommended Actions component on the record page in the UI Builder for the recommendations to be generated.Note: If you select this check box and fail to set contextual inputs on Recommended Actions component in the UIB, the recommendations will not be generated. |
|
Label |
Name of the context input.The Column name field is auto-filled. |
|
Active |
Enabling the Active check box makes the context input available for use in the context. |
The related tabs that display vary based on the field type selected in the **Type** field. For more information on the data types, see [Field types reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-administration/r_FieldTypes.md).
- Select Save.
Result
The context input appears in the appropriate fields of rules, recommendations, and resource generators.
- Default search term pill picker in the Contextual AI Search Config section of Context form.
- Advanced Condition drop-down field of the Rule form.
- Pill pickers in the Action inputs section of the Recommendation form.
- Default search term pill picker in the Contextual AI search configuration section of the Context form.
- Pill pickers in the Generator inputs section of the Resource generator form.
What to do next
Use the context inputs for creating the conditions in rules, and action inputs in recommendations and generator inputs in resources generators.
---
title: Create a context input in Recommended Actions
description: 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.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/customer-service-management/ra-csm-create-context-inputs.html
release: brazil
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 2
breadcrumb: [Configuring the Recommended Actions application, Recommended Actions configuration, Implement Intelligence, Configure, Customer Service Management]
---
# Create a context input in Recommended Actions
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.
## Before you begin
Role required: sn\_nb\_action.next\_best\_action\_author, or admin
## About this task
After creating context inputs, you must configure the RA UIB component to pass the context input values. For more information, see [Configuring Recommended Actions UIB component for context inputs](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/customer-service-management/ra-csm-dynamic-context-inputs.md).
**Note:**
Creating context inputs is not mandatory. You can create context inputs for a context only when you want to include or map parameters other than the context table.
## Procedure
1. Navigate to **All** > **Recommended Actions** > **Contexts**.
2. Open a context that you want to edit.
3. On the Context inputs related list, select **New**.
**Note:** The Context inputs related list appears only when a parent context is not mapped to the context. For more information on the context input configuration limitations, see [Context Input configuration limitations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/customer-service-management/ra-csm-dynamic-context-inputs.md).
4. In the form, fill in the fields.
<table id="table_fvt_kgp_yfc"><thead><tr><th>
Field
</th><th>
Description
</th></tr></thead><tbody><tr><td>
Type
</td><td>
Field type of the input such as Choice, Reference, String, List, Integer, etc.Depending on the field type that you select, you might need to configure additional settings in the related tabs. For example, if you select Reference as the field type, you need to select a reference table.
</td></tr><tr><td>
Application
</td><td>
Scoped application name.The applicable name is populated by default.
</td></tr><tr><td id="entry-ci-mandatory">
Mandatory
</td><td>
When this check box is selected, you must set the values for these contextual inputs directly on [Recommended Actions component on the record page in the UI Builder](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/customer-service-management/ra-csm-dynamic-context-inputs.md) for the recommendations to be generated.**Note:** If you select this check box and fail to set contextual inputs on Recommended Actions component in the UIB, the recommendations will not be generated.
</td></tr><tr><td>
Label
</td><td>
Name of the context input.The **Column name** field is auto-filled.
</td></tr><tr><td>
Active
</td><td>
Enabling the **Active** check box makes the context input available for use in the context.
</td></tr></tbody>
</table>5. Provide the necessary details in the related tabs.
The related tabs that display vary based on the field type selected in the **Type** field. For more information on the data types, see [Field types reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-administration/r_FieldTypes.md).
6. Select **Save**.
## Result
The context input appears in the appropriate fields of rules, recommendations, and resource generators.
- **Default search term** pill picker in the Contextual AI Search Config section of Context form.
- **Advanced Condition** drop-down field of the Rule form.
- Pill pickers in the Action inputs section of the Recommendation form.
- **Default search term** pill picker in the Contextual AI search configuration section of the Context form.
- Pill pickers in the Generator inputs section of the Resource generator form.
## What to do next
Use the context inputs for creating the conditions in rules, and action inputs in recommendations and generator inputs in resources generators.
| title | Create a context input in Recommended Actions |
| description | 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. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/customer-service-management/ra-csm-create-context-inputs.html |
| release | brazil |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 2 |
| breadcrumb | Configuring the Recommended Actions applicationRecommended Actions configurationImplement IntelligenceConfigureCustomer Service Management |