이러한 위젯 작업 및 응답 객체를 사용하려면
Google Workspace 부가기능의 매니페스트에
https://www.googleapis.com/auth/gmail.addons.current.action.compose범위가 포함되어야 합니다.
메시지 작성
Gmail을 확장하는 부가기능은 상호작용 시 Gmail에서 임시보관 메일 (새 메일 또는 답장)을 생성하는 위젯을 정의할 수 있습니다. 이렇게 하려면 트리거 위젯을
객체를 반환하는 콜백 함수와 연결합니다.ComposeActionResponse 콜백 함수가 실행을 완료하면 Gmail은 이 응답 객체를 사용하여 임시보관 메일 작성 창을 열고 채웁니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2026-04-01(UTC)"],[],["`Action` objects in Google Workspace add-ons enable interactive behavior. An action, triggered by a widget interaction, executes a callback function. This function receives an event object with user interaction details and returns a response object. For instance, a button click can trigger a callback to build and display a new card. Gmail add-ons can use `ComposeActionResponse` to generate draft messages, triggered by widget interaction. The add-on must include the `https://www.googleapis.com/auth/gmail.addons.current.action.compose` scope for this.\n"]]