Events and workflows
Events and workflows are the two core building blocks of Notifizz. Together, they define what happened, what to do about it, and who should know.Events
An event represents something that happened in your application. You define events by giving them a name (a slug) and optional properties.Event properties
Properties are arbitrary key-value pairs that you attach to an event. They are used to personalize notification content in your workflow templates. For example, a{{ trackingUrl }} placeholder in your notification template will be replaced with the value you passed.
Properties can contain any JSON-serializable data: strings, numbers, booleans, nested objects.
Workflows
A workflow (also called a campaign) is a template that defines what notification to send when an event is triggered. Workflows are configured in the Notifizz dashboard and referenced by their ID in your backend code..workflow() calls:
Recipients
Recipients define who receives the notification for a given workflow. Each recipient requires at minimum anid and an email:
Summary
| Concept | What it is | Where it’s defined |
|---|---|---|
| Event | Something that happened in your app | Backend code (client.track()) |
| Workflow | A template for the notification to send | Notifizz dashboard, referenced by ID in code |
| Properties | Data attached to the event for personalization | Backend code (passed to track()) |
| Recipients | Users who should receive the notification | Backend code (passed to .workflow()) |
Next steps
Channels
Learn about the Notification Center and upcoming delivery channels.
Authentication
Secure the connection between your users and the widget.