question

SatyaNaik-8545 avatar image
0 Votes"
SatyaNaik-8545 asked ramr-msft answered

How to add custom settings in the appsettings.json file and use it inside Bot Composer v2.1.2

I have been using bot composer v1.4 and have defined some custom properties inside appsettings.json. In v1.4, inorder to get the property values inside a dialog flow, I can use "settings" keyword. For eg: if in appsettings.json, there is a property key-value as "version":"12", inside the dialog flow, I can access this value using ${settings.version} and that works, both if run locally as well inside azure bot service.

Recently I updated the composer to 2.1.2 and ran it inside local. It worked fine and had no issue. But when I published the app to the azure bot service, somehow it is unable to pick these properties. Also, one weird thing I noticed is that, everytime I start publishing the app to the azure, the appsettings.json file gets refreshed and the custom properties defined gets omitted, and only defined default properties stays inside the file.

I need a workaround to solve the problem. Any leads will be appreciated.





azure-bot-service
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ramr-msft avatar image
0 Votes"
ramr-msft answered

@SatyaNaik-8545 Thanks for the question. we would recommend raising an issue in the following bot-composer repo for the team to check on this. Also please add the error details that you are getting.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.