Generate Text/Html

These actions provide ability to produce text outputs using templates and input payload.

Generate Text/Html Actions

ApplyTemplate

Produces text (e.g. plain, html) from given input data and template id. Event metadata fields applicable for this action are as follows:

Field
Definition
Example
Default

Input Element

Json path for the input in request event payload

customer

-

Output Element

Json path for the output in response event payload

html

-

With event metadata parameters as:

Parameter
Definition
Example
Default

Template ID

Id of the template to use from code.state

landing_page

-

Template ID Path

Json path of the template in event payload

parameters.template

-

Result Path

Json path to add produced text on output element

output

result

chevron-rightExamplehashtag

Input

{
    "parameters": {
        "course": "Rierino 101",
        "chapters": [
            {"name": "Introduction"}
        ] 
    }
}

Event Metadata

ApplyTemplateList

Produces text from a given array of input data and template ids. Event metadata fields applicable for this action are as follows:

Field
Definition
Example
Default

Input Element

Json path for the input in request event payload

list

-

Output Element

Json path for the output in response event payload

html

-

With event metadata parameters as:

Parameter
Definition
Example
Default

Output Structure

Structure of output to produce (map, array, text)

map

-

Output Delimiter

Delimiter for concatenating results if structure is "text"

\n

-

Input Path

Json path to get list of requests from

list

input

Result Path

Json path to add produced text on output element

output

result

Last updated