How to convert csv into a format accepted by rasa with python

@dan246 great, I will also try this method :wink: many thanks for sharing the solution.