Your first pattern
Build a webhook-triggered automation from scratch in under five minutes.
This guide walks you through building a complete pattern that receives a webhook request, extracts a field from the JSON body, formats a message, and logs the result. Along the way, you will learn the fundamentals of triggers, execution flow, data flow, testing, and deployment.
What you will build
A pattern with four nodes wired together:
- On Webhook — receives an incoming HTTP request
- Get Property — extracts a value from the request body
- Format — builds a message string from the extracted value
- Log — writes the formatted message to the execution log
When you send a POST request with {"name": "DRAGOPS User"} to the webhook URL, the execution log displays: Received webhook from: DRAGOPS User.
Before you begin
Make sure you have:
- An active DRAGOPS account
- Access to the DRAGOPS dashboard
- A tool for sending HTTP requests, such as
curlor a REST client
Step 1: Create a new pattern
- Open the DRAGOPS dashboard.
- Select New Pattern.
- Enter a name such as "Hello Webhook" and select Create.
The visual editor opens with an On Start node already on the canvas. Since this pattern uses a webhook trigger instead, you will replace it in the next step.
Step 2: Add the trigger node
Every pattern starts with a trigger — the event that kicks off execution.
- Select the On Start node on the canvas and press Delete or Backspace to remove it.
- Right-click on the canvas to open the node search menu.
- Type "On Webhook" and select the On Webhook node.
- The node appears on the canvas with output pins for the request body, headers, query parameters, and HTTP method.
The On Webhook node fires when an HTTP request arrives at the pattern's unique webhook URL.
Step 3: Extract a value from the request body
Next, add a node to pull a specific field from the incoming JSON.
- Right-click on the canvas and search for "Get Property". Add it to the canvas, to the right of On Webhook.
- Select the Get Property node to open the Inspector Panel on the left side.
- Set the Key field to
name.
Now wire the data: drag from the Body output pin on On Webhook to the Object input pin on Get Property. This sends the raw request body into Get Property, which extracts the value at the name key.
Step 4: Format the message
Add a Format node to build a human-readable message from the extracted value.
- Right-click on the canvas and search for "Format". Add the Format node to the canvas, to the right of Get Property.
- Select the Format node and set the Template field to
Received webhook from: {0}.
Wire the data: drag from Get Property's Value output pin to Format's first input pin. Format is a pure node (no execution pins), so it evaluates automatically when its output is needed.
Step 5: Log the result
Add a Log node to write the formatted message to the execution log.
- Right-click on the canvas and search for "Log". Add the Log node to the canvas, to the right of Format.
Wire the data: drag from Format's Result output pin to Log's Message input pin.
Step 6: Wire the execution flow
Data wires define what values flow between nodes. Execution wires define the order nodes run. You need to connect the white triangular execution pins to create the execution sequence.
- Drag from the execution output pin (white triangle) on On Webhook to the execution input pin on Get Property.
- Drag from the execution output pin on Get Property to the execution input pin on Log.
Your canvas now shows two types of wires: colored data wires carrying values, and white execution wires defining the order of operations. The flow reads left to right: On Webhook fires, Get Property runs, Log runs.
Step 7: Test in the editor
Before deploying, verify your pattern works with sample data.
- Select Run in the toolbar.
- In the test dialog, enter sample event data:
{
"body": { "name": "DRAGOPS User" },
"headers": {},
"query": {},
"method": "POST"
}- Select Run.
- The console highlights each node as it runs and displays the output. You should see:
Received webhook from: DRAGOPS User.
If the output does not match, check your wires and property values. Each wire should connect the correct output pin to the correct input pin.
Step 8: Deploy the pattern
- Select Deploy in the toolbar.
- The pattern is now live. The deployment panel shows its status and webhook URL.
- Copy the webhook URL from the Triggers panel.
Step 9: Send a live request
Send a real HTTP request to your deployed pattern:
curl -X POST https://your-webhook-url \
-H "Content-Type: application/json" \
-d '{"name": "DRAGOPS User"}'Replace https://your-webhook-url with the actual URL you copied in the previous step.
Verify the result
Open the Deployments page from the dashboard and select your pattern's deployment. The execution history shows the request you just sent. Select the execution to see the full log, including the formatted message:
Received webhook from: DRAGOPS UserEach execution entry shows a timestamp, status (success or failure), and the full node-by-node log. If something went wrong, the log highlights the node that failed and displays the error message.
What is next?
Deploy a pattern
Learn about the full deployment lifecycle: pause, redeploy, and undeploy.
Handle errors
Add Try / Catch, Retry, and On Error nodes for resilient patterns.
Nodes and pins
Understand pin types, pure versus impure nodes, and the type system.
Triggers
Explore webhooks, schedules, and pattern calls.