Generate Text/Html
These actions provide ability to produce text outputs using templates and input payload.
Generate Text/Html Actions
ApplyTemplate
Field
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"inputElement": {
"type": "string",
"description": "Json path for the input in request event payload",
"example": "customer"
},
"outputElement": {
"type": "string",
"description": "Json path for the output in response event payload",
"example": "html"
}
}
}
}
}Parameter
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"parameters": {
"type": "object",
"properties": {
"templateId": {
"type": "string",
"description": "Id of the template to use from code.state",
"example": "landing_page"
},
"templateIdPath": {
"type": "string",
"description": "Json path of the template in event payload",
"example": "parameters.template"
},
"resultPath": {
"type": "string",
"description": "Json path to add produced text on output element",
"default": "result",
"example": "output"
}
}
}
}
}
}
}ApplyTemplateList
Field
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"inputElement": {
"type": "string",
"description": "Json path for the input in request event payload",
"example": "list"
},
"outputElement": {
"type": "string",
"description": "Json path for the output in response event payload",
"example": "html"
}
}
}
}
}Parameter
Definition
Example
Default
Last updated

