Create a Snippet
There are three ways to create a snippet:- From a workflow Select the nodes you want to reuse, then right-click and choose Create Snippet. Their configurations are saved into the snippet. Any external variables they reference (outputs from nodes you didn’t select, environment variables, and so on) automatically become the snippet’s Input Variables.
- From scratch In Studio, click Snippets at the top-right corner, then click Create Snippet > Create from blank to start with an empty canvas.
- From a DSL file In Studio, click Snippets at the top-right corner, then click Create Snippet > Import DSL file to import an existing snippet.
Edit a Snippet
Building a snippet works much like building a standard workflow, with two differences. First, a few nodes aren’t available. Because a snippet plugs into a workflow instead of running on its own, it has no Start node (User Input or Triggers) and no end node (Output for Workflows, Answer for Chatflows). Knowledge Retrieval and Human Input aren’t supported yet either. Second, because a snippet has no Start node to collect input, you define Input Variables that specify what data it expects to receive, such as a variable from an upstream node. When a snippet is added to a workflow, these input variables become the connection points.Publish a Snippet
As you edit, your changes save automatically as a draft, so you can pick up where you left off next time. When the draft is ready, click Publish to make it usable. A workflow always uses the published version, never a draft. Every publish is kept in the snippet’s version history, where you can review or restore an earlier version.Add a Snippet to a Workflow
Right-click on the canvas, select Add Node > Snippets, then choose one to insert. Only published snippets appear here. The snippet is added to your canvas as a copy. In the inserted nodes, set each input variable to the appropriate variable from your workflow, so they receive the data they expect. Editing the original snippet later won’t change workflows that already use it, and vice versa.Permissions
What you can do with a snippet depends on your workspace role:
Members with the Normal role don’t see the snippet list.