Gmail
The connecting person’s mailbox: messages, drafts, labels and filters. Reads, reversible writes, and sends and deletes that cannot be undone.
| Connects with | A Google sign-in |
| Reads | 15 operations |
| Writes | 10 operations, each granted separately |
| Irreversible | 11 operations, granted separately |
| Personal data | Message content, attachments and email addresses. |
| Data stays in | AWS Sydney (ap-southeast-2) |
What it reads
Section titled “What it reads”- The account profile, and messages, threads and attachments.
- Drafts, labels, filters and the mailbox history.
- The auto-reply settings, and the addresses and signatures the mailbox can send from.
What it does not read
Section titled “What it does not read”Only the connecting person’s own mailbox, always the signed-in “me”. StoriBot reads no one else’s mail, and sees nothing the sign-in has not been given.
What it writes
Section titled “What it writes”Each of these is a separate operation you grant or withhold. These are reversible: moving a message to Trash keeps it for 30 days.
- Create or change a label, and label or unlabel messages and threads, up to 1,000 at a time.
- Create a draft. Nothing is sent.
- Move a message or thread to Trash, or bring it back out.
Irreversible operations
Section titled “Irreversible operations”Granted separately, and only where StoriBot may act unattended.
- Send a message, or send a draft. Mail cannot be recalled, and Gmail adds no signature of its own.
- Change a draft, which destroys the old content without sending it to Trash, or delete a draft.
- Delete a label.
- Create a filter. It acts on all future mail, and can forward matches to a verified address or send them to Trash. Or delete a filter.
- Change the auto-reply. It can reply to everyone until you turn it off, and clears any field you leave out.
- Permanently delete a message, a batch of messages, or a thread. These skip Trash and cannot be recovered.
How you connect it
Section titled “How you connect it”Connect with a Google sign-in. Under Settings, then Integrations, choose Connect on Gmail, tick the operations StoriBot may use, and approve at Google signed in as yourself. Google grants only the operations you ticked. There are no keys to copy. Permanent delete needs the broad full-mailbox scope.
What StoriBot will ask for
Section titled “What StoriBot will ask for”Nothing to type. StoriBot sends you to Google’s consent screen; approve there. You can untick any operation before you do, and Google grants only what you leave ticked.
Limiting what it can reach
Section titled “Limiting what it can reach”StoriBot reaches only the operations you tick, and only what the signed-in Google account can already see. Google has no per-folder limit for reads: allowing a read covers the whole mailbox. To keep the reach small:
- Tick only the operations a job needs.
- Keep Safe Integrations on, so only reads are possible.
- Sign in as an account that can see only what StoriBot should touch.
Sending cannot be recalled, and a permanent delete needs full-mailbox access. Labelling and trashing are reversible.
Every operation
Section titled “Every operation”These are the names shown beside each tick box under Settings, then Integrations, in the order they are listed. Generated from the connector registry; do not edit by hand.
All 36 operations
| Operation | Kind | What it does |
|---|---|---|
get_profile |
Read | Read the mailbox’s address, its message and thread totals, and its historyId, the start point for list_history. |
list_messages |
Read | List mail: each message’s id and threadId, with nothing else, so read one with get_message. q takes the words of Gmail’s search box. |
get_message |
Read | Read one message. Read metadata first: full and raw can pass the 256 KiB reply cut. |
get_attachment |
Read | Read one attachment, by the attachmentId in the message’s part. Returns size and base64url data. |
list_threads |
Read | List threads: each one’s id, snippet and historyId. Read one with get_thread. |
get_thread |
Read | Read one thread with all its messages. Read metadata first: full can pass the 256 KiB reply cut. |
list_history |
Read | List what changed in the mailbox since startHistoryId, which comes from get_profile or a message. Google says an old id fails with 404, and a failed read gives no reason, so on a failure list mail… |
list_drafts |
Read | List drafts: each one’s id and its message’s id and threadId. Read one with get_draft. |
get_draft |
Read | Read one draft: its id and its message. format metadata, the default, gives headers, labels and a short snippet of the text. |
list_labels |
Read | List every label, system and user: each one’s id, name and type. Its id goes in label_id, labelIds, addLabelIds or removeLabelIds. |
get_label |
Read | Read one label: its name, type, visibility, colour, and its message and thread counts. |
list_filters |
Read | List the filters: each one’s id, criteria and action. An empty reply means no filters. |
get_filter |
Read | Read one filter: its id, criteria and action. |
get_vacation |
Read | Read the auto-reply: whether it is on, its subject and body, who it answers, and its start and end times. |
list_send_as |
Read | List the addresses this mailbox can send from: each one’s sendAsEmail, displayName, replyToAddress, signature, isPrimary and isDefault. |
create_label |
Write | Create a label. Google needs its name and both visibilities. |
patch_label |
Write | Change a label; send only the fields that change, and the others stay. Returns the updated label. |
create_draft |
Write | Save a new draft, with nothing sent. Returns the draft with its id, which send_draft takes. |
modify_message |
Write | This can send a message to the trash or to spam: adding the label TRASH or SPAM does it, and Gmail deletes trash for good after 30 days. Otherwise it adds or removes labels: removing INBOX… |
batch_modify_messages |
Write | This can send up to 1,000 messages to the trash or to spam at once: adding the label TRASH or SPAM does it, and Gmail deletes trash for good after 30 days. Otherwise it adds or removes labels… |
trash_message |
Write | This moves a message to the trash, and Gmail deletes trash for good after 30 days. untrash_message brings it back until then. |
untrash_message |
Write | Bring a message back from the trash. Gmail does not put it back in the inbox, so add INBOX with modify_message. |
modify_thread |
Write | This can send every message in a thread to the trash or to spam: adding the label TRASH or SPAM does it, and Gmail deletes trash for good after 30 days. Otherwise it adds or removes labels… |
trash_thread |
Write | This moves a thread and all its messages to the trash, and Gmail deletes trash for good after 30 days. untrash_thread brings it back until then. |
untrash_thread |
Write | Bring a thread and all its messages back from the trash. Gmail does not put them back in the inbox, so add INBOX with modify_thread. |
send_message |
Irreversible | This sends mail to anyone, and mail cannot be recalled. Gmail adds no signature, so read list_send_as to get one. |
send_draft |
Irreversible | This sends mail to anyone the draft names, and mail cannot be recalled. Returns the sent message’s id, threadId and labelIds. |
update_draft |
Irreversible | The draft’s old content is destroyed for good, not to the trash, and cannot be brought back. This replaces it whole, with nothing sent. |
delete_draft |
Irreversible | The draft is deleted for good, not to the trash, and cannot be brought back. Returns nothing. |
delete_label |
Irreversible | The label is deleted for good and comes off every message and thread that has it. The mail stays. |
create_filter |
Irreversible | This acts on all future mail. It can forward each match to an address the mailbox has verified, and Google refuses any other address. |
delete_filter |
Irreversible | The filter is deleted for good. Returns nothing. |
update_vacation |
Irreversible | This can reply to everyone who writes until it is turned off. Google clears every field a call leaves out, so read get_vacation first and send every field to keep. |
delete_message |
Irreversible | The message is deleted for good, not to the trash, and cannot be brought back. Returns nothing. |
batch_delete_messages |
Irreversible | These messages are deleted for good, not to the trash, and cannot be brought back. Returns nothing. |
delete_thread |
Irreversible | The thread and all its messages are deleted for good, not to the trash, and cannot be brought back. Returns nothing. |