Using HTTP Actions in Workflows
Once you’ve created an HTTP Action, you can use it in any workflow through the workflow builder’s library mode. This page covers adding actions to workflows, mapping inputs, and accessing outputs.Adding an HTTP Action Step
Select Library Mode
At the top of the HTTP Request configuration panel, you’ll see two mode buttons:
- HTTP Action (globe icon) — Library mode
- Custom (send icon) — Custom mode
Select an action
Choose an HTTP Action from the dropdown. The dropdown lists all actions in your project. Click the refresh button to reload the list if you recently created a new action.
Review action details
After selecting an action, the panel shows:
- Method — Color-coded HTTP method badge
- URL — The configured endpoint
- Auth type — Authentication method badge
Input Mappings
When an HTTP Action has input variables, you need to map them to values available in the workflow — event data, previous step outputs, or static values. The input mappings section shows each input variable from the HTTP Action with a value field. Use the variable picker to map workflow variables to each input.Example
An HTTP Action “Create Stripe Customer” has input variablesemail and name. In the workflow:
| Input Variable | Mapped Value |
|---|---|
email | {{trigger.email}} |
name | {{trigger.firstName}} {{trigger.lastName}} |
Output Variables
HTTP Action output mappings become workflow variables that downstream steps can reference.Accessing Outputs
Output variables from an HTTP Action step follow the pattern:customerId and subscriptionId, downstream steps can use:
outputs.http.customerIdoutputs.http.subscriptionId
Output Variables Section
The configuration panel shows a read-only list of output variables defined by the selected HTTP Action. These are set in the HTTP Action’s output mappings — to modify them, edit the HTTP Action directly.Library Mode vs Custom Mode
The HTTP Request step supports two modes:Library Mode (HTTP Action)
- Select a pre-configured HTTP Action from your library
- Map workflow variables to the action’s input variables
- Outputs are defined by the action’s output mappings
- Changes to the action apply to all workflows using it
Custom Mode
- Configure method, URL, headers, and body inline
- Full control over the request in this specific step
- Output mappings configured per-step
- Independent of other workflows
You can switch between modes at any time. Switching modes does not delete the other mode’s configuration — it’s preserved if you switch back.
Example: User Enrichment Workflow
Here’s a workflow that uses an HTTP Action to enrich user data on signup:- Triggers on
user.signup - Fetches the user’s company info from a CRM using an HTTP Action
- Creates an onboarding task using another HTTP Action, passing along the CRM data
- Sends a personalized welcome email
Best Practices
Use HTTP Actions for repeated API calls
Use HTTP Actions for repeated API calls
If you call the same API in multiple workflows, create an HTTP Action. This centralizes the configuration and makes updates easier.
Use input variables for dynamic values
Use input variables for dynamic values
Avoid hardcoding values in your HTTP Actions. Use input variables for anything that changes between workflow executions — user IDs, emails, amounts, etc.
Test before using in workflows
Test before using in workflows
Always test your HTTP Action with realistic sample values in the test panel before adding it to a workflow. Verify that output mappings extract the expected values.
Name outputs descriptively
Name outputs descriptively
Choose clear output names like
customerId or orderTotal rather than generic names like value1. These names appear in the variable picker throughout your workflows.Use Custom mode for one-off requests
Use Custom mode for one-off requests
Not every HTTP request needs to be an HTTP Action. For unique, single-use API calls, custom mode keeps things simple.