{"product_id":"n8n-workflow-create-freee-invoice-drafts-from-won-hubspot-deals","title":"n8n Workflow: Create freee Invoice Drafts from Won HubSpot Deals","description":"\u003ch3\u003eTurn newly won HubSpot deals into \u003cem\u003efreee請求書\u003c\/em\u003e invoice drafts—automatically\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow watches for \u003cstrong\u003eclosed-won HubSpot deals\u003c\/strong\u003e and creates \u003cstrong\u003eUNSENT invoice drafts\u003c\/strong\u003e in \u003cstrong\u003efreee請求書\u003c\/strong\u003e by mapping HubSpot companies to freee partners, copying line items, and sending one clear \u003cstrong\u003eSlack\u003c\/strong\u003e status update with links back to each deal.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns every weekday at 9:00\u003c\/strong\u003e (or on-demand) and loads configuration like your \u003cstrong\u003efreee company ID\u003c\/strong\u003e, a lookback window, and the Slack channel.\u003c\/li\u003e\n  \u003cli\u003ePulls recently closed-won HubSpot deals, your list of \u003cstrong\u003efreee partners\u003c\/strong\u003e, and recent freee invoices for the configured company.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrevents duplicates\u003c\/strong\u003e by filtering out deals that already have a corresponding freee invoice—detected via a \u003ccode\u003ehubspot-deal:\u0026lt;dealId\u0026gt;\u003c\/code\u003e marker in the invoice memo.\u003c\/li\u003e\n  \u003cli\u003eFor each remaining deal, fetches the related HubSpot company and \u003cstrong\u003eline items\u003c\/strong\u003e, then validates:\n    \u003cul\u003e\n      \u003cli\u003ethere is \u003cstrong\u003eexactly one company\u003c\/strong\u003e,\u003c\/li\u003e\n      \u003cli\u003ethe \u003cstrong\u003ecurrency is JPY\u003c\/strong\u003e,\u003c\/li\u003e\n      \u003cli\u003eand there are \u003cstrong\u003eno discounts\u003c\/strong\u003e.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003eCreates a single \u003cstrong\u003eUNSENT draft invoice\u003c\/strong\u003e in \u003cem\u003efreee請求書\u003c\/em\u003e, matching the partner by \u003ccode\u003eshortcut2\u003c\/code\u003e containing \u003ccode\u003ehubspot:\u0026lt;companyId\u0026gt;\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003ePosts \u003cstrong\u003eone Slack message\u003c\/strong\u003e summarizing created drafts and skipped deals, and writes a \u003cstrong\u003eHubSpot note\u003c\/strong\u003e on each deal where a draft was created.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eReduce manual work after sales closes: automatically prepare freee invoice drafts from \u003cstrong\u003eHubSpot closed-won\u003c\/strong\u003e deals.\u003c\/li\u003e\n  \u003cli\u003eImprove accuracy: copy HubSpot \u003cstrong\u003eline items\u003c\/strong\u003e into freee while enforcing \u003cstrong\u003eJPY\u003c\/strong\u003e + “no discounts” rules.\u003c\/li\u003e\n  \u003cli\u003eOperational visibility: get a consolidated \u003cstrong\u003eSlack\u003c\/strong\u003e report with links for quick review.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eIntegrations\/credentials: \u003cstrong\u003eHubSpot private app token\u003c\/strong\u003e (read deals, companies, line items; create notes) and \u003cstrong\u003efreee OAuth2\u003c\/strong\u003e (read partners \u0026amp; invoices; create invoices).\u003c\/li\u003e\n  \u003cli\u003eWorkflow nodes: \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003eslack\u003c\/strong\u003e, \u003cstrong\u003esticky note\u003c\/strong\u003e, and \u003cstrong\u003ehttp request\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eCategory:\u003c\/strong\u003e n8n automation workflow • \u003cstrong\u003eGoal:\u003c\/strong\u003e “freee請求書 invoice drafts from Won HubSpot Deals” with Slack reporting.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46359723278515,"sku":"N8N-22220","price":11.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/bFvibp4SoO-j8YBMRrVSe_dXKrueYy.png?v=1793696869","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-create-freee-invoice-drafts-from-won-hubspot-deals","provider":"N8N Commerce","version":"1.0","type":"link"}