Exporting and importing scripts

With the export and import options, you can export dialog scripts from Alan AI Studio to store them externally or later upload them to the same or another project on your account.

Exporting scripts

You can export a script from the project in Alan AI Studio, for example, if you want to save some script version locally.

To export scripts from the Alan AI project:

  1. In Alan AI Studio, open the project from which you want to export scripts.

  2. In the left pane, select a script.

  3. At the bottom of the left pane, click Export. Alan AI will save a ZIP archive to the default downloads location on your computer. The archive will contain all scripts you have in the project.

../../../_images/export-scripts.png

To export scripts from the projects dashboard in Alan AI Studio:

  1. In Alan AI Studio, open the projects dashboard.

  2. In the top right corner of the project widget, click the options icon and select Export. Alan AI will save a ZIP archive to the default downloads location on your computer. The archive will contain all scripts you have in the project.

../../../_images/export-scripts-dashboard.png

Importing scripts

If you have an external file with a dialog script, you can import it to work with it in Alan AI Studio. For example, you may want to import dialog scripts that you exported from Alan AI Studio previously.

Alan AI supports import of the following file types:

  • JS files

  • ZIP archives with dialog scripts (JS files)

To import dialog scripts to Alan AI Studio:

  1. In Alan AI Studio, open the project to which you want to import scripts.

  2. Drag one or more dialog script files and drop them onto the Import button at the bottom left of Alan AI Studio. You can also click the Import button and select one or more files to be imported.

../../../_images/scripts_import.png

To import scripts from the projects dashboard in Alan AI Studio:

  1. In Alan AI Studio, open the projects dashboard.

  2. In the top right corner of the project widget, click the options icon, select Import and choose the script files to be imported.

../../../_images/import-scripts-dashboard.png

Note

If an imported script has the same name as a script already added to the project, you can choose to replace the existing script or add the imported script as a copy.