Actions2
- Validation Actions
Validation → Create Decision
AI-generatedSummary
Creates a decision (human review request) in HumanStep via POST /decisions and returns the API response immediately without waiting for resolution. Supports a free-form JSON payload or a predefined review template with mapped fields.
Inputs
- decisionTitle (required) — Title shown in HumanStep for this decision.
- useTemplate — Toggle (default false). Off: send a free-form JSON payload. On: build the payload from a HumanStep review template.
- options.payloadJson — Only when not using a template. JSON object sent as the payload (default {}). Invalid JSON throws 'Payload JSON is invalid'.
- options.callbackUrl — Only when not using a template. URL HumanStep calls when the decision is resolved. Sent as callback_url.
- templateId (required) — Only when using a template. Review template chosen from a searchable list of active templates or by ID.
- variantInputMode — Template mode only. For templates with variant_selector fields: 'expanded' (one mapper field per variation, default) or 'raw' (single JSON object). Ignored for templates without variants.
- variantGroupsToShow — Template mode with expanded variants. Number of variations to show (default 2), clamped to the template's min/max.
- fields — Template mode. Resource mapper of the template's fields. Empty values are dropped. Multiselect/checkbox values accept a JSON array or comma-separated string. Expanded variant fields are assembled into {variants:[...], selected} with the first variant selected.
- additionalOptions.priority — Template mode. low, normal, high or urgent. Added to the payload as priority.
- additionalOptions.externalId — Template mode. Your own reference ID. Added to the payload as external_id.
- additionalOptions.callbackUrl — Template mode. URL HumanStep calls when the decision is resolved.
Output shape
One output item per input item, containing the JSON response from HumanStep's create-decision endpoint (includes the decision id and may include a resolve_url). The status is typically pending at this point.
Runs once per input item, or once if there is no input. With Continue On Fail, failed items output {error: message}. Requires HumanStep API credentials. To block until the decision is resolved, use Create Decision and Wait instead. The node logs debug info to the n8n console unless HUMANSTEP_N8N_DEBUG=0.
Examples
Example 1: Send an expense request for human approval with an ad-hoc payload, without blocking the workflow.
Decision Title='Approve expense', Use Template off, Options > Payload = {"amount": {{$json.amount}}, "requester": "{{$json.user}}"}
Example 2: Create a high-priority review from a predefined template and track it by your own ID.
Use Template on, Review Template selected, map fields in Fields, Additional Options: Priority=high, External ID={{$json.ticketId}}
Example 3: Get notified by webhook when a reviewer resolves the decision.
Set Callback URL in Options (or Additional Options) to your receiving endpoint