# Understanding workflow helpers

> Workflow helpers make this custom functionality possible by automating tasks and adding flexibility to your workflows through action and condition steps.

Source: https://help.kustomer.com/en_us/workflow-helpers-SJ3hjT7gr

Last updated: 2026-03-25T18:00:04.046Z

As you build workflow steps and logic, you may need actions that perform advanced or dynamic functions. For example, you may want to:

*   Address a customer by name in an email.
    
*   Check if a message arrives during business hours before sending an auto-response.
    
*   Reformat data received from a webhook.
    

Workflow helpers enable this functionality by automating tasks and adding flexibility to action and condition steps.

**Who can access this feature?**

**User types**

Admins can access the Workflows page.

  

### In this article

*   [Available helpers by group](#groups)
*   [Helper types](#types)
*   [Use helpers in workflow data fields](#data-fields)
*   [Escape sequences](#escape)

### Available helpers by group

Kustomer provides various types of helpers to help you customize your workflows.

*   **Conditional helpers**  
    Perform actions and generate content based on the value of an attribute. [Learn more](https://help.kustomer.com/conditional-workflow-helpers-Syb3Z7TfJg)  
      
    
*   **Date & math helpers**  
    Generate and manipulate date objects, and perform arithmetic functions and number formatting. [Learn more](https://help.kustomer.com/date-math-SkIBvB1Eyx)  
      
    
*   **String modification helpers**  
    Manipulate strings of text. [Learn more](https://help.kustomer.com/string-modifying-helpers-r1GsopXX1x)  
      
    
*   **JSON data helpers**  
    Format and extract information from JSON data. [Learn more](https://help.kustomer.com/json-data-helpers-r1C1c9E4Je)  
      
    
*   **Data validation helpers**  
    Verify and reformat data. [Learn more](https://help.kustomer.com/data-validation-r1ODn2K4kg)

### Helper types

**Expression helpers**

Expression helpers use double or triple handlebars and return a string.

Example: `{{randomId}}`

**Block helpers**

Block helpers use an opening (`#`) and closing (`/`) expression and return a string.

Example: `{{#if true}}Hello {{steps.1.name}}{{/if}}`

**Function helpers**

Function helpers do not use handlebars, `{{ }}`. They begin with `/#fn:` and can return multiple data types.

Example:

`/#fn:inBusinessHours,<scheduleId>`

[The `inBusinessHours` function](https://help.kustomer.com/date-math-SkIBvB1Eyx#business-hours) evaluates whether a time falls within a business schedule.

*   The function can accept up to two optional parameters, or no parameters. 
    
*   When referring to a business schedule, a `scheduleId` (or a reference that resolves to one) is expected.
    
*   If no date is provided, the function evaluates the **current time**.
    
*   Do not pass handlebars expressions (for example, `{{date ...}}`) as arguments. These are not supported and may return incorrect results.
    

**Note:** Function helpers cannot nest or be nested inside other helpers.

### Using helpers in workflow data fields

In code view, standard workflow step input fields accept:

*   A direct value matching the field type
    
*   A handlebars expression
    
*   A workflow command
    

![](https://cdn.kustomerhostedcontent.com/media/570fad9d9001bc1000163b28/0fb8313ea41ee46219fcd7994db4fa03.gif)

Some fields (such as `meta`, `data`, `headers`, `input`, and `error`) are **data fields**. These fields:

*   Use line-numbered inputs
    
*   Expect JSON objects or arrays
    

When using helpers in data fields, wrap them in quotation marks.

Examples:

```
{
  "to": "/#steps.1.from",
  "text": "hello {{steps.1.name}}",
  "date": "/#fn:dateFormat,steps.1.createdAt"
}
"/#fn:dateFormat,steps.1.createdAt"
"{{steps.1.name}}"
```

**Note:** Commands wrapped in quotation marks do not always resolve to string output.

![](https://cdn.kustomerhostedcontent.com/media/570fad9d9001bc1000163b28/c5221474e11bdb0536292b7912b64a05.gif)

  

### Escape sequences

Escape sequences allow special characters to be processed correctly.

A common example is using quotation marks inside a string:

```
{"string": "{{toUpper "one two three"}}"} → invalid
{"string": "{{toUpper \"one two three\"}}"} → valid
```

Use a backslash (`\`) to escape quotation marks inside strings.

![](https://cdn.kustomerhostedcontent.com/media/570fad9d9001bc1000163b28/547bfa12653b0dfae0514965a3610179.gif)

### Related articles:

*   [Conditional workflow helpers](https://help.kustomer.com/conditional-workflow-helpers-Syb3Z7TfJg)
*   [Date and math workflow helpers](https://help.kustomer.com/date-math-SkIBvB1Eyx)
*   [String modifying workflow helpers](https://help.kustomer.com/string-modifying-helpers-r1GsopXX1x)
*   [JSON data workflow helpers](https://help.kustomer.com/json-data-helpers-r1C1c9E4Je)
*   [Data validation workflow helpers](https://help.kustomer.com/data-validation-r1ODn2K4kg)
*   [Understand handlebars](https://help.kustomer.com/handlebars-SkrtP_kHJl)
