Skip to main content

Notification Templates

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

The OTPs, invitations, magic links, password recovery links, and CIBA approval messages your flows send all come from notification templates. A notification template is the content Choreo Identity & Access Management sends on one channel: the subject and body of an email, or the body of an SMS. You manage templates in the Console, with no file to touch and no restart.

The content is not fixed text. It carries placeholders that Choreo Identity & Access Management resolves when the message goes out, drawing on translations, the applicable design, and the values the flow produced.

Prerequisites​

  • An administrator account with the system:notificationtemplate permission to change templates, or system:notificationtemplate:view to read them.
  • For delivery, an email provider or SMS provider, selected on the flow's notification step.

Manage Templates​

In the Choreo Identity & Access Management Console, templates are under Notifications, which splits into Email templates and SMS templates. Each page lists the channel's templates by Name.

Create a Template​

  1. Navigate to Notifications → Email templates or SMS templates, and click New template.
  2. If your organization has more than one organization unit, choose the Organization unit that owns the template, and click Continue. You cannot change it after the template is created.
  3. Choose a starting template, or select Start from scratch for an empty template. Click Continue.
  4. Enter a Display name, for example OTP verification, and a Handle, for example otp-verification. The handle can contain only lowercase letters, numbers, hyphens, and underscores, must be unique in the channel, and cannot be changed later. Click Continue.
  5. Write the content: a Subject and a Body for email, or a Body for SMS. For email, choose the Color scheme, Light or Dark. The preview shows the result as you type.
  6. Click Create.

View and Edit a Template​

  1. Open the template from the list.
  2. Edit its display name, description, or content, and, for email, its color scheme. The handle does not change. Check the preview before you save.
  3. Click Save changes, or Reset to discard your edits.

Delete a Template​

  1. In the list, click Delete next to the template.
  2. Confirm in the Delete template dialog. Deleting cannot be undone.

You cannot delete a template that a flow still references. The Console names what depends on it, so you can remove or reassign those references first.

Deploy your changes

Saving a change does not make it live. You author in the control plane, and your users sign in on a separate data plane, so a change takes effect in an environment only after you deploy it. Go to Deploy, deploy the latest version to your first environment, then promote it to the next environment when you are ready.

Auto-sync deploys saved changes to your first environment within seconds. Turning it on is your choice, per project. See Deploy a Version, or learn why you deploy and how auto-sync works.

Writing Template Content​

An email template has a subject and a body; an SMS template has a body only. Each field is text with three kinds of placeholder, which Choreo Identity & Access Management resolves in order, translations first, then design, then the runtime values:

  • {{t(key)}} resolves to translated text from the notification translation namespace, so you author one template rather than one copy per language.
  • {{design(token)}} resolves a design token, such as {{design(palette.primary.main)}}, against the applicable theme. It is allowed only in an email body, never in a subject or in SMS.
  • {{ctx(key)}} resolves to a value the sender supplies at send time, such as {{ctx(otpCode)}}.

The placeholder syntax has a few limits to account for when writing a template:

  • Keys are case sensitive. {{ctx(otpCode)}} resolves; {{ctx(otpcode)}} does not.
  • There are no filters, defaults, conditionals, or loops. Placeholders are substituted as-is, so anything conditional belongs in a different template.
  • Rendering is fail-closed. If a referenced translation key, a {{design(...)}} token, or a {{ctx(...)}} value cannot be resolved, Choreo Identity & Access Management does not send the message and reports the error, rather than delivering it with a raw {{...}} left in place. A typo in a key name stops the send instead of reaching the user.

That last point is why context tokens need care: a {{ctx(...)}} placeholder only resolves if something earlier produced its value, and referencing one that nothing supplies fails the send. The token catalog lists every token you can insert and, for context tokens, which values each scenario guarantees.

Content is also checked when you save it. A malformed or unsupported placeholder, or a {{design(...)}} token in a subject or in SMS, is rejected before the template is stored. This catches syntax and channel mistakes at save time; whether every {{ctx(...)}} value actually resolves is known only at send time, where an unresolved one fails the send as described above.

The Values a Sender Supplies​

The runtime supplies a set of {{ctx(...)}} values, and each sending scenario guarantees at least a few of them. See Context Tokens in the token catalog for the complete list and the per-scenario availability.

These are the values a handle guarantees, not the complete set. A template rendered inside a flow can also use whatever the flow already holds. The recipient's user claims, such as {{ctx(mobile_number)}}, and any runtime data the flow produced are available as {{ctx(...)}} values too. The exception is the standalone SMS OTP endpoint, which runs outside a flow and supplies only otpCode and expiryTime.

In an HTML email body, Choreo Identity & Access Management HTML-escapes each {{ctx(...)}} value before inserting it, so a value that contains < or & reads as text rather than markup. Translation and design results are content you authored, and are not escaped.

Localizing and Theming​

Because copy is written as {{t(...)}} keys rather than literal text, wording stays out of the template and lives in the notification translation namespace. Create and edit those keys from the editor's token panel or the Console Translations page. Choreo Identity & Access Management currently renders every notification in the system default language, en-US, falling back to the nearest available value for a key; sending each recipient their own language is an upcoming enhancement. For email, {{design(...)}} tokens resolve against the chosen theme and color scheme, so a template follows your branding without carrying a copy of it. The token catalog lists the design and translation tokens you can insert.

SMS Length​

An SMS segment holds 160 characters. When a rendered SMS body exceeds that, Choreo Identity & Access Management logs a warning and still sends the message; the provider then splits it into multiple segments, which most providers bill separately.

Write SMS bodies against the rendered length, not the template length. A body that looks short can grow well past 160 characters once a long inviteLink or a long appName is substituted in.

Next Steps​

Was this page helpful?