{"id":55832,"date":"2023-03-14T07:46:22","date_gmt":"2023-03-14T07:46:22","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=55832"},"modified":"2024-01-12T13:40:30","modified_gmt":"2024-01-12T13:40:30","slug":"configuring-the-azure-openai-action","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/integrations\/configuring-the-azure-openai-action\/","title":{"rendered":"Configuring the Azure OpenAI Action"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\"><div class=\"ult-spacer spacer-6ae865bbf072f\" data-id=\"6ae865bbf072f\" data-height=\"10\" data-height-mobile=\"10\" data-height-tab=\"10\" data-height-tab-portrait=\"\" data-height-mobile-landscape=\"\" style=\"clear:both;display:block;\"><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>The XO Platform lets you easily connect with the Azure OpenAI instance to find answers to your general queries. The Platform supports all common actions on Azure with ready-to-use pre-built dialog templates.<\/p>\n<p>This article explains how to authorize and enable the <strong>Azure OpenAI<\/strong> action and install the pre-built templates.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Authorizations_Supported\">Authorizations Supported<\/span><\/h2>\n<p>The Kore.ai XO Platform supports basic authentication, allowing Azure OpenAI integration to exchange data. For more information, read the <a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/advanced-topics\/authorization\/bot-authentication\/\">Bot Authorization Overview<\/a> article.<\/p>\n<p>The Kore.ai XO Platform supports the following authorization types for the Azure OpenAI integration:<\/p>\n<ul>\n<li><strong>Pre-Authorize the Integration<\/strong> \u2013 To make the integration process smoother for developers and customers, you can pre-authorize it by providing the necessary authorization credentials to obtain the access token.<\/li>\n<li><strong>Allow Users to Authorize the Integration<\/strong> \u2013 This method requires the end user to provide credentials during the conversation for authorization. This authorization process involves requesting permission for Kore.ai\u2019s Azure OpenAI app to access an access token at runtime. To learn more about Azure OpenAI account types, see <a href=\"https:\/\/azure.microsoft.com\/en-us\/products\/cognitive-services\/openai-service\">Azure OpenAI Service<\/a>.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step_1_Create_an_Azure_OpenAI_App\">Step 1: Create an Azure OpenAI App<\/span><\/h2>\n<p><strong>Prerequisites<\/strong>:<\/p>\n<p>Before enabling the Azure OpenAI action, complete the following prerequisites:<\/p>\n<ul>\n<li>If you don\u2019t have Azure OpenAI account credentials, create a developer account in Azure OpenAI and note down login credentials. Use the <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/cognitive-services\/openai\/overview\">Azure OpenAI Service Documentation<\/a> for more information.<\/li>\n<li>Copy the <em>API Key<\/em>,<em> User Sub Domain<\/em>, and <em>Deployment ID<\/em> values and keep them for future use to enable the integration.<\/li>\n<\/ul>\n<p>Create an Azure OpenAI Service app and configure it on the Kore.ai XO Platform to establish a communication channel between Azure OpenAI and the Kore.ai XO Platform.<\/p>\n<p>Steps to create an Azure OpenAI service:<\/p>\n<ol>\n<li>Log in to the <a href=\"https:\/\/portal.azure.com\/\">Azure portal<\/a>, and search for Azure OpenAI from the portal menu.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329073014\/azure_openai_app.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1365\" height=\"233\" class=\"alignnone size-medium wp-image-56296\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329073014\/azure_openai_app.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329073014\/azure_openai_app.png 1365w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329073014\/azure_openai_app-300x51.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329073014\/azure_openai_app-1024x175.png 1024w\" sizes=\"auto, (max-width: 1365px) 100vw, 1365px\" \/><\/a><\/li>\n<li>On the Cognitive Services Azure OpenAI page, click <strong>Create<\/strong>.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329073848\/azure_create.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1356\" height=\"299\" class=\"alignnone size-medium wp-image-56300\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329073848\/azure_create.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329073848\/azure_create.png 1356w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329073848\/azure_create-300x66.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329073848\/azure_create-1024x226.png 1024w\" sizes=\"auto, (max-width: 1356px) 100vw, 1356px\" \/><\/a><\/li>\n<li>Fill in the following required details:\n<ol>\n<li>Select an existing <strong>Resource Group<\/strong> or create a new one.<\/li>\n<li>Select the <strong>Region<\/strong>. For example, select the <em>South Central US<\/em> region.<\/li>\n<li>Enter the <strong>Name<\/strong> of the Azure OpenAI service. For example, enter <em>PlatformInegration<\/em>.<\/li>\n<li>Select the <strong>Pricing Tier<\/strong> option. For example, select the <em>Standard<\/em> option.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329075728\/create_azure_app.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1150\" height=\"653\" class=\"alignnone size-medium wp-image-56304\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329075728\/create_azure_app.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329075728\/create_azure_app.png 1150w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329075728\/create_azure_app-300x170.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329075728\/create_azure_app-1024x581.png 1024w\" sizes=\"auto, (max-width: 1150px) 100vw, 1150px\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<li>Click <strong>Next<\/strong> and then click <strong>Review + Submit<\/strong>.<\/li>\n<li>Once the Validation Passed message appears, click <strong>Create<\/strong>.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329080020\/create_app.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1058\" height=\"647\" class=\"alignnone size-medium wp-image-56309\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329080020\/create_app.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329080020\/create_app.png 1058w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329080020\/create_app-300x183.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329080020\/create_app-1024x626.png 1024w\" sizes=\"auto, (max-width: 1058px) 100vw, 1058px\" \/><\/a><\/li>\n<li>The Azure OpenAI service is now initialized and deployed in the portal with an endpoint URL and API Keys. Click <strong>Go to Resource<\/strong> to view the app details.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329080842\/go_to_resource.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1046\" height=\"559\" class=\"alignnone size-medium wp-image-56314\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329080842\/go_to_resource.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329080842\/go_to_resource.png 1046w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329080842\/go_to_resource-300x160.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329080842\/go_to_resource-1024x547.png 1024w\" sizes=\"auto, (max-width: 1046px) 100vw, 1046px\" \/><\/a><\/li>\n<li>In the Overview page, copy the <strong>User Sub Domain<\/strong> from the endpoint. For example, in the following screenshot, the endpoint is &#8220;<em>https:\/\/platformintegration.openai.azure.com\/<\/em>&#8221; and the user sub domain is <em>&#8220;platformintegration&#8221;.<\/em><br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081221\/azure_user_domain.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1317\" height=\"563\" class=\"alignnone size-medium wp-image-56317\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081221\/azure_user_domain.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081221\/azure_user_domain.png 1317w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081221\/azure_user_domain-300x128.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081221\/azure_user_domain-1024x438.png 1024w\" sizes=\"auto, (max-width: 1317px) 100vw, 1317px\" \/><\/a><\/li>\n<li>In the Left Navigation Pane, select the <strong>Keys and Endpoints<\/strong> menu and click <strong>Show Keys<\/strong>, and then copy the <strong>API Key<\/strong> as shown below.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081524\/azure_api_key.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1364\" height=\"591\" class=\"alignnone size-medium wp-image-56320\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081524\/azure_api_key.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081524\/azure_api_key.png 1364w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081524\/azure_api_key-300x130.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081524\/azure_api_key-1024x444.png 1024w\" sizes=\"auto, (max-width: 1364px) 100vw, 1364px\" \/><\/a><\/li>\n<li>In the Left Navigation Pane, select <strong>Model Deployments<\/strong> and create a new deployment. For example, enter the model name as <em>PlatformDeploy<\/em> and select the Model as <em>text-davinci-001<\/em>. Click <strong>Save<\/strong>.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081833\/azure_deploy_model.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1355\" height=\"653\" class=\"alignnone size-medium wp-image-56323\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081833\/azure_deploy_model.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081833\/azure_deploy_model.png 1355w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081833\/azure_deploy_model-300x145.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329081833\/azure_deploy_model-1024x493.png 1024w\" sizes=\"auto, (max-width: 1355px) 100vw, 1355px\" \/><\/a><\/li>\n<li>Copy the <strong>Model Name<\/strong> of the newly created deployment as shown below.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329082034\/azure_deploy_model1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1362\" height=\"637\" class=\"alignnone size-medium wp-image-56327\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329082034\/azure_deploy_model1.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329082034\/azure_deploy_model1.png 1362w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329082034\/azure_deploy_model1-300x140.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329082034\/azure_deploy_model1-1024x479.png 1024w\" sizes=\"auto, (max-width: 1362px) 100vw, 1362px\" \/><\/a><\/li>\n<li>You can also copy the Azure OpenAI service credentials from the <strong>Azure OpenAI Studio &gt; Playground &gt; GPT- 3 &gt; View Code<\/strong>, as shown below.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329082308\/azure_chatGPT_Playground.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1365\" height=\"645\" class=\"alignnone size-medium wp-image-56331\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329082308\/azure_chatGPT_Playground.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329082308\/azure_chatGPT_Playground.png 1365w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329082308\/azure_chatGPT_Playground-300x142.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230329082308\/azure_chatGPT_Playground-1024x484.png 1024w\" sizes=\"auto, (max-width: 1365px) 100vw, 1365px\" \/><\/a><\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Step_2_Enable_the_Azure_OpenAI_Action\">Step 2: Enable the Azure OpenAI Action<\/span><\/h2>\n<p>Once you have created an Azure OpenAI service and copied the required credentials, you can enable the integration.<\/p>\n<p>Steps to enable the Azure OpenAI action:<\/p>\n<ol>\n<li>Go to <strong>Build &gt; Integrations &gt; Actions<\/strong>.<\/li>\n<li>Once you click the <strong>Actions<\/strong> menu, all integrations are shown in the Available region. Select the <strong>Azure OpenAI<\/strong> action.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314063734\/azure_action.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1913\" height=\"752\" class=\"alignnone size-medium wp-image-55834\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314063734\/azure_action.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314063734\/azure_action.png 1913w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314063734\/azure_action-300x118.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314063734\/azure_action-1024x403.png 1024w\" sizes=\"auto, (max-width: 1913px) 100vw, 1913px\" \/><br \/>\n<\/a><\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Pre-authorize_the_Integration\">Pre-authorize the Integration<\/span><\/h3>\n<p><b>Basic Auth<br \/>\n<\/b>You can authorize the integration using your credentials. The developer authorization lets you authorize the integration with preconfigured Kore.ai app with the Basic Auth option.<\/p>\n<p>Steps to authorize the Azure OpenAI action using developer credentials:<\/p>\n<ol>\n<li>Go to <strong>Build &gt; Integrations &gt; Actions<\/strong> and select the <strong>Azure OpenAI<\/strong> action.<\/li>\n<li>In the Configurations dialog, select the <strong>Authorization <\/strong> tab.<\/li>\n<li>Enter the following details:\n<ul>\n<li><strong>Authorization Type<\/strong> \u2013 Select the <strong>Pre-authorize the Integration<\/strong> option, and then select the <strong>Basic Auth<\/strong> option.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20231201104230\/azure-openAI-pre-authorize-basic-auth-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-60423\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20231201104230\/azure-openAI-pre-authorize-basic-auth-1.png\" alt=\"\" width=\"600\" height=\"459\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20231201104230\/azure-openAI-pre-authorize-basic-auth-1.png 2815w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20231201104230\/azure-openAI-pre-authorize-basic-auth-1-300x230.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20231201104230\/azure-openAI-pre-authorize-basic-auth-1-1024x784.png 1024w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/li>\n<li><strong>API Key<\/strong> \u2013 The secret API key of your Azure OpenAI service, which you copied in Step 1.<\/li>\n<li><strong>User Sub Domain<\/strong> \u2013 The user sub domain name of the Azure OpenAI service, which you copied in Step 1.<\/li>\n<li><strong>Deployment ID<\/strong> \u2013 The deployment ID\/model name of the Azure OpenAI service, which you copied in Step 1.<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Enable<\/strong>. When you configure the action for the first time, the Integration Successful pop-up is displayed.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314064829\/azure_action6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1917\" height=\"768\" class=\"alignnone size-medium wp-image-55842\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314064829\/azure_action6.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314064829\/azure_action6.png 1917w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314064829\/azure_action6-300x120.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314064829\/azure_action6-1024x410.png 1024w\" sizes=\"auto, (max-width: 1917px) 100vw, 1917px\" \/><\/a><br \/>\n<strong>Note<\/strong>: The Azure OpenAI action is moved from Available to Configured region.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Allow_the_End_User_to_Authorize\">Allow the End User to Authorize<\/span><\/h3>\n<p>You can authorize the integration at a user level with their login credentials. The user authorization process involves requesting permission for Kore.ai\u2019s Azure OpenAI app to access an access token at runtime. You can also use the basic auth profile to let a user configure the integration at runtime.<\/p>\n<p>Steps to authorize an Azure OpenAI action at a user level:<\/p>\n<ol>\n<li>Go to <strong>Build &gt; Integrations &gt; Actions<\/strong> and select the <strong>Azure OpenAI<\/strong> action in the <strong>Available Actions<\/strong> region.<\/li>\n<li>In the <strong>Configurations<\/strong> dialog, select the <strong>Authorization<\/strong> tab.<\/li>\n<li>Enter the following details:\n<ul>\n<li><strong>Authorization Type<\/strong> \u2013 Select the <strong>Allow Users to Authorize the Integration<\/strong> option, and then select the <strong>Basic Auth<\/strong> option.<\/li>\n<li>Create your authorization profile to obtain an access token and use it to complete integration without using Kore.ai\u2019s Azure OpenAI app for authorization.<\/li>\n<li>Click the <strong>Select Authorization<\/strong> drop-down and select the <strong>Create New<\/strong> option.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314070834\/azure_action2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"844\" class=\"alignnone size-medium wp-image-55847\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314070834\/azure_action2.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314070834\/azure_action2.png 798w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314070834\/azure_action2-284x300.png 284w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/a><\/li>\n<li>Select the type of authorization mechanism. For example, select the API Key option.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314071703\/open_ai_api_key1-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"910\" class=\"alignnone size-medium wp-image-55850\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314071703\/open_ai_api_key1-1.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314071703\/open_ai_api_key1-1.png 785w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314071703\/open_ai_api_key1-1-259x300.png 259w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/a><br \/>\nTo create Basic Auth profiles, see <a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/advanced-topics\/authorization\/bot-authentication\/\">Bot Authorization Overview<\/a>.<\/li>\n<li>Enter the following authentication credentials for the Basic Auth mechanism:\n<ul>\n<li><em>Name<\/em> \u2013 Enter the name for the Basic Auth profile.<\/li>\n<li>Select <em>Yes; some tasks will have tenancy URLs, and the user must provide the URLs to authenticate successfully<\/em>.<\/li>\n<li><em>Base URL<\/em> \u2013 Enter the base tenant URL for the Azure OpenAI instance.<\/li>\n<li><em>Authorization Check URL<\/em> \u2013 Enter the authorization check URL for your Azure OpenAI instance.<\/li>\n<li><em>Description<\/em> \u2013 Enter the description of the basic authentication profile.<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Save Auth<\/strong> to save the authorization profile.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314071847\/azure_action3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"908\" class=\"alignnone size-medium wp-image-55853\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314071847\/azure_action3.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314071847\/azure_action3.png 796w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314071847\/azure_action3-263x300.png 263w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/a><\/li>\n<li>Select the new Authorization Profile you created to complete integration.<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Enable<\/strong>. When you configure the action for the first time, the Integration Successful pop-up is displayed.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314072019\/azure_action5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"848\" class=\"alignnone size-medium wp-image-55856\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314072019\/azure_action5.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314072019\/azure_action5.png 794w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314072019\/azure_action5-281x300.png 281w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/> <\/a><\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Step_3_Install_the_Azure_OpenAI_Action_Templates\">Step 3: Install the Azure OpenAI Action Templates<\/span><\/h2>\n<p>Once you have configured an Azure OpenAI integration, you can explore and install action templates.<\/p>\n<p>Steps to install action templates:<\/p>\n<ol>\n<li>On the Integration Successful dialog, click the Explore Templates button to view the templates.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314064829\/azure_action6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1917\" height=\"768\" class=\"alignnone size-medium wp-image-55842\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314064829\/azure_action6.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314064829\/azure_action6.png 1917w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314064829\/azure_action6-300x120.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314064829\/azure_action6-1024x410.png 1024w\" sizes=\"auto, (max-width: 1917px) 100vw, 1917px\" \/><\/a><\/li>\n<li>In the Integration Templates dialog, click the <strong>Install<\/strong> button to begin the installation.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314073840\/azure_action7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"589\" height=\"287\" class=\"alignnone size-medium wp-image-55860\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314073840\/azure_action7.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314073840\/azure_action7.png 589w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314073840\/azure_action7-300x146.png 300w\" sizes=\"auto, (max-width: 589px) 100vw, 589px\" \/><\/a><\/li>\n<li>Once the templates are installed, a dialog task is auto-created.<\/li>\n<li>When you create a dialog task, you can also select the task from the Azure OpenAI action templates and click <strong>Proceed<\/strong>. For example, select the General Query task.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314074240\/azure_action9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"907\" class=\"alignnone size-medium wp-image-55863\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314074240\/azure_action9.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314074240\/azure_action9.png 786w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314074240\/azure_action9-260x300.png 260w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/a><\/li>\n<li>Once you click <strong>Proceed<\/strong>, the dialog task is auto-created, and the canvas opens with all required entity nodes, service nodes, and message scripts.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314074438\/azure_action10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1719\" height=\"889\" class=\"alignnone size-medium wp-image-55866\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314074438\/azure_action10.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314074438\/azure_action10.png 1719w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314074438\/azure_action10-300x155.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230314074438\/azure_action10-1024x530.png 1024w\" sizes=\"auto, (max-width: 1719px) 100vw, 1719px\" \/><\/a><\/li>\n<\/ol>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"The XO Platform lets you easily connect with the Azure OpenAI instance to find answers to your general queries. The Platform supports all common actions on Azure with ready-to-use pre-built dialog templates. This article explains how to authorize and enable the Azure OpenAI action and install the pre-built templates. Authorizations Supported The Kore.ai XO Platform...","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[201],"tags":[],"class_list":["post-55832","post","type-post","status-publish","format-standard","hentry","category-integrations"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/55832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=55832"}],"version-history":[{"count":20,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/55832\/revisions"}],"predecessor-version":[{"id":61024,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/55832\/revisions\/61024"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=55832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=55832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=55832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}