Input Block

Capture and process user inputs within Scout workflows

The Input block is essential for capturing and processing user inputs within Scout workflows. It allows users to define various input types, including text, numbers, checkboxes, and JSON objects, providing flexibility in handling user-provided data.

Configuration (Required)

Items
list

A list of input items, each specifying its type, key, display name, default value, and whether it is optional. This configuration allows for the dynamic and flexible gathering of user inputs, which can be used throughout the workflow.

Outputs

The output of the Input block is a dictionary containing the resolved input values based on the user inputs and default values. This structured output allows for seamless integration and utilization of user-provided data within the workflow.

Usage Context

Use this block to gather and process user inputs, allowing for dynamic and flexible workflow execution based on user-provided data. This is particularly useful in scenarios where workflows need to adapt to varying input conditions and data types.

Best Practices

  • Ensure each input item has a unique key and appropriate type: This helps in accurately identifying and processing each input within the workflow.
  • Use default values to handle optional inputs gracefully: Default values ensure that workflows can proceed smoothly even when some inputs are not provided by the user.
  • Validate inputs to ensure they meet expected formats and constraints: Input validation helps maintain data integrity and prevents errors during workflow execution.