Skip to content

Send Google Messaging

Summary

  • Internal name: SendGoogleMessaging
  • Category: App Automation
  • Purpose: Send an SMS or RCS message through the Google Messages app (automates the app itself, does not call the SMS API directly).
  • Task type: Normal

Description

This task opens Google Messages with the recipient and message body already filled in (via an Android smsto: intent), then taps the Send button using the accessibility service. Google Messages decides on its own whether the message goes out as SMS or RCS, depending on the recipient's capability.

This automates a personal account - it is not the official RCS Business Messaging API. There is no verified sender branding, and sending too fast or too often can trigger anti-abuse detection on the Google account/number. Keep sending rates reasonable for real campaigns.


Input parameters

Parameter Type Required Description Default
SendGoogleMessaging_msisdn String Yes Recipient phone number - supports $variable ""
SendGoogleMessaging_message String Yes Message body to send - supports $variable ""

Output parameters

This task produces no output variables. It returns VoidResult.


Exceptions

Code Exception Name Description
SCREEN-AUTOMATOR-ERROR-010 Accessibility Service Not Connected The AndroMate accessibility service is not enabled on the device.
SCREEN-AUTOMATOR-ERROR-011 Action Failed The Send button could not be found/clicked within the timeout - usually means the app's UI layout changed.

Example

{
  "SendGoogleMessaging": [
    {
      "id": "1",
      "title": "Send promo message",
      "SendGoogleMessaging_msisdn": "+21624444943",
      "SendGoogleMessaging_message": "Hello from AndroMate!"
    }
  ]
}