Action References
SendPushNotificationAction
SendPushNotificationAction
Purpose
Send a push notification through a configured provider (Firebase, OneSignal, etc.) with dynamic title/body/recipient.
When to use it
- Mobile/web push alerts for workflow milestones.
- Complement to email/SMS for real-time updates.
Key fields
| Field | Type | Description |
|---|---|---|
provider | String | Push provider id (firebase, onesignal, etc.). |
subject | MScript | Notification title. |
body | MScript | Notification body text. |
to | MScript | Device token or user identifier. |
from | MScript | Optional sender/topic. |
Example
{
"id": "a370-push",
"name": "notifyOrderShipped",
"provider": "firebase",
"subject": "`Order shipped`",
"body": "`Order ${this.order.id} is on the way.`",
"to": "this.user.deviceToken"
}
Was this page helpful?
Built with Documentation.AI
Last updated Jan 3, 2026