Skip to content
atanethyst

Deal-to-Proposal: AI proposal automation for HubSpot

A demo build. All client names, contacts, companies, deals and figures shown are fictional, for demonstration only.

A deal reaching "Proposal Ready" in HubSpot becomes a validated, AI-drafted PDF proposal that's emailed, logged and announced, with no manual drafting.

Client
Demo build (fictional agency and client)
Role
Sole developer: workflow design, prompts, database and integrations
Industry
Agencies & professional services
Category
Workflow Automation
Year
2026
n8n workflow canvas showing the full Deal-to-Proposal Automation: HubSpot trigger, validation, database sync, Claude generation, Carbone PDF rendering, Gmail delivery, Slack notification and audit logging, with failure and retry paths.
  • 7

    Steps from deal stage to logged delivery

  • 2

    Automatic correction retries for AI output

  • 5

    Database tables, including the audit log

The challenge

Writing proposals is repetitive. You pull deal details from the CRM, copy line items into a template, draft the narrative, export a PDF, email it and update the CRM. It's slow, inconsistent and easy to get wrong.

The solution

When a deal reaches a chosen stage in HubSpot, this n8n pipeline takes over:

  1. Retrieve and check: it fetches the deal, contact, company and line items, then cleans and validates them. Incomplete deals stop here, before any AI call.
  2. Draft with Claude: Claude writes the proposal as structured JSON (executive summary, scope of work, pricing table, why us and next steps). The output is checked against a schema, with up to two automatic correction retries.
  3. Render the PDF: Carbone merges the content into a branded template.
  4. Deliver and record: the PDF is emailed to the client through Gmail, HubSpot is updated, the sales team is told in Slack, and the run is recorded in PostgreSQL on Supabase (clients, deals, line items, proposals and an audit log).

Built to be reliable

  • Required-field checks stop incomplete deals before any AI call is made.
  • AI output is validated against a schema, with up to two correction retries.
  • Deals with no line items, missing contact details or malformed output are handled explicitly.
  • CRM text is treated as untrusted data, as a guard against prompt injection.
  • Failures trigger a Slack alert and an audit-log entry. Non-critical steps (the CRM update and the Slack notice) can fail without blocking delivery.

The result

Consistent, on-brand proposals with a full audit trail. A proposal goes from "deal moved to the proposal stage" to "PDF delivered, CRM updated, team notified, run logged" without anyone drafting it.

(No speed or time-saved figures are claimed: the timings in the images are illustrative.)

Who it's for

Small and mid-sized service businesses, agencies, consultancies and freelancers who sell through HubSpot and send proposals regularly.

  • Sales teams and founders: faster turnaround and consistent quality.
  • Ops and RevOps: clean relational data and an audit trail of every run.
  • Managers: visibility through Slack alerts and a failure log.

Adaptable: the CRM, email and chat layers can be swapped, e.g. Pipedrive, Outlook or Microsoft Teams.

Built with

  • n8n
  • HubSpot
  • Claude API
  • Carbone
  • PostgreSQL
  • Supabase
  • Gmail
  • Slack
  • JavaScript
  • SQL

Image 1 of 9

n8n editor showing the HubSpot trigger, deal and line-item retrieval, normalisation and required-fields check, with input and output data for the normalise step.
Gather and check first: nothing proceeds unless the required fields are present.

All product names and trademarks belong to their respective owners. This project is an independent demonstration and is not affiliated with or endorsed by the companies mentioned.

Selected work

See all projects
  • n8n canvas of the SupportPilot workflow in four labelled sections, with the routing rules for auto-reply, approval and escalation

    Workflow Automation · Demo build

    SupportPilot: AI customer support automation

    Routine customer questions are answered automatically, uncertain ones become drafts for human approval, and sensitive issues go straight to a person, with every decision logged.

    35

    Workflow nodes

    Customer support
    n8nClaude APILangChain
  • n8n canvas of the LeadFlow Engine workflow, from the lead capture webhook to the Slack notification, with error branches

    Workflow Automation · Demo build

    LeadFlow Engine: lead capture, enrichment and CRM sync

    LeadFlow Engine turns website form submissions into enriched, correctly assigned CRM leads and alerts your team in Slack, with error handling designed in from the start so nothing gets lost or duplicated.

    21

    Workflow nodes

    Sales & marketing
    n8nHubSpotApollo
  • n8n workflow with seller listing, buyer enquiry and post-call logging paths

    Workflow Automation · Demo build (fictional UK estate agency)

    AI Voice Receptionist for Estate Agents

    An AI receptionist answers every call, saves sellers and buyers as leads, and texts the agent the moment a big enquiry comes in.

    2

    Caller paths: sellers and buyers

    Property
    n8nElevenLabsGoogle Gemini

Still writing proposals by hand?

We can build a proposal pipeline around your CRM, template and brand, from deal stage to delivered PDF.