Overview
Data fields are variables that store information during task execution. They act as the database for your workflow, holding everything from user inputs to calculated values.Data Storage
Store values collected during tasks
Multiple Types
Text, numbers, dates, images, and more
Bind to Components
Connect UI components to data fields
Use in Logic
Reference in conditions and automations
Types of Data Fields
| Type | Description |
|---|---|
| System Data Fields | Predefined fields common to all workflows (task info, user info) |
| User Data Fields | Custom fields you define for your workflow |
Data Field Properties
Each data field has these properties:| Property | Description |
|---|---|
| Name | Unique identifier for the field |
| Data Type | Type of data stored (text, number, etc.) |
| Default Value | Initial value when task is created |
| Create Time Field | Whether this field is required at task creation |
| Mandatory | Whether the field must have a value |
Data Types
| Data Type | Category | Description |
|---|---|---|
| Text | Simple | Text or string value |
| Number | Simple | Numerical value |
| Boolean | Simple | True or false |
| Date | Simple | Date and time value |
| List of Text | Simple | Array of text values |
| Image | Simple | List of uploaded images |
| Signature | Simple | Digital signature |
| File | Simple | List of uploaded files |
| Location | Composite | Address with latitude & longitude |
| List | Composite | Collection of sub-fields |
Using Data Fields
1. Bind to Components
Connect data fields to UI components to display or collect data:- Display components: Show data field values (labels, text displays)
- Input components: Save user input to data fields (text input, camera)
2. Use in Conditions
Reference data fields in decision nodes and automation conditions:3. Use in Actions
Include data field values in automation actions:For AI Agents
Data Field Structure
API: Get Data Fields
API: Update Task Data
Accessing Data in Scripts
UI Components
| Component | Location | Purpose |
|---|---|---|
| DataFieldManager | /src/views/workflows/datafields/ | Data field configuration |
| DataFieldPicker | /src/components/DataFieldPicker/ | Field selection modal |
| DataFieldEditor | /src/views/workflows/datafields/Editor/ | Field properties editor |