simonm3
(simon)
November 3, 2021, 2:09pm
1
Downloaded a dialogflow agent to the “dialogflow” folder then tried to convert to rasa.
rasa data convert nlu --data dialogflow --format md
converts from dialogflow to a markdown file
rasa data convert nlu --data dialogflow
OR rasa data convert nlu --data dialogflow --format yaml
just skips all the files
Do I have to convert first to markdown then to yaml?
nik202
(NiK202)
November 3, 2021, 2:19pm
2
@simonm3 Hi, I hope you already followed these steps:
The DialogFlow assistant
Step 1: Exporting the DialogFlow assistant
Step 2: Training the Rasa NLU model using exported data
Step 3: Migrating contexts and training Rasa Core model
Step 4: Your DialogFlow assistant now runs on Rasa. What’s next?
As, now Rasa have .yml and I guess dialogueflow export in .md file (not sure) so yes you need to convert the data from .md to .yml.
simonm3
(simon)
November 3, 2021, 2:47pm
3
Thanks. it does work but seems longwinded to have to convert through a deprecated format. Filed it as a bug.
dialogflow format is json.
nik202
(NiK202)
November 3, 2021, 2:49pm
4
@simonm3 really? in JSON when you export the complete folder? (I not worked since ages on DF)
Hope this will help you.
OR
simonm3
(simon)
November 3, 2021, 2:50pm
5
really. no other option given.
simonm3
(simon)
November 3, 2021, 3:05pm
7
Detailed example works but using markdown which is deprecated. the other example works directly on the json files without any conversion. However current docs, training and examples for version 2 use yaml so better to use that. And manually editing the json does not sound like much fun.
EDIT: not actually tested if it works on the json but the training finishes without error.
nik202
(NiK202)
November 3, 2021, 3:54pm
8
@simonm3 go ahead and try talk to your bot then? check its working or not.
BelenAleman
(Belen Aleman)
February 26, 2024, 10:26am
9
I would like to share the following Python script that facilitates the migration process from Dialogflow to Rasa Open Source.
Feel free to test it and share any comment/issue/improvement
Best,
Belén