Skip to content

M4-S2 — Notifications and shared templates

Section titled “M4-S2 — Notifications and shared templates”
ModuleM4 — Run the tenant
After this session you canProvide the shared templates Northwind’s messages use, and answer who gets a message, through which channel, and who to ask when one does not arrive.
TimeFacilitated: 40 min · On your own: 37 min
Before you startM4-S1. ACP M9-S1, where you built an automation that sends a notification.
Go deeperNotifications & email templates · For builders: Reactions & automation

◆ Orientation (1 min) — One look for every message

Section titled “◆ Orientation (1 min) — One look for every message”

Today Northwind’s messages each look different: every builder writes their own. Finance wants every email to carry the same header, and the claim-approved email to read the same whichever automation sends it. In ACP you built one automation that sent a notification. As the administrator, you provide what many automations share.

▤ Concept (5 min) — Channels, templates and recipients

Section titled “▤ Concept (5 min) — Channels, templates and recipients”

Most messages are sent by automations that builders add to applications: they decide when a message goes and to whom. You provide shared templates; the operator connects the services that carry email and text messages.

ChannelWhat people getWho sets it up
In-appA notification under the bell, and a push notification on their phone if they use the mobile appBuilders, in automations
EmailAn emailBuilders send it; you provide shared templates; the operator connects the mail server
Text messageA text messageBuilders send it; the operator connects a text-message provider; until then nothing is sent
WhatsAppA message from an approved WhatsApp templateYou connect the organization’s WhatsApp number; the operator switches real sending on

The platform also sends some messages by itself: the set-password and reset emails, a new API token to the administrator who created it (M1-S1), sign-in codes, and a notice when a background export is ready.

Templates are records of the Templates entity under Administration › Applications › Data Entities; you also reach them under Administration › Interfaces › Templates. A Template Type says what each one is:

Template TypeWhat it is for
EmailA complete email: Subject and Body, optionally a Template Header and Template Footer, and Attachments
Email PartA reusable header or footer that email templates include
NotificationAn in-app notification: a title and its content

Write a placeholder where a value should go, with double curly brackets: {{ requester_name }}. Names use letters, digits and underscores. The builder who uses the template decides which value fills each placeholder, so agree the names with them.

A template is written once and used by many automations: changing it changes every message sent from then on. When you save a template already in use, Osos asks you to confirm. Create headers and footers first, so email templates can pick them.

The builder chooses the recipients in each automation: people, groups, org units, typed-in addresses, or whoever the record points to, such as the requester or the step owner’s manager. Three rules apply whatever they choose:

  • People whose accounts are deactivated receive no email.
  • Someone who would get the same email twice (as a person and as a group member) gets it once.
  • If one recipient cannot be found, the others still get the message.

Delegates get copies. A person with an active delegation that has Forward Notifications or Forward Emails on (M2-S4) has a copy sent to their delegate, for the work the delegation covers. The original recipient still gets theirs.

⛏ Lab (18 min) — Northwind’s header and two templates

Section titled “⛏ Lab (18 min) — Northwind’s header and two templates”

Goal. Give Northwind a shared email header, an approved-claim email that uses it, and a notification template, all with placeholders the builder can fill.

  1. Open Administration › Applications › Data Entities › Templates (or Administration › Interfaces › Templates) and add a record.
  2. Enter the Template Name Northwind email header and the Template Description Header for every Northwind email. Set Template Type to Email Part. In Body, write the content Northwind Logistics · Finance. Select Save.
  3. Add a second record: Template Name Northwind claim approved, Template Description Sent to the requester when Finance approves a claim, Template Type Email.
  4. Under Template Details, enter the Subject and the Body below, and choose Northwind email header as the Template Header. Select Save.
Subject: Your expense claim of {{ claim_amount }} was approved
Dear {{ requester_name }},
Your expense claim "{{ claim_purpose }}" was approved by {{ approver_name }}.
Northwind Finance
  1. Add a third record: Template Name Northwind claim waiting, Template Type Notification, with the title Expense claim waiting for you and the content below. Save.
{{ requester_name }} sent a claim of {{ claim_amount }}. Please review it.
  1. Back in the Templates list, check the three records and their Template Type.
  2. Write down, for the builder, the four placeholder names you used, and what each should hold.
  3. Open Northwind claim approved again. It opens read-only, so select Edit Template (the header button) first. Change one word of its body, and save: read whether Osos asks you to confirm. (It asks only when an automation already uses the template.)

