Skip to content
Docs

Quickstart: webhook to table

In this tutorial you’ll build a flow from a blank canvas: a live HTTP endpoint that stores every request it receives as a row in a table. Along the way you create the three kinds of building blocks most flows use (a webhook, a table, and the flow itself), then publish, arm the trigger, and watch a real request land.

What you will build:

Webhook trigger → Start → Transformer → Table Store Insert

Time: about 15 minutes.

  • An account on a Publicus workspace with permission to create flows, webhooks, and tables.
  • A terminal with curl to send test requests.
  • Quickstart: your first flow helps but is not required.
  1. In the sidebar, open Tables in the Data group and click New table.

    The Create table form with Table name, Rows belong to and Title column, a Columns list with Name, Type and Label, an Add a column button, and Create
    The Create table form with Table name, Rows belong to and Title column, a Columns list with Name, Type and Label, an Add a column button, and Create
  2. In Table name, type Submissions.

  3. Click Add a column three times and fill in each column’s Name and Type, leaving its Label empty:

    Name Type
    submitter_email Text
    subject Text
    message Text
  4. Click Create.

Publicus creates the table right away. It has no rows yet; your flow fills it in step 6.

  1. Open Webhooks in the Services group and click New webhook.
  2. Name it Contact form webhook. Leave Allowed IP addresses empty and leave Channel handler on Generic (no verification).
  3. Click Create.

You land on the webhook’s page. Under its name is the address the outside world can call. Copy it with Copy, you’ll send a request to it in step 6.

The webhook's address under its name at the top of its page, with Copy beside it
The webhook's address under its name at the top of its page, with Copy beside it
  1. Open Flows in the Automation group and click New flow.

    The Create Flow dialog with a Title field, a Description field that agents and MCP clients read to decide when to call the flow, and Create and Cancel
    The Create Flow dialog with a Title field, a Description field that agents and MCP clients read to decide when to call the flow, and Create and Cancel
  2. Title it Webhook to Submissions and click Create.

The canvas opens with a single Start node already on it. Start is the flow’s entry point: it carries the data a run starts with, and it stays. Your trigger wires into it, and every working node hangs off it.

A new flow's canvas with only the Start node in the middle, the Not published note beside the title, Edit with AI, Run by hand, Publish and Runs in the header, and Add node at the bottom
A new flow's canvas with only the Start node in the middle, the Not published note beside the title, Edit with AI, Run by hand, Publish and Runs in the header, and Add node at the bottom
  1. Click Add node on the canvas.

  2. Type webhook into the search and pick the entry described as “Start the flow from an inbound HTTP webhook”, under Triggers — start the flow. The node is added as soon as you pick it, named Webhook.

    The Add a node dialog with webhook typed into its search, listing the matching nodes under their shelves, starting with Discord and Slack under Channels
    The Add a node dialog with webhook typed into its search, listing the matching nodes under their shelves, starting with Discord and Slack under Channels
  3. The new node shows Not connected under its title: it is not wired into Start yet, and a trigger that is not wired into Start never starts a run. Drag a connection from the port on the node’s right edge to the bolt port on Start’s left edge. The mark disappears.

    A Webhook trigger node marked Not connected, not yet wired into the bolt handle on Start's left edge
    A Webhook trigger node marked Not connected, not yet wired into the bolt handle on Start's left edge
  4. Click the node to open its settings. Its name is the heading: click it and rename the node Contact webhook. In Webhook, select Contact form webhook, then click Save changes.

The Webhook node's settings panel with the Webhook select, Without overlapping ticked, Overlap key and Split deliveries at, and Save changes at the bottom
The Webhook node's settings panel with the Webhook select, Without overlapping ticked, Overlap key and Split deliveries at, and Save changes at the bottom

The node now carries an Off badge. The trigger exists but is not armed yet; you switch it on in step 6, after publishing.

A webhook run starts with the whole request: its method, URL, headers, and the body under payload. Your table wants three named columns, so a Transformer builds the row before a Table Store Insert writes it.

  1. Click Add node and pick Transformer (under Transform & data).

  2. Drag a connection from the port at the bottom of Start to the port at the top of the Transformer.

  3. Click the Transformer, rename it Build row by clicking its name, and paste this into Template:

    {
    "submitter_email": {!! json_encode($start->payload->email) !!},
    "subject": {!! json_encode($start->payload->subject) !!},
    "message": {!! json_encode($start->payload->message) !!}
    }

    $start holds the data the run started with, so the request body sits under $start->payload. json_encode renders each value as a valid JSON string. Expressions covers the full grammar.

    The Transformer node's settings panel, with the Input data panel on the left, the empty Template field, the Output card, and Save changes at the bottom
    The Transformer node's settings panel, with the Input data panel on the left, the empty Template field, the Output card, and Save changes at the bottom
  4. Click Save changes.

  5. Click Add node again and pick Table Store Insert (under Storage).

  6. Connect the Transformer’s bottom port to the Insert node’s top port.

  7. Click the Insert node and rename it Insert submission. In Table, select Submissions, then click Save changes.

Your canvas now reads top to bottom: the webhook fires into Start, Start hands the start data to Build row, and Insert submission writes the result.

Triggered runs execute the published version of a flow, not the draft on your screen. Publish first, then switch the trigger on.

  1. Click Publish in the top bar. The Publish v1 confirmation says this is the first version. Click Publish in it. A notification reports Published v1.

    The Publish v1 confirmation, saying this is the first version, that triggered runs will run it and Run by hand can still run your draft, with Cancel and Publish
    The Publish v1 confirmation, saying this is the first version, that triggered runs will run it and Run by hand can still run your draft, with Cancel and Publish
  2. Click the Off badge on the webhook node. The Trigger controls modal opens.

  3. Switch Active on and click Save.

The finished flow: the Contact webhook trigger with an On badge wired into Start, then Build row and Insert submission, with the version note Live: v1 beside the title
The finished flow: the Contact webhook trigger with an On badge wired into Start, then Build row and Insert submission, with the version note Live: v1 beside the title

The badge now reads On, with a “never” note because no run has started yet. The version note on the toolbar reads Live: v1: the runs the webhook starts execute published version 1. Fix that from your terminal, using the URL you copied in step 2:

Terminal window
curl -X POST https://your-publicus.example/webhook/YOUR_WORKSPACE_ID/YOUR_WEBHOOK_ID \
-H "Content-Type: application/json" \
-d '{"email":"alice@example.com","subject":"Hello","message":"Trying the webhook."}'

Publicus answers {"message":"ok"} immediately and starts the run in the background.

  1. Open Runs in the Operations group. The newest run at the top is yours.

  2. Open it. The report lists every node in the run; click through them to see what went in and out. The Transformer’s output is your reshaped row.

    The run's timeline: the completed Build row Transformer with its output, the completed Insert submission with a link to the Submissions table, then the final output
    The run's timeline: the completed Build row Transformer with its output, the completed Insert submission with a link to the Submissions table, then the final output
  3. Open Tables in the Data group and click Rows on the Submissions line. The row is there, with the email, subject, and message from your request.

Run the curl again with different values and refresh: every request adds a row.

You built a live HTTP endpoint from nothing: a webhook resource, a table, and a flow connecting the two, with a Transformer reshaping each request body into a row. You also walked the full release loop (publish, arm, trigger, inspect), which is the same loop every scheduled, channel, or agent-triggered flow follows.