{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":4917,"path":"conversational-interfaces/virtual-agent/create-va-aisearch-application.md","title":"Create a custom AI Search experience for Virtual Agent conversations","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create a custom AI Search experience for Virtual Agent conversations\n\nDefine a custom AI Search experience in a conversation using the AI Search topic block. You create a Search Application Configuration used by the topic block to control the AI Search results returned in the conversation. Or you can use the Search Application Configuration to control AI Search results in a custom chat experience.\n\n## Before you begin\n\n[Create the search profile](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/create-search-profile-ais.md) that defines the search experience to be used in the search application configuration. For details, see [Search profiles](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/defining-search-profiles-ais.md) and [Search application configurations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/defining-search-app-cfgs-ais.md).\n\nRole required: virtual\\_agent\\_admin or admin with the search application administrator \\[search\\_application\\_admin\\] role\n\n## About this task\n\nA search application configuration specifies the AI Search profile used by the Run AI Search topic block or in a custom chat experience to control the search experience, such as the search source used to generate search results.\n\n**Note:** As of the Utah release, use the AI Search topic block when creating an AI Search application. \\(The Run AI Search topic block is used in releases from Rome to Tokyo.\\)\n\n## Procedure\n\n1.  Navigate to **All** &gt; **AI Search** &gt; **Search Experience** &gt; **Search Applications** and select **New** to create the search application configuration.\n\n2.  On the form, fill in the fields.\n\n    For more information, see [Search Application Configuration form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/search-app-config-form-ais.md).\n\n3.  Select **Submit**.\n\n4.  Apply the custom Search Application Configuration to the AI Search topic block used in a conversation or to a custom chat experience.\n\n<table id=\"choicetable_csd_xws_wqb\"><thead><tr><th align=\"left\" id=\"d80180e171\">\n\nOption\n\n</th><th align=\"left\" id=\"d80180e174\">\n\nProcedure\n\n</th></tr></thead><tbody><tr><td id=\"d80180e180\">\n\n**Specify the custom Search Application Configuration in the AI Search topic block used in a conversation**\n\n</td><td>\n\nAdd the AI Search topic block to a conversation topic. For details, see [Add a reusable topic block to a calling topic or topic block](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/add-topic-blocks-to-topic.md).1.  Navigate to **Conversational Interfaces** &gt; **Assistant Designer**, select the **Asset library** tab, and open your topic or [create a new topic](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/create-virtual-agent-topic.md).\n2.  In the Flow tab, drag the Topic Block utility onto the canvas.\n3.  Complete the Topic Block Properties sheet:\n    -   In the **Topic Block** field, select AI Search.\n    -   In the **Search Term \\(String\\)** field, use dot-walking or a script to specify the input variable for the search.\n    -   In the **Search Application Configuration** field, select the custom Search Application Configuration that you created in a previous step.\n\nIf you leave this field empty, AI Search uses the default search application configuration for Virtual Agent.\n\n    -   If needed, click **Hide this node** and specify conditions.\n4.  Select **Save**.\n\nThe AI Search topic block runs the selected search application configuration to generate the customized AI Search experience.\n\n</td></tr><tr><td id=\"d80180e290\">\n\n**Use the custom Search Application Configuration in a custom chat experience**\n\n</td><td>\n\nCreate or update a custom chat experience that uses the Run AI Search topic block with the custom Search Application Configuration. For details on creating a custom experience, see [Configure a Virtual Agent chat experience](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/configure-default-chat-experience.md).\n\n</td></tr></tbody>\n</table>    Your custom Search Application Configuration is used in the AI Search topic block in a conversation or a custom chat experience to generate the customized AI Search experience.\n\n\n**Parent Topic:**[Improving the user experience with AI Search](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/conversational-interfaces/virtual-agent/va-ai-search.md)\n\n"}}