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

Satya Naik 21 Reputation points
2022-05-16T06:03:13.667+00:00

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 AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
745 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,611 Reputation points
    2022-05-17T04:00:37.94+00:00

    @Satya Naik 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.

    0 comments No comments