Latenode

Automatically add inbound email fields to Google Sheets

This template adds a Google Sheets row each time a message hits Mailhook.

Forward or send mail to the Mailhook address, map subject, sender, and body fields in JavaScript, then append the row. Connect Google Sheets and pick the worksheet. Put Google Sheets access on that connection.

Updated Sep 16, 2026Est. run: 6sEst. cost: $0.0004
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Logs each inbound email as a Google Sheets row
  • Starts when Mailhook receives the message
  • Maps subject, sender, and body in JavaScript
  • Keeps Google Sheets access on the Google Sheets connection

How it works

1
Trigger

Receive the email

The scenario starts when a message arrives at the Mailhook address.

2
Logic

Map the email fields

JavaScript reads subject, sender, date, and body so each value lines up with a sheet column.

3
Action

Add the Google Sheets row

Google Sheets appends those fields as a new row in the worksheet you choose.

Setup guide

1

Add Mailhook

Add a Mailhook trigger and copy the inbound address. Forward or send the emails you care about to that address.

2

Connect Google Sheets

Add a Google Sheets connection. Use a worksheet with columns for the fields you want to store, such as date, sender, subject, and body.

3

Map columns and append

In JavaScript, return stable field names that match your columns, then add a single row. Send a test email to Mailhook and confirm the new row.

Requirements

Ability to forward or send mail to the Mailhook address
A Google Sheet Latenode can write, with credentials on the Google Sheets connection
Agreement on which email fields become columns

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.