Input
The Input step in Snappit is used to introduce dynamic, user-defined data into workflows. It enables users to define a schema using JSON and then automatically generates input fields based on that schema. This allows workflows to be parameterized and reused with different data.
🧱 Purpose
To collect structured input from users at runtime and pass those inputs to downstream steps in the workflow.
🧭 Behavior
- Dynamically generates input fields from a JSON schema
- Captures user-provided data and exposes it as output
- Enables flexible reuse of workflows with different data
- Supports nested and complex object structures
⚙️ Configuration
- Schema: A JSON schema that defines the input fields
- Default Values (optional): Provide default values for fields if desired
Example schema:
{
"name": "string",
"age": 10,
"subscribe": true
}
This schema will render three input fields: a text input for name, a number input for age, and a toggle for subscribe.
✅ Use Cases
- Prompting the user to provide required values before workflow starts
- Creating workflows that are reusable with different datasets
- Passing configuration values into a sub-workflow
The Input step enhances the modularity and flexibility of Snappit workflows by cleanly separating static logic from dynamic data.