Node Types
x402.jobs uses four types of nodes to build workflows. Each node type has a specific purpose and visual indicator.
Trigger
Color: Purple
The Trigger node is where every workflow begins. It defines how and when your workflow starts executing.
Trigger Types
| Type | Description |
|---|---|
| Manual | Click the "Go" button to run |
| Webhook | HTTP POST to a unique URL |
| Schedule | Run on a cron schedule (coming soon) |
Configuration
- Name: A label for your trigger
- Type: Manual, Webhook, or Schedule
- Input Data: Optional JSON data passed to downstream nodes
Resource
Color: Blue
Resource nodes are x402 endpoints that you pay to use. Each resource displays its price and executes when the workflow runs.
Properties
- Price: Cost in USDC to execute
- Inputs: Required and optional parameters
- Output: Data returned after execution
Behavior
- Resources only execute when connected to the workflow path
- Payment is made automatically during execution
- Async resources (like image generation) are polled until complete
Transform
Color: Amber/Orange
Transform nodes process data between resources. Use them to extract fields, format strings, or run custom logic.
Transform Types
| Type | Description |
|---|---|
| Extract | Pull specific fields from JSON |
| Template | Format strings with variables |
| JavaScript | Run custom code |
Example: Extract a field
// Input: { "user": { "name": "Alice" } }
// Transform: $.user.name
// Output: "Alice"
Example: Template
Hello, {{user.name}}! Welcome to {{platform}}.
Output
Color: Green/Emerald
The Output node displays the final result of your workflow. It automatically renders images, JSON, or text based on the content type.
Features
- Auto-detects image URLs and displays them inline
- Formats JSON for readability
- Shows execution status and errors
- Expandable for large outputs
Output Fields
| Field | Description |
|---|---|
result | The final output data |
artifactUrl | URL to generated assets (images, etc.) |
response | Text response from the last resource |
Node Status Indicators
During execution, nodes display their current status:
| Status | Indicator | Description |
|---|---|---|
| Idle | Gray | Not yet executed |
| Pending | Yellow pulse | Waiting to execute |
| Running | Blue pulse | Currently executing |
| Completed | Green check | Successfully finished |
| Failed | Red X | Execution failed |