> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/complaints-management/access/management-console-guide/notifications.md).

# Notifications

## Overview

CMS sends an SMS, WhatsApp message or email whenever something important happens to a complaint, so citizens and staff don't have to check the app. In CMS 2.20, you set all of this up yourself in the Configurator → Notifications

#### Before you start

You need three things: an admin login, a provider account for each channel you want, and notifications switched on for your deployment.

* An admin role. To add providers, send tests or change channels, you need MDMS\_ADMIN, ACCOUNT\_ADMIN or SUPERUSER system roles held at the level of your account. If you signed up for your own workspace, you already have this. Anyone else with notification access sees the screens read-only.
* Provider details ready. Keep the login details from your SMS, WhatsApp or email provider to hand (the fields for each are listed in Step 1 below).
* Notifications enabled on the server. If the Notifications menu is missing from the Configurator, ask your platform administrator to deploy with enable\_novu: true. This is a one-time job.

Signed up for your own workspace? It starts with all the default messages and settings already in place. You only need to add a provider and switch the channel on. Your provider details are kept in your workspace's own account, and no other workspace can see or use them.

#### Who gets what, out of the box:

<table><thead><tr><th width="238.6328125">Who</th><th>When they get a message</th></tr></thead><tbody><tr><td>Citizen who raised the complaint</td><td>Complaint is filed, assigned, reassigned, rejected, resolved or reopened</td></tr><tr><td>Employee handling it</td><td>Complaint is assigned to them, or a citizen rates their work</td></tr></tbody></table>

Three channels, each independent. You can turn on one, two or all three.

<table><thead><tr><th width="123.14453125">Channel</th><th>What you need from outside CMS</th></tr></thead><tbody><tr><td>SMS</td><td>An account with Twilio, SMSCountry, or your own Ozeki or Jasmin SMS gateway. In India, your messages must also be DLT-registered</td></tr><tr><td>WhatsApp</td><td>A Twilio account with a WhatsApp sender and message templates approved by Meta. Approval takes time, so start early</td></tr><tr><td>Email</td><td>Any email (SMTP) mailbox. Gmail or Microsoft 365 need an app password, not your normal password</td></tr></tbody></table>

Messages go out in English by default. Citizen messages also ship in Hindi, and you can add any language you serve.

#### How it works

Every time a complaint moves forward, CMS runs four checks. A message goes out only if all of them pass.

<div align="left"><img src="https://2002286464-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK894BCuKVRy7QDBs06em%2Fuploads%2F8jAT9kVO2PzE0Ix861z3%2Funknown.png?alt=media&amp;token=3130dcf7-4bac-49c1-b291-55278ea86304" alt="" height="201" width="602"></div>

If any check fails, CMS doesn't guess: it skips the message and writes the reason on the Logs screen, so you can see exactly what to fix.

## Steps

For each channel: add a provider, switch the channel on, then send a test. Log in at your state tenant (or your workspace) before you start.

### Step 1: Add a provider

A provider is the company that actually delivers your messages, such as Twilio or your email host.

1. Go to Notifications → Providers and click Add Provider.
2. Pick the provider type and give it a name you'll recognise. Example: "Nairobi SMS".
3. Fill in the fields below and click Create Provider.

<table><thead><tr><th width="154.859375">Provider type</th><th width="141.86328125">Channel</th><th>What to enter</th></tr></thead><tbody><tr><td>Twilio SMS</td><td>SMS</td><td>Account SID (starts AC), Auth token, From number with country code (e.g. +14155238886)</td></tr><tr><td>Twilio WhatsApp</td><td>WhatsApp</td><td>Account SID, Auth token, WhatsApp sender (e.g. whatsapp:+14155238886)</td></tr><tr><td>Email (SMTP)</td><td>Email</td><td>SMTP host, port, username, password, From address, From name, and "Use TLS on connect"</td></tr><tr><td>SMSCountry</td><td>SMS</td><td>Panel username, panel password, registered sender ID. Only the older bulk API works, not the AuthKey/AuthToken REST API</td></tr><tr><td>Ozeki SMS Gateway</td><td>SMS</td><td>HTTP API URL, username, password, sender ID (optional)</td></tr><tr><td>Jasmin SMS Gateway</td><td>SMS</td><td>Send URL, username, password, sender ID (optional)</td></tr></tbody></table>