The Templates form for Northwind claim approved, with Template Type Email, the subject and body with placeholders, and Northwind email header chosen as the Template Header What to notice: the header is a separate template, picked here. Change it once, and every email that includes it changes.

Check.

  • Northwind email header exists as an Email Part.
  • Northwind claim approved is an Email with three placeholders in its body and the header chosen.
  • Northwind claim waiting is a Notification.
  • Your note for the builder lists every placeholder with its meaning, and no template holds a secret.

Pass condition. The three templates exist with the right types, the email uses the header, and the builder has your placeholder list.

If something goes wrong

What you seeWhat to do
The header is not offered in Template HeaderIt was not saved as Email Part. Edit its Template Type.
Saving asks “This template is used inside reactions…”An automation already uses it. Confirm only if the change should reach every message it sends.
You are unsure where a placeholder’s value comes fromNowhere yet: the builder fills it when they use the template in an automation. Your list tells them what to put there.
Model answer

Your placeholder list for the builder:

PlaceholderShould hold
{{ requester_name }}The name of the person who sent the claim
{{ claim_amount }}The claim’s Amount
{{ claim_purpose }}The claim’s Purpose
{{ approver_name }}The name of the person who approved it

Why it is built this way: the header is shared, so a new Finance address or logo text is changed in one place. The two message templates carry no names or amounts of their own; the builder fills them from the claim, which is also why nothing secret ever needs to be in a template. No automation uses your templates yet, so step 8 asked for no confirmation: once the builder connects them, it will.

✳ Discussion (13 min) — “The email never arrived”

Section titled “✳ Discussion (13 min) — “The email never arrived””

Three complaints reach you after the builder connects your templates.

  1. “I approved Dana’s claim, but she never got the approved email.” Dana’s account is active.
  2. “I’m covering for Hana, but I don’t get her claim notifications.”
  3. “Nobody at the depot gets the text messages the builder set up.”

With a facilitator. In threes, list for each complaint the first two things you would check and who you would involve (6 min); then compare lists across the room (3 min).

On your own. Write your first two checks for each complaint, then compare with the model answer.

Model answer
  1. First, whether the automation ran and sent it (M4-S3: Reaction Logs), then whether the email left the platform (M4-S3: Logs › Email). If it left, she checks her spam folder. If the automation never ran, the builder checks its conditions. If the text was old, the automation may write its own text instead of using your template: ask the builder.
  2. First, whether the delegation is in effect and has Forward Notifications on (M2-S4); then whether its scope covers the claim service. With Deny All, only what is under Exception is forwarded.
  3. First, whether any text message is sent at all (M4-S3: Logs › Sms); then ask the operator whether a text-message provider is connected. Until it is, nothing is sent.

✓ Practice (4 min) — Check your understanding

Section titled “✓ Practice (4 min) — Check your understanding”
PracticeChoose one answer.

Finance’s new address must appear at the top of every Northwind email. What is the least work?

  1. Explanation for A

    ✗ Incorrect

    Not this one: it is slow, and some automations will be missed. See Shared templates.

  2. Explanation for B

    ✓ Correct

    Correct: every email template that includes the header changes with it. See Shared templates.

  3. Explanation for C

    ✗ Incorrect

    Not this one: the email templates still point at the old header until each one is edited. See Shared templates.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

An automation emails the Northwind Finance group and also Hana by name. Hana is in the group. How many copies does she get?

  1. Explanation for A

    ✓ Correct

    Correct: someone who would get the same email twice gets it once. See Who receives a message.

  2. Explanation for B

    ✗ Incorrect

    Not this one: someone who would get the same email twice gets it only once. See Who receives a message.

  3. Explanation for C

    ✗ Incorrect

    Not this one: both are allowed; the duplicate is simply removed. See Who receives a message.

Check your answer

The correct answer is A. Open the explanation under each option to see why.

PracticeChoose one answer.

A builder wants to put the depot’s door code in a notification template “so drivers have it”. What do you say?

  1. Explanation for A

    ✗ Incorrect

    Not this one: what is sent is visible to whoever receives it or reads the logs; a secret does not belong in any template. See Shared templates.

  2. Explanation for B

    ✓ Correct

    Correct: sent messages are kept in logs that other administrators can read. See Shared templates.

  3. Explanation for C

    ✗ Incorrect

    Not this one: only reset links and API tokens are removed; nothing else. See Shared templates.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

You can provide Northwind’s shared header and message templates with agreed placeholders, say who sets up each channel, predict who receives a message, and know where to start when one does not arrive.

Next. “Where to start” is the next session. In M4-S3 you read the monitoring screens to find out what really happened, using everything you did this week.