Your syntax is almost correct for Rasa 2.x, but not Rasa 3.x. Looks like you’re using 2.x anyway, correct me if I’m wrong.
It’s probably because of type: any
. The docs only mentions types from_entity
, from_intent
, from_trigger_intent
, and from_text
.