https://developers.google.com/apps-script/reference/add-ons-response-service/update-draft-action-response
Class UpdateDraftActionResponse | Apps Script | Google for Developers
Learn how to use Apps Script Class UpdateDraftActionResponse. Represents an action that updates the email draft that the user is currently editing.
apps scriptclassgoogledevelopers