什麼是動作?
使用者可透過「動作」在 Gmail 中與您的產品或服務互動。
舉例來說,如果您傳送通知表示雜誌訂閱即將到期,可以直接在通知中提供續訂選項。
您可以透過兩種方式宣告動作:應用程式內動作或前往動作。目前支援多種動作類型。
應用程式內動作
應用程式內動作會在 Gmail 中處理,不會將使用者導向任何其他網站。這類動作包括單鍵操作。
單鍵動作
在許多情況下,使用者預期的行為是確認預先定義的要求。舉例來說,當使用者註冊網站時,她會收到一封要求她確認註冊的電子郵件。同樣地,電影或音樂推薦網站也可以提示使用者將項目加入待播清單,以便日後觀看/聆聽。
在 Gmail 中一鍵執行動作
詳情請參閱一鍵動作參考資料。
常用動作
對於更複雜的互動,您可以使用前往動作,提供可執行動作的頁面直接連結。點選按鈕後,系統會將使用者重新導向至動作定義中指定的頁面。
請將「前往動作」用於需要多個步驟的動作,或是無法透過收件匣執行的重要資料擷取作業。舉例來說,航空公司傳送報到提醒時,可以新增「前往」動作,讓使用者快速前往航空公司網站,選擇座位或要求升等。
Gmail 中的常用動作
詳情請參閱常用動作參考資料。
延伸閱讀
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-22 (世界標準時間)。
[null,null,["上次更新時間:2024-12-22 (世界標準時間)。"],[[["Actions in Gmail enable users to interact directly with your product or service, such as renewing a subscription from a notification email."],["There are two main types of Actions: In-App Actions (like One-Click Actions for simple confirmations) and Go-To Actions (for complex interactions requiring redirection to a webpage)."],["One-Click Actions handle tasks within Gmail, ideal for confirmations or quick additions, like confirming a registration or adding a movie to a queue."],["Go-To Actions redirect users to a specific webpage for multi-step processes or detailed data entry, suitable for tasks like online check-in or requesting an upgrade."]]],["Gmail Actions allow users to interact directly within Gmail. They are categorized as In-App or Go-To Actions. In-App Actions, like One-Click Actions, handle simple confirmations (e.g., registration confirmation) without leaving Gmail. Go-To Actions redirect users to external websites for complex tasks needing multiple steps or data entry (e.g., airline check-in). Actions enable tasks such as subscription renewal or adding items to a queue. Multiple actions types are supported by the system.\n"]]