Skip to content

Versions and publishing

While you work in the editor you change the flow’s draft. A version is a saved copy of the flow at a given moment, with a name and a description. For the flow to work in production, you deploy one of its versions: that is what publishing means.

This way you can keep changing and testing the flow without affecting whoever is already using it.

Draft and deployed version

Who runs the flowWhat runs
The editor’s playgroundThe draft
API Access in Test modeThe draft
API Access in Production modeThe deployed version
Webhooks and connected apps, such as WhatsApp or TelegramThe deployed version
Schedules in the SchedulerThe deployed version
Phone calls to a voice agentThe deployed version

There can only be one deployed version at a time. If a flow has none, it can’t be called in production.

Version history

In the editor, click Version History in the right column.

The version history: Development at the top and, below it, versions 1.2, 1.1 and 1.0 with their description, author and date

  • Development is the draft, what you have on the canvas now.
  • Below it come the saved versions, newest first, each with its name, its description, who created it and when.
  • The rocket shows that a version has been deployed, with the date it was deployed and the date it stopped being deployed. On the version deployed now, the rocket is highlighted.
  • Current marks the last version you created or restored.
  • Search versions… filters by name and description.

Create a version

  1. In the history, click Create new version.
  2. In Environment, choose the environment this version will run with in production, or leave it on No environment. See Environments.
  3. Type the name in Version name, for example 1.3. It accepts up to 20 characters and can’t repeat the name of another version of the flow.
  4. If you like, explain what changes in Version description.
  5. Click Create Version.

The New project version window: the environment, the version name and the description

Show changes compares the canvas with the deployed version in the version comparison. The Deploy window has the same button, which compares the deployed version with the one you choose.

Creating a version doesn’t deploy it: what is in production stays the same until you deploy the new one.

Deploy a version

  1. In the editor, click Deploy in the right column.
  2. In Select version to deploy, choose the version.
  3. Check the environment it will be deployed with. It is the one saved with the version; to use another one, create a new version.
  4. Click Deploy.

The Deploy window with version 1.0 selected, its environment and the Deploy button

The version that was deployed stops being deployed at that moment, and every call goes to the new one.

Test cases when deploying

If the flow has test cases, the Deploy window shows the Test cases section, with the number of cases and the last result of each one: Passed last time, Failed last time, Not run yet or Awaiting verdict. A case marked Used to pass is a regression: it used to pass and the last change has broken it. If there are no cases, the section doesn’t appear.

Cases are created by the AI Assistant when it builds or changes the flow, with your approval.

When you deploy a new version, NappAI creates it and runs the cases one by one, with a progress bar:

  • If they all pass, the version is deployed.
  • If any of them fails, the version is created but not deployed. The warning says how many cases fail and how many of them used to pass. Choose Don’t deploy to fix the flow first, or Deploy anyway.

Cases with a criterion written in words are run, but the verdict is given by the assistant (“Run: the assistant judges the criterion”). When you deploy an older version, the cases are shown but not run.

Take the deployed version down

Open Deploy and choose the deployed version. The button changes to Disable version. When you click it, the flow is left with no deployed version and stops answering in production until you deploy another one.

View, restore or delete a version

Click a version in the history. It opens read-only, so you can see what the flow looked like in that version.

An earlier version open read-only, with the Restore and Delete buttons at the bottom right

  • Restore replaces the draft with this version. Whatever you had on the canvas that wasn’t saved in a version is lost. It doesn’t change the deployed version.
  • Delete deletes the version. To confirm, you have to type DELETE. The deployed version can’t be deleted: deploy another one or take it down first.

The arrow at the top right takes you back to the editor.

Compare two versions

To see what changed between two versions, or between a version and the draft:

  1. In the history, click Compare versions. To compare a version with the draft straight away, click that version’s compare icon.
  2. Choose the Before and the After version. Either one can be Development, the draft. The arrow between them swaps them.

The Visual tab shows the flow of the After version on a read-only canvas, with each node marked:

  • In green, the added nodes.
  • In red and semi-transparent, the removed nodes, at the position they had in the Before version.
  • In amber, the modified nodes.

New connections show in green and removed ones in dashed red, with the name of the field they reach.

On the right, the summary counts the added, removed and modified nodes and the connections that change. Click an item in the summary and the canvas centres on it. Click a modified node to see each field that changed, with its value before and after. Values of API keys, passwords, tokens and credentials are not shown: you only see that they changed.

Compare versions between version 1.0 and Development: on the canvas, the added Firma node in green and the modified Respuesta node in amber; on the right, the summary with 1 added, 0 removed, 1 modified and the new connection

The JSON tab shows both versions as text, side by side.

Call the flow from another application

In the editor, click API Access in the right column. The window generates the code to call the flow.

The API Access window in Production mode: the API key, the deployed version and the cURL code

  1. In Consumption mode, choose Production to call the deployed version, or Test to call the draft.
  2. In API Key, choose the key the call will use. Its secret is written into the code. If you don’t have any, the window links to the page where you can create one. See API keys.
  3. Choose the cURL, Python API or JavaScript API tab and copy the code, or download it with the download button.

In Production mode, Deployed version shows which version will answer. If the flow has none, Deploy a version appears so you can do it from there.

The code already contains the flow’s address and the key you chose. You only need to replace the sample message with the one you want to send.

  • If the flow has a Chat Input or a Chat Output, the call waits for the flow to finish and returns its answer.
  • If not, the call answers straight away with an identifier for the run and an address to check the result when it finishes.

What each call returns, how to stream the answer, run statuses and errors are in Calling a flow through the API.

Test with the draft

In Test mode the code calls the draft, without deploying anything. If you have environments, you choose which one it runs with in Environment. The call answers straight away with an identifier for the run and an address to check the result.

The API Access window in Test mode: the API key, the environment and the cURL code that runs the draft

Other ways to integrate it

The window adds tabs depending on the flow’s components: the chat for your website if it has a Chat Output, the webhook address if it has a Webhook, the Gmail, Outlook, Teams or Shopify subscription if it has one of their webhooks, MCP Server, A2A Server, Telegram or WhatsApp. A flow with webhooks is always called through its webhook, so in that case cURL, Python API and JavaScript API do not appear.

Which tab appears with each component and how each one is published is in Publishing a flow.

Who can do what

Every role can see the history. Creating, deploying, restoring and deleting versions needs a role that can edit flows, and API Access needs permission to see API keys. See Roles and permissions and, for a shared flow, Access levels.