Data export

Process values and save them to variables

The Data export block evaluates expressions with variables, functions, and operators, then writes the result into variables for the rest of the workflow.

How it works

Input

Enter an expression using variables, functions, and operators

Evaluate

The engine computes the expression and normalizes the data

Store

The result is written to the variables you specify

Block configuration

Data to export

Type the expression you want evaluated. You can use:

  • Variables: {{user_id}}
  • Functions: {{round(price, 2)}}
  • Operators: {{count + 1}}
  • Literal text: Result: {{value}}

Export targets

Name the variables that should receive the computed value:

  • Up to three variables at once
  • Each variable gets the same result
  • Useful for aliases or intermediate copies

Examples

Persist calculations

Run math and store the outcome

Expression:

{{price * 1.2}}

Export to:

final_price

Format text

Combine multiple variables into one string

Expression:

{{first_name + " " + last_name}}

Export to:

full_name

Transform data

Apply helper functions to variables

Expression:

{{round(total / count, 2)}}

Export to:

average

Intermediate values

Save a result for reuse in other blocks

Expression:

{{str(user_id) + "_" + str(message_id)}}

Export to:

unique_key

Advanced example

Average score with formatting

Suppose you have score1, score2, and score3. You want the numeric average plus a ready-to-send text version.

Example 1: Numeric average

Expression:
{{round((score1 + score2 + score3) / 3, 2)}}
Export:
average_score

Example 2: With label

Expression:
Average score: {{round((score1 + score2 + score3) / 3, 2)}}
Export:
result_message

Tip: Combine helpers such as max, min, abs, round before exporting.

Practical tips

  • Use this block to cache heavy expressions instead of duplicating them
  • Chain functions and operators for richer transformations
  • Export to multiple variables when the same value is needed in parallel branches
  • Read the Variables doc for the full function and operator reference
  • For regex workflows use regex_match and regex_replace