Skip to content

Flow Control

Branching, loops, parallelism, subflows, triggers, and error handling.

24 modules

ModuleDescription
Xử lý theo lôXử lý các mục theo lô với kích thước có thể cấu hình
Phân nhánhPhân nhánh có điều kiện dựa trên đánh giá biểu thức
Điểm dừngTạm dừng thực thi workflow để phê duyệt hoặc nhập liệu của con người
Ngắt mạchMẫu ngắt mạch để ngăn ngừa lỗi dây chuyền
ContainerContainer subflow nhúng để tổ chức các workflow phức tạp
Giảm thiểuGiảm thiểu thực thi để ngăn chặn các cuộc gọi lặp lại nhanh chóng
Kết thúcNode kết thúc workflow rõ ràng
Xử lý lỗiBắt và xử lý lỗi từ các nút phía trên
Kích hoạt quy trình lỗiĐiểm vào cho quy trình lỗi - kích hoạt khi một quy trình khác thất bại
For EachLặp qua danh sách và thực thi các bước cho mỗi mục
ForkChia thực thi thành các nhánh song song
GotoNhảy không điều kiện đến bước khác
Invoke WorkflowExecute an external workflow file
JoinChờ các nhánh song song hoàn thành
Vòng lặpLặp lại các bước N lần sử dụng định tuyến cổng đầu ra
GộpGộp nhiều đầu vào thành một đầu ra
Song songThực hiện nhiều tác vụ song song với các chiến lược khác nhau
Giới hạn tốc độGiới hạn tốc độ thực thi bằng cách sử dụng thùng token hoặc cửa sổ trượt
Thử lạiThử lại các thao tác thất bại với thời gian chờ có thể cấu hình
Bắt đầuNode bắt đầu workflow rõ ràng
SubflowTham chiếu và thực thi workflow bên ngoài
SwitchPhân nhánh nhiều hướng dựa trên khớp giá trị
Giới hạn tốc độGiới hạn tốc độ thực thi với khoảng thời gian tối thiểu
TriggerĐiểm vào workflow - thủ công, webhook, lịch trình hoặc sự kiện

Modules

Xử lý theo lô

flow.batch

Xử lý các mục theo lô với kích thước có thể cấu hình

Parameters:

NameTypeRequiredDefaultDescription
itemsarrayYes-Array of items to process. Can be numbers, strings, or objects.
batch_sizenumberYes10Số lượng mục mỗi lô
delay_msnumberNo0Thời gian chờ giữa các lô (để giới hạn tốc độ)
continue_on_errorbooleanNoFalseTiếp tục xử lý các lô còn lại nếu một lô thất bại
parallel_batchesnumberNo1Tiếp tục xử lý các lô còn lại nếu một lô thất bại

Output:

FieldTypeDescription
__event__stringSố lượng lô để xử lý song song (1 để tuần tự)
batcharraySự kiện để định tuyến (lô/hoàn thành/lỗi)
batch_indexnumberSự kiện để định tuyến (lô/hoàn thành/lỗi)
total_batchesnumberCác mục của lô hiện tại
total_itemsnumberChỉ số lô hiện tại (bắt đầu từ 0)
is_last_batchbooleanTổng số lô
progressobjectTổng số mục

Example: Example

yaml
items: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
batch_size: 10

Example: Example

yaml
items: ${input.records}
batch_size: 100
delay_ms: 1000

Example: Example

yaml
items: ${input.data}
batch_size: 50
parallel_batches: 3
continue_on_error: true

Phân nhánh

flow.branch

Phân nhánh có điều kiện dựa trên đánh giá biểu thức

Parameters:

NameTypeRequiredDefaultDescription
conditionstringYes-Expression to evaluate (supports ==, !=, >, <, >=, <=, contains)

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (true/false/error)
outputsobjectGiá trị đầu ra theo cổng
resultbooleanKết quả phân nhánh
conditionstringGiá trị điều kiện
resolved_conditionstringKết quả đánh giá điều kiện

Example: Example

yaml
condition: ${search_step.count} > 0

Example: Example

yaml
condition: ${api_call.status} == success

Điểm dừng

flow.breakpoint

Tạm dừng thực thi workflow để phê duyệt hoặc nhập liệu của con người

Parameters:

