Select script dynamically in Architect - something better than a switch function?

Hi,

Trying to work out better ways of dynamically choosing the right script. AS there is no "Find Script" type function, this is not very straightforward or programmatic.

At the moment, I've built a reusable task that based off some parameters will then go through a tree of switch functions to get to the right one.

With a complex client that has lots of skills and variations on scripts, this is quite unwieldy..

I was hoping there may be an API call that can be used to associate a specific script via a data action (at least then we could reference a datatable, for a variable that feeds the action) BUT there doesn't seem to be anything in the Conversation or Script API's that would allow me to do this.

Or is this going the wrong way about it.. Should we be looking to make the scripts more dynamic although this also doesn't seem to be very straightforward. Admittedly, I've been focussing on flows and integrations so haven't explored this very deeply yet.

There's no way to do it dynamically, because the "Set ScreenPop", toolstep, like you said.. does not support an expression as an input.

Are the scripts largely different for all of the different skill variations? Or, is it just different types of data that's displayed, etc. That would be useful to know before understanding whether it could be combined in a single script.