Latenode

Automatically generate Google Drive files from new emails via Latenode

This template turns inbound email into a Google Drive text file. Forward the inbox you care about to the Mailhook address.

JavaScript reads subject, sender, and body, then Google Drive creates a text file in the folder you set. Connect Google Drive. Point the Drive step at the archive folder.

Updated Sep 16, 2026Est. run: 7sEst. 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

  • Turns inbound Mailhook messages into Drive text files
  • Names each file from the subject
  • Stores sender, subject, and body in the file
  • Keeps Google Drive on its own connection

How it works

1
Trigger

Receive the email

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

2
Logic

Build the text file

JavaScript combines sender, subject, and body into a plain-text file named from the subject.

3
Action

Save to Google Drive

Google Drive creates a text file in the folder you choose.

Setup guide

1

Add Mailhook

Add a Mailhook trigger and copy the inbound address. Forward or send the emails that should become files to that address.

2

Connect Google Drive

Add a Google Drive connection with write access to the folder that will hold the text files.

3

Map subject and body

In JavaScript, build the file name and text from sender, subject, and body. Create a new file from that text in Drive. Send a test email to Mailhook and confirm the file.

Requirements

Ability to forward or send mail to the Mailhook address
A Google Drive folder Latenode can write to

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.