기본 콘텐츠로 건너뛰기 보완적인 콘텐츠로 건너뛰기

Input block

The input block receives external input from a user or an external source, for example if the automation is executed through its REST API endpoint.

input block

An input block is commonly used in following situations:

  • When an automation needs input from a user.
  • When an automation is executed through its REST API endpoint.
  • When an automation is called from another automation.
정보 메모

Do not use input blocks for automations that are executed on a schedule because the automation cannot ask for user input when it is executed through a schedule.

팁 메모

Blocks have inputs and outputs, which are limited to the scope of each execution of the automation. The input block, however, is the only block that can receive data from outside of its scope.

Configuring an input block

Configure the input block to receive user input.

Inputs

The input block can have one or more input fields. Each input field is made up of the following key value pairs.

  • Label: The field name for the input.
  • Help text: Text that is presented to the user.
  • Input type: The type of input the user must enter or select.
정보 메모

For each input field, you can select whether it is required.

Input block inputs

input block input field

Input types

Input blocks can have different input types.

Single input line

Lets the user enter a single line of text.

Multiple input line

Lets the user to enter multiple lines of text.

Lets the user select a predefined item from a dropdown menu.

정보 메모

Defined as a comma-separated list or an array of {id-name} pairs. If you defined the options using an array, the name is presented to the user and the ID appears in the field mapping.

Multi select

Lets the user select one or more predefined items from a list of options.

정보 메모

Defined as a comma-separated list or an array of {id-name} pairs. If you defined the options using an array, the name is presented to the user and the ID appears in the field mapping.

The user input is saved as selected and unselected.

Button

Lets the user input information by clicking a button. Each input value is a button. The user input is saved as an array of Boolean objects: [ {button 1: true} ].

Data

Lets the user add structured JSON data. The data input type is often used in automations that are triggered by their webhook URL to pass webhook parameters to the endpoint. In this case, add the input block directly below the start block.

Automation with input block

Input block below a start block

The input parameters are automatically displayed in the example webhook URL of the automation.

See Working with webhooks

Key value pairs

Lets the user add key-value pair objects.

It is typically used in automations that are called by another automation.

이 페이지가 도움이 되었습니까?

이 페이지 또는 해당 콘텐츠에서 오타, 누락된 단계 또는 기술적 오류와 같은 문제를 발견하면 개선 방법을 알려 주십시오!