NameTypeRequiredDefaultDescription
titlestringNoApproval RequiredTitle displayed to approvers
descriptionstringNo-Optional description text
timeout_secondsnumberNo0Maximum wait time (0 for no timeout)
required_approversarrayYes-Array of data items to process
approval_modeselect (single, all, majority, first)NosingleHow approvals are counted
custom_fieldsarrayYes-Array of data items to process
include_contextbooleanNoTrueWhether to include execution context
auto_approve_conditionstringNo-Text content to process

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (approved/rejected/timeout)
breakpoint_idstringID điểm dừng
statusstringTrạng thái
approved_byarrayĐược phê duyệt bởi
rejected_byarrayBị từ chối bởi
custom_inputsobjectGiá trị đầu vào tùy chỉnh
commentsarrayBình luận xem xét
resolved_atstringThời gian giải quyết
wait_duration_msintegerThời gian chờ (ms)

Example: Example

yaml
title: Approve data export
description: Please review and approve the data export

Example: Example

yaml
title: Manager Approval Required
description: Large transaction requires manager approval
required_approvers: ["manager@example.com"]
timeout_seconds: 3600

Example: Example

yaml
title: Adjustment Required
custom_fields: [{"name": "reason", "label": "Reason", "type": "text", "required": true}, {"name": "amount", "label": "Amount", "type": "number", "required": true}]

Ngắt mạch

flow.circuit_breaker

Mẫu ngắt mạch để ngăn ngừa lỗi dây chuyền

Parameters:

NameTypeRequiredDefaultDescription
failure_thresholdnumberYes5Số lần thất bại trước khi mở mạch
reset_timeout_msnumberNo60000Thời gian tính bằng mili giây trước khi mạch chuyển sang nửa mở
half_open_maxnumberNo1Số yêu cầu tối đa được phép ở trạng thái nửa mở

Output:

FieldTypeDescription
__event__stringSự kiện để định tuyến (cho phép/từ chối/nửa mở)
statestringTrạng thái mạch (đóng/mở/nửa mở)
failure_countnumberSố lần thất bại liên tiếp
last_failure_time_msnumberThời gian thất bại cuối cùng tính bằng mili giây
time_until_half_open_msnumberSố mili giây cho đến khi mạch chuyển sang nửa mở

Example: Example

yaml
failure_threshold: 5
reset_timeout_ms: 60000

Example: Example

yaml
failure_threshold: 2
reset_timeout_ms: 10000
half_open_max: 1

Example: Example

yaml
failure_threshold: 20
reset_timeout_ms: 120000
half_open_max: 3

Container

flow.container

Container subflow nhúng để tổ chức các workflow phức tạp

Parameters:

NameTypeRequiredDefaultDescription
subflowobjectNo{'nodes': [], 'edges': []}Embedded workflow definition with nodes and edges
inherit_contextbooleanNoTrueWhether to inherit variables from parent workflow
isolated_variablesarrayYes-Array of data items to process
export_variablesarrayYes-Array of data items to process

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (success/error)
outputsobjectGiá trị đầu ra theo cổng
subflow_resultobjectKết quả subflow
exported_variablesobjectCác biến đã xuất
node_countintegerSố node
execution_time_msnumberThời gian thực thi (ms)

Example: Example

yaml
subflow: {"nodes": [], "edges": []}
inherit_context: true

Example: Example

yaml
subflow: {"nodes": [], "edges": []}
inherit_context: false

Giảm thiểu

flow.debounce

Giảm thiểu thực thi để ngăn chặn các cuộc gọi lặp lại nhanh chóng

Parameters:

NameTypeRequiredDefaultDescription
delay_msnumberYes-Thời gian chờ sau cuộc gọi cuối cùng trước khi thực thi
leadingbooleanNoFalseThực thi ở cạnh dẫn đầu (cuộc gọi đầu tiên kích hoạt ngay lập tức)
trailingbooleanNoTrueThực thi ở cạnh kết thúc (sau khi hết thời gian chờ)

Output:

FieldTypeDescription
__event__stringSự kiện để định tuyến (đã thực thi/đã giảm thiểu)
last_call_msnumberThời gian cuộc gọi cuối cùng tính bằng mili giây
calls_debouncednumberSố cuộc gọi đã giảm thiểu kể từ lần thực thi cuối cùng
time_since_last_msnumberThời gian đã trôi qua kể từ cuộc gọi cuối cùng tính bằng mili giây
edgestringCạnh nào đã kích hoạt thực thi (dẫn đầu/kết thúc)

