Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Notifications

How OpenG2P sends notifications. Product services emit business events. The Connector delivers these events to the Notification Provider, which handles notification workflows, channel orchestration, a

How OpenG2P Sends Notifications: Product services emit business events. The Connector delivers these events to the Notification Provider, which handles notification workflows, channel orchestration, and the in-app inbox. The client package consumes the in-app inbox state and exposes it to OpenG2P user interfaces.

Two libraries live in OpenG2P/notifications. The connector and the client package talk to the notification provider. The default system is self-hosted Novu. Its install, workflow seeding, and email and SMS channel notes are in Novu.

Piece
What it is

The connector/ library in OpenG2P/notifications. A service uses it to send a notification.

The client/ library in the same repository. A UI uses it to show the inbox.

Workflows, channel steps, retries, and inbox state. Novu is the built-in notification provider.

The connector and the client do not import each other. Replacing the notification provider does not change Registry or AWE call sites, and it does not change the Inbox component.

Design at a glance

Piece
What it does

Product service

Decides that something happened, who should hear about it, and which payload fields to send

Connector

Maps the event key to a notification provider workflow id and calls send or send_bulk

Notification provider

Runs the workflow: in-app, email, SMS, retries, and inbox state

Client

Lists the inbox and opens the live socket. It does not send

NOTIFICATION_WORKFLOWS is the allow-list. An event key that is missing from that map is not sent. An empty map sends nothing. NOTIFICATION_ENABLED=false skips every send even when the map lists the event.

A send that fails is logged and swallowed. The change request, the intake submission, the export, and the approval still succeed.

Who reads which page

You are
Start here

Adding notifications to a new service and its UI

Adding a send to a service

Putting the bell in a UI

Wiring Helm for Registry or AWE

Installing Novu or seeding workflows

Adding an email or SMS integration

Changing who receives a registrant email

Replacing the notification provider

Checking why one event is silent

Last updated

Was this helpful?