Module Notifications
A module can tell CX that it has something new for the agent, such as an unread message or an updated record. CX then shows a dot on the module until the agent opens it or the module clears it.
This page is for admins and for the developers who build module content.
Which Modules Can Show Dots
Widget modules and task modules can show dots. Page modules and landing page modules can't.
The module has to send the message itself, so dots only work for content you control: Other widgets and task modules whose Source points at your own page. Connect widgets embed Amazon Connect apps and don't send these messages.
Sending a Notification
From inside the module's iframe, post a message to window.parent:
window.parent.postMessage(
{ source: 'neonnow-cx-module', type: 'UNREAD', priority: 'HIGH' },
'*'
);
| Field | Value | Required |
|---|---|---|
source | Always neonnow-cx-module. | Yes |
type | UNREAD shows the dot. READ clears it. | Yes |
priority | NORMAL or HIGH. Used with UNREAD. | No. Defaults to NORMAL. |
To clear the dot, send READ:
window.parent.postMessage({ source: 'neonnow-cx-module', type: 'READ' }, '*');
Sending UNREAD again replaces the priority of the current dot, for example to change a normal dot to high. An unrecognised priority is treated as NORMAL.
CX only accepts a message from the module's iframe, and only when the message's origin matches the origin of the module's configured Source URL. If the module's page redirects to another domain, or the message is sent from a nested iframe on a different domain, it's ignored.
How Dots Behave
- No dot appears while the module is visible to the agent. An
UNREADsent while the agent is looking at the module is ignored. - Opening the module clears its dot, even if the module never sends
READ. - Dots stay when the agent moves between pages in CX.
- Task module dots belong to the module, not to the contact. A dot on a task module shows on that module's tab in whichever task the agent has open.
What Agents See
A filled dot means high priority and an outlined dot means normal priority. The tooltip says "High priority" or "Normal priority". On a tab or the Widgets button, it follows the name, for example "Widgets · High priority".
Dots appear on:
- module tabs, in the widgets panel and in the task view
- items in the … overflow menu, when there are more tabs than fit
- the minimised task modules column in the Workspace
- the Widgets button in the Workspace header, when the widgets panel is closed
The … overflow menu, the minimised column and the Widgets button each stand for several modules. They show a single dot with the highest priority among those modules, so one high-priority module makes the dot filled.