novu.trigger
method, and controlled by the developer.
step
method. These controls can be modified and persisted in the Novu Dashboard UI.
The snippet below shows a configuration for the Step Control schema. If you don’t provide a schema, Typescript will infer the data type to unknown
, reminding you of the best practice to specify your schema.
{{variableName}}
syntax. For example, {{subscriber.firstName | capitalize}}
will be dynamically replaced with the actual value of the subscriber’s first name at runtime.
You can use variables in any step control value, whether set by the developer or within the Novu Dashboard UI. To facilitate this, the Novu Dashboard UI offers auto-completion for variables. Simply start typing {{
to view a list of all available variables.
Example for variables autocomplete in dashboard
{{subscriber.firstName}}
payloadSchema
. Example: {{payload.userId}}
{{subscriber.firstName | append: ': ' | append: payload.status | capitalize}}
or
{{payload.invoiceDate | date: '%a, %b %d, %y'}}
will format the date as Thu, Jan 01, 24