Start receiving and sending messages from Google Maps & Google Search.
Google's Business Messages source provides a channel of communication between your Google Business Location and your running instance of Airy Core.
What you will learn
- The required steps to configure Google's Business Messages source
- How to connect a Google Business Location to Airy Core
The Google's Business Messages source is not enabled by default.
You need to add configuration in your airy.yaml file and apply it to activate it.
Google's Business Messages requires the following configuration:
- Connecting Google's Business Messages to your Airy Core instance
- Send messages from Google's Business Messages source
Let's proceed step by step.
You first need to be registered with Google's Business Messages before configuring this source. Refer to Google's Business Messages guides to find more information about this source and the registration process.
Once you are registered, head over to your Google Service Account and create a key in json format.
Copy the Google Service Account key file provided by Google to
airy.yaml file as a one line string next to
As a security measure, every request sent by Google is signed and verified
against your partner key. You must also set the value for
partnerKey: to your partner key,
airy.yaml file, below
Refer to the Configuration Docs on how to input these values.
Your Google Webhook URL should have the following format:
or if you are using Ngrok:
Once the verification process has been completed, Google's Business Messages will immediately start sending events to your Airy Core instance 🎉
After the configuration, you can connect a Google's Business Messages source to your instance by sending a request to the Channels endpoint.
Connect Google's Business Messages source to your Airy Core instance through the Channels endpoint
Connects a Google Business Account to Airy Core.
gbm_idis the ID of your Google Business Message agent
nameis the custom name for the connected business
image_urlis the custom image URL
After connecting the source to your instance, you will be able to send messages through the Messages endpoint.
Sends a message to a conversation from Google's Business Messages source and returns a payload.
Note that when you send a message from this source, you must specify a representative, the individual or automation that composed the message.
Google's Business Messages supports "BOT" and "HUMAN" as the
representativeType. Find more information on Google's Business Messages guide.
Whatever is put on the
message field will be forwarded "as-is" to the source's message endpoint.
Sending a text message