Experience Notifications

*此內容很快就會推出您所選的語言版本。

Experience Notifications are a way for opted-in users age 13+ to keep up with their favorite experiences through timely, personalized notifications. As the developer, you can determine what kinds of in‑experience activities are most important to notify your users about, as well as define the notification content.

Example notification
Example notification

The Experience Notification system features the following:

  • Customizable Notifications with Parameters — Full flexibility to customize the notification message with parameters, for example:

    Your gold goose egg has hatched!

    Allie @LaterSk8er1 just beat your record on the Tokyo Tour track!

  • Launch Data — Include optional launch data that can be read through Player:GetJoinData() when the notification recipient joins. This could involve routing a user to a coordinate location or personalizing their joining experience.

  • Analytics Support — Track your reachable audience and the performance of your notifications in the Creator Dashboard.

Eligibility Requirements

In order to use the APIs to send notifications, the experience must meet the following base criteria:

  • Minimum 100 visits since launch.
  • The experience must not be under moderation.
  • You as the developer must have permission to manage the experience.

Usage Guidelines

Notifications should be personalized to the receiver and should be based on in‑experience activity that's specifically relevant to the user. Inversely, notifications should not be of a generic, advertising nature.

Ideally, notifications should also alert users of something they can take immediate action on. Avoid purely informational notifications that do not prompt a direct response or action.

All notification content and behaviors are subject to Roblox's Community Standards and platform‑wide text filtering, regardless of your experience's age guidelines. This means that if your experience is a 17+ experience, your notifications are still subject to the platform‑wide standards, not the 17+ Policy Standards.

Notification content is not permitted to incorporate dark patterns or other tactics that manipulate or deceive users into making choices they don't intend, or which may be counter to their best interests. This could include the following:

  • Disguised Ads — Notifications that are intentionally disguised as organic content, but are actually advertising. For example, assume that clicking the following notification leads to Petz World but no "important information" is displayed.

  • Time Pressured Actions — Notifications that pressure users into clicking, subscribing, consenting, or purchasing through applying false time pressure.

  • Bait-and-Switch with Free Items or Other Rewards — Notifications that falsely tell users that they'll receive something for free when it's not. For example, upon clicking the following notification, it becomes clear that something further is required to get the gift.

  • Tricking Users Into Purchasing — Notifications that trick users into making unintended purchases. For example, assume that clicking the following notification leads directly to a purchase system pre‑loaded with items that the user didn't choose to buy.

Experiences should not require users to turn on notifications in order to participate or advance in gameplay.

Implementation

Implementing Experience Notifications begins with creating a notification string. Once a notification string is set up, you can send notifications with optional custom parameters.

Alternatively, you can use the Engine API to trigger notifications through server-side scripts.

Creating a Notification String

As with Player Invite Prompts, you must create and edit your notification strings in the Creator Dashboard. There is no default Experience Notification string, so this step is required.

  1. Navigate to the Creator Dashboard.

  2. Similar to badges, notification strings are tied to a specific experience. Locate that experience's thumbnail and click on it.

  3. In the left column, under Engagement, click Notifications.

  4. In the center region, click the Create a Notification String button.

  5. Fill in an identifier name (only visible to you) and the custom notification string; this is limited to 99 characters and can include unlimited custom parameters. Notifications will automatically use the title of your experience as the notification title, but you can additionally use {experienceName} to reference your experience in the notification body text.

    Example notification strings:

    You're {numQuests} quests away from completing the weekly challenge!

    Your {eggName} hatched! Come meet your new pet.

    You won {numRaces} races this week and unlocked the {racetrackName} track!

    {userId-friend} just beat your record on the Tokyo Tour track! Time for revenge?

  6. When ready, click the Create Notification String button.

  7. On the notifications page, click the button for the notification and select Copy Asset ID.

  8. Use the copied ID for the messageId key value in the payload table as demonstrated in the example script.

Sending an Experience Notification

The UserNotification API lets you send Experience Notifications to users. Before using it, you must generate an API key or configure OAuth 2.0 for your app. The examples on this page use API keys.

Notifications will be delivered to opted-in users age 13+ through their Roblox notification stream, at which point they can join the experience directly via the Join button on the notification and spawn according to your launch data.

Notifications stream on the Roblox app

To send an Experience Notification to a user:

  1. Copy the API key to the x-api-key request header of the Create User Notification call.

  2. In your request:

    1. Copy the notification string asset ID as the value of the payload.message_id property.
    2. Set payload.type to "MOMENT".
    3. Set source.universe to be the universe resource URL "universes/${UniverseID}".
Send an Experience Notification

curl --location 'https://apis.roblox.com/cloud/v2/users/${UserId}/notifications' \
--header 'x-api-key: ${ApiKey}' \
--header 'Content-Type: application/json' \
--data '{
"source": {
"universe": "universes/${UniverseID}"
},
"payload": {
"message_id": "${AssetID}",
"type": "MOMENT"
}
}'

