Sales · n8n

Fire a Slack Win and Draft an Invoice the Moment a HubSpot Deal Closes

When a HubSpot deal moves to Closed Won, automatically celebrate in Slack and draft an invoice in your accounting tool so nothing slips between sales and finance.

difficulty Intermediatesetup 30 minresult Every closed deal triggers a team celebration and a draft invoice, tightening the sales-to-cash handoff.
  1. 1

    Trigger on Won Deals

    Add a HubSpot Trigger node watching deal stage changes and continue only when the stage becomes Closed Won.

  2. 2

    Pull Deal and Contact Details

    Add a HubSpot node to fetch the deal amount, product and the associated contact's billing details.

  3. 3

    Celebrate in Slack

    Add a Slack node posting the rep, customer and deal value to your wins channel with a celebratory emoji.

  4. 4

    Draft the Invoice

    Add a Xero node creating a draft invoice for the customer with the deal amount and line items for review before sending.

  5. 5

    Activate and Test

    Activate the workflow and move a test deal to Closed Won. Confirm the Slack post and Xero draft appear.

Frequently asked questions

Can it send the invoice automatically?

You can, but a draft with a quick human review avoids billing the wrong amount on complex deals.

What if the customer isn't in Xero yet?

Add an upsert step that creates the contact from HubSpot details before drafting the invoice.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.