Library / Finance, Invoices & Accounting
Finance, Invoices & Accounting
Create freee請求書 invoice drafts from won HubSpot deals with Slack updates
On a schedule, it processes financial data using Slack, HubSpot.
What it does
## Create freee invoice drafts from won HubSpot deals When a deal is won in HubSpot, the invoice should be ready in freee請求書 without retyping the customer and the items. This workflow creates an UNSENT invoice draft from the deal's line items; a person checks it and sends it from freee. No AI. ### How it works 1. Every weekday at 9:00 (or Run now) it reads deals in the won stage closed in the last lookback_days, freee partners and recent invoices. 2. A deal is skipped when an invoice memo already carries hubspot-deal: , so reruns never duplicate. 3. The freee partner is found only by the link hubspot: in shortcut2, never by name. 4. Code builds the lines from the line items and computes the totals; a deal amount that matches neither the net nor the total is flagged. Deals with discounts, other currencies or no line items are listed for a person. 5. One Slack message; a note on each deal. ### Setup steps 1. HubSpot Service key: deals read and write, line items and companies read. 2. freee app: partners read, invoices read and write; n8n OAuth2 API credential. 3. Slack credential; invite the app to the channel. 4. Fill Config and click Run now. ### Customization Set prices_include_tax, tax_rate and payment terms. Turn on use_amount_without_items to invoice deals without line items as one line.
The steps
- Weekdays 9:00
- Run now
- Config
- Read the HubSpot account
- Find won deals
- Read freee partners
- Read recent freee invoices
- Pick deals not invoiced
- Anything to invoice?
- Read the deal links
- Read the line items
- Check and build
- Ready to create?
- Create the freee invoice
19 steps in total.
Similar automations
Finance, Invoices & AccountingCreate QuickBooks invoices from won HubSpot deals with Slack alerts22 stepsCRM & Sales PipelineCreate Line Items from Won HubSpot Deals for Slack54 stepsFinance, Invoices & AccountingMark HubSpot Deals Paid from Stripe Invoices9 stepsCRM & Sales PipelineCreate Slides and Alerts for HubSpot Deals by Priority11 steps