Create freee請求書 invoice drafts from won HubSpot deals with Slack updates
Ready for 3.0What this workflow does
This workflow has 19 nodes and runs on a schedule (cron 0 9 * * 1-5) (plus 1 other trigger). Along the way it connects Slack. It also calls api.hubapi.com and api.freee.co.jp over HTTP.
How it runs
Trigger: On a schedule (cron 0 9 * * 1-5) (plus 1 other trigger).
- Config (Edit Fields (Set)): sets 12 fields: freee_company_id, won_stages, lookback_days…
- Read the HubSpot account (HTTP Request): calls api.hubapi.com (GET)
- Find won deals (HTTP Request): calls api.hubapi.com (POST)
- Read freee partners (HTTP Request): calls an HTTP API (GET)
- Read recent freee invoices (HTTP Request): calls api.freee.co.jp (GET)
- Pick deals not invoiced (Code): runs custom JavaScript code
- Anything to invoice? (If): checks a condition and branches into true / false
- Read the deal links (HTTP Request): calls an HTTP API (GET)
- Write the summary (Code): runs custom JavaScript code
- Read the line items (HTTP Request): calls api.hubapi.com (POST)
…plus 7 more steps. See the full node list below.
Services it uses
Other HubSpot + Slack templates (137)
HTTP calls to: api.hubapi.com, 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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow runs every weekday and turns newly won HubSpot deals into UNSENT invoice drafts in freee請求書 by matching HubSpot companies to freee partners, copying HubSpot line items, and posting a single status report to Slack with links back…