Example: Example

yaml
delay_ms: 500

Example: Example

yaml
delay_ms: 1000
leading: true
trailing: false

Example: Example

yaml
delay_ms: 2000
leading: true
trailing: true

Kết thúc

flow.end

Node kết thúc workflow rõ ràng

Parameters:

NameTypeRequiredDefaultDescription
output_mappingobjectNo{}Map internal variables to workflow output
success_messagestringNo-Text content to process

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (end)
ended_atstringThời gian kết thúc
workflow_resultobjectKết quả workflow

Example: Example

yaml

Example: Example

yaml
output_mapping: {"result": "${process.output}", "status": "success"}

Xử lý lỗi

flow.error_handle

Bắt và xử lý lỗi từ các nút phía trên

Parameters:

NameTypeRequiredDefaultDescription
actionstringYeslog_and_continueLàm gì với lỗi
include_tracebackbooleanNoTrueBao gồm toàn bộ dấu vết trong đầu ra
error_code_mappingobjectNo{}Bao gồm toàn bộ dấu vết trong đầu ra
fallback_valueanyNo-Ánh xạ mã lỗi tới hành động tùy chỉnh

Output:

FieldTypeDescription
__event__stringGiá trị sử dụng khi lỗi được bỏ qua
outputsobjectSự kiện để định tuyến (đã xử lý/nâng cấp)
error_infoobjectSự kiện để định tuyến (đã xử lý/nâng cấp)
action_takenstringHành động đã thực hiện

Example: Example

yaml
action: log_and_continue
include_traceback: true

Example: Example

yaml
action: suppress
fallback_value: {"status": "skipped", "reason": "upstream_error"}

Example: Example

yaml
action: transform
error_code_mapping: {"TIMEOUT": {"retry": true, "delay": 5000}, "NOT_FOUND": {"skip": true}}

Kích hoạt quy trình lỗi

flow.error_workflow_trigger

Điểm vào cho quy trình lỗi - kích hoạt khi một quy trình khác thất bại

Parameters:

NameTypeRequiredDefaultDescription
descriptionstringNo-Description of this error workflow

Output:

FieldTypeDescription
__event__stringMô tả quy trình lỗi này
error_contextobjectSự kiện để định tuyến (đã kích hoạt)
triggered_atstringDấu thời gian ISO khi quy trình lỗi được kích hoạt

Example: Example

yaml
description: Send Slack notification on workflow failure

Example: Example

yaml
description: Log all workflow errors to monitoring system

For Each

flow.foreach

Lặp qua danh sách và thực thi các bước cho mỗi mục

Parameters:

NameTypeRequiredDefaultDescription
itemsstringYes-Danh sách các mục để lặp qua (hỗ trợ tham chiếu ${variable})
stepsarrayNo-Các bước thực thi cho mỗi mục
item_varstringNoitemTên biến cho mục hiện tại
index_varstringNoindexTên biến cho chỉ số hiện tại
output_modestringNocollectChế độ thu thập kết quả

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (iterate/done)
__set_contextobjectĐặt ngữ cảnh
outputsobjectGiá trị đầu ra theo cổng
iterationnumberChỉ số lặp hiện tại
statusstringTrạng thái thao tác
resultsarrayKết quả đã thu thập
countnumberTổng số mục

Example: Example

yaml
items: ${steps.csv.result.data}

Example: Example

yaml
items: ${search_results}
item_var: element
steps: [{"module": "element.text", "params": {"element_id": "${element}"}, "output": "text"}]

Fork

flow.fork

Chia thực thi thành các nhánh song song

Parameters:

NameTypeRequiredDefaultDescription
branch_countnumberNo2Number of parallel branches

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (fork/error)
input_dataanyDữ liệu đầu vào
branch_countintegerSố nhánh

Example: Example

yaml
branch_count: 2

Example: Example

yaml
branch_count: 3

Goto

flow.goto

Nhảy không điều kiện đến bước khác

Parameters:

