Closed andreasdieryck closed 7 years ago
that's perfect, after talking to Olivier I was going to create an issue with the exact same proposal ;-) (we agree that the point of creating this is to be able to A/B test the sequences ?)
Yep, for A/B testing
Looks good to me, thanks
We currently define the sequences of our bot in masterfiles. These masterfiles have the following structure:
There are two rules regarding our current file system:
We would now like to add the possibility to send one file or the other to the user, on a random basis.
For instance in the above example, we may want to send DoYouLikePoems.json or DoYouWantAKittenGif.json to the user, not both. To do that, we need a system that accomodates an "OR" choice of file.
Here's what @Frederikos and I came up with:
By inserting the files in array objects, we create the possibility to store many of them. Then the client has just to pick randomly one of them when there are more than one. -> we will need to insert arrays for each file entry point, as Sergey pointed out, because we want uniform objects at the same places
@rhwy What do you think about it?