- Ably FAQs
- Reactor Queues, Events and Firehose
- Reactor Events, Webhooks and Functions
-
Account billing and packages
-
General
-
Realtime API and client libraries
-
Troubleshooting
-
Channels
-
REST API and client libraries
-
Ably error codes
-
Account and app setup and configuration
-
Ably architecture, transports, and security
-
Performance and Redundancy
-
Push Notifications
-
Reactor Queues, Events and Firehose
-
Migrating to Ably from an existing service
-
API Streamer
-
Connections
How can I trigger a Google Cloud Function when a message is published on a channel?
Once you've set up your Google Cloud Function, it's easy to get Reactor Functions to start triggering it.
1. Go to the Ably site, and visit your dashboard
2. Click on the Reactor tab and click "New Reactor Rule"
3. Click through "Reactor Event", then "Google Functions" to get to the configuration page
4. Configure your Reactor Function
Ensure you include the correct details of your Google Function. You can easily check the region, Project ID and Function Name from your Google Function.
For more details on the impact of the other settings, such as envelopes, look here.
5. Publish an event through Ably!
Your Reactor Function should be ready to trigger when messages are sent on the channels it's listening to. Give it a try, and hopefully your Google Function will receive a request! If you're facing issues when trying this, take a look at this article on how to debug a Reactor Function.
6. Further help
If you want a detailed guide through making your first application with Google Functions and Ably Reactor Functions, check out our tutorials.
Should you need any additional guidance, please reach out on our support portal and we will be happy to assist you.