NameTypeRequiredDefaultDescription
targetstringYes-Step ID to jump to
max_iterationsnumberNo100Maximum number of iterations (prevents infinite loops)

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (goto)
targetstringBước đích
iterationnumberSố lần lặp

Example: Example

yaml
target: fetch_next_page
max_iterations: 10

Example: Example

yaml
target: cleanup_step

Invoke Workflow

flow.invoke

Execute an external workflow file

Parameters:

NameTypeRequiredDefaultDescription
workflow_sourcestringYes-File path to workflow YAML or inline YAML content
workflow_paramsobjectYes-Parameters to pass to the invoked workflow
timeout_secondsnumberNo300Maximum execution time in seconds
output_mappingobjectNo{}Map internal variables to workflow output

Output:

FieldTypeDescription
__event__stringParameters to pass to the invoked workflow
resultanyMaximum execution time in seconds
workflow_idstringEvent for routing (success/error)
execution_time_msnumberWorkflow execution result

Example: Example

yaml
workflow_source: workflows/validate_order.yaml
workflow_params: {"order_id": "${input.order_id}"}
timeout_seconds: 60

Example: Example

yaml
workflow_source: workflows/process_data.yaml
workflow_params: {"data": "${input.data}"}
output_mapping: {"processed": "result.data"}

Join

flow.join

Chờ các nhánh song song hoàn thành

Parameters:

NameTypeRequiredDefaultDescription
strategyselect (all, any, first)NoallHow to handle multiple inputs
input_countnumberNo2Number of ports
timeoutnumberNo60000Maximum time to wait in milliseconds
cancel_pendingbooleanNoTrueCancel pending branches when using first strategy

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (joined/timeout/error)
joined_dataarrayDữ liệu đã nối
completed_countintegerSố nhánh đã hoàn thành
strategystringChiến lược nối

Example: Example

yaml
strategy: all
input_count: 2
timeout_ms: 30000

Example: Example

yaml
strategy: first
input_count: 3
cancel_pending: true

Vòng lặp

flow.loop

Lặp lại các bước N lần sử dụng định tuyến cổng đầu ra

Parameters:

NameTypeRequiredDefaultDescription
timesnumberYes1Số lần lặp lại
targetstringNo-Bước đích (đã ngừng sử dụng)
stepsarrayNo-Các bước thực thi cho mỗi lần lặp
index_varstringNoindexTên biến cho chỉ số hiện tại

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (iterate/done)
outputsobjectGiá trị đầu ra theo cổng
iterationnumberLần lặp hiện tại
statusstringTrạng thái thao tác
resultsarrayKết quả đã thu thập
countnumberTổng số lần lặp

Example: Example

yaml
times: 3

Example: Example

yaml
times: 5
steps: [{"module": "browser.click", "params": {"selector": ".next"}}]

Gộp

flow.merge

Gộp nhiều đầu vào thành một đầu ra

Parameters:

NameTypeRequiredDefaultDescription
strategyselect (first, last, all)NoallHow to merge multiple inputs
input_countnumberNo2Number of ports

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (merged/error)
merged_dataanyDữ liệu đã gộp
input_countintegerSố đầu vào
strategystringChiến lược gộp

Example: Example

yaml
strategy: all
input_count: 3

Example: Example

yaml
strategy: first
input_count: 2

Song song

flow.parallel

Thực hiện nhiều tác vụ song song với các chiến lược khác nhau

Parameters:

NameTypeRequiredDefaultDescription
tasksarrayYes-Mảng các định nghĩa tác vụ để thực hiện song song
modestringNoallMảng các định nghĩa tác vụ để thực hiện song song
timeout_msnumberNo60000Maximum wait time in milliseconds
fail_fastbooleanNoTrueDừng tất cả tác vụ khi gặp lỗi đầu tiên (chỉ áp dụng khi mode=all)
concurrency_limitnumberNo0Dừng tất cả tác vụ khi gặp lỗi đầu tiên (chỉ áp dụng khi mode=all)

Output:

FieldTypeDescription
__event__stringSố lượng tác vụ đồng thời tối đa (0 cho không giới hạn)
resultsarraySự kiện để định tuyến (hoàn thành/một phần/lỗi)
completed_countnumberSự kiện để định tuyến (hoàn thành/một phần/lỗi)
failed_countnumberKết quả từ tất cả các tác vụ
total_countnumberSố lượng tác vụ hoàn thành thành công
modestringSố lượng tác vụ thất bại
duration_msnumberTổng số tác vụ

