Skip to main content
Roberty Studio
AIGoogle

Gmail

Manage Gmail email from the agent.

Gmail

Lets the agent find, read, send, move and delete email in Gmail. It requires a Google Gmail connection configured in the workspace.

The available operations​

When you add this tool, choose which operations the agent is allowed to perform.


Find email​

Searches the inbox with a query in Gmail's own format.

ParameterRequiredDefaultWhat it is
QueryYes—The search criteria, Gmail-style (e.g. from:joao@example.com, subject:meeting, is:unread, has:attachment)
Maximum resultsNo10How many messages to return at most
Include spam and binNofalseWith true, messages in the spam and bin folders are included

Get an email​

Returns one message's details by its ID.

ParameterRequiredDefaultWhat it is
Email IDYes—The message's unique ID
FormatNofullHow much detail comes back: full (with the body), metadata (headers only), minimal or raw

Send an email​

Sends a message from the connected Gmail account.

ParameterRequiredDefaultWhat it is
ToYes—The main recipients' addresses
CCNo—The addresses to copy
BCCNo—The addresses to blind-copy
SubjectYes—The message's subject
BodyYes—The message's content
Body is HTMLNofalseWith true, the body is treated as HTML. With false, it is sent as plain text
Reply-toNo—The address replies should go to
Thread IDNo—The thread's ID, to send the message as a reply within an existing conversation

Move an email​

Moves a message to a different folder by adding or removing Gmail labels.

ParameterRequiredDefaultWhat it is
Email IDYes—The unique ID of the message to move
Labels to addNo—The label IDs to add (e.g. INBOX, STARRED, Label_123)
Labels to removeNo—The label IDs to remove (e.g. INBOX, UNREAD)

At least one of "Labels to add" or "Labels to remove" has to be given.


Delete an email​

Removes a message, either to the bin or permanently.

ParameterRequiredDefaultWhat it is
Email IDYes—The unique ID of the message to remove
Move to binNotrueWith true, the message goes to the bin (recoverable). With false, it is deleted permanently