Context: I’m looking to migrate my bot from the .md training examples (1.x) to the .yml format (2.x) and I’m getting some trouble with Rasa.
I’m currently using slot type “any” (reference here: Domain) for certain objects that are gathered during the conversation. However, these objects that I use during the conversation, are either a list or a JSON/dictionary type. After I used the automated migration script for my stories, running the
rasa train command gave me multiple errors that these slots when set are not of the type
So I removed all of the “problematic stories” with these slots and tried to create stories afresh using
rasa interactive hoping that it’ll give me the right format. However, once I exported the stories and re-ran the training, I got the same error even for the format that rasa interactive exported. The JSON seems to be represented as a multi-level bulleted list inside the
slot_was_set node of the story.
I also tried actually putting in the JSON in place of the tree and got the same result.
How should I format a slot of type “any”, especially if it could be a JSON?