Templates / Create freee draft invoices from order emails with Gmail and Claude Haiku

Create freee draft invoices from order emails with Gmail and Claude Haiku

Ready for 3.0

by 久保田 卓磨 ✓ · 0 views · created 2026-10-25 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 24 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail and Anthropic Chat Model. It also calls api.freee.co.jp over HTTP.

How it runs

Trigger: On Gmail events (plus 1 other trigger).

  1. Read the mail (Code): runs custom JavaScript code
  2. Read the form (Code): runs custom JavaScript code
  3. Config (Edit Fields (Set)): sets 6 fields: freee_company_id, staff_email, payment_terms…
  4. Read freee partners (HTTP Request): calls an HTTP API
  5. Find the customer (Code): runs custom JavaScript code
  6. Customer found? (If): checks a condition and branches into true / false
  7. Read their quotations (HTTP Request): calls an HTTP API
  8. Write the notice (Code): runs custom JavaScript code
  9. Pick the candidates (Code): runs custom JavaScript code
  10. Answer where asked (Switch): routes items into branches

…plus 11 more steps. See the full node list below.

Services it uses

GmailAnthropic Chat Model

HTTP calls to: api.freee.co.jp

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (New order mail).
Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (11)

From the author

Quick overview This workflow captures customer orders from Gmail or a public n8n form, matches the customer and their open quotations in freee, uses Anthropic Claude to interpret the order text, and creates an unsent freee Invoice draft based on the selected…

Excerpt from 久保田 卓磨's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.