How to Build
Building Workflows
Overview
Laminar workflows allow you to create sequences of API operations with data transformations. Each workflow consists of multiple flows that execute in order, with the ability to pass data between them using the Global Workflow Object.
Key Components
1. Configuration Store
The configuration store manages reusable properties and credentials:
Store properties referenced via
{{props.propertyName}}
Manage authentication credentials for flows
Create environment-specific configurations (dev/staging/prod)
Example configuration store:
2. Flow Programs
Flow programs are JavaScript/TypeScript functions that:
Receive payloads with input data and previous step results
Make HTTP requests using
lam.httpRequest
orlam.httpRequests
Transform data between steps
Control workflow execution using keywords
Example flow program:
Advanced Features
Parallel HTTP Requests
Make multiple HTTP requests simultaneously:
Conditional Workflow Exit
Exit workflows early based on conditions:
Async Workflow Execution
Trigger other workflows asynchronously:
Best Practices
Configuration Management
Store environment-specific values in configuration store
Use
{{props.propertyName}}
syntax for referencesKeep sensitive data in configuration store
Error Handling
Use try-catch blocks in transformations
Return meaningful error messages
Use
lam.exit
for critical errors
Data Flow
Access previous step data using
step_X
notationKeep transformations focused and single-purpose
Use meaningful names for flows and properties
Security
Use separate configuration stores per environment
Rotate credentials regularly
Implement role-based access control for configuration stores
Last updated
Was this helpful?