Skip to content

The flow editor

The editor is where a flow is built. Each piece of the flow is a component: it receives data, does something with it and passes the result on to the next one. Components are placed on the canvas and joined with connections.

It opens when you click a project in Projects and takes up the whole window.

The editor with a flow of four connected components: Chat Input, Prompt, OpenAI and Chat Output

The parts of the editor

AreaWhat is there
Top leftThe arrow back to Projects and the flow name. Clicking the name lets you change it together with the description. Next to it, the status: Saving… while a change is being saved and Building… while the flow runs.
Top rightThe search for components on the canvas, the bound environment, Undo, Redo, Share and Settings.
Right columnThe + button to add components and, below it, Deploy, API Access, Playground, Version History, Execution Logs and Help.
Bottom leftZoom in, Zoom out, Fit view, the canvas lock, Auto layout, grid snapping and Add a note.

The buttons in the right column show their name when you hover over them.

Add components

  1. Click the + button in the right column. The components panel opens.
  2. Search for the component in Search component or open a category: Core, Data, A.I., Operations, Integrations, Voice Agent, Skills, MCPs…
  3. Click the component to add it to the canvas, or drag it to the spot where you want it.

The components panel open with its categories and the search box

In an empty flow the panel opens by itself and suggests where to start. Each component has a star to mark it as a favourite and a ? icon that opens its documentation.

Connect components

Each component has connection points on its edges: its inputs on one side and its outputs on the other. To connect two components, drag from the output of one to the input of the other.

  • While you drag, the points that aren’t compatible fade out. If the connection isn’t valid, it isn’t created.
  • If you click a connection point, the components panel opens showing only the compatible ones. The one you choose is added already connected.
  • To delete a connection, hover over it and click the red X.

Configure a component

Click a component to select it. Its toolbar appears above it:

A selected component with its toolbar above it

ButtonWhat it does
SettingsOpens the component’s settings panel.
UnplugFreezes the result of this component and of the ones feeding into it: in the next runs they aren’t run again. Useful to avoid repeating slow steps while you test the rest. The result is kept for one hour only and does not travel with the flow.
Pin output (pin)Pins what the component returned in its last run: while you test, the component doesn’t run and returns that value. See Pin a component’s output.
DeleteDeletes the component.
DuplicateCreates a copy next to it.
⋯More options: Save as a reusable component, Copy, Docs, Download…

The settings panel also opens when you double-click the component. Common holds the main fields and Advanced the rest. You can change the name at the top with the pencil icon.

The settings panel of the Prompt component with its text template

Fields that ask for a credential show yours in a drop-down, and Add new credential lets you add one without leaving the editor. See Credentials.

What each component shows

The border and the top corner of each component show its status:

LookMeaning
Yellow border and warningA required field is missing.
Blue borderThe component is unplugged: it uses its last result.
Pinned labelThe component’s output is pinned. Click the label to view or edit it.
Skip iconIt didn’t run in the last test: it only feeds components with a pinned output.
Green check and timeThe last run finished correctly, in that time.
Red triangleThe last run failed in this component.

The four components with the green check and the time of their last run

Each component’s play button runs the flow up to that component, without going on to the next ones. The eye icon, at the bottom right, shows what it returned in the last run.

Pin a component’s output

While you build a flow, you can pin what a component returns and keep testing the rest without calling the service again: no API calls spent, no slow step repeated, and always the same data.

  1. Run the component (with its play button or the whole flow) so it has a result.
  2. Select it and click the pin in its toolbar, or Pin output in the ⋯ menu. You can also pin it from the eye window, with Pin output.
  3. The component shows the Pinned label. From now on, when you test the flow, the component doesn’t run and passes the pinned value to the next ones.

The Pinned output window of Respuesta: the text the Prompt component returned, Edit as JSON and the Unpin output, Cancel and Save buttons

To view or change the value, click the Pinned label or click the pin again. Each output is edited as text or as JSON: a message is pinned as its text, a data item as its JSON and a list or table as a list of objects. This lets you test cases the service doesn’t give you, such as an empty answer or an error. Unpin output makes the component run again.

  • The pinned value is stored inside the flow: it is still there when you reload the page and travels with the flow if you export it. The maximum size is 1 MB.
  • It is only used when testing: in the editor, the playground and test runs of the draft. The published version (API, webhooks, schedules, calls) always runs the component, even if it carries a pinned value.
  • Components that only feed a pinned one don’t run either, because nobody needs their result. Input components, such as Chat Input, do run.
  • You can’t pin the output of a component inside a loop, because it would apply to every iteration.

Unlike Unplug, which also freezes every component before it and keeps the result for one hour only, Pin output affects a single component, lets you edit the value and doesn’t expire.

Move, copy and delete

Drag the canvas background to move around and use the mouse wheel to zoom in or out.

ShortcutAction
Ctrl + Z / Ctrl + YUndo / Redo
Ctrl + C / Ctrl + X / Ctrl + VCopy, cut and paste the selected components
Ctrl + DDuplicate
Ctrl + GGroup the selected components
Delete or BackspaceDelete the selection
Ctrl + KSearch the canvas
PRun up to the selected component

