Skip to main content

What Are Workflow Inputs?

When a workflow needs information to run - like a username, date, or selection from a list - you define inputs. Users provide these values before the workflow executes. Example: A “Create User” workflow might have inputs for:
  • Email address (text)
  • Department (dropdown)
  • Start date (date)
  • Is contractor (checkbox)

How To Collect Inputs?

Form Fill

Collect inputs specified via form fill from the user

Natural language

Collect inputs from the user via conversation

Input Types

Serval supports several input types:
TypeDescriptionExample Use
TextSingle-line text entryUsername, email, ID
TextareaMulti-line text entryDescription, justification, notes
NumberNumeric valueDuration, count, amount
DateDate pickerStart date, deadline
TimeTime selectorMeeting time, schedule
SelectDropdown with optionsEnvironment, role, department
CheckboxBoolean toggleEnable flag, confirm action

Configuring Inputs

When building a workflow, Serval automatically detects inputs based on your description. You can instruct Serval to change the inputs needed:
1

Review auto-detected inputs

When Serval generates your workflow, it identifies required parameters as inputs
2

Adjust input types

Change input types if needed:
  • Convert text to dropdown for constrained choices
  • Change text to textarea for long-form input
  • Add date/time pickers for temporal values
3

Set required vs optional

Mark inputs as required or optional:
  • Required - User must provide a value
  • Optional - User can leave blank (workflow uses default or skips)
4

Add descriptions

Write clear descriptions for each input to guide users

Form Confirmation

For sensitive workflows, enable form confirmation to require users to review their inputs before execution:
1

Enable confirmation

Turn on “Require form confirmation” in workflow settings
2

User fills form

User completes all input fields
3

Review screen

User sees a summary of all inputs and must confirm
4

Execution

Workflow runs only after explicit confirmation
Form confirmation adds an extra step but helps prevent accidental execution with incorrect values.

Breakdown: Input Type Options

Text input

Single-line text for short values. Best for:
  • Usernames and email addresses
  • IDs and identifiers
  • Short strings
Configuration:
  • Set placeholder text for guidance
  • Add description explaining expected format

Textarea

Multi-line text for longer content. Best for:
  • Descriptions and notes
  • Business justifications
  • Comments and feedback
Configuration:
  • Consider setting a character limit if needed
  • Provide example text in the description

Number

Numeric input with validation. Best for:
  • Counts and quantities
  • Duration (days, hours)
  • Amounts
Configuration:
  • Set min/max values if applicable
  • Specify units in the description (e.g., “Duration in days”)

Date

Calendar date picker. Best for:
  • Start and end dates
  • Deadlines
  • Scheduled dates
Configuration:
  • Consider default values (today, tomorrow, next week)
  • Specify date format expectations in description

Time

Time selection. Best for:
  • Meeting times
  • Schedule times
  • Time-specific events
Configuration:
  • Clarify timezone expectations
  • Offer common presets if applicable

Select (Dropdown)

Choose from predefined options. Best for:
  • Environment selection (prod/staging/dev)
  • Role or permission level
  • Department or team
  • Any constrained set of choices
Configuration:
  • Define all available options
  • Set a default selection if appropriate
  • Order options logically
Use dropdowns instead of text inputs when you have a known set of valid values. This prevents typos and ensures consistency.

Checkbox

Boolean true/false toggle. Best for:
  • Feature flags
  • Confirmation checkboxes
  • Optional features
Configuration:
  • Set clear label describing what the toggle controls
  • Consider default state (checked or unchecked)

Input Validation

Serval validates inputs before workflow execution:
  • Required fields - Must be filled before submission
  • Type validation - Numbers must be numeric, dates must be valid
  • Format validation - Email fields check for valid email format

Handling validation errors

When validation fails:
  1. User sees an error message on the invalid field
  2. Workflow does not execute
  3. User corrects the value and resubmits

Examples

User provisioning workflow

InputTypeRequiredDescription
EmailTextYesNew user’s email address
First nameTextYesUser’s first name
Last nameTextYesUser’s last name
DepartmentSelectYesEngineering, Sales, Marketing, etc.
Start dateDateYesWhen the user starts
Manager emailTextYesDirect manager’s email
Is contractorCheckboxNoCheck if temporary/contractor

Report generation workflow

InputTypeRequiredDescription
Report typeSelectYesDaily summary, Weekly rollup, Custom
Start dateDateYesReport period start
End dateDateYesReport period end
Include chartsCheckboxNoInclude visual charts in report
Slack channelTextNoChannel to post report (blank = DM)