Page Summary
-
The Gmail manifest defines the content and behavior of a Google Workspace add-on within Gmail and requires all components marked as Requiredif extending Gmail.
-
Older Gmail add-on manifest fields are deprecated, and existing Gmail add-ons should be upgraded to Google Workspace add-ons.
-
The Gmail manifest includes configurations for compose actions via
composeTriggerand triggers that fire when messages are opened viacontextualTriggers. -
ContextualTriggerscurrently only support anunconditionalcriteria, meaning they fire for every opened Gmail message. -
SelectActionsdefine the function to run when a compose action is selected and are limited to a single action per add-on.
The resource configuration used to define Google Workspace add-on content and behavior within Gmail. Google Workspace add-on manifests must include all components marked as Requiredif they extend Gmail.
Gmail
The Google Workspace add-on manifest configuration for Gmail extensions. See Extending Gmail with Google Workspace add-ons for details.
| JSON representation |
|---|
{ "authorizationCheckFunction": string, "composeTrigger": { object ( ComposeTrigger ) }, "contextualTriggers": [ { object ( ContextualTrigger ) } ], "homepageTrigger": { object ( HomepageTrigger ) } } |
| Fields | |
|---|---|
authorizationCheckFunction
|
Deprecated. The name of a Apps Script function performing third-party authorization checks. This function is deprecated. Instead, the add-on should throw an exception from the main invocation, as shown in the Non-Google OAuth configuration example . |
composeTrigger
|
See Extending the compose UI with compose actions for details. |
contextualTriggers[]
|
|
homepageTrigger
|
The trigger function for the add-on homepage
in
Gmail. This overrides |
ComposeTrigger
The configuration for a compose action. See Extending the compose UI for details.
| JSON representation |
|---|
{ "draftAccess": string, "selectActions": [ { object ( SelectAction ) } ] } |
draftAccess
string
Defines the data access level for a compose trigger function. Valid options include:
-
NONE(default): The event object is mostly empty. -
METADATA: The event object includes recipient lists. This requires thegmail.addons.current.message.metadatascope .
selectActions[]
object ( SelectAction
)
A list of compose actions. The list is limited to a single action
per add-on
. The compose action has an icon
in the Gmail window, specified by gmail.logoUrl
.
ContextualTrigger
The configuration for a trigger that fires when a user opens a Gmail message. See Extending the message UI for details.
| JSON representation |
|---|
{
"onTriggerFunction": string,
"unconditional": {},
}
|
| Fields | |
|---|---|
onTriggerFunction
|
|
unconditional
|
|
SelectAction
The compose action configuration defining the function to run when selected.
| JSON representation |
|---|
{
"runFunction": string,
"text": string
}
|
| Fields | |
|---|---|
runFunction
|
|
text
|
|

