
OneSignal REST API
Your AI agent does not just talk, it takes action. When a customer interaction requires a follow-up notification, the agent fires a push message through OneSignal on the spot. Order updates, appointment reminders, and promotional alerts go out without anyone pressing send.




Your AI agent orchestrates push notifications, manages subscriber devices, and segments audiences through OneSignal's REST API, all triggered by real-time conversation context.
OneSignal REST API
Real scenarios where AI-driven conversations trigger targeted push notifications through OneSignal, closing the loop between customer engagement and re-engagement.
A customer confirms a shipping address change through your AI chatbot. The agent updates the order in your system, then immediately sends a push notification through OneSignal confirming the address was changed, with a deep link to track their package. The customer receives confirmation on their phone within seconds, even after closing the chat.
A shopper asks about a product but leaves the chat without purchasing. Your AI Agent notes their interest, creates a targeted push notification in OneSignal with a personalized product recommendation and a limited-time discount, and schedules it for delivery 2 hours later. The shopper returns and converts. Cart abandonment drops measurably.
A customer reports a critical production issue through the chatbot at 3 AM. Your AI Agent cannot resolve it automatically, so it creates a high-priority push notification through OneSignal targeting the on-call engineering segment. The notification includes the issue summary and a direct link to the support ticket. Response time drops from hours to minutes.

OneSignal REST API
FAQs
The agent uses OneSignal's Create Notification endpoint, specifying the target audience via segments or player IDs, the message content per language, optional headings, and scheduling parameters. You can configure the agent to send notifications based on conversation triggers like order confirmations, preference changes, or support escalations.
Yes. Configure your agent with rules about which notification types are permitted. You might allow transactional notifications like order updates and appointment reminders while requiring human approval for promotional campaigns. The agent respects whatever guardrails you set around notification content and frequency.
Tars requires your OneSignal App API Key, found in the OneSignal dashboard under Settings, then Keys and IDs. This key authenticates REST API requests for your specific app. Keep the key secure and avoid sharing it. You can regenerate it from the OneSignal dashboard if needed.
No. Device information, segment data, and notification history are queried from OneSignal in real-time during conversations. Tars does not maintain a copy of your subscriber database. All data lives in your OneSignal account and is fetched live when the agent needs it.
Yes. The Create Notification endpoint supports targeting by included_segments such as All, Active Users, or any custom segment you have defined in OneSignal. The agent can also target individual devices by player ID or apply advanced filters based on tags, location, and activity.
The dashboard requires manual creation of each notification. With Tars, notifications are triggered automatically based on conversation context. A customer confirms an order and the push goes out. A lead qualifies and a follow-up notification schedules itself. No one needs to open the OneSignal dashboard for routine messaging.
Yes. The Create Notification endpoint supports a send_after parameter in ISO 8601 format, as well as delayed_option for timezone-based or last-active-based delivery. The agent can schedule a notification during a conversation to be delivered hours or days later.
The agent can check delivery status by reviewing notification records through the View Notifications endpoint. If a notification was not delivered due to invalid device tokens or disabled subscriptions, the agent can identify the issue, update the device record, and attempt redelivery or notify the support team.
Don't limit your AI Agent to basic conversations. Watch how to configure and add powerful tools making your agent smarter and more functional.

Privacy & Security
At Tars, we take privacy and security very seriously. We are compliant with GDPR, ISO, SOC 2, and HIPAA.