Example response which returns the notification ID in the id field:


{
"path": "users/505306092/notifications/6ca4d981-36fa-4255-82a1-14d95c116889",
"id": "6ca4d981-36fa-4255-82a1-14d95c116889"
}

Customizing Notifications Using Parameters

To customize the notification for each recipient, you can include parameters in the notification string, then customize the parameters when calling the API. For example, you can define the notification string as:

{userId-friend} beat your high score by {points} points! Time to level up?

Then, set the userId-friend and points parameters in the script:

Customize Notification Using Parameters

curl --location 'https://apis.roblox.com/cloud/v2/users/${UserId}/notifications' \
--header 'x-api-key: ${ApiKey}' \
--header 'Content-Type: application/json' \
--data '{
"source": {
"universe": "universes/${UniverseID}"
},
"payload": {
"message_id": "${AssetID}",
"type": "MOMENT",
"parameters": {
"userId-friend": {"int64_value": 3702832553},
"points": {"string_value": "5"}
}
}
}'

Including Launch and Analytics Data

To further improve user experience, you can include launch data in the notification, useful for scenarios such as routing users to a coordinate location or personalizing the joining experience. Additionally, you can include analytics data to segment the performance of different categories of notifications.

Include Launch Data and Analytics Data

curl --location 'https://apis.roblox.com/cloud/v2/users/${UserId}/notifications' \
--header 'x-api-key: ${ApiKey}' \
--header 'Content-Type: application/json' \
--data '{
"source": {
"universe": "universes/${UniverseID}"
},
"payload": {
"message_id": "${AssetID}",
"type": "MOMENT"
},
"join_experience": {
"launch_data": "Test_Launch_Data"
},
"analytics_data": {
"category": "Test_Analytics_Category"
}
}'

Delivery System

A spam prevention system exists to ensure the quality of notifications for users and protect the shared notification channel for all developers. Because of this, delivery of notifications is not guaranteed. This spam prevention system is directly informed by user engagement: the more users engage with your notifications, the more reach they'll receive. You can transparently track engagement metrics in the analytics dashboard, as explained below.

Experience Notifications have a static throttle limit where each user can receive one notification per day from a given experience and you'll receive transparent feedback when a user's throttle limit is reached.

Additionally, the following list outlines some of the special cases which may result in non‑delivery of a notification:

  • Experience eligibility requirements are not met.
  • Recipient is not opted in to notifications from your experience.
  • Recipient's throttle limit for your experience has been reached.
  • Recipient's aggregate daily throttle limit has been reached.
  • Missing or invalid request parameters.
  • Notification string was moderated.
  • For notifications with user mentions, non-delivery occurs if either of these conditions are met:
    • The receiver and mentioned user are not friends.
    • The mentioned user has No selected for "Update friends about my activity?" under Privacy → Other Settings in their Roblox account settings.

Analytics

Performance of your notifications and notifiable audience are displayed in the Analytics tab of the Notifications page where you configure notification strings (simply tab from Creations to Analytics).

  1. Navigate to the Creator Dashboard.

  2. Similar to badges, notification strings are tied to a specific experience. Locate that experience's thumbnail and click on it.

  3. In the left column, under Engagement, click Notifications.

  4. On the target page, click the Analytics tab to switch to the analytics dashboard.

Notifications Summary

The summary section serves as a snapshot of the aggregate performance of your notifications. A minimum of 100 aggregate impressions is required to display the performance statistics.

StatisticDescription
Opted-in UsersThe total number of users that have turned on notifications for your experience. Please note that this does include users under the age of 13 who are only able to receive notification of experience updates, not personalized experience notifications.
ImpressionsThe total number of user impressions all of your notifications have received in aggregate.
ClicksThe total number of clicks all of your notifications have received in aggregate.
CTRThe rate at which users are clicking on your notifications, calculated as the ratio of clicks to impressions.
Turn OffThe rate at which users are turning off notifications for your experience directly from your notifications, calculated as the ratio of turn off actions to impressions.
DismissThe rate at which users are dismissing your notifications, calculated as the ratio of dismiss actions to impressions.

Itemized Stats

The Experience Notifications table displays detailed performance statistics for each notification with at least 100 impressions, ordered by the date of first impression for that notification.

The Name column is the key identifier for the notification. By default, the name matches the identifier name you specified when creating the notification string, but you can override it through the category field in your API calls, in which case category overrides the name. Changing the string name in the Creator Dashboard or changing the string your message ID references in the API call will generate a new row in the table.

If you'd like to A/B test the performance of different strings, it's recommended that you create an entirely new notification string with a similar name, for example:

  • EggHatchA — "Your gold egg has hatched! Come meet your new pet."
  • EggHatchB — "It's hatching time! Come meet your new pet."