Skip to main content
This page builds a plug with one action and runs it in a flow. You need Node.js 24 and an instance where you are a system administrator.

Create the plug

The command creates a folder with package.json, src/index.ts, a short README.md and a .gitignore. The folder must be empty. The package name may use lower case letters, digits, dots, dashes and underscores, and it must not equal the name of a plug in the catalog or of a plug that comes with Collabase.

The generated code

src/index.ts holds one action:
The function names createPiece and PieceAuth are the names of the framework. In the product, and in everything a person reads, the thing you build is a plug.

Build

The command bundles src/index.ts and everything it imports into one file, lists the licences of what went in, and packs the result into dist/. A dependency with a licence that Collabase may not redistribute stops the build. See Publish and versions.

Upload

1

Get an API token

A system administrator creates an API token with the write level for Automation under Profile, Security. The token acts as that person.
2

Upload the package

The tool prints the name, the version and the checksum of the package.

Use it

Open a flow, select Add step and search for Greet. The plug is listed with the origin Own. Enter a name and run Test step. The result shows { "greeting": "Hello ..." }, and the data picker offers greeting to the steps after it.

Next steps

Plug definition

All fields of a plug.

Properties

Inputs and how they look.

Triggers

Start flows from your system.
Last modified on October 26, 2026