Amazon Lex (V1) - Import & Export

Rob Hayes
Rob Hayes
  • Updated

Voiceflow allows you to import your data created on Amazon Lex's V1, and export it out of Voiceflow for a manual or automatic upload, in order to speed up your design work, and keep your designs in sync with your NLU.

Data Included on Import+Export

Here is a quick overview of the data that will be imported to Voiceflow from Dialogflow ES' ZIP, and included in our export files and uploads:

  • Intents
  • Slots (including names and slot type)
    • Custom Slots
    • Built-in Slots 
    • Slot prompt messages
  • User Utterances (including all slot annotations)

Screen_Shot_2022-12-15_at_2.31.41_PM.png

 

Exporting Bot Data from Amazon Lex V1

From your console's Bots menu, select the Bot you want to export, then select the 'Export' option from the Actions menu. Screen_Shot_2022-12-15_at_2.47.20_PM.png

You will receive a ZIP file as the export, and that will contain separate JSON files for each Intent in your Bot.

Importing Bot Data into Voiceflow

There are two methods to import your bot data into Voiceflow:

On Assistant Creation

When creating a new assistant in Voiceflow, you will be asked to select your use case (Launch & Host or Design & Handoff), choose Design & Handoff. The select the channel you are building for (Voice Assistant or Chat Assistant) and the NLU you are building for.

Once you select Amazon Lex from the options, an upload link will appear, and when you click it, you can select the ZIP file you have downloaded from the Lex console.

Screen_Shot_2022-12-15_at_2.54.28_PM.png

 This will pre-populate your assistant with the complete training data set contained in your file.

In your NLU Manager

There is a similar import function available in your NLU Manager view, and clicking the ‘Import’ button found in the bottom-left will trigger the import flow.

mceclip3.png

Using this import method will upload all new intents, entities and user examples without deleting the current ones. Any intents or entities with the same name will be overwritten by the newer version.

Exporting NLU Data from Voiceflow

When you are ready to export your NLU data for use back in Amazon Lex, you can manually export the data back out as a ZIP, and upload it through the Lex console.

In the Export Menu, select the intents you wish to include in your exportScreen_Shot_2022-12-15_at_2.57.13_PM.png.

You can generate these export files for Amazon Lex in the following ways:

  • From the ‘Share’ Menu on the design canvas (under ‘Export as…’ and ‘NLU data’)
  • From the ‘Export’ Menu on the NLU Manager

To import this file back into Amazon Lex, you will need to first un-zip the export file generated by Voiceflow if you have exported more than one Intent. You can only import Intents one by one into the Lex console. 

Uploading NLU Data to Amazon Lex

Next, navigate to your Intents page, and under the 'Actions' menu select the Import option. Select the ZIP containing the Intent you wish to import, and follow the prompts in the modal to complete the import. 

If you have an Intent with the same name already in your Intent list, it will be overwritten. Otherwise, new Intents will be added tot he list. 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.