Example: Example

yaml
tasks: [{"module": "http.get", "params": {"url": "https://api1.example.com"}}, {"module": "http.get", "params": {"url": "https://api2.example.com"}}]
mode: all
timeout_ms: 30000

Example: Example

yaml
tasks: [{"module": "http.get", "params": {"url": "https://mirror1.example.com"}}, {"module": "http.get", "params": {"url": "https://mirror2.example.com"}}]
mode: race

Example: Example

yaml
tasks: [{"module": "http.get", "params": {"url": "https://api1.example.com"}}, {"module": "http.get", "params": {"url": "https://might-fail.example.com"}}]
mode: settle

Giới hạn tốc độ

flow.rate_limit

Giới hạn tốc độ thực thi bằng cách sử dụng thùng token hoặc cửa sổ trượt

Parameters:

NameTypeRequiredDefaultDescription
max_requestsnumberYes-Số yêu cầu tối đa được phép mỗi cửa sổ
window_msnumberNo60000Cửa sổ thời gian tính bằng mili giây
strategystringNotoken_bucketChiến lược giới hạn tốc độ (thùng token hoặc cửa sổ trượt)
queue_overflowstringNowaitHành vi khi hàng đợi đầy (bỏ qua hoặc lỗi)

Output:

FieldTypeDescription
__event__stringSự kiện để định tuyến (được phép/bị giới hạn)
tokens_remainingnumberSố token còn lại trong thùng
window_reset_msnumberSố mili giây cho đến khi cửa sổ được đặt lại
requests_in_windownumberSố yêu cầu trong cửa sổ hiện tại
wait_msnumberSố mili giây cần chờ trước khi yêu cầu tiếp theo được phép

Example: Example

yaml
max_requests: 100
window_ms: 60000
strategy: token_bucket

Example: Example

yaml
max_requests: 10
window_ms: 1000
strategy: fixed_window
queue_overflow: error

Example: Example

yaml
max_requests: 50
window_ms: 30000
strategy: sliding_window
queue_overflow: wait

Thử lại

flow.retry

Thử lại các thao tác thất bại với thời gian chờ có thể cấu hình

Parameters:

NameTypeRequiredDefaultDescription
max_retriesnumberYes3Số lần thử lại tối đa
initial_delay_msnumberNo1000Thời gian chờ ban đầu trước lần thử lại đầu tiên (ms)
backoff_multipliernumberNo2.0Hệ số nhân cho thời gian chờ lũy tiến
max_delay_msnumberNo30000Thời gian chờ tối đa giữa các lần thử lại (ms)
retry_on_errorsarrayNo[]Các loại lỗi để thử lại (để trống nghĩa là thử lại tất cả)

Output:

FieldTypeDescription
__event__stringSự kiện để định tuyến (thử lại/thành công/thất bại)
attemptnumberSố lần thử hiện tại
max_retriesnumberSố lần thử lại tối đa được cấu hình
delay_msnumberThời gian chờ trước lần thử lại tiếp theo (ms)
total_elapsed_msnumberTổng thời gian đã trôi qua (ms)
last_errorobjectThông báo lỗi cuối cùng

Example: Example

yaml
max_retries: 3

Example: Example

yaml
max_retries: 10
initial_delay_ms: 500
backoff_multiplier: 1.5
max_delay_ms: 10000

Example: Example

yaml
max_retries: 5
initial_delay_ms: 2000
retry_on_errors: ["TIMEOUT", "RATE_LIMIT", "429", "503"]

Bắt đầu

flow.start

Node bắt đầu workflow rõ ràng

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (start)
started_atstringThời gian bắt đầu
workflow_idstringID Workflow

Example: Example

yaml

Subflow

flow.subflow

Tham chiếu và thực thi workflow bên ngoài

Parameters:

NameTypeRequiredDefaultDescription
workflow_refstringYes-Text content to process
execution_modeselect (inline, spawn, async)NoinlineSelect an option
input_mappingobjectYes-Data object to process
output_mappingobjectNo{}Map internal variables to workflow output
timeoutnumberNo300000Maximum time to wait in milliseconds

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (success/error)
resultanyKết quả thực thi
execution_idstringID thực thi
workflow_refstringTham chiếu workflow

