Google Business Messages (GBM) will be turned off on July 31, 2024. The Twilio GBM API and Google Business Profiles chat will no longer work after that point.
Google Business Messages ("GBM") lets users contact your business directly from Google Search, Google Maps and other entry points of your choosing. Using Twilio's APIs, you can engage with your users right where they are. GBM chats happen on Google's Messages app on Android, and through Google Maps on iOS.
GBM is available as a channel in Twilio Flex, Conversations API and Programmable Messaging API. Google does not charge any underlying fees. Pricing for each Twilio product applies - refer to each product's pricing page for more info.
Twilio supports inbound and outbound text and media (JPG, JPEG, PNG). Only 1 media file can be transmitted per message. Google Business Messages inbound message Context is available in the webhook field "ChannelMetadata". This includes any Google Maps place IDs, the entry point identifier, the user's display name, the device locale and the resolved locale.
The process to onboard onto Google Business Messages works as follows.
Please note that the estimated times provided above may vary depending on demand for GBM. Throughout the Verify and Launch steps, Twilio will be in touch with you via to guide you.
Twilio supports independent software vendors (ISV) and software integrators (SI) or signing up for GBM on behalf of their end clients. Please onboard only a single brand per Twilio Account Sid or Subaccount Sid.
Setting up a test sender for GBM is a self-serve process. In the Twilio Console, navigate to Channels > Google Business Messages and create a new brand and new sender. If you can't locate Channels, please use the "Explore Products" page.
_10twilio api:conversations:v1:configuration:addresses:create --address gbm:{sender_ID} --type gbm --auto-creation.enabled
Learn more about GBM and Conversations API here.
Retrieve the GBM User ID from the Callback
When a user sends a message to your GBM sender, your callback URL will receive the message with the same parameters as a standard Twilio WhatsApp or SMS message. GBM senders and recipients have the format gbm:{sender_or_user_id}
. You will need to retrieve the GBM user ID from the callback response. You can also find this information in the Logs ("Monitor" tab in Console > Logs > Messaging).
Respond using the Programmable Messaging API
To respond with a GBM message, make an HTTP POST
request to Twilio's Programmable Messaging Message REST API resource. The "From" is your business' sender_ID
, found in the Sender page in Console. The recipient is the end user's GBM user_ID
from the callback. See the REST API: Sending a SMS or MMS or REST API: Messages page for details.
Once you have tested and configured your workflows, you can start the launch process. To launch, Twilio will ask you to submit a form so you can complete these steps:
To proceed, go to the Twilio Console > Channels > Google Business Messages > click on the sender you want to launch. Scroll to the bottom and click the "Verify sender" button. You will receive an email with a ticket where Twilio will respond with next steps. Your sender status will become "Pending Verification".