Managing Bot's Resources

Under the Resources tab, you can upload files and create static variables for environment-specific configurations that can be used in custom scenarios.

Files

The Health Bot Service can use custom images to create unique and brandable scenarios. The Files category is a repository of images that will may be used in the Scenario Editor. Uploaded images for use in your scenarios will be saved here.

For example, to use Hello world.png in the Example scenario, attach the image to the statement as shown in the screenshot below:

Save and run the scenario, and the health bot instance will respond with the statement and image as shown below:

Environment variables

In the Environment variables category, static variables can be added by the tenant to store data.

For example, the tenant can set the URL of their backed API in an Environment variable. When using different bots for development and production environments, the environment variable can be used to store a different URL for each environment, thus allowing the tenant to keep the same logic within their custom scenarios.

As shown below, the environment variables can also be used to save an application unique identifiers:



The environment variable is used as a JavaScript call in the Scenario Editor with this syntax: getEnv("<variable_name>")