BeeGenticResources
Tool guides

Send email with Gmail

Send, draft, reply to, search and label Gmail messages from a workflow, or start a workflow when an email arrives. Step by step with a narrated video and a real result.

What you'll build: you type a topic in Chat, an AI writes a friendly email about it, and BeeGentic sends it from your own Gmail. Three blocks: Start β†’ Agent β†’ Gmail. About 5 minutes.

What BeeGentic can do with GmailAll tools β†’

Connect with: πŸ” Sign in with your account Β· You need: A Gmail or Google Workspace account, and an AI key for the Agent

βœ… Send Emailβœ… Read Emailβœ… Draft Emailβœ… Edit Draftβœ… Search Emailβœ… Move Emailβœ… Mark as Readβœ… Mark as Unreadβœ… Archive Emailβœ… Unarchive Emailβœ… Delete Emailβœ… Add Labelβœ… Remove Label
⚑ Gmail Email Trigger

Not supported: Scheduled send inside Gmail (use a Schedule trigger instead) Β· Creating new labels or Gmail filters Β· Gmail settings, signatures and vacation replies Β· Other people's mailboxes

βœ… action you can add to a workflow Β· ⚑ event that can start a workflow

Narrated walkthrough (about 2 min), with captions (CC button). Each step below also has a short silent clip. The orange numbers in each screenshot match the # column under it. Click a screenshot to enlarge it.

Before you start

You needWhy
A Gmail or Google Workspace accountBeeGentic sends as you, from your own mailbox
An AI key saved as a secret, e.g. OPENAI_API_KEYThe Agent writes the email. See References and secrets.
A test address you ownSend the first emails to yourself. We used clevercreatorai+demo@gmail.com: a +demo plus address of our own inbox.

Part 1: Connect Gmail (once)

Find Gmail in Integrations

Integrations β†’ search Gmail.

Integrations

#What to do
1Click Gmail. If you've connected before, your connection is listed under Connected above it.

Watch this step

Add to BeeGentic, then Connect

Click Add to BeeGentic. A dialog opens.

Connect dialog

#What it means
1What BeeGentic may do: send emails, read, compose, send and modify messages, and view and manage labels. You can rename the connection in Display name, e.g. Work Gmail.
2Click Connect. Google opens.

Watch this step

Pick your Google account

Choose an account

#What to do
1Click the account you want to send from, then allow the Gmail permissions. You're sent back to BeeGentic, connected.

Watch this step

Part 2: Build the workflow

Create the workflow and add the Agent

+ New workflow β†’ name it Send email with Gmail. Then Toolbar β†’ Agent. In Messages:

Write a short, friendly email to the team about: <start.input>. Start with "Hi team," on its own line, then 3 or 4 warm, clear sentences, then a blank line and "The BeeGentic team". Return only the email body, no subject line.

Agent message

#What you see
1The message. <start.input> is replaced by what you type in Chat.

Watch this step

Choose the model and key

Model and key

#FieldValue
1Modelgpt-5-mini
2API Key{{OPENAI_API_KEY}}

Add the Gmail block

Toolbar β†’ Gmail (in the tools list, not the one under Triggers). It connects to the Agent automatically.

Gmail block

#FieldValue
1OperationSend Email (the default)
2Gmail AccountThe connection from Part 1

Watch this step

To, Subject and Body

To, Subject, Body

#FieldValue
1ToThe recipient, e.g. clevercreatorai+demo@gmail.com. Several people: separate with commas.
2Subject<start.input>: the topic you type becomes the subject
3Body<agent.content>: the email the Agent wrote

Also on the block: Content Type (Plain Text or HTML) and Attachments (upload files, or under advanced fields reference files from an earlier block; 25 MB total). Under Show additional fields: CC, BCC, and the reply fields Thread ID and Reply to Message ID.

Press Shift + L to tidy. Your finished workflow:

Finished workflow

#BlockWhat it does
1StartYour chat message becomes <start.input>
2AgentWrites the email body
3GmailSends it from your Gmail

Watch this step

Part 3: Run it and check the result

Send the topic from Chat

Chat

#What to do
1Open Chat (speech-bubble button), type the topic and press Enter.

Example message we sent:

Team lunch this Friday at 12:30 to celebrate the launch

Read the output

Result

#What you see
1Your message.
2Each block's run time: the Agent about 4 s, Gmail under half a second.
3The output: id (the Gmail message ID, here 1a0fe7c1781f0acf), threadId, and labelIds (UNREAD, SENT, INBOX, because we sent it to ourselves).

Watch the run

See it in Gmail

In Gmail

#What you see
1The subject: your chat message.
2Sent from your own address, to the +demo address.
3The body the Agent wrote, with its line breaks kept.

The real email BeeGentic sent:

Hi team,

We're having a team lunch this Friday at 12:30 to celebrate the launch. Please join us for food, good company, and a toast to the hard work that got us here. Let me know if you have any dietary restrictionsβ€”hope to see everyone there!

The BeeGentic team

We moved this test email to the trash afterwards with Delete Email (below).

Watch this step

⚑ Make it automatic

You wantDo this
Send an email every morningReplace Chat with a Schedule trigger and write the topic in the Agent's message.
React to every new emailUse the Gmail Email Trigger (below), then an Agent and a Draft Email or Send Email block.
Email a list of peopleRead rows with Google Sheets and send one email per row.
Email a summary of form answersGoogle Forms β†’ Agent β†’ Gmail.
Check before it goes outUse Draft Email instead of Send Email, then send the draft yourself in Gmail.
Share news everywhereAfter the Agent, add Publish to social blocks next to Gmail.

Gmail Email Trigger

Starts the workflow when a new email arrives. In the Toolbar it's Gmail under Triggers.

Gmail Email Trigger

#FieldWhat it does
1CredentialsYour Gmail connection
2Gmail Labels to MonitorOnly emails with these labels, e.g. INBOX. Leave empty to watch all mail. Label Filter Behavior picks include or exclude.
3Gmail Search QueryOptional Gmail search, e.g. subject:invoice or from:boss@example.com
4Mark as ReadMarks each email read after the workflow picks it up. Include Attachments adds the files to the trigger output.

BeeGentic checks your mailbox on a timer (it polls Gmail), so a run can start a few minutes after the email arrives. The trigger output has an email object with id, threadId, subject, from, to, cc, date, bodyText, bodyHtml, labels, hasAttachments and attachments, plus a timestamp. Deploy the workflow to turn it on. For a full example, see the Gmail AI reply recipe.

Other operations

OperationWhat it does
Read EmailReads recent messages from a label (default INBOX). Options: Unread Only, Include Attachments, Max Results, or a single Message ID.
Search EmailFinds messages with Gmail search, e.g. from:anna@example.com has:attachment newer_than:7d
Draft EmailSaves the email in Drafts instead of sending it. Returns draftId.
Edit DraftChanges a draft by its Draft ID
Reply in a threadUse Send Email (or Draft Email) and, under Show additional fields, set Thread ID and Reply to Message ID to the threadId and id from the trigger or a search.
Move EmailAdds one label and removes another, e.g. from INBOX to a project label
Add Label / Remove LabelTags or untags a message with an existing label
Mark as Read / Mark as UnreadChanges the read state
Archive Email / Unarchive EmailRemoves from or returns to the inbox
Delete EmailMoves a message to the trash (Gmail empties the trash after 30 days)

Troubleshooting

ProblemFix
Gmail API error: … (for example Gmail API error: Forbidden or Not Found)Gmail refused the request. Reconnect Gmail in Integrations and approve every permission, and check the message ID belongs to the connected mailbox.
Total attachment size (…MB) exceeds Gmail's limit of 25MBSend fewer or smaller files, or share a Drive link instead.
At least one label ID is requiredAdd Label, Remove Label and Move Email need a label. Pick one in Label.
The email looks like one long paragraphAsk the Agent for line breaks (as in our message), or set Content Type to HTML and ask for HTML.
The trigger doesn't startDeploy the workflow, wait a few minutes, and check the label filter and search query match the email.
"Google hasn't verified this app"Click Advanced β†’ Go to beegentic.com (unsafe) (see Part 1).

On this page