Connect Firebase Cloud Messaging to your Wiro AI agent
Send push notifications to your app's users and topics through Firebase.
Overview
What Firebase Cloud Messaging does for your agent
Holds up to 25 Firebase projects in one connection, each with its service account key, an app name and the topics your app subscribes users to. The agent sends push notifications with a title, text, image and data for your app to a topic, a condition of up to five topics or one device token, and can have Firebase validate a message without delivering it. Firebase delivers each push the moment it is sent and cannot recall it, and your app's code decides who is in each topic.
Use cases
What your Wiro agent can do with Firebase Cloud Messaging
- 01
Friday evening offer to a promotions topic
Every Friday at 6 pm a Scheduled Task sends the weekend offer to the users subscribed to your promotions topic, with an image and data your app reads to open the offer screen.
- 02
One announcement for every language topic
Write the announcement once in Chat. The agent translates it for each language topic you set up, such as English, German and Turkish, has Firebase validate every version, and sends them after you approve.
- 03
Test on your own phone first
Paste your device's registration token and the agent sends the push to that one device, so you can check how the title, text, image and sound look before the same message goes to a topic.
- 04
Reach a narrow audience with topic conditions
Send only to users who are in both the paid tier topic and the Turkish locale topic, or to one topic minus another. A condition can combine up to five topics, and the agent can have Firebase check the message first.
- 05
Event reminders that replace each other
For a live event, send a reminder an hour before and a second one when it starts, with the same collapse key, so a phone that was offline shows only the newer message instead of both.
How it works
How Firebase Cloud Messaging works with Wiro
- 01
Connect Firebase Cloud Messaging
Deploy an agent, open its Connectors tab, choose Firebase Cloud Messaging and paste what the Connect dialog asks for.
- 02
Choose what each action may do
Set each Firebase Cloud Messaging action to Allow, Ask or Block, in Chat and in Scheduled Tasks. By default, read-only actions run, and the rest ask first in Chat.
- 03
Ask in Chat or schedule it
Ask your agent for Firebase Cloud Messaging work in Chat, or put it on a Scheduled Task that runs on its own.
- Where it runsInside your agent. Its requests go straight from the agent to Firebase Cloud Messaging.
- Where its data goes
fcm.googleapis.comoauth2.googleapis.com - How it signs inPaste a key. It is stored encrypted and never shown again.
Send tonight's two-for-one pizza deal, 5 to 10 pm only, to our promotions topic. Have Firebase check the message first.
Firebase checked the message and found no problem. Once you approved the send, it went out to the promotions topic of the Slice Society app, titled Two pizzas, one price, with the text Tonight only, 5 to 10 pm. Tap to order. A topic send returns a message id rather than a delivery count, so look for the opens in your app's analytics.
What it can do
Actions your Wiro agent can take in Firebase Cloud Messaging
By default, read-only actions run, and the rest ask first in Chat and run in Scheduled Tasks. Each agent can set any action to Allow, Ask or Block.
Read-only 3 actions
Looks things up in Firebase Cloud Messaging and changes nothing.
List the connected Firebase projects
Lists the connected Firebase projects from the connection's settings, without calling Firebase: project id, app name, service account, the apps (platform and id) and the FCM topics with what each audience is.
Chat AllowScheduled Tasks Allow
Check the Firebase connection
Checks every connected project with Firebase: signs in with its service account and has Firebase validate a test message without delivering it.
Chat AllowScheduled Tasks Allow
Validate a Firebase push message
Has Firebase check a push message without delivering it.
Chat AllowScheduled Tasks Allow
Create and send 1 action
Creates or sends something new in Firebase Cloud Messaging, such as a post, a message or an email.
Send a Firebase push notification
Sends a push notification through Firebase Cloud Messaging to the users subscribed to a topic, to a condition of topics, or to one device token.
Chat AskScheduled Tasks Allow
How to connect
Connect Firebase Cloud Messaging to Wiro
Open the agent's Connectors tab, choose Firebase Cloud Messaging and paste what it asks for. Values are stored encrypted and never shown again.
What the Connect dialog asks for
| Field | About |
|---|---|
| Firebase AccountsRequired |
Troubleshooting
Troubleshooting Firebase Cloud Messaging
What to check when Firebase Cloud Messaging stops working for your agent.
- Limits set by Firebase Cloud Messaging Firebase Cloud Messaging limits how much an account can do, such as how many requests it takes in a minute. An action over a limit fails until the limit resets: wait and ask again, or check your Firebase Cloud Messaging plan.
For developers
Connect Firebase Cloud Messaging from your own product
Every call is a POST to the Wiro API with your project's API key. On a sign-in, your customers see your own app's name.
- 01
Read the connector
Detail answers without a session: what the connector needs and the tools it gives an agent.
POST /AgentConnector/Detail { "slug": "firebase" }Response { "result": true, "errors": [], "agentconnectors": [ { "slug": "firebase", "title": "Firebase Cloud Messaging", "category": "messaging", "authtype": "fields", "credentialfields": [ { "name": "accounts", "label": "Firebase Accounts", "required": true, "secret": false, "format": "json" } ], "tools": [ { "name": "list_projects", "readonly": true }, { "name": "check_projects", "readonly": true } ] } ] } - 02
Connect with the values
Send what the person typed in your form. A value you leave out keeps what the connection holds; an empty one clears it.
POST /UserAgent/ConnectorConnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "firebase", "values": { "accounts": "{ ...the whole JSON file... }" } }Response { "result": true, "errors": [], "status": "connected", "applied": 1, "restart": "scheduled" } - 03
Read the status
connected, pending (a sign-in not finished), reauth (sign in again) or error. Values and tokens never come back.
POST /UserAgent/ConnectorList { "useragentguid": "YOUR_AGENT_GUID" }Response { "result": true, "errors": [], "useragentconnectors": [ { "slug": "firebase", "title": "Firebase Cloud Messaging", "authtype": "fields", "status": "connected", "accounts": {}, "savedvariables": [ "accounts" ], "lasterror": null } ] } - 04
Disconnect
Revokes a sign-in where the vendor allows it, deletes what the connection holds and removes the connector from the running agent.
POST /UserAgent/ConnectorDisconnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "firebase" }Response { "result": true, "errors": [], "removed": true, "revoked": false, "restart": "scheduled" }
Questions
Firebase Cloud Messaging and Wiro FAQ
What can a Firebase Cloud Messaging AI agent do?
It sends push notifications through Firebase Cloud Messaging to a topic, to a condition of up to five topics, or to one device token, with a title, text, optional image, data for your app and Android and iOS options such as channel, sound, badge, priority and expiry. It can have Firebase validate a message without delivering it, check that every connected project signs in, and label a message for Firebase's delivery reports. Topic subscriptions stay in your app's code.
How do I connect Firebase Cloud Messaging to an AI agent?
In the Firebase console, open Project settings → Service accounts and click Generate new private key to download the key file. On the agent's Connectors tab choose Firebase Cloud Messaging, or ask the agent in Chat to add it, and add the project with that key, an app name and its topics, each with a short line on who it reaches. One connection holds up to 25 projects, and each is checked when you connect.
What does the Firebase project need?
The Firebase Cloud Messaging API must be enabled, and the service account needs permission to send messages, such as the Firebase Cloud Messaging API Admin role. Your app must subscribe its users to the topics you list: the agent sends to topics, while your app decides who is in them. Describing each topic, for example English speakers or paid users, helps the agent pick the right audience.
Can a push notification be scheduled or recalled?
Firebase delivers a message the moment it is sent, and it cannot be recalled; Firebase keeps no list of sent messages either. To send at a set time, run the send from a Scheduled Task at that hour, which is also how you automate Firebase push notifications such as a weekly reminder. Before anything goes out, the agent can have Firebase validate the message, and you can test it on one device.
Will the agent send pushes without my approval?
In Chat every send asks for your approval first, while validation and connection checks run freely. In Scheduled Tasks sends go out as planned unless you set the send action to Ask, which holds each push until someone approves it in Chat, or to Block. Each action has its own Allow, Ask or Block setting for Chat and Scheduled Tasks on the agent's Connectors tab.
What limits apply to Firebase push messages?
Data for the app is limited to 4 KB, a condition combines up to five topics, and Firebase keeps trying to deliver for up to 28 days. About 65 characters of a title show before it is cut, and Android shows about 45 characters of the text when collapsed. Images must be public JPEG or PNG files under 1 MB, and iOS shows them only when the app has a Notification Service Extension.
Where is my Firebase service account key stored?
Each project's key is stored encrypted, and the AI model never sees it; it is used only to sign in to Firebase for each request. To revoke it, delete the key of the firebase-adminsdk service account under IAM & Admin → Service accounts in Google Cloud, then disconnect the connector.
Does the Firebase MCP connector cost extra?
No. It is included with every agent plan and runs inside your agent, so there is nothing to host. Firebase's own quotas and terms still apply to the projects you connect.
Access
Revoke Firebase Cloud Messaging access
In Google Cloud console, pick the project, open IAM & Admin → Service accounts, open the firebase-adminsdk account and delete the key under Keys. Then disconnect it here.
Related connectors
More connectors for your Wiro agent
Google Analytics 4
Reports, realtime data and attribution from your Google Analytics 4 properties.
Gmail
Read, label and answer mail in a Gmail inbox.
Google Ads
Campaigns, budgets, audiences, assets and performance in Google Ads.
Google Business Profile
Read and reply to the reviews of your Google Business Profile locations.
Google Calendar
Check availability and book, move or cancel events in a Google Calendar.
Google Drive
Find, read and upload files in shared Google Drive folders.
Put Firebase Cloud Messaging to work with Wiro
Deploy an agent and connect Firebase Cloud Messaging from its Connectors tab. Every agent plan includes it: Starter $5, Pro $30 and Max $100 a month.