Stay organized with collections
Save and categorize content based on your preferences.
The resource configuration that is used to define
Google Workspace add-on
content and behavior within Gmail.
Google Workspace add-on manifests must have
all the components marked as Required if they extend Gmail.
Deprecated. The name of an Apps Script function that performs
third-party authorization requirement checks. This function is called
before each invocation of the
Google Workspace add-on.
This function was deprecated to avoid unnecessary execution latency.
Instead, the add-on should throw an exception from the main
invocation, as shown in this
example.
Required. A list of triggers that fire when a message is opened
in Gmail. When the trigger fires, it executes a specific
Apps Script function, usually to create new cards and update the UI.
Defines the level of data access available to a compose trigger
function. Valid options are the following:
NONE, the default setting. This causes the event
object passed to the compose trigger function to be mostly
empty.
METADATA, which populates the event object passed
to the compose trigger function with lists of recipients of the
message. This setting requires that the add-on include the
gmail.addons.current.message.metadata
scope.
A list of compose actions that create compose UIs; however, this
list is limited to a single action per add-on. The compose
action has a corresponding icon presented in the Gmail compose window.
The icon is specified by gmail.logoUrl.
ContextualTrigger
The configuration for a trigger that fires when the user opens a Gmail message
and that message satisfies certain criteria. See
Extending the message UI
for more information.
Required for each contextual trigger. Used to specify that the
contextual trigger activates for all Gmail messages when they are
opened. This is currently the only option, so this should always be an
empty object.
SelectAction
The compose action configuration that defines which function to run when the
user selects the compose action.
JSON representation
{
"runFunction": string,
"text": string
}
Fields
runFunction
string
Required for compose actions. The name of the Apps Script
function that executes when this compose action is selected. This
compose trigger function builds the add-on compose UI.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-19 UTC."],[[["Google Workspace Add-ons extend Gmail functionality using a manifest file that defines their content and behavior."],["Gmail add-on manifests require specific components, including ComposeTrigger for compose actions and ContextualTrigger for message-based actions."],["Compose actions allow add-ons to integrate with the Gmail compose UI, while contextual triggers enable actions based on message criteria."],["Developers can define the level of data access for compose actions and specify the Apps Script functions that execute when triggers fire."],["To ensure compatibility, existing Gmail add-ons should be upgraded to Google Workspace Add-ons."]]],[]]