Prompt
Need push notifications with templates and personalization
Latest observation
Oct 14, 2026
OpenAI APIWeb search: off
Absolutely — push notifications can support both templates and personalization. A good setup usually looks like this:
1) Template system
Create reusable notification templates for common events, for example:
- Welcome
- Order shipped
- Password reset
- Back in stock
- Abandoned cart
- Price drop
Each template can contain variables like:
{{first_name}}{{order_id}}{{product_name}}{{discount}}
Example: Template
Hi {{first_name}}, your order {{order_id}} has shipped and will arrive soon.
2) Personalization
Populate templates dynamically based on user data and behavior:
- Name
- Location
- Purchase history
- Browsing activity
- Preferences
- Time zone
- Language
- Device/platform
Example personalized push:
Maya, the sneakers you viewed are now 15% off.
3) Segmentation
Send different templates to different groups:
- New users
- Active buyers
- Inactive users
- High-value customers
- Users interested in a specific category
4) Trigger-based sending
Notifications work best when triggered by events:
- User signs up
- Item left in cart
- Order status changes
- Product restocked
- User hasn’t opened the app in 7 days
5) Best practices
- Keep titles short and clear
- Personalize only when it adds value
- Avoid overusing the user’s name
- Add fallback values for missing data
- Respect time zones and preferences
- Allow opt-outs
Example template format
{
"title": "Hi {{first_name}}, your order is on the way",
"body": "Order {{order_id}} shipped today and should arrive by {{delivery_date}}.",
"deep_link": "/orders/{{order_id}}"
}
Example rendered notification
{
"title": "Hi Maya, your order is on the way",
"body": "Order #12345 shipped today and should arrive by Friday.",
"deep_link": "/orders/12345"
}
If you want, I can also help you with:
- A database schema for push templates
- API design for sending personalized pushes
- Example implementation in Node.js / Python / Firebase / OneSignal