Build Sub Alert
The Build Sub Alert node constructs a subscription alert object by assembling individual input values into a single SubAlert object. Use this when you want to customize the data that appears in a subscription alert, such as modifying the message, adjusting the displayed month count, or pulling subscriber info from different sources.
After building the alert object, connect it to an Activate Sub Alert effect node to display it on your overlay.
Inputs
| Name | Type | Description |
|---|---|---|
User | string | The display name of the subscriber |
Tier | string | The subscription tier (e.g., "1", "2", "3") |
Months | number | The number of months the viewer has been subscribed |
Message | string | The subscription message from the viewer |
Outputs
| Name | Type | Description |
|---|---|---|
Alert | SubAlert | The assembled subscription alert object, ready to be activated |
Example
You want to create a resub alert that includes a custom congratulatory message based on how many months the viewer has been subscribed. Use the sub trigger to get the viewer's data, pass the months through a Generate Text node to build a message like "12 months strong!", and wire everything into the Build Sub Alert node. Connect the output to an Activate Sub Alert effect to display it.