On a Mac, use ⌘ instead of Ctrl.

How changes are saved

The editor saves by itself: each change is saved straight away, without you doing anything. While it saves, Saving… appears next to the name. If a change can’t be saved, NappAI shows a notice.

What you save is the flow’s draft. API calls, schedules and phone calls use the published version, not the draft, so your changes don’t affect them until you publish a new version. See Versions and publishing.

If someone else has the same flow open, you see their pointer on the canvas and their changes appear on your screen. If two people change the same thing, the last change stays.

Test the flow in the playground

Click Playground in the right column.

The playground with a test question, the flow's answer and, on the left, the steps of the run

  • If the flow has a Chat Input, type in Send a message… and press Enter. The answer appears as in a chat.
  • If the flow takes other data, the playground shows a form with its inputs and the Run Flow button.
  • On the left, Executions lists the steps of each run. Select one to see what it returned. Memories shows the saved conversations.

The playground runs the draft, that is, what you see on the canvas, even if you haven’t published it. For a voice agent, the playground opens a test call. See Test in the playground.

Testing a flow requires run permission. See Roles and permissions.

Flow options

The Settings button, at the top right, opens the flow’s menu.

The editor's Options menu

OptionWhat it does
Undo / RedoThe same as the toolbar buttons.
Refresh allReloads the list of components.
ImportAdds a flow from a .json file to the canvas.
ExportDownloads the flow as a .json file.
EditChanges the name and the description.
PastePastes the copied components.
Conversation Reg. / Eval. RegistryOpen the flow’s conversations and their evaluations. See Conversations and evaluations.
Bind EnvironmentLinks an environment to this flow, or removes it. See Environments.
Execution profileAssigns an execution profile to the flow. It only appears if your role can manage them. See Execution profiles.
Flow graphShows a diagram of the flow and lets you download it as an image.
Document flowGenerates a document of the flow for your client —what it is for, how it starts, its steps, the services and credentials it uses (names only), variables, schedules, production version, test cases and the diagram— with a preview and download as .md or PDF. It uses the last saved version and never includes a secret.
Export as a Python projectDownloads the flow turned into a program that runs without NappAI. See Export as a Python project.
LogsThe flow’s executions and messages.

Export as a Python project

Options → Export as a Python project turns the flow into a Python program that runs on its own, without NappAI: on your server, on your client’s, or anywhere Docker runs.

You can also ask the AI Assistant («export this flow as code»): it tells you what you will need and, once you approve, it saves the .zip in the exports folder of your Storage and gives you the link to download it.

When you open it, NappAI checks the flow:

  • If it can be exported, it shows what you will need: the inputs it receives, the settings and credentials to fill in (names only, never their values) and the libraries it uses. Click Download .zip.
  • If it can’t, it tells you which step prevents it and why: a component that can’t be exported yet. Change it and click Check again.
  • If it can, with warnings, it shows them and you can still download. A required field you left empty becomes a variable in the .env; if it is missing at run time, only that step fails, as it would in NappAI.

The .zip contains the ready-to-use program and a README.md that explains how to start it:

  1. Copy .env.example to .env and fill in the credentials.
  2. Start it with Docker or with uv. It listens on port 8000.
  3. Call it with POST /run, as you would with the NappAI API.

Keep in mind:

  • The last saved version of the flow is exported. If it calls other flows (Sub Flow, Flow Tool…), the published version of each one is used.
  • The program carries no secrets: credentials go in the .env of whoever installs it.
  • The code is in English and organized so any developer can read and extend it: the flow step by step in flow.py, each external service (Gmail, Slack, a database…) in its own file in integrations/ with a class that holds what it does, the flows it calls in subflows/ and the API in api/. The README.md explains each part.
  • If a component needs a file to work (a local voice model, a trained model, a skill), it goes inside the .zip. The program downloads nothing when it starts.
  • What only exists inside NappAI (conversation files, artifacts, the Task Center, schedules…) is replaced by an equivalent inside the program. What has no equivalent, such as meetings, is exported and only that step fails at run time.
  • You can run the same program with different settings without exporting it again, like the tweaks of the NappAI API: send tweaks in POST /run or save profiles in the configs/ folder.
  • What happens in the exported program doesn’t show up in NappAI: neither in executions nor in usage.

Executions, help and welcome tour

  • Execution Logs opens this flow’s runs on the left. To see them in full detail, see Executions log.
  • Help opens step-by-step guides with animations: create a project, add the first component, connect components, run from the playground, create a version…
  • When you open the editor a welcome tour points out the main buttons. Don’t show again turns it off. You can turn it back on in your profile preferences. See Your profile.

Build with the AI Assistant

The Ask AI for Help button, at the bottom right, opens the AI Assistant. In the editor it can build the flow for you, change components and test it, and it lets you review each change. See The AI Assistant.