Variables allow you to dynamically insert data into your workflows. You can use System Variables (provided by the platform) or User Variables (defined by you).
USE_DOUBLE_CURLY_BRACES {{ variable }}
를 사용하여 삽입하세요.
SYSTEM_VARIABLES
변수
결과 (예시)
설명
복사
{{ sys.date
}}
2024-01-30
ISO 형식의 현재 날짜입니다.
{{
sys.date.compact }}
20240130
CURRENT_DATE_WITHOUT_SEPARATORS
{{ sys.time
}}
14:30:00
현재 시스템 시간입니다.
{{ sys.uuid
}}
a1b2...
고유한 랜덤 ID를 생성합니다.
JavaScript Methods & Formatting
You can apply parsing methods to any variable using dot notation. Standard JavaScript string methods are supported.
METHOD
복사
CODE_TEMPLATE
EXAMPLE_INPUT_RESULT
substring(start, end)
{{
sys.date.substring(0,4) }}
Input: "2024-01-30", Result: "2024"
replace(old, new)
{{ sys.time.replace(':',
'-') }}
Input: "14:30:00", Result: "14-30-00"
toUpperCase()
{{
sys.uuid.toUpperCase() }}
Result: "A1B2-C3D4..."
split()[index]
{{
sys.date.split('-')[0] }}
Result: "2024" (YEAR_ONLY)
USER_VARIABLES
You can define your own variables in 'Admin > System Variables' (Global) or 'Settings > User Code' (Personal).
// EXAMPLE_USING_A_USER_DEFINED_PROMPT_TEMPLATEUser Variable Key: usr.my_prompt_v1
Value: "Summarize the following text in Korean:"
// 노드에서 사용
{{ usr.my_prompt_v1 }} {{ input_text }}
{% trans "MEDIA_INPUT_SUPPORT"
%}
This table shows the media types supported by each LLM provider when using Media URLs (Audio, Image, Video).