If you’re building web or mobile apps, you already know the struggle of user retention. You spend months perfecting the frontend architecture, but keeping users engaged requires a constant stream of fresh, relevant push notifications.
Writing daily marketing copy is tedious, and hardcoding notification logic or integrating bulky third-party SDKs is the last thing any developer wants to do. My team and I ran into this exact bottleneck, so we built a solution: PushPilot.
PushPilot is an AI-powered campaign builder that hooks directly into Firebase or OneSignal to write, schedule, and send notifications entirely on autopilot.
In this tutorial, I’ll show you how to set up an AI-driven push notification pipeline in just a few minutes—without changing a single line of your core business logic.
Prerequisites
- An existing app (Web, iOS, Android, etc.).
- An active Firebase project with Cloud Messaging (FCM) enabled.
- A free PushPilot account.
Step 1: Connect Your Firebase Project
As developers, we want to keep our bundle size light. PushPilot is built to be native to your existing push provider, meaning no heavy third-party SDKs are required.
- Navigate to Integrations > Firebase in your PushPilot dashboard.
- Click Add Project.
- Upload your Firebase service account JSON (you can download this from your Firebase Console under Project Settings -> Service Accounts).
- Your project (e.g., your Web app) will now show as connected with a green checkmark.
Crucial Dev Note: Make sure your frontend application is actually subscribing users to an FCM topic during initialization. For example, if you want to broadcast to everyone, ensure you are calling something like
subscribeToTopic("all")in your app code so PushPilot has a destination to route to!
Step 2: Build the Campaign via AI Chat
Forget about manual forms, complex scheduling logic, or A/B testing copy. PushPilot uses a conversational AI interface to handle the setup.
- Go to the Campaign Builder tab.
- Select your target project and topic (e.g., the
alltopic for your web project). - Chat with the AI to describe your campaign. For example, you can ask it to set up a "Summer Referral Program" that sends one notification every morning at 9:00 AM.
- The AI will summarize your schedule and prompt you to choose a Notification Style right in the chat flow. You can select:
- Text Only (Simple title and body)
- With Image (Includes an AI-generated eye-catching image)
- Deep Link (Routes the user to a specific page in your app)
- As you build the campaign, you can view a live Sample Preview on the right side of the screen to see exactly how the AI's tone and formatting will look on a device (Morning, Afternoon, and Evening variants).
- Click Confirm Style.
Step 3: Monitor the Auto-Pilot Delivery
Once you confirm the style, the AI instantly generates the entire lifecycle of the campaign and handles the delivery. You don't have to manually write a single message.
Navigate to the Campaigns tab to view your live dashboard. Here, you get a bird's-eye view of the automation:
- The Analytics: See your Total Planned notifications (e.g., 29), alongside how many have been Sent, Pending, or Failed.
-
The Notification Queue: You can see the exact copy the AI generated for each day. For a referral program, it might generate unique variations like:
- "Get $10 for every friend you invite! 💸" (Scheduled)
- "Give a Free Month, Get $10! 🎁" (Scheduled)
- "Give a free month, get $10 back! 🤝" (Sent)
- Campaign Details: A quick summary of your duration, frequency, chosen style, and targeted topics.
You can sit back and watch the queue execute day by day.
Wrapping Up
Automating retention shouldn't require a dedicated marketing team or a messy codebase. By bridging generative AI directly with native Firebase delivery, you can keep your users engaged on complete autopilot.
You can try the free tier at PushPilot.
I’d love to hear your feedback! How are you currently managing push notifications in your apps? Let me know in the comments below.



Top comments (0)