Skip to content
jarvossGet started

Create an approval-gated Gmail draft workflow

Draft replies to email threads that are waiting on you, and require a person to approve each message before anything is sent.

LiveUpdated

This workflow finds email threads that are waiting for your reply and prepares a draft for each. It never sends anything on its own.

Before you start

  • Connect Gmail under Connections and approve only the scopes you need: read access and the ability to create drafts. Do not approve send access unless you intend to send approved drafts.
  • Optionally restrict recipient domains on the connection.

The workflow

{
  "name": "Draft replies to waiting threads",
  "trigger": { "kind": "schedule", "cron": "0 8 * * 1-5", "timezone": "Australia/Brisbane" },
  "approval": { "first_run": true },
  "steps": [
    { "id": "waiting", "use": "gmail.find_unanswered", "with": { "awaiting": "me", "older_than_hours": 24, "max": 5 } },
    { "id": "draft", "use": "gmail.create_draft", "each": "{{waiting.threads}}", "max": 5, "with": { "to": "{{item.reply_to}}", "subject": "Following up", "body": "Hi, thanks for your message. I will get back to you shortly." } }
  ]
}

The body is a placeholder. Replace it with wording you are happy for a draft to start from.

Run it safely

  1. Preview the flow and check it lists a write capability (gmail.create_draft) and the approval.
  2. Run a test. Writes are mocked, so no drafts are created.
  3. Publish. Because the flow writes, its first live run waits for your approval in the Inbox.
  4. After approval, drafts appear in Gmail, and Jarvoss re-reads each draft to confirm it exists.

Sending

Creating a draft does not send it. Sending a drafted message always needs a person's approval for each message. See Inbox.