How to change app settings Azure App Service Bot Service


I have written a number of articles about my experience creating a Bot #Bot #chatbot.  Check them out.

Here are some other more recent articles I have written on this subject:

If you ever need to change for example the MicrosoftAppId, MicrosoftAppPassword, LuisAppId or the LuisAPIKey, then here is how you do it.

I wanted to change the LuisAppId and the LuisAPIKey so I looked in the portal and found a reference to it in the BasicLuisDialog.csx file in the message folder.  The reference is when building the constructor of the BasicLuisDialog class as shown here.

public BasicLuisDialog() : base(new LuisService(new LuisModelAttribute(Utils.GetAppSetting("LuisAppId"), Utils.GetAppSetting("LuisAPIKey")))){}

I noticed the way in which the LuisAppId and the LuisAPIKey were being captured, I.e. the Utils.GetAppSetting() method which lead me to the understanding that the values were stored in the app settings file.  As seen in Figure 1, click on the Settings tab and then the Open button for the Application Settings.

image

Figure 1, how to set applicaton settings for a chatbot #chatbot #bot

When the Application settings blade opens you can add, update or delete your Bots application settings, including the MicrosoftAppId, MicrosoftAppPassword, LuisAppId or the LuisAPIKey,as seen in Figure 2.

image

Figure 2, how to set applicaton settings for a chatbot #chatbot #bot, how to change LuisAPIKey, how to change LuisAppId

Cool stuff.

Comments (1)

  1. Srinivas says:

    Hi Benjamin,
    When I go to settings on my chatbot, the settings are disabled and shows deleted ….
    As a result I am unable to update my settings …Any ideas?

Skip to main content