What it is
This integration connects your agent to HubSpot, enabling four main actions:- Create Deal: Opens a new opportunity in the sales funnel.
- Get Deal: Retrieves detailed information about a specific opportunity.
- Search Contacts: Filters and locates leads/clients in your database.
- Search Deals: Scans your funnel for opportunities based on stages, dates, or properties.

How to use (Quickstart by action)
Create Deal (Creating an Opportunity)
Ideal for automatic qualification. The AI inserts the lead directly into the correct pipeline.
- *Deal Name: The deal title (e.g.,
New Lead - {{Nome_Empresa}}). - *Deal Stage ID: The exact code of the funnel column/stage where it should land (e.g.,
1234567). - *Pipeline ID: Your commercial funnel ID (e.g.,
defaultor the numeric ID). - HubSpot Owner ID: The ID of the salesperson/agent who owns the opportunity.
- Close Date: Expected closing date in
YYYY-MM-DDformat. - *Deal Value: The monetary value of the deal (e.g.,
5000.00).

Get Deal (Querying a Specific Opportunity)
Downloads all deal context and injects it into the agent’s memory.
- *Deal ID: The unique code of the opportunity. Usually passed through a prior integration.

Search Contacts (Finding Clients)
Useful for enriching support (e.g., the client reaches out on WhatsApp and Tess already checks in HubSpot who they are).
- Start Date / End Date: Sets a creation or modification period for the lead (
YYYY-MM-DDorYYYY-MM-DDT00:00:00Z). - Email Contains: Filters leads by corporate domain or exact email (e.g.,
@company.com). - Lead Status: The contact’s lifecycle stage (e.g.,
New,In Progress,Qualified).

Search Deals (Funnel Audit)
Searches for deals in bulk based on specific criteria, great for managerial analysis.
- Start Date: The date from which to search.
- Deal Stage ID: To search all deals stuck in a specific column, for example.
- Pipeline ID: Which funnel to search in.
- Deal Properties: Tells Tess which data it should “pull” from HubSpot (separated by commas). E.g.,
dealname,amount,closedate. This prevents overloading the AI with irrelevant data.
Navigating IDs
For the connection to work, HubSpot does not use “Names” (like “Sales Funnel”), but rather IDs (exact numeric and textual values).- How to find the Pipeline ID and Stage ID? In your HubSpot, click the gear icon (Settings) > Data Management > Deals > Pipelines tab. There you can view them or export the data to obtain the internal identification tags.
Practical examples
Use Case 1: Agent for Automatic Lead Qualification- The lead enters your website or WhatsApp and answers 3 questions on a pre-chat form (User Inputs).
- The Create Deal step takes the variables from this form and immediately opens the deal in HubSpot with the status “MQL” and the estimated value entered by the lead.
- The agent takes over the conversation with the lead already registered in the CRM, focused solely on driving the sale.
- A Make/Zapier flow triggers the Tess agent once a month.
- The Search Deals step pulls all deals in the “Active Clients” column, using the
closedateDeal Property. - The agent’s prompt analyzes the dates and generates reports or drafts automated emails focused on those nearing the expiration date.
Important notes
- Mandatory Authentication: Your Tess AI Workspace must be logged into your HubSpot account via OAuth (in the Integrations settings within the agent itself).
- Credit Consumption: In addition to conversation tokens, performing constant multiple search actions (Search Deals) consumes proportional credits from your plan.
- User Permissions: The credential logged into Tess must have access permissions to read and write deals in the original CRM.