I'm expanding a working Azure Bot Service prototype (on an App Service Plan) that contains all of its prompts in ./locale/en/index.json. Is it possible to split that into multiple files and programmatically determine which file we check for prompts at runtime? Would this cause significant unexpected performance impacts?
Example: if I had different responses to "what is an apple" and "what is an orange", defining both as fruitDefinition prompt in separate files (apple.json and orange.json.)
Instead of:
bot.dialog(('Apple', [
function (session, args, next) {
session.send("prompt_define_apple");
}
]).triggerAction({matches: 'Apple'});
This would allow me to be more generic with the code, pulling the same prompt name each time ("prompt_define") and just varying what file I take it from.
I could certainly keep dumping everything in the index.json but the prompt namespace is already getting a bit cluttered, and I'd like to scale this to a wide set of entities.
Thanks!