Map AI search results with guidance inputs in Recommended Actions
Create mappings between AI search results and guidance inputs to recommend relevant actions to agents using AI search or enable agents to use AI search to search for the relevant resources.
Before you begin
Role required: sn_nb_action.next_best_action_author, admin
Procedure
Navigate to All > Recommended Actions > Contexts.
Select a context for the AI search.
If a message appears about the application scope, select here to be able to edit the record.
In the Search Application Configuration field, select the Lookup using list icon
Lookup using list icon and select either the base system CSM Configurable Workspace Search Config or a custom configuration that specifies AI search as the search engine and contains your desired search settings.
You can configure the search result display and refinement settings in the search application configuration. For more information, see [Search application configurations](../platform-administration/ai-search/defining-search-app-cfgs-ais.md).
The **\[CSM AIS\] Configurable Workspace Search Config** search application configuration is provided with the CSM Configurable Workspace store application. To access this configuration, navigate to **AI Search** > **Search Experience** > **Search Applications**.
In the Search result mapping related list, select New.
In the Action type field, select Guidance as an action type.
In the Action field, select an action to associate with the guidance.
The available actions are determined by the selection in the Action type field.
- In the Action field, select the Lookup using list icon (
Lookup using list icon\).
In the resulting pop-up window, the **Table name** field is auto-populated with the table that stores the available actions for the selected action type.
2. In the **Document** field, select the Lookup documents using list icon \(
Lookup documents using list icon\) and then select the action.
3. Select **OK**.
4. Save the record.
Saving the record displays the required action inputs.
- Configure the AI search result type.
| Option | Steps |
|---|---|
| Map genius result: No |
This field shows all the source tables mapped to the search profile of your search application configuration. |
| Map genius result: Yes |
This field shows return fields of the genius result configuration that is linked to the search profile of your search application configuration. For more information, see AI Search Genius Result Configuration form. |
Save the record.
The AI search parameters display in the pill picker.
Map the action inputs.
Action types and actions need inputs. These parameters enable agents to complete an action. You can choose static values for action inputs or you can use the pill picker to supply dynamic values.
| Option | Steps |
|---|---|
| Use a static value | Enter a value in the input field or use the lookup icon to select a value from the list. |
| Use a pill picker | 1. Select the pill picker next to the field. The following are available in the pill picker: - Context - The outputs from the search source table or genius result configuration - Search query term, search result preview, search result sysId, search result table, search result teaser, search result title, and search result url Search query term: When an agent searches in the AI Search tab of the Recommended Actions side panel and selects a matching search result, the system automatically captures the search query term and passes it to the configured guidance as a dynamic input. This provides the ability for agents to include the search query term as a guidance input. 2. Select the output from the pill picker. |
- Select Update.