Email tips:

* Gmail and Microsoft 365 reject your normal password. Create a 16-character app password in your account's security settings and use that.
* Port 587: leave "Use TLS on connect" unticked. Port 465: tick it. Getting this wrong makes sending hang or fail.

Your credentials are stored securely in the delivery service. They are never shown again on screen or written to the logs.

### Step 2: Switch the channel on

1. Go to Notifications → Channels.
2. On the SMS, WhatsApp or Email card, choose the provider you just added.
3. Click Enable.

The change takes effect within about a minute. The card then tells you in plain words whether everything is working:

<table><thead><tr><th width="349.80859375">The card says</th><th>What to do</th></tr></thead><tbody><tr><td>"on and delivering through your provider"</td><td>Nothing. You're done</td></tr><tr><td>"is off"</td><td>Click Enable once a provider is added</td></tr><tr><td>"on but no provider is configured"</td><td>Go back to Step 1 and add one</td></tr><tr><td>"on but no provider is selected"</td><td>Choose a provider on the card</td></tr><tr><td>"selected provider … no longer exists / is disabled"</td><td>Re-enable that provider or choose another</td></tr></tbody></table>

Each channel uses one provider at a time. Choosing a new one replaces the old. All cities in your state or workspace share the same provider.

### Step 3: Send a test

1. On Providers, click Test on your provider's row.
2. Enter a phone number or email address you're allowed to message, then click Send Test.
3. Check that the message arrives, then click View Notification Logs to see the record.

A test is a real message, so it proves your provider details are correct. If nothing could deliver it (for example, the provider is switched off), CMS refuses the test and tells you why instead of pretending it worked.

Final check: file a test complaint and move it through a few steps. Make sure the messages actually arrive on a phone or in an inbox.

#### Change who is told and what they read

Use Notifications → Configure for all day-to-day changes. Pick the Complaints module, then for each event choose who gets a message, on which channel, and edit the wording.

The default wording is deliberately plain: no signature, no honorific, no office name. Add your own organisation name, helpline number or sign-off so citizens know the message is genuine.

#### Choose who receives a message

For each event, you pick an audience and a channel. For example: "when a complaint is resolved, tell the citizen by SMS".

<table><thead><tr><th width="238.5234375">Audience option</th><th>Who it reaches</th></tr></thead><tbody><tr><td>A person on the complaint</td><td>The citizen who filed it, or the employee it's assigned to</td></tr><tr><td>Everyone with a role</td><td>Every user holding that role in your tenant, for example all supervisors</td></tr><tr><td>Fallback</td><td>"Try this person; if there's nobody, try that one". Add it with + add a fallback</td></tr></tbody></table>

If someone qualifies through two audiences, they still get only one message per channel.

#### Edit the wording with placeholders

Placeholders are words in curly braces that CMS fills in when it sends. Use single braces: {id}, not {{id}}.

Example SMS: Your complaint {id} about {complaint\_type} has been resolved by {emp\_name}. Call 1800-XXX for help.

Becomes: Your complaint PG-PGR-2026-10-27-001234 about Streetlight not working has been resolved by Asha Kumar. Call 1800-XXX for help.

<table><thead><tr><th width="205.14453125">Placeholder</th><th width="300.71484375">Fills in</th><th>Left empty when</th></tr></thead><tbody><tr><td>{id}</td><td>Complaint number</td><td>Never</td></tr><tr><td>{complaint_type}</td><td>Complaint category</td><td>Never</td></tr><tr><td>{status}</td><td>Current status</td><td>Before the first step</td></tr><tr><td>{date}</td><td>Date filed (dd/mm/yyyy)</td><td>Never</td></tr><tr><td>{citizen_name}</td><td>Citizen's name</td><td>Filed without a name</td></tr><tr><td>{emp_name}</td><td>Assigned employee's name</td><td>Not assigned yet</td></tr><tr><td>{emp_department}</td><td>Employee's department</td><td>Not assigned yet</td></tr><tr><td>{emp_designation}</td><td>Employee's designation</td><td>Not assigned yet</td></tr><tr><td>{additional_comments}</td><td>The employee's comment on this action</td><td>No comment given</td></tr><tr><td>{rating}</td><td>Citizen's rating, 1 to 5</td><td>Not rated yet</td></tr><tr><td>{ulb}</td><td>City or district</td><td>No district on the address</td></tr><tr><td>{download_link}</td><td>Short link to the app</td><td>Link service unavailable</td></tr></tbody></table>

The Events screen lists exactly which placeholders each event can fill. A placeholder with no value is sent as it's typed (the citizen sees {emp\_name}), so don't use {emp\_name} on "complaint filed": nobody is assigned yet.

Channel differences:

* SMS: one SMS holds 160 plain characters. A single special character (Hindi script, curly quotes, accents, emoji) drops that to 70, so long messages cost several SMS.
* Email: has a subject and a body. A blank subject becomes "Complaint number".
* WhatsApp: your wording here is not what's sent (see below).

### Add a language

Add a template in the new language next to the English one. Every message must keep an English version: it's the fallback for anyone whose language has no template. Citizens only get their own language if your deployment lets them choose one on their profile (off by default; ask your technical team).

### Set up WhatsApp messages

WhatsApp only sends message templates that Meta has approved in advance. The ones shipped with CMS belong to a demo account and won't work on yours.

1. In Twilio, create and submit your own templates, with variables in the same order as your message. Wait for Meta's approval.
2. In Providers, click Sync WhatsApp templates. CMS matches the approved templates to your messages. Review and save the ones you want.
3. Check them in Configure, then test with a real complaint.

Until this is done, WhatsApp messages are skipped, and the log says why.

### Save&#x20;

Every save is checked first. Mistakes that would break a message block the save, for example, a missing English version or {{id}} with double braces. Smaller issues only warn, and the save goes ahead, for example, a misspelt placeholder or a long SMS. Click Validate at any time to check everything at once.

#### Change the sign-in code (OTP) message

At the bottom of Configure, Login and registration OTP (SMS) edits the text of login, registration and password-reset codes. Keep %s exactly once: it's where the code goes. This applies only where your deployment uses DIGIT's older OTP service. Citizen sign-in in 2.20 doesn't send codes through notifications yet.

### Check what was sent: the Logs screen

Notifications → Logs records every message CMS tried to send, including the ones it decided not to send and why. Filter by complaint number, channel, status or test sends. Phone numbers and email addresses are partly hidden (+\*\*\*678, c\*\*\*@[example.org](http://example.org)).

<table><thead><tr><th width="200.8125">Status</th><th>What it means</th></tr></thead><tbody><tr><td>Sent</td><td>The provider accepted the message. It doesn't prove it arrived</td></tr><tr><td>Delivered / Bounced</td><td>The provider confirmed delivery, or that it bounced. Only shown where your provider reports back and this is set up</td></tr><tr><td>Failed</td><td>The provider refused it. The reason is in the Error column</td></tr><tr><td>Skipped</td><td>CMS deliberately didn't send it. The reason code tells you why (see Troubleshooting)</td></tr><tr><td>Rejected</td><td>The event itself was faulty. Report it to your technical team</td></tr></tbody></table>

Two things to know: Twilio messages stay "Sent" even when delivered, and CMS never retries. A skipped or failed message is not resent later, even after you fix the cause.

### Troubleshooting

Start on the Logs screen: a skipped message's reason code usually names the fix.

<table><thead><tr><th width="224.1796875">You see</th><th width="294.47265625">Why</th><th>Fix</th></tr></thead><tbody><tr><td>Nothing arrives on any channel; Logs full of NB_NO_PROVIDER</td><td>The channel is switched off. Channels start off</td><td>Channels → Enable</td></tr><tr><td>NB_PROVIDER_UNAVAILABLE</td><td>No provider added, or the chosen one was deleted, switched off, or is for another channel</td><td>Add or re-enable a provider, then choose it on Channels</td></tr><tr><td>NB_TEMPLATE_NOT_APPROVED</td><td>WhatsApp message has no approved template</td><td>Follow "Set up WhatsApp messages" above</td></tr><tr><td>NB_NO_TEMPLATE</td><td>No wording for this message, in the person's language or in English</td><td>Add the template on Configure</td></tr><tr><td>NB_NO_ROUTING</td><td>Nobody is set to receive this event</td><td>Add an audience for the event on Configure</td></tr><tr><td>NB_NO_RECIPIENTS</td><td>The chosen role has no users in this tenant</td><td>Assign the role, or choose another audience</td></tr><tr><td>NB_CONTACT_MISSING</td><td>The person has no phone number or email on record</td><td>Update their profile, or use another channel</td></tr><tr><td>NB_CONTACT_INVALID</td><td>Phone number has no country code and none is configured</td><td>Set the mobile number rule (Configurator → Mobile Number Validation)</td></tr><tr><td>NB_PREFERENCE_DENIED</td><td>The person hasn't agreed to messages on this channel</td><td>Nothing; this is working as intended</td></tr><tr><td>Status "Sent" but nothing arrives</td><td>The provider dropped it after accepting it</td><td>Check the provider's own delivery report: sender ID, India DLT registration, blocked numbers, or spam folder for email</td></tr><tr><td>A message shows {emp_name} literally</td><td>That placeholder has no value for this event</td><td>Use only placeholders the Events screen lists for it</td></tr><tr><td>Can't switch a channel on (buttons greyed out)</td><td>You're logged in at a city</td><td>Switch to the state tenant</td></tr><tr><td>"This needs one of these roles held at a state tenant"</td><td>Your admin role is only at a city, or missing</td><td>Ask for an admin role at the state tenant</td></tr><tr><td>Can't delete or disable a provider</td><td>A channel still uses it</td><td>Choose another provider on Channels first</td></tr><tr><td>Banner "not been migrated yet"</td><td>Your tenant still uses its 2.12 settings, shown read-only</td><td>Ask your technical team to run the migration</td></tr></tbody></table>

#### Common questions

Can I use two SMS providers, or have one take over if the other fails? No. Each channel uses one provider at a time, with no automatic failover. If a provider goes down, choose another on Channels.

Can one city use a different provider from the rest of the state? No. Every city follows its state's or workspace's choice.

Will messages that were skipped be sent once I fix the problem? No. Only new events after the fix are sent.

Can other workspaces see my provider passwords? No. A workspace's credentials sit in its own account. Nobody can read them back, including you.

Why does the Logs screen show "Sent" for messages that never arrived? "Sent" means the provider accepted the message. Real delivery confirmation needs your provider to report back, which your technical team sets up.

We're in India. What extra do I need for SMS? Register every message with DLT against your sender ID, once per language. Replace each {placeholder} with {#var#} when you register. Unregistered messages are accepted, then silently dropped.

### Glossary

<table><thead><tr><th width="155.3359375">Term</th><th>Meaning</th></tr></thead><tbody><tr><td>Provider</td><td>The company or gateway that delivers the message (Twilio, SMSCountry, your email host)</td></tr><tr><td>Channel</td><td>How a message travels: SMS, WhatsApp or email</td></tr><tr><td>Event</td><td>Something that happened to a complaint that may need a message, for example "assigned"</td></tr><tr><td>Audience</td><td>Who an event's message goes to</td></tr><tr><td>Template</td><td>The wording for one event, audience, channel and language</td></tr><tr><td>Placeholder</td><td>A word in braces, like {id}, replaced with real details when sent</td></tr><tr><td>Tenant</td><td>One customer's setup, such as a state and its cities. Notification settings live at the top (state) level</td></tr><tr><td>Workspace</td><td>A tenant created through self-serve sign-up</td></tr><tr><td>Skipped</td><td>CMS chose not to send, and recorded why</td></tr><tr><td>OTP</td><td>A one-time code texted for sign-in, registration or password reset</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.digit.org/complaints-management/access/management-console-guide/notifications.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
