# Quickstart

> Build your first workflow in the Sommatic AI portal — create a credential, add a webhook trigger, configure nodes, test the draft while the canvas lights up, publish a version and find the run.

Source: https://docs.sommatic.ai/en/get-started/quickstart/ (updated 2026-11-26)

In this guide you build a workflow that starts when a system calls a webhook, test it against the draft, publish it and
call the published version. It takes a few minutes and everything happens in the portal.

Diagram: The guide in miniature: sign in, add a credential and a webhook trigger, test the draft, publish v1 and find the run.

![Three milky glass plates joined by a steel rail, with a small aluminium sphere ready to roll](https://docs.sommatic.ai/images/docs/quickstart.webp)

### Sign in to the portal

Open `https://portal.sommatic.ai` and sign in. Sommatic AI uses Veripass for identity: your organization comes from your
account, and everything you create belongs to it.

### Create the credentials your nodes need

If a node will call an external service, create its credential first. Go to **Advanced → Security**, open
**Credentials** and create one of the available types (for example `api-key`, `basic-auth`, `oauth2` or
`service-account`).

Nodes pick credentials from a list, so the secret never appears in the workflow. You can skip this step if your first
workflow does not call external systems.

### Create the workflow

Open **Workflows** in the sidebar and create a workflow with a name, a slug and a short description. Then open its
**Workflow Studio** tab: this is the canvas where you design the graph.

### Add a webhook trigger

Click the add button on the canvas to open the nodes panel and add **Webhook Receiver** ([`webhook.trigger`](https://docs.sommatic.ai/en/nodes/webhook.trigger.md)).
Open the node and click **Create webhook endpoint**. Sommatic AI creates two URLs for the workflow:

- **TEST**: `…/workflow-orchestration/trigger/webhooks/test/<binding>` runs the draft.
- **PROD**: `…/workflow-orchestration/trigger/webhooks/prod/<binding>` runs the latest published version.

### Add and connect nodes

Add the nodes that do the work, for example [`flow.if`](https://docs.sommatic.ai/en/nodes/flow.if.md) to branch on a field of the request and
[`io.http`](https://docs.sommatic.ai/en/nodes/io.http.md) to send the case to another system. Drag from a node's port to the next node to create an edge.
Each port is a possible outcome: `true` and `false` on `flow.if`, `error` on almost every node.

Read the webhook body in later nodes with an expression such as `{{ $json.body.data.key }}`, or from any node with
`{{ $('Webhook Receiver').item.json.body.data.key }}`.

### Save the draft

Click **Save draft**. The **Unsaved** badge disappears. Saving is required before you run: the studio does not run
unsaved changes.

### Test the draft

Click **Run workflow** on the canvas. With a webhook trigger the canvas waits for a call (**Waiting for webhook...**).
Call the TEST URL:

```bash
curl -X POST "https://api.sommatic.ai/workflow-orchestration/trigger/webhooks/test/<binding>" \
  -H "Content-Type: application/json" \
  -d '{ "event": "your_event_name", "data": { "key": "value" } }'
```

The nodes light up as they run, and the **SSE debug console** (terminal icon in the canvas controls) shows every event
of the run. Open a node to see its output and the port it chose.

### Publish a version

Open the **…** menu next to **Save draft** and choose **Deploy**. Sommatic AI saves pending changes and publishes the
draft as a new immutable version (`v1`, `v2`…). From now on, the PROD URL runs that version.

### Find the run

Open the **Runs** tab of the workflow. Each run shows its status, duration and steps; open one to see the output of
every node.

> **Warning: Test mode runs the draft**
>
> The TEST URL always runs the current draft, so every **Save draft** changes what test calls execute. Give external
> systems the PROD URL: it only changes when you publish.

## Next steps

- [Workflow Studio](https://docs.sommatic.ai/en/workflows/studio.md): Everything the editor does: canvas, node settings, sample data and the console.
- [Webhooks](https://docs.sommatic.ai/en/workflows/webhooks.md): Request shape, test and prod modes, async runs and progress over SSE.
- [Expressions](https://docs.sommatic.ai/en/expressions.md): Read the output of any earlier node.