Example: Example

yaml
workflow_ref: workflows/validate_order
execution_mode: inline
input_mapping: {"order_data": "${input.order}"}
output_mapping: {"validation_result": "result"}

Example: Example

yaml
workflow_ref: workflows/send_notifications
execution_mode: spawn

Switch

flow.switch

Phân nhánh nhiều hướng dựa trên khớp giá trị

Parameters:

NameTypeRequiredDefaultDescription
expressionstringYes-Value to match against cases (supports variable reference)
casesarrayYes[{'id': 'case_1', 'value': 'case1', 'label': 'Case 1'}]List of case definitions

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (case:value hoặc default)
outputsobjectGiá trị đầu ra theo cổng
matched_casestringCase khớp
valueanyGiá trị khớp

Example: Example

yaml
expression: ${api_response.status}
cases: [{"id": "case-1", "value": "success", "label": "Success"}, {"id": "case-2", "value": "pending", "label": "Pending"}, {"id": "case-3", "value": "error", "label": "Error"}]

Example: Example

yaml
expression: ${input.type}
cases: [{"id": "img", "value": "image", "label": "Image"}, {"id": "vid", "value": "video", "label": "Video"}, {"id": "txt", "value": "text", "label": "Text"}]

Giới hạn tốc độ

flow.throttle

Giới hạn tốc độ thực thi với khoảng thời gian tối thiểu

Parameters:

NameTypeRequiredDefaultDescription
interval_msnumberYes-Thời gian tối thiểu giữa các lần thực thi (ms)
leadingbooleanNoTrueThực thi ở cạnh trước (lần gọi đầu tiên được phép ngay lập tức)

Output:

FieldTypeDescription
__event__stringSự kiện để định tuyến (đã thực thi/đã giới hạn)
last_execution_msnumberDấu thời gian của lần thực thi được phép cuối cùng
calls_throttlednumberSố lần gọi bị giới hạn kể từ lần thực thi cuối
time_since_last_msnumberThời gian đã trôi qua kể từ lần thực thi cuối (ms)
remaining_msnumberThời gian còn lại (ms) cho đến khi được phép thực thi tiếp theo

Example: Example

yaml
interval_ms: 1000

Example: Example

yaml
interval_ms: 200
leading: true

Example: Example

yaml
interval_ms: 5000
leading: false

Trigger

flow.trigger

Điểm vào workflow - thủ công, webhook, lịch trình hoặc sự kiện

Parameters:

NameTypeRequiredDefaultDescription
trigger_typeselect (manual, webhook, schedule, event, mcp, polling)NomanualType of trigger event
webhook_pathstringNo-URL path for webhook trigger
schedulestringNo-Cron expression for scheduled trigger
event_namestringNo-Event name to listen for
tool_namestringNo-MCP tool name exposed to AI agents
tool_descriptionstringNo-Description shown to AI agents for this tool
poll_urlstringNo-API endpoint to poll for changes
poll_intervalnumberNo300How often to check for changes (minimum 60 seconds)
poll_methodselect (GET, POST)NoGETHTTP method for polling request
poll_headersobjectNo{}Custom headers for polling request (e.g. API keys)
poll_bodyobjectNo{}Request body for POST polling
dedup_keystringNo-JSON path to extract a unique value for deduplication
configobjectNo-Custom trigger config (for composites: LINE BOT, Telegram, Slack, etc.)
descriptionstringNo-Optional description text

Output:

FieldTypeDescription
__event__stringSự kiện định tuyến (triggered/error)
trigger_dataobjectDữ liệu trigger
trigger_typestringLoại trigger
triggered_atstringThời gian kích hoạt

Example: Example

yaml
trigger_type: manual

Example: Example

yaml
trigger_type: webhook
webhook_path: /api/webhooks/order-created

Example: Example

yaml
trigger_type: schedule
schedule: 0 * * * *

Example: Example

yaml
trigger_type: mcp
tool_name: send-report
tool_description: Send a weekly summary report

Example: Example

yaml
trigger_type: polling
poll_url: https://api.example.com/items
poll_interval: 300
dedup_key: $.data[0].id

Released under the Apache 2.0 License.