Skip to main content

HubSpot Deal Management Template

Enhance your AI assistant with the capability to access HubSpot deals directly during customer calls, update deal statuses, and provide sales pipeline information.

Overview

Deal Query

  • Automatic access to existing deals
  • Real-time status updates
  • Pipeline stage tracking
  • Deal value and probability

Sales Automation

  • Automatic deal creation
  • Status updates based on conversation
  • Schedule follow-up activities
  • Send team notifications

Configuring the Deal Query Tool

1. Basic Configuration

ParameterValue
Function Nameget_hubspot_deals
Description”Fetches current deals of a contact from HubSpot. Use this when discussing existing projects or proposals.”
HTTP MethodGET
Timeout6000ms
{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "associatedcontactid",
          "operator": "EQ",
          "value": "{contact_id}"
        }
      ]
    }
  ],
  "properties": [
    "dealname",
    "dealstage", 
    "amount",
    "closedate",
    "pipeline",
    "probability",
    "createdate",
    "hs_deal_priority",
    "description"
  ],
  "sorts": [
    {
      "propertyName": "hs_lastmodifieddate",
      "direction": "DESCENDING"
    }
  ],
  "limit": 10
}

3. Parameter Schema

{
  "type": "object",
  "properties": {
    "contact_id": {
      "type": "string",
      "description": "HubSpot contact ID for deal search"
    },
    "deal_stage": {
      "type": "string", 
      "description": "Filter by specific deal stage (optional)",
      "enum": ["prospecting", "qualification", "needs-analysis", "proposal", "negotiation", "closed-won", "closed-lost"]
    },
    "include_closed": {
      "type": "boolean",
      "description": "Include closed deals?",
      "default": false
    }
  },
  "required": ["contact_id"]
}

Configuring the Deal Update Tool

1. Updating Deal Status

ParameterValue
Function Nameupdate_hubspot_deal
Description”Updates the status or details of an existing HubSpot deal based on the conversation flow.”
HTTP MethodPATCH
URLhttps://api.hubapi.com/crm/v3/objects/deals/{deal_id}
{
  "properties": {
    "dealstage": "{new_stage}",
    "hs_deal_priority": "{priority}",
    "notes_last_updated": "{current_timestamp}",
    "hs_deal_stage_probability": "{probability}",
    "description": "{updated_description}"
  }
}
{
  "type": "object",
  "properties": {
    "deal_id": {
      "type": "string",
      "description": "ID of the deal to update"
    },
    "new_stage": {
      "type": "string",
      "description": "New deal stage",
      "enum": ["prospecting", "qualification", "needs-analysis", "proposal", "negotiation", "closed-won", "closed-lost"]
    },
    "priority": {
      "type": "string",
      "description": "Deal priority",
      "enum": ["low", "medium", "high"]
    },
    "notes": {
      "type": "string",
      "description": "Conversation notes or updates"
    }
  },
  "required": ["deal_id", "new_stage"]
}

Deal Creation Tool

Automatic Deal Generation

FunctionName: create_hubspot_deal
HTTP-Method: POST
URL: https://api.hubapi.com/crm/v3/objects/deals

Description: "Creates a new deal in HubSpot based on the current conversation and customer requirements."

Combined Workflow Tool

Intelligent Deal Management

Practical Use Cases

Scenario 1: Existing Customer Calls

1

Customer Identification

  • AI identifies customer by email/phone
  • Automatically fetch deals for this contact
2

Intelligent Conversation Guidance

If active deals exist:
  "I see we currently have a proposal for [Deal Name]. 
   How can I assist you with this?"

If deal is in negotiation:
  "Do you have any questions regarding our proposal from [Date]? 
   The deal value is [Amount]."

If no active deals:
  "How can I help you today? Are you planning a new project?"
3

Automatic Updates

  • Update deal stage based on conversation
  • Add conversation notes
  • Define next steps

Scenario 2: Lead Qualification with Deal Creation

Budget Identification:
AI recognizes budget statements:
  "Our budget is approximately €50,000"
  → create_hubspot_deal with amount: 50000

"We don't have a fixed budget yet"
  → Deal with amount: 0, note: "Budget to be clarified"
Check decision-making authority:
Decision maker identified:
  → Deal priority: "high"
  → Owner: Senior Sales Rep

Influencer / Gatekeeper:
  → Deal priority: "medium" 
  → Next step: Decision maker meeting
Needs and timeline:
Urgent need:
  → closedate: +30 days
  → hs_deal_priority: "high"

Long-term planning:
  → closedate: +6 months
  → dealstage: "prospecting"

Response Processing

Deal Query Response

{
  "results": [
    {
      "id": "deal123",
      "properties": {
        "dealname": "Website Redesign Project",
        "dealstage": "proposal",
        "amount": "15000",
        "closedate": "2024-03-15",
        "pipeline": "sales-pipeline",
        "probability": "60",
        "createdate": "2024-01-15T10:00:00.000Z",
        "hs_deal_priority": "high",
        "description": "Complete website redesign with CMS"
      }
    }
  ]
}

Natural Language Usage

Deal in Proposal Stage:
  "I see our proposal for the Website Redesign Project 
   is still under evaluation. Do you have any questions?"

Deal in Negotiation:
  "Regarding the €15,000 offer - can we finalize the last details today?"

Deal Close to Completion:
  "Perfect! The planned project start is March 15th. 
   Should we prepare the contract documents?"

Advanced Features

Pipeline Management

Multi-Pipeline Support

Different sales processes:
  • Standard Sales Pipeline
  • Enterprise Sales Pipeline
  • Partner/Channel Pipeline
  • Renewal Pipeline

Custom Deal Properties

Industry-specific fields:
  • Project scope
  • Technical requirements
  • Compliance requirements
  • ROI expectations

Deal Forecasting

Intelligent close prediction:
  Factors:
    - Current deal stage
    - Historical conversion rates
    - Customer engagement level
    - Competitive situation
  
  Output:
    - Adjusted close probability
    - Recommended next steps
    - Risk assessment

Integration with Other HubSpot Tools

Workflow Combination

Error Handling & Best Practices

Robust Error Handling

Deal not found (404):
Cause: Deal ID does not exist or was deleted
Fallback: "It seems this project is no longer current. 
          Let’s talk about your current needs."
Cause: API key lacks permission for deals
Fallback: "I currently can't access our project database. 
          I’ll still be happy to assist you."
Action: Notify admin about permission issue
Handling: 
  - Automatic retry with exponential backoff
  - Temporary fallback: "One moment, loading your project data..."
  - After 3 attempts: graceful degradation

Performance Optimization

Load only relevant deal properties:
  Standard: dealname, dealstage, amount, closedate
  As needed: description, custom_properties
  Avoid: associations, notes (large data volumes)

Analytics & Reporting

Key Performance Indicators

MetricDescriptionTarget
Deal Conversion RateConversation → Deal creation>15%
Stage ProgressionAverage stage movement+1 stage per conversation
Close Rate ImprovementImprovement via tool usage+20%
Response TimeDeal tool performance<3 seconds

Success Tracking

1

Establish Baseline

  • Measure conversion rates before tool implementation
  • Document average deal sizes
  • Capture sales cycle lengths
2

Measure Tool Impact

  • Compare conversations with vs. without tool usage
  • Analyze deal quality scores
  • Collect customer experience feedback
3

Continuous Optimization

  • Weekly performance reviews
  • Monthly tool configuration adjustments
  • Quarterly business impact assessments

Further Integrations

Expand your HubSpot deal management with additional tools:
Important Note: Deal updates directly affect sales forecasting and team performance. Ensure your sales team is informed about the automatic updates and define clear rules for critical deal changes.