Skip to content

Chapter 4: Import and export projects

Exporting a project saves it to a .json file. You can use that file as a backup, to move the flow to another account or to reuse its components in another flow.

What you’ll learn

  • How to export a project.
  • How to create a new project from a file.
  • How to add another flow’s components to a flow.

Export a project

You can do it from two places:

  • In Projects: open the ⋮ menu on the project card and choose Export.
  • In the editor: click Settings, at the top right, and choose Export.

Your browser downloads the .json file.

Create a project from a file

  1. In the side menu, click Projects and open the folder where you want the project.
  2. Click the import button, to the left of New project.
  3. Choose the .json file.

NappAI creates the project in that folder. If there is already one with the same name, it adds a number at the end, for example Customer service (1). If the file isn’t a NappAI project, the Error uploading file warning appears.

Add components from another flow

Use this option when you want to bring the pieces of one flow into another one you’re already working on.

  1. Open the destination flow in the editor.
  2. Click Settings and choose Import.
  3. Choose the .json file.

The components and connections in the file are added to your canvas, next to what you already had.

After importing

  1. Open the components with a yellow border and choose your credentials in Credential.
  2. If the flow uses variables from an environment, bind one of yours with Settings > Bind Environment. See Environments.
  3. Test the flow in Playground.

Summary

  • Export downloads the flow as .json, without keys or credentials.
  • The import button in Projects creates a new project; Settings > Import adds the components to the open canvas.
  • After importing, complete the credentials and test the flow.

In the next chapter you’ll publish a flow so other applications can use it.