Skip to main content

Workflow Parameters

Parameters are temporary variables that store data during workflow execution. Use them to capture API responses, compute values, and pass data between steps.

Variable Categories

Quick Reference

CategoryPrefixLifetimeExample
Surveysurvey.*Read-only{{survey.score}}
Contactcontact.*Read-only{{contact.email}}
Parametersparams.*Per-execution{{params.customerId}}
Fieldsfields.*Persistent{{fields.region}}
Settingssettings.*Read-only{{settings.dept_id}}

Survey Variables

Available after any survey trigger fires:

VariableTypeDescription
survey.scorenumberTotal survey score (0-100)
survey.statusstringIN_PROGRESS or COMPLETED
survey.idnumberUnique survey identifier

Usage Example:

// In email template
"Your score: {{survey.score}} out of 100"

// In condition
Left: {{survey.score}}
Operator: >=
Right: 9

Contact Variables

Available when contact information exists:

VariableTypeExample
contact.emailstringcustomer@example.com
contact.phonestring+1234567890
contact.namestringJohn Doe
contact.idnumber12345
contact.languagestringen

Creating Parameters

Method 1: Manual Creation

  1. Click Parameters button (⚙️) in toolbar
  2. Enter name: customerTier
  3. Select type: string
  4. Click Add
Naming Rules
  • Must start with a letter
  • Only letters, numbers, underscores
  • Case-sensitive
  • Examples: customerId, retry_count, isVIP

Method 2: HTTP Response Mapping

Example Response:

{
"customer": {
"tier": "gold",
"points": 1500
}
}

Mapping:

JSON PathParameterType
$.customer.tiercustomerTierstring
$.customer.pointsloyaltyPointsnumber

Method 3: Set Value Step

Use the Set Value step to create or update parameters:

Target: params.discountPercent
Value: 20

Parameter Lifecycle

Parameter Persistence

Parameters only exist during workflow execution. They are discarded when the workflow completes. Use Fields for persistent storage.


Using Parameters

In Conditions

Left Operand:  {{params.customerTier}}
Operator: ==
Right Operand: "gold"

In Messages

Hello {{contact.name}},

As a {{params.customerTier}} member with {{params.loyaltyPoints}} points,
you've earned a {{params.discountPercent}}% discount!

In HTTP Requests

https://api.example.com/customers/{{contact.id}}/tier/{{params.customerTier}}

Parameters in Surveys

Parameters can be available inside survey questions when using the Contact Added trigger.

Enabling Survey Access

  1. Open the Parameters modal
  2. Check the In Survey checkbox
  3. Use single curly braces in survey questions:
Welcome {customerName}! As a {customerTier} member, how would you rate...
Timing Requirement

Parameters are only available in surveys when:

  1. The workflow uses the Contact Added trigger
  2. The parameter is marked as In Survey
  3. The parameter has a value before the survey loads

Parameter Data Types

TypeDescriptionExample Values
stringText values"gold", "active"
numberNumeric values42, 3.14, -100
booleanTrue/falsetrue, false
Type Safety

Parameters created from HTTP responses have locked types. The type is inferred from the first value and cannot be changed.


Best Practices

Naming Conventions

PatternExampleUse For
camelCasecustomerTierGeneral parameters
DescriptiveapiResponseStatusClarity on source
Prefixedcrm_customerIdIntegration-specific

Error Handling


Troubleshooting

"Parameter not found" error
  • Verify parameter exists in Parameters modal
  • Check spelling and case (case-sensitive!)
  • Ensure the step creating the parameter runs BEFORE steps using it
"Type mismatch" error
  • HTTP response parameters have locked types
  • Type is inferred from first value received
  • Create a new parameter if type needs to change
Parameter not available in survey
  • Enable In Survey checkbox in Parameters modal
  • Use Contact Added trigger (not Survey Completed)
  • Ensure parameter has value before survey loads

Next Steps

Was this page helpful?