Combine text and fields that you can drag and drop. At runtime, all of the text is combined with the values of the fields to generate a single text output.

For example, this is the text of an email:

Dear ,

This is a reminder to please pay the following bill:

Invoice number:



Thank you.

Insert fields from other cards in your flow whose fields return values for name, invoice number, date, and amount. Drag and drop each field to its proper location in the composed text.

After you've inserted any field, you can drag and drop to move it within the Compose card. To delete a field, click to the right of the field and then use Delete or Backspace.

The Compose function card will generate a single output. You can then pass this content, for example, as the input text of an action card that sends an email.

The Compose function ensures that text fields process text inputs only. For example, if you do a HTTP Get from an API that sometimes returns text and sometimes returns numbers, then that output field can lead to runtime errors in your flow. If you pass a field into a Compose function card that was incorrectly typed, the card will convert it to text without error.


Field Definition Type
output Returned text string based on a combination of manually-entered text and values mapped from other cards in the flow. String

Related topics

Functions in Workflows

About the elements of Okta Workflows