Get started with the Bird extension on Firebase
Bird
Jun 1, 2021
Firebase Extension
1 min read

Key Takeaways
The Bird | Firebase Extension allows developers to send messages and notifications across SMS, WhatsApp, Messenger, Google Business Messages, Telegram, LINE, Viber, and more—directly from Firestore document writes.
When a new document is added to the configured Firestore collection, the extension converts it into a readable message payload and sends it via Bird’s Conversations API, then updates the document with delivery status.
This extension removes the need for a backend integration with Bird’s API, enabling teams to ship messaging features faster with minimal code.
Firebase’s real-time and scalable infrastructure pairs with Bird’s global connectivity, ensuring reliable message delivery anywhere in the world.
A sample use case demonstrates how restaurants can automate SMS notifications to customers waiting for tables—only requiring a Firestore write.
Setup requires only a Bird API key and an SMS (or other channel) ID; configuration is done through Firebase’s extension installation wizard.
Developers define the Firestore collection the extension listens to—every new document becomes a message trigger.
After sending, the extension enriches the Firestore document with delivery data, status, and error messages if applicable.
Security best practices are essential: Firestore rules must tightly restrict read/write access to prevent abuse or unauthorized message sending.
Cloud Functions logs allow developers to inspect message failures, extension execution errors, and delivery outcomes.
The extension works seamlessly with the broader Bird ecosystem, enabling future enhancements like AI-based flows, image recognition, or CRM automation.
This integration creates a foundation for richer experiences, such as enabling customers to reply with keywords, building restaurant queue features, or connecting to external APIs via Flow Builder.
Q&A Highlights
What does the Bird Firebase extension do?
It listens to changes in a Firestore collection and sends messages through Bird’s Conversations API whenever a new document is added.
Which channels can the extension send messages through?
SMS, WhatsApp, Facebook Messenger, Google Business Messages, Telegram, LINE, Viber, and any other Bird-supported channels.
Do I need a backend server to send messages?
No. The extension handles all API interactions—messaging becomes as simple as writing a document to Firestore.
What information is required from my Bird account?
You’ll need your Bird API key and a channel ID (e.g., for SMS).
How do I install the extension?
Through the Firebase console → Extensions → Install “Send Messages with Bird,” and then configure your API key and collection name.
How does the extension know when to send a message?
It monitors the specified Firestore collection and triggers whenever a new document is created.
What does the message document format look like?
A simple JSON containing the destination, channel ID, and message text (or payload for other channels).
What happens after a message is sent?
The extension updates the Firestore document with delivery metadata like delivery.state, timestamps, and error details (if any).
How can I check for errors?
Errors appear in the updated Firestore document and also in the Cloud Functions logs within Firebase.
How do I secure my Firestore collection?
Use Firestore security rules to restrict read/write access only to authorized users or service accounts.
Can I use this extension for more advanced workflows?
Yes — you can pair it with Flow Builder, external APIs, or machine-learning tools like Google Vision to build interactive, automated experiences.
What’s a real-world example of using this extension?
A restaurant queue system that sends SMS notifications when a table is ready — triggered simply by adding a Firestore document.














