The Dialogflow integrations requires the usage of the
hf command line tool. See how to install it here.
In Dialogflow ES, go to the
Export and Importsection of your agent’s settings, then export your agent to a zip file.
Unzip the downloaded file.
Open a terminal to the directory in which the agent was unzipped. This directory should contain a file named
Import the agent in a workspace by running:
hf dialogflow import --workspace [workspace id] --clear
- You may now open the workspace in your browser.
Note: HumanFirst doesn't support entities yet. Importing a Dialogflow agent with entities should work, but exporting them back may not be fully supported. Support for them in the HumanFirst Studio user interface is on the roadmap, so stay tuned !
You can track changes that have been done in HumanFirst by initializing a git repository in the directory of your unzipped agent and then committing the initial files originating from Dialogflow. By doing this, you will be able to easily compare the changes by using
Open a terminal to the directory in which an exported Dialogflow agent has been unzipped. This directory should contain a file named
Export a HumanFirst workspace into the directory by running:
hf dialogflow export --workspace [workspace id]
- Zip the agent directory:
zip -r agent.zip .
- In Dialogflow ES, go to the
Export and Importsection of your agent’s settings, click on
Import from zip, select the just-created
agent.zipfile and click on import.
- It is possible to mimic the follow-up intents hierarchy when importing the agent into HumanFirst. This will allow you to see the follow-up structure. Since HumanFirst doesn’t support follow-up intents yet, keep in mind that the follow-up structure may not be accurate when importing it back into Dialogflow. Use the
--followup-hierarchyoption at both the import and export to enable this option.