Defines a trigger that fires when the open email meets a specific criteria.
When the trigger fires, it executes a specific endpoint, usually
in order to create new cards and update the 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 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eGoogle.Apps.Script.Type.Gmail\u003c/code\u003e namespace, including its various versions ranging from 1.0.0 to the latest 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe content details several classes within the namespace, such as \u003ccode\u003eComposeTrigger\u003c/code\u003e, \u003ccode\u003eContextualTrigger\u003c/code\u003e, \u003ccode\u003eGmailAddOnManifest\u003c/code\u003e, \u003ccode\u003eUnconditionalTrigger\u003c/code\u003e, and \u003ccode\u003eUniversalAction\u003c/code\u003e, which define different types of triggers and actions for Gmail add-ons.\u003c/p\u003e\n"],["\u003cp\u003eThe document also outlines the available enums within the namespace, including \u003ccode\u003eComposeTrigger.Types.DraftAccess\u003c/code\u003e, \u003ccode\u003eContextualTrigger.TriggerOneofCase\u003c/code\u003e, and \u003ccode\u003eUniversalAction.ActionTypeOneofCase\u003c/code\u003e, which define specific behaviors and states within the classes.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is 2.3.0.\u003c/p\u003e\n"]]],[],null,["# Google.Apps.Script.Type - Namespace Google.Apps.Script.Type.Gmail (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail)\n- [2.2.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.2.0/Google.Apps.Script.Type.Gmail)\n- [2.1.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.1.0/Google.Apps.Script.Type.Gmail)\n- [2.0.0](/dotnet/docs/reference/Google.Apps.Script.Type/2.0.0/Google.Apps.Script.Type.Gmail)\n- [1.1.0](/dotnet/docs/reference/Google.Apps.Script.Type/1.1.0/Google.Apps.Script.Type.Gmail)\n- [1.0.0](/dotnet/docs/reference/Google.Apps.Script.Type/1.0.0/Google.Apps.Script.Type.Gmail) \n\nClasses\n-------\n\n### [ComposeTrigger](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.ComposeTrigger)\n\nA trigger that activates when user is composing an email.\n\n### [ComposeTrigger.Types](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.ComposeTrigger.Types)\n\nContainer for nested types declared in the ComposeTrigger message type.\n\n### [ContextualTrigger](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.ContextualTrigger)\n\nDefines a trigger that fires when the open email meets a specific criteria.\nWhen the trigger fires, it executes a specific endpoint, usually\nin order to create new cards and update the UI.\n\n### [GmailAddOnManifest](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.GmailAddOnManifest)\n\nProperties customizing the appearance and execution of a Gmail add-on.\n\n### [UnconditionalTrigger](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.UnconditionalTrigger)\n\nA trigger that fires when any email message is opened.\n\n### [UniversalAction](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.UniversalAction)\n\nAn action that is always available in the add-on toolbar menu regardless of\nmessage context.\n\nEnums\n-----\n\n### [ComposeTrigger.Types.DraftAccess](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.ComposeTrigger.Types.DraftAccess)\n\nAn enum defining the level of data access this compose trigger requires.\n\n### [ContextualTrigger.TriggerOneofCase](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.ContextualTrigger.TriggerOneofCase)\n\nEnum of possible cases for the \"trigger\" oneof.\n\n### [UniversalAction.ActionTypeOneofCase](/dotnet/docs/reference/Google.Apps.Script.Type/latest/Google.Apps.Script.Type.Gmail.UniversalAction.ActionTypeOneofCase)\n\nEnum of possible cases for the \"action_type\" oneof."]]