- Dashboard UI — Visual interface for building workflows by selecting action types and filling in configuration fields
- YAML Configuration — Code-based configuration files for version control and advanced setups
Action Structure
Every action follows this structure in YAML:action_id is a unique identifier you choose for the action. You’ll use this ID to reference the action’s results in other parts of your workflow.
Common Fields
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | The action type identifier (e.g., fetch, http, agent) |
config | object | No | Type-specific configuration options |
next | string | No | Step to execute on success |
fail | string | No | Step to execute on failure |
Chaining Actions
Use thenext and fail fields to define your workflow’s execution path:
next— Routes to another step when the action succeedsfail— Routes to an error handler when the action fails
type.identifier:
action.other_action— Route to another actionconditional.check_value— Route to a conditional branchresponse.success— Route to a response
Accessing Action Results
When an action completes, its result is stored and can be referenced by subsequent nodes. Use the{{ .action_id }} syntax to access these values.
get_user returns user data, you can access the email field in a later action with {{ .get_user.email }}.
Filter Syntax
Several actions use filters to query data. Filters follow this structure:Available Operators
| Operator | Description |
|---|---|
eq | Equal to |
ne | Not equal to |
gt | Greater than |
gte | Greater than or equal |
lt | Less than |
lte | Less than or equal |
in | Value in array |
nin | Value not in array |
Available Actions
ServFlow provides actions organized by category:Data Operations
| Action | Description |
|---|---|
fetch | Retrieves data from a database table |
store | Stores a new record in a database table |
update | Updates existing records |
delete | Deletes records from a database table |
mongoquery | Executes native MongoDB queries |
Vector Operations
| Action | Description |
|---|---|
storevector | Stores vector embeddings |
fetchvectors | Queries vectors for similarity search |
HTTP & External APIs
| Action | Description |
|---|---|
http | Makes HTTP requests to external APIs |
Authentication & Security
| Action | Description |
|---|---|
authenticate | Validates JWT tokens and fetches user data |
jwt | Encodes or decodes JWT tokens |
hash | Hashes values using bcrypt |
Transformation & Logic
| Action | Description |
|---|---|
javascript | Executes custom JavaScript code |
static | Returns a static or computed value |
AI & Agents
| Action | Description |
|---|---|
agent | Interacts with AI models |
Flow Control
| Action | Description |
|---|---|
parallel | Executes multiple actions simultaneously |
Communication
| Action | Description |
|---|---|
email | Sends email messages via SMTP |
System
| Action | Description |
|---|---|
command | Executes shell commands |
Memory
| Action | Description |
|---|---|
memory_store | Stores data in temporary memory |
memory_fetch | Retrieves data from temporary memory |
Binance Trading
| Action | Description |
|---|---|
binance/getprice | Gets cryptocurrency price data |
binance/accountbalance | Queries Binance account balances |
binance/spotorder | Places spot trading orders |
binance/futuresorder | Places futures orders |
binance/pricedifference | Calculates price changes |
binance/tradeinfo | Gets order and position info |
Next Steps
Data Operations
Learn how to fetch, store, update, and delete data.
HTTP Requests
Call external APIs from your workflows.
AI Agents
Integrate AI models into your workflows.
Authentication
Secure your APIs with JWT and authentication.