DocsHubSpot Guide
CRM Workflow Automation Guide

Automate Client Provisioning with HubSpot

Streamline your sales-to-onboarding handoff. Configure a HubSpot Deal Workflow that automatically triggers when a sales pipeline deal reaches "Closed-Won", provisions an isolated Aevloc review funnel, and dispatches a complimentary smart NFC countertop stand directly to the client's physical office.

HubSpot Deal Lifecycle Architecture

The automated sequence triggered the moment your sales rep closes a deal:

Trigger
Deal Closed-Won

HubSpot enrolls deal when stage transitions to Closed Won.

Action
Send a Webhook

Posts company properties & 5 shipping fields to Aevloc.

Aevloc
Auto-Provisioning

Creates sub-account, funnel URL, & dropship stand order.

Sync
CRM Property Update

Writes live funnel URL to Deal and notifies account manager.

Prerequisites

An active Aevloc Agency Pro or Scale subscription (includes up to 100 client sub-accounts).
An Agency Bearer API Key (aev_live_...) from your API & Webhooks dashboard.
A HubSpot Professional or Enterprise account with access to Workflows and the Send a Webhook action (Operations Hub Professional).
1

Create a Deal-Based Workflow

In your HubSpot portal, navigate to Automation → Workflows → Create workflow → From scratch:

  1. Choose Deal-based as the workflow type.
  2. Under Set enrollment triggers, select Deal properties → Deal stage.
  3. Set the condition to: Deal stage is any of Closed Won.
  4. (Recommended) Add an enrollment filter: Associated Company: Street address is known to ensure physical delivery data is ready before triggering.
2

Add the "Send a Webhook" Action

Click the plus icon to add an action, search for Send a webhook, and configure the connection parameters:

Method
POST
Webhook URL
https://aevloc.com/api/v1/agency/subaccounts
Authentication Type
API Key / Custom Request Headers
Custom Request Headers
Header Name: AuthorizationValue: Bearer aev_live_...
Header Name: Content-TypeValue: application/json
3

Customize the Webhook Request Body

Select Customize request body in the webhook configuration panel, and insert the JSON body below using HubSpot association tokens:

HubSpot Webhook Request Body (JSON)
{
  "name": "{{ deal.associated_company.name }}",
  "adminEmail": "{{ deal.associated_contact.email }}",
  "shippingName": "{{ deal.associated_company.name }} (Attn: Front Desk)",
  "shippingAddress": "{{ deal.associated_company.address }}",
  "shippingCity": "{{ deal.associated_company.city }}",
  "shippingState": "{{ deal.associated_company.state }}",
  "shippingZip": "{{ deal.associated_company.zip }}"
}
HubSpot Property Mapping Reference
JSON KeyRequiredHubSpot Property Token
nameYesAssociated Company → Company Name
adminEmailYesAssociated Contact → Email
shippingNameYesCompany Name or Contact Full Name
shippingAddressYesAssociated Company → Street address
shippingCityYesAssociated Company → City
shippingStateYesAssociated Company → State/Region
shippingZipYesAssociated Company → Postal code
4

Test Webhook & Verify Response

Click Test action with an existing Closed-Won test deal. Aevloc confirms receipt with 201 Created:

HubSpot Webhook Output Preview
{
  "success": true,
  "data": {
    "organizationId": "0191f6a2-8b4e-7210-9831-e6e8c1a892b1",
    "name": "Apex Wealth Partners",
    "slug": "apex-wealth-partners",
    "funnelUrl": "https://aevloc.com/review?org=0191f6a2-8b4e-7210-9831-e6e8c1a892b1",
    "hardwareOrder": {
      "id": "0191f6a2-8b51-789a-bc32-11449900aabb",
      "type": "initial",
      "status": "pending",
      "recipient": "Apex Wealth Partners (Attn: Front Desk)"
    }
  }
}
Turnkey Stand Fulfillment:

Aevloc immediately queues the complimentary smart countertop stand (status: pending). No manual shipping slips or order entry required by your sales reps.

5

Configure Downstream CRM Actions

Follow up the webhook action inside HubSpot with native CRM operations:

Create Onboarding Task

Assign a task to the client success manager: "Verify client received their Aevloc review funnel welcome email and confirm countertop stand delivery address."

Marketing Email / Template

Send an automated branded onboarding email welcoming the client to your agency reputation service.

HubSpot Troubleshooting & Tips

Empty Association Tokens:

If the associated company or contact is missing on the deal record, HubSpot sends empty values resulting in a 422 Unprocessable Entity. Use enrollment criteria to require that company address, city, state, and zip are known.

401 Unauthorized:

Confirm your custom request header has the exact header name Authorization and value Bearer aev_live_....

Operations Hub Requirement:

The Send a webhook workflow action requires Operations Hub Professional. If you are on Starter or Free, use Zapier or Make as an intermediary connector.