On this page
Sommatic Docs
Open portal

Testing

Test a workflow before it reaches production. Run the saved draft from the studio, feed it sample data, execute a single node, listen for a real test webhook, watch every event in the debug console and read the result of each node.

View as Markdown
Open in

Everything you test runs the draft, never a published version. Production keeps running the last version you deployed while you iterate, and a test run looks like any other run: it is recorded, and you can open each node’s output and the port it chose.

Ways to test

HowUse it to
Run workflow with sample dataRun the whole graph with input you write by hand (any trigger except webhooks).
Execute stepRun one node with the data available to it.
Run workflow with a webhook triggerWait for a real call to the test URL and run with it.
A call to the test URL from your system or curlTest the integration end to end, without the studio open.

Test with sample data

Save the draft

The studio runs the saved draft only. Click Save draft first.

Set the trigger input

Open the trigger node. In its Input panel, choose Set sample data and write the JSON the run should start with, for example the data a calling workflow would send to workflow.trigger:

JSON
{ "customer_id": "cus_xyz789", "requested_at": "2026-11-26T10:15:00.000-05:00" }

Run

Click Run workflow. With sample data the trigger is skipped: the JSON you wrote becomes its output, so the next node reads it as $json. The nodes light up as they run.

In any node’s Input panel you can also set sample data for the nodes before it. That data stands in for nodes that have not run, which is what you need when you execute one node alone; once a node runs, its real output is used.

Sample data belongs to your editing session. It is not saved with the draft and never affects production runs. As long as any sample data is set, Run workflow skips the trigger; clear it (Clear) to run the trigger for real.

Execute one node

Right-click a node and choose Execute step (Ctrl/⌘ + Enter), or run it from the node’s panel. The node runs alone with the input and sample data available to it, and its Output panel shows the port, the output and the meta, or the error. It is the fastest loop to tune a prompt, an expression or an HTTP call.

Test with a real webhook

With a webhook trigger, Run workflow puts the canvas in Waiting for webhook…. Send a request to the test URL from your system or with curl; the studio receives it and you watch the run node by node. Cancel the wait if you change your mind.

A test call does not need the studio: any call to the test URL runs the saved draft and is recorded. See Webhooks.

Watch the run

  • Canvas: each node is marked pending, running, finished or failed as the run moves.
  • Run monitor: follows the current run; show or hide it from the canvas.
  • Debug Console: the terminal icon in the canvas controls opens every Server-Sent Event of the run, in order, with a JavaScript input to inspect them ($events, $last, $('…')).
  • Runs tab: after the run, open it to see the status, the duration and each node’s output and port.

A checklist before you deploy

  • Run every branch at least once: the true and false of each flow.if, each case of each flow.switch, and the error paths you connected.
  • Check what reaches the end: the final node’s output is the run’s result.
  • Test with the data your real source sends, not only with ideal samples.
  • Make sure every sub-workflow you call is published, because published callers run published targets.

Next steps

Install agent tools

Give your coding agent the official Sommatic AI docs: skills, the docs MCP server and Markdown pages, so it never has to scrape the site.

Skills only. They do not update by themselves; run it again to refresh.

npx skills add https://docs.sommatic.ai
How agents read these docs