Important Update Regarding Google Workspace add-ons that extend Google Chat with default Apps Script

Developer Preview: Starting on June 16, 2025, the following default Apps Script function names for Google Chat app triggers will change:

  • For Added to space triggers, the default function name will change from onAddToSpace to onAddedToSpace.
  • For Removed from space triggers, the default function name will change from onRemoveFromSpace to onRemovedFromSpace.

If your Chat app responds to being added or removed from Chat spaces, you can address this breaking change and avoid any potential errors by doing one of the following:

  • In your Apps Script project, update the name of your functions to onAddedToSpace and onRemovedFromSpace. If required, create another versioned deployment of your Apps Script project and save the new deployment ID in the Chat API Configuration page in the Google Cloud console.
  • In the Google Cloud console, open the Chat API Configuration page and in the Triggers section, update the function name for the Added to space and Removed from space triggers so that they use the function name that you're currently using in your Apps Script project.

To learn how to update your Chat app configuration in the Google Cloud console, see Configure a Google Chat app.

Source: Google Workspace add-ons release notes

0 0 1,170