BeeGenticResources
Tool guides

Add rows to Google Sheets

Read, append, update and clear Google Sheets data from a workflow, or start a workflow when a new row is added. Step by step with a narrated video and a real result.

What you'll build: you paste a message from a new lead into Chat, an AI pulls out their name, email and interest, and BeeGentic adds them as a new row in a Google Sheet. Three blocks: Start β†’ Agent β†’ Google Sheets. About 5 minutes.

What BeeGentic can do with Google SheetsAll tools β†’

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

βœ… Read Dataβœ… Write Dataβœ… Update Dataβœ… Append Dataβœ… Clear Dataβœ… Get Spreadsheet Infoβœ… Create Spreadsheetβœ… Batch Readβœ… Batch Updateβœ… Batch Clearβœ… Copy Sheetβœ… Delete Rowsβœ… Delete Sheetβœ… Delete Spreadsheet
⚑ Google Sheets New Row Trigger

Not supported: Formatting cells (colors, fonts, borders) Β· Charts and pivot tables Β· Sharing a spreadsheet with other people Β· Excel files (.xlsx) that aren't converted to Google Sheets

βœ… 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 Google account (Gmail or Google Workspace)BeeGentic reads and writes your spreadsheets as you
A spreadsheet with headers in row 1BeeGentic adds rows under them. We made BeeGentic demo – Leads with Name, Email, Interest.
An AI key saved as a secret, e.g. OPENAI_API_KEYThe Agent reads the message. See References and secrets.

Part 1: Connect Google Sheets (once)

Prepare your sheet

In Google Sheets, create a spreadsheet and type the headers in row 1.

The sheet

#What you see
1The headers: Name, Email, Interest. The Agent will return the values in this order.

Watch this step

Find Google Sheets in Integrations

In BeeGentic: Integrations β†’ search Google Sheets.

Integrations

#What to do
1Click Google Sheets, then Add to BeeGentic.

Confirm and connect

Connect dialog

#What it means
1What BeeGentic may do: view and manage Drive files you open or create with BeeGentic, and view, edit, create and delete your Google Drive files. Sheets are Drive files; this is what lets you pick any spreadsheet from a list.
2Click Connect. Google opens.

Watch this step

Pick your Google account

Choose an account

#What to do
1Click the account that owns the spreadsheet, then allow access. 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 Add leads to Google Sheets. Then Toolbar β†’ Agent. In Messages:

Read this message from a new lead: <start.input>. Return only a JSON array with one row: [["full name", "email address", "what they are interested in, in 3 to 6 words"]]. No code fences, no other text.

Agent message

#What you see
1The message. It asks for exactly one row, as a JSON array of arrays, in the same order as your headers.

Watch this step

Choose the model and key

Model and key

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

Add the Google Sheets block

Toolbar β†’ Google Sheets (in the tools list, not the one under Triggers).

Google Sheets block

#FieldValue
1OperationAppend Data
2Google AccountThe connection from Part 1

Watch this step

Pick the spreadsheet and tab

Spreadsheet and tab

#FieldValue
1Select SpreadsheetClick it and type part of the name, e.g. BeeGentic demo, then pick it. (The list of your other files is blurred in the video.)
2Sheet (Tab)Sheet1, the tab with your headers

The ⇆ icon next to each field switches to typing an ID instead: the Spreadsheet ID is the long part of the sheet's URL between /d/ and /edit.

Watch this step

Values

Values

#FieldValue
1Values<agent.content>: the row the Agent returned
2Insert Data OptionInsert Rows (Add new rows) adds the row below your data. Overwrite writes into existing empty cells instead.

Append reads values the way Google Sheets does when you type them: =SUM(A1:A3) becomes a formula and 10/02 a date. (Write Data and Update Data also have a Value Input Option, where Raw keeps text exactly as sent.)

Press Shift + L to tidy. Your finished workflow:

Finished workflow

#BlockWhat it does
1StartYour chat message becomes <start.input>
2AgentPulls out name, email and interest
3Google SheetsAppends the row

Watch this step

Part 3: Run it and check the result

Paste the lead's message in Chat

Chat

#What to do
1Open Chat, paste the message and press Enter.

Example message we sent (a made-up lead):

Hi, I'm Maria Lopez (maria.lopez@example.com). I'd love a demo of your Google Sheets automations for our sales team.

Read the output

Result

#What you see
1Your message.
2Each block's run time: the Agent about 2 s, Google Sheets about 0.2 s.
3The output: tableRange Sheet1!A1:C1 (your existing data), updatedRange Sheet1!A2:C2 (the new row), updatedRows 1, updatedColumns 3, updatedCells 3, and metadata with the spreadsheetId and spreadsheetUrl.

Watch the run

See the row in the sheet

The new row

#What you see
1Your headers.
2The new row, written by the workflow.

The real row BeeGentic added:

Maria Lopez Β· maria.lopez@example.com Β· Google Sheets automations for sales

We kept this one row in our demo sheet. Remove test rows with Delete Rows (below) or in Google Sheets.

Watch this step

⚑ Make it automatic

You wantDo this
Log every new website leadStart with a Webhook Trigger from your site's form instead of Chat (see the web form lead capture recipe).
Log every Google Form answerGoogle Forms β†’ Agent β†’ Google Sheets.
Welcome each new lead by emailAdd a Gmail Send Email after Google Sheets, with To = the email the Agent found.
A daily report from your sheetSchedule β†’ Google Sheets Read Data β†’ Agent β†’ Gmail.
Post each new row to socialGoogle Sheets New Row trigger β†’ Agent β†’ Publish to social.

Google Sheets New Row trigger

Starts the workflow when a row is added to a sheet. In the Toolbar it's Google Sheets under Triggers.

New Row trigger

#FieldWhat it does
1CredentialsYour Google Sheets connection
2SpreadsheetThe spreadsheet to watch
3Sheet TabThe tab to watch

Value Render and Date/Time Render choose how cell values arrive (as shown, unformatted, or as formulas; dates as serial numbers or text). BeeGentic checks the sheet on a timer, so a new row can take a few minutes to start the workflow. The trigger gives you row (values mapped to your row 1 headers), rawRow, headers, rowNumber, spreadsheetId, sheetName and timestamp. Deploy the workflow to turn it on.

Other operations

OperationWhat it does
Read DataReads a range (e.g. A1:C50). Under advanced fields: Filter Column, Filter Value and Match Type (contains, exact match, greater than…) to return only matching rows.
Write DataWrites values starting at a cell (default A1), replacing what's there
Update DataChanges the values in a given range
Clear DataEmpties a range but keeps the formatting
Get Spreadsheet InfoTitle, URL and the tabs with their numeric Sheet IDs
Create SpreadsheetMakes a new spreadsheet with a title and tab names
Batch Read / Batch Update / Batch ClearThe same, for several ranges in one call
Copy SheetCopies a tab into another spreadsheet
Delete RowsDeletes rows by 0-based index (start inclusive, end exclusive) in a tab, by its Sheet ID
Delete Sheet / Delete SpreadsheetRemoves a tab, or the whole file

Troubleshooting

ProblemFix
Sheet name is requiredPick a Sheet (Tab), or type its name, e.g. Sheet1.
The whole JSON lands in one cellThe Agent added text or code fences around the array. Keep "Return only a JSON array… No code fences" in its message, and check <agent.content> in the Agent's output.
Values land in the wrong columnsWith an array of arrays, the order must match your headers. Use an array of objects with your header names as keys (see the drawer above).
The spreadsheet isn't in the listType part of its name to search. Excel files must be opened in Google Sheets and saved as a Google Sheet first.
Dates or numbers change formatAppend reads values like typed input. To keep text exactly, start it with an apostrophe ('10/02), or use Write Data / Update Data with Value Input Option = Raw.
The trigger doesn't startDeploy the workflow, add the row at the bottom of the tab, and wait a few minutes.

On this page