Core Actions & Logic
Essential nodes for logic branching, data transformation, control flow, and I/O
Core Actions & Logic
Core nodes provide the fundamental building blocks of Nodes2Cloud workflows. Because your workflow compiles into a native Cloudflare Worker, these nodes run as plain code inside that Worker, with no Nodes2Cloud service in the request path.
These nodes generally do not require any third-party credentials.
1. Respond to Webhook
What the node does
Sends an HTTP response back to the caller of a synchronous Webhook Trigger. It allows you to return custom status codes, JSON payloads, headers, or error messages directly to the client that called your workflow.
What each option/field does
- Status Code: The HTTP response code to send back (defaults to
200). You can pass dynamic expressions (e.g.{{$json.statusCode ?? 200}}). - Response Body: The data to return to the client (JSON object, string, or template expression like
{{$json.result}}). - Response Headers: Optional custom HTTP response headers (e.g.,
Content-Type: application/jsonor custom tracking headers).
How to set it up
- In your Webhook Trigger, ensure Response Mode is set to
When Last Node Finishes. - Place the Respond to Webhook node at the end of your execution path.
- Supply your response body:
{ "status": "success", "trackingId": "{{$json.orderId}}" } - When executed, Nodes2Cloud immediately terminates the HTTP request cycle and returns this payload to the caller.
Common Troubleshooting
- Response Already Sent: A workflow execution can only return a response once. If multiple branches execute a Respond to Webhook node, only the first response is returned to the client.
2. RSS Read
What the node does
Fetches and parses an RSS or Atom feed from any public URL, converting feed items into structured JSON objects (title, link, publication date, author, content).
What each option/field does
- Feed URL: The HTTP or HTTPS URL of the RSS or Atom feed.
- Max Items: (Optional) Limit the number of feed entries returned.
How to set it up
- Add the RSS Read node to your workflow.
- Enter the feed URL (e.g.,
https://news.ycombinator.com/rssor your blog's RSS URL). - Connect downstream nodes to iterate over
{{$json.items}}or filter for new articles.
Common Troubleshooting
- SSL Certificate Verification: Cloudflare Workers strictly enforce TLS certificate validity on all
fetch()requests. Feeds hosted on domains with expired or invalid SSL certificates cannot be fetched.
3. If / Condition
What the node does
Branches your workflow into two separate execution paths (true and false) based on one or more conditional comparison rules.
What each option/field does
- Condition Builder: Configures comparison rules between values:
- Left Value: Dynamic variable (e.g.,
{{$json.amount}}). - Operator: Comparison rule (
Equals,Not Equals,Greater Than,Less Than,Contains,Starts With,Exists,Is Empty). - Right Value: The target value to compare against.
- Left Value: Dynamic variable (e.g.,
- Combine Mode: When using multiple rules, choose
AND(all rules must match) orOR(at least one rule must match).
How to set it up
- Connect the node after any data-producing node.
- In the Condition Builder, set:
- Left:
{{$json.status}} - Operator:
Equals - Right:
completed
- Left:
- Wire the true output port to the success branch and the false output port to your fallback branch.
Common Troubleshooting
- Type Coercion: Ensure number fields are compared to numbers (e.g.,
100vs"100"). UseNumber({{$json.amount}})in expressions if comparing parsed strings against numbers.
4. Filter
What the node does
Filters an incoming array or collection of items, passing through only the items that satisfy your specified criteria while discarding the rest.
What each option/field does
- Conditions: Rules evaluated against each individual item in the array.
- Strict Mode: When enabled, type-strict matching is enforced without automatic string-number conversion.
How to set it up
- Pass an array of items into the node.
- Define the filter condition (e.g.,
item.is_activeequalstrue). - The node outputs a new array containing only matching items.
5. Switch
What the node does
Routes workflow execution into one of multiple output branches based on the value of a single variable, functioning like a multi-way switch/case statement.
What each option/field does
- Evaluation Mode:
Rules: Routes to specific outputs based on conditional rules (e.g. Output 1 if score > 80, Output 2 if score > 50).Value Match: Directly compares an input value against exact case strings.
- Cases: The list of output routes.
- Fallback Output: (Optional) Default output branch taken when no cases match.
How to set it up
- Select the variable to evaluate (e.g.,
{{$json.event_type}}). - Add output cases:
- Case 1:
user.created→ Output 1 - Case 2:
user.deleted→ Output 2 - Case 3:
user.updated→ Output 3
- Case 1:
- Wire each output port to its corresponding downstream handling branch.
6. Edit Fields (Set)
What the node does
Modifies the workflow payload by adding new properties, transforming existing values, or stripping unneeded fields to prepare data for downstream services.
What each option/field does
- Fields to Set: Visual list of keys and values to inject or compute:
Name: The output key name (e.g.,fullName).Value: Static text or expression (e.g.,{{$json.firstName}} {{$json.lastName}}).
- Keep Existing Fields: Toggle whether to preserve unmodified fields or strip everything except the newly defined fields.
How to set it up
- Add the Set node into your workflow.
- Add fields to create or calculate:
createdDate:{{new Date().toISOString()}}fullName:{{$json.firstName}} {{$json.lastName}}
- Downstream nodes now receive the clean, updated payload.
7. No Operation (No-Op)
What the node does
Performs no modification and does nothing. It passes the incoming payload through to the next node completely unchanged.
What each option/field does
- The node contains no configuration options.
How to set it up
- Use the No-Op node as a labeled visual placeholder while drafting complex workflow branching, or as a visual convergence point where multiple branches rejoin before continuing.
8. HTML Extract
What the node does
Extracts text, HTML element attributes (such as href or src), or raw HTML snippets from a web page or HTML string using CSS selectors. It is powered by Cloudflare Workers' native streaming HTMLRewriter engine, delivering blazing performance without heavy external DOM dependencies.
What each option/field does
- Source HTML: The HTML markup to parse (e.g.,
{{$json.html}}from an HTTP Request node). - Extractions: List of extraction rules:
Key: The variable name for the output property (e.g.,pageTitleorarticleLinks).CSS Selector: The standard CSS selector targeting elements (e.g.,h1.headline,a.article-link,meta[name="description"]).Return:Text: Extracts the text content inside the matched element.Attribute: Extracts a specific attribute value.HTML (best-effort): Extracts the inner HTML markup.
Attribute Name: The attribute to extract when Return is set toAttribute(e.g.href,src,content).Return Array: Toggle whether to return an array of all matching elements or a single concatenated string.
- Clean Up Text: When enabled, collapses internal whitespace, carriage returns, and tabs down to single spaces.
How to set it up
- Connect the node after an HTTP Request that fetches a webpage.
- Set Source HTML to
{{$json.body}}. - Add extraction rules:
- Key:
headline, Selector:h1, Return:Text - Key:
links, Selector:article a, Return:Attribute, Attribute Name:href, Return Array:true
- Key:
- The node outputs a JSON object containing your extracted properties.
Common Troubleshooting
- Dynamic JavaScript SPAs:
HTMLRewriterparses the raw initial HTML response. Content rendered client-side via JavaScript frameworks (like client-rendered React apps) is not present in raw initial HTML.
