{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":42414,"path":"platform-user-interface/service-portal/ais-results-action.md","title":"Define an AI Search Results Action","bundle":null,"doc_type":null,"release":"australia","body":"\n# Define an AI Search Results Action\n\nConfigure which portal page opens when a result is selected from the list of search results.\n\n## Before you begin\n\nRole required: sp\\_admin or admin\n\n## About this task\n\nThis configuration is required for UXF Client Action buttons in genius results or search results cards.\n\n**Note:** If the action is being implemented as a server script, the script is executed by the search widget. Notification messages defined in the server script are displayed.\n\n## Procedure\n\n1.  Navigate to **All** &gt; **Service Portal** &gt; **AI Search** &gt; **Search Results Action** and select **New**.\n\n2.  On the form, fill in the fields.\n\n<table id=\"table_mfl_y4s_jnb\"><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nShort description\n\n</td><td>\n\nA unique description of the search results action.\n\n</td></tr><tr><td>\n\nService Portal\\(s\\)\n\n</td><td>\n\nPortals in which the search results action appears. If left blank, the search results action appears in all active portals.\n\n</td></tr><tr><td>\n\nAI Search Source\n\n</td><td>\n\nContent that portal users can search on, including tables in your instance or external data sources. For more information, see Defining search sources.\n\n</td></tr><tr><td>\n\nAction name\n\n</td><td>\n\nName of the action assignment. Only navigation actions are supported for selecting a search result in portals.\n\n</td></tr><tr><td>\n\nApplication\n\n</td><td>\n\nApplication scope of the search results action.\n\n</td></tr><tr><td>\n\nActive\n\n</td><td>\n\nOption to activate the search results action.\n\n</td></tr><tr><td>\n\nOrder\n\n</td><td>\n\nPriority that the search results action takes over other actions with the same configuration. To give higher priority to an action, enter a lower number.\n\n If two actions have the same order, then the oldest action takes priority.\n\n</td></tr><tr><td>\n\nPortal page\n\n</td><td>\n\nPage on that opens when a result from the search source is selected from the list of search results.\n\n</td></tr><tr><td>\n\nPayload query parameters\n\n</td><td>\n\nQuery parameters to apply to the URL.\n\n-   In the first drop-down, select the payload fields that correspond to the selected **Action name**.\n\n**Note:** You can find the payload fields by opening the record referenced in the **Action name** field. Then, in the Action Assignment record, open the record referenced in the **Specify client action** field. The **Payload** field in the Action Payload Definition record specifies the fields used.\n\n-   In the next field, enter the query parameter to use in the URL.\n\n\n</td></tr><tr><td>\n\nAdditional query parameters\n\n</td><td>\n\nCustom query parameters to use in addition to the payload query parameters. For example, to add `view=sp` as a query parameter, you would enter `view` and `sp` in the **Name** and **Value** fields, respectively.\n\n</td></tr></tbody>\n</table>3.  Select **Submit**.\n\n\n**Parent Topic:**[AI Search in Service Portal](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/service-portal/ai-search.md)\n\n"}}