Close Menu
hubsphere
    What's Hot

    HubSpot Marketing Hub in 2027: The Complete Guide to Features, Pricing, Implementation and Real Pain Points

    October 15, 2026

    India Mobile Congress 2026: Dates, Venue, Theme and Everything You Need to Know

    September 18, 2026

    HubSpot Revenue Hub: What Changed With the Shift From Commerce Hub

    September 14, 2026
    Facebook X (Twitter) Instagram
    hubspherehubsphere
    • Home
    • About
    • Hubspot News
    • Trending
    • Event
    hubsphere
    Home » How Developers Are Building AI Agents with HubSpot
    Hubspot

    How Developers Are Building AI Agents with HubSpot

    Grace AndersonBy Grace AndersonJuly 28, 2026Updated:July 28, 20269 Mins Read26 Views
    How Developers Are Building AI Agents with HubSpot
    Share
    Facebook Twitter LinkedIn Pinterest Email

    In April 2026, HubSpot dropped a number that got developers talking: its Breeze Customer Agent is now resolving 65% of customer support conversations completely on its own, no human need and cutting average resolution time by 39% across roughly 8,000 customer accounts.

    That’s not a small experiment anymore. That’s AI quietly becoming part of how CRM actually runs day to day.

    So naturally, the question comes up: are HubSpot’s AI agents just a switch you flip on, or something you actually have to build?

    Turns out, it’s both. HubSpot gives you Breeze’s pre-built agents if you want something ready to go out of the box. But if your business needs something more tailored, HubSpot also opens the door for developers’ APIs, an MCP server, workflow automation, and other extensibility tools to build custom agents around their own processes.

    In this guide, we’ll break down what HubSpot AI agents are, how they work, the developer tools behind them, and the workflow from trigger to result.” 

    What Are AI Agents in HubSpot? 

    HubSpot AI agents are smart software assistants that use artificial intelligence to perform tasks, make decisions, and interact with customers or employees using data stored in HubSpot CRM. Instead of following a strict set of rules, they consider the context available to them contact records, deal history, support tickets, emails, customer interactions and decide what the best course of action is.

    A few things separate agents from plain automation: 

    Trait Traditional Workflow AI Agent
    Logic Fixed if/then rules Reasoning based on context
    Input Handling Structured triggers only Natural language + CRM data
    Flexibility Breaks on unexpected input Adapts to new scenarios
    Output Predefined actions Dynamic, context-aware actions

    HubSpot’s own AI Agents for HubSpot:  Customer Agent, Prospecting Agent, Data Agent, and the newer Company Research and Customer Health agents (still in beta) are built on a reasoning model. Developers can also build custom agents using the same underlying APIs. 

    HubSpot AI Architecture for Building Intelligent Agents

    HubSpot AI Architecture for Building Intelligent Agents

    Though there is no particular definition of the so-called “AI Agent Architecture” by HubSpot, almost all HubSpot AI agents use a similar four-level logic regardless of whether these agents are constructed using Breeze or any other custom tools:

    1. Data Layer

    The backbone of the system is represented by the HubSpot Smart CRM that holds data on contacts, firms, negotiations, tickets, chats, activities, and custom objects. This data provides basic input for AI agents to reach responsible conclusions.

    2. Access Layer

    Developers utilize the HubSpot REST APIs or the HubSpot MCP (Model Context Protocol) Server that provide safe access to HubSpot context to AI programs and large language models.

    3. Reasoning Layer

    LLM processes HubSpot context, resolves the user’s requirements, and chooses further actions. Breeze Studio agents use GPT-5 as a default, but custom agents can operate with a variety of models such as GPT and Claude, based on specific implementations.

    4. Action Layer 

    After making the choice, agents perform the act using HubSpot workflows or various mechanisms, including webhooks and calls through APIs. For example, this can mean updating records in CRM or performing other kinds of tasks.

    Step-by-Step Guide to Building an AI Agent with HubSpot 

    Although the integrations differ for each case, developers usually follow the same procedure when using HubSpot to create AI agents. The process involves taking CRM information, integrating it into AI, and executing automation.

    Step 1:  Create a private app in HubSpot

    In your HubSpot account, go to Settings → Integrations → Private Apps → Create private app. This generates the credentials your agent will use to talk to the CRM.

    Step 2: Select scopes

    Pick the CRM scopes your agent needs; read/write on contacts, deals, tickets, companies, etc. Only grant what the tools actually touch.

    Step 3: Generate the access token

    Once scopes are set, HubSpot issues a private app access token. Store this as an environment variable (HUBSPOT_PRIVATE_KEY) — never hardcode it.

    Step 4: Set up the environment 

    pip install -U hubspot-api-client langchain langgraph langchain-openai pydantic python-dotenv

    import getpass, os

    import getpass, os
    
    def _set_env(var: str):
        if not os.environ.get(var):
            os.environ[var] = getpass.getpass(f"{var}: ")
    
    _set_env("HUBSPOT_PRIVATE_KEY")
    _set_env("OPENAI_API_KEY")
    

    Step 5: See how the agent thinks

    Before wiring up tools, here’s the high-level loop the article describes:

    Step 6: Build the three tools

    Each tool wraps a HubSpot SDK method, keyed off object_type so one function handles contacts, deals, tickets, companies, line items, and quotes:

    • dynamic_search — search records via filter groups
    • create_object — create a new CRM object
    • update_object — update an object by ID
    tools = [dynamic_search, create_object, update_object]
    llm_with_tools = llm.bind_tools(tools)
    

    Step 7: Wire up the LangGraph state machine

    This is the actual control loop: the chatbot node calls the LLM, and if it decides a tool is needed, control passes to the tools node and back:

    graph_builder.add_conditional_edges("chatbot", tools_condition)
    graph_builder.add_edge("tools", "chatbot")
    graph_builder.set_entry_point("chatbot")
    graph = graph_builder.compile(checkpointer=memory)
    

    Step 8: Test it

    config = {"configurable": {"thread_id": "1"}}
    
    for event in graph.stream(
        {"messages": [("user", "What is the current status of 'ABC' Deal?")]},
        config
    ):
        for value in event.values():
            print("Assistant:", value["messages"][-1].content)
    

    That’s the whole pipeline: private app → tools bound to the LLM → LangGraph loop → live CRM operations. One thing worth flagging again from my earlier review — before running this, you’ll want to add the missing imports (ToolNode, TypedDict) and double-check the FilterGroup/PublicObjectSearchRequest classes come from the right object-specific HubSpot SDK module, since the article never shows those imports explicitly. 

    Using AI Models with HubSpot AI Agents 

    1. OpenAI with HubSpot AI Agents 

    Since January 12, 2026, Breeze Studio agents run on GPT-5 by default, replacing GPT-4.1. Outside of Breeze, custom builds can call any GPT model directly through the OpenAI API; nothing HubSpot-specific is required.

    Factor Why It Matters
    Prompt Engineering Clear framing and concrete examples reduce inconsistent outputs, which is especially important when responses can trigger CRM updates.
    Tool Calling GPT's structured function calling maps directly to HubSpot agent tools, allowing the model to select a tool while your application executes it.
    CRM Context Provide only the relevant portion of a CRM record instead of the entire dataset to keep responses accurate while reducing token usage and cost.

    Where this tends to show up: drafting outreach based on deal stage, summarizing a support thread before it escalates, or scoring inbound leads against a defined rubric.

    2. Claude with HubSpot AI Agents 

    Why would a team choose Claude AI  over another model here? Mostly because of how directly it plugs in.

    Factor Why It Matters
    MCP Connection Claude connects to HubSpot through the official MCP server, allowing clients like Claude Desktop to query and update CRM records using natural language without requiring a custom API wrapper.
    Long Context Window Ideal for record-heavy workflows, such as analyzing months of ticket history or complete deal email threads before making informed recommendations. This makes it well suited for enterprise research, account summaries, churn-risk analysis, and cross-object CRM reporting.
    Propose-Then-Execute Pattern Claude performs the reasoning while connected via MCP for read and write access. A workflow or webhook executes the final action only after Claude proposes it, creating a safe point for human review and approval.

    If you’re planning to use Claude with HubSpot, the HubSpot + Claude integration guide covers everything you need to get started. 

    AI Security and Governance in HubSpot

    Here’s a question worth sitting with before any agent goes live: what, exactly, is it allowed to touch?

    Control What It Covers
    Authentication Use OAuth 2.1 with PKCE for MCP connections or OAuth 2.0/private app tokens for direct HubSpot API access.
    Permissions Grant only the minimum required scopes for the task, following the principle of least privilege.
    CRM Access Restrict access at both the object and property levels to protect sensitive CRM information.
    Data Privacy Define what CRM data can leave HubSpot, where it is processed, and how it is protected.
    Human Approval Require a review step before executing high-impact actions such as deletions, mass emails, refunds, or bulk record updates.
    Audit Logs Maintain a detailed record of every agent action, including timestamps, user inputs, and resulting operations for compliance and troubleshooting.

    Real-World AI Agent Use Cases with HubSpot

    By pairing CRM data with AI, HubSpot’s AI agents provide support across sales, marketing, and customer service. Below are some of the most frequent applications:

    • Automating Customer Service Support:  Answering customer questions, pulling previous tickets, solving basic problems, and letting the complex problems be taken elsewhere.
    • Sales Assistant: Evaluating the sales pipeline and recommending the next step in it.
    • Qualifying Leads: Going through filled forms and deciding whether the lead is qualified as a potential buyer and connecting them to the correct salesperson.
    • Meeting and Task Automation: Organizing meetings, preparing follow-up tasks, and sending notifications.
    • Marketing Campaign:  Preparing customized email messages, segmenting a target audience, and advising on campaign actions based on the CRM data.
    • Managing CRM data:  Including updating contact data, summarizing the interactions with clients, and keeping the CRM data current.

    Conclusion

    Built-in or custom-built? Turns out it’s not really either-or. Breeze gets you moving fast; APIs, MCP, and your model of choice get you something built around your exact process. Either way, the foundation stays the same: clean CRM data, scoped permissions, and a human still in the loop.

    The real question isn’t whether to build with HubSpot AI Agents. It’s how much you’re ready to hand over.

    Where would you draw that line?

    Frequently Asked Questions

    Are HubSpot AI Agents the same as Breeze AI?

    Breeze is HubSpot’s AI brand. It includes Breeze Assistant (free, embedded across the platform), Breeze Agents (task-specific, credit-metered), and Breeze Studio (a no-code builder for custom agents). So Breeze Agents are one way to get HubSpot AI Agents, not the only way.

    Can developers build their own AI agents in HubSpot?

    Yes. HubSpot’s CRM APIs, MCP server, and workflow tools let developers build custom agent logic, using whichever LLM they prefer- GPT, Claude, or another model instead of relying only on Breeze’s pre-built agents.

    What is the HubSpot MCP server used for?

    It gives AI clients like Claude or Cursor natural-language access to CRM data over a standard protocol, without a custom API wrapper. It went GA on April 13, 2026, and currently authenticates only through OAuth 2.1 with PKCE.

    Does the MCP server support custom objects?

    Not yet. Teams working with custom objects typically fall back on the direct CRM API for that part of the integration.

    Can an AI agent accidentally delete or change data it shouldn't?

    It can, if nobody’s set boundaries. That’s why scoped permissions and a human approval step for high-impact actions deletions, mass sends, refunds matter more than the AI itself. The safety net is in the setup, not the model. 

    Related

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Avatar photo
    Grace Anderson

    Hi, I'm Grace Anderson, a HubSpot CRM Consultant specializing in marketing automation, customer lifecycle management, and revenue operations. I help organizations optimize HubSpot implementations, enhance customer engagement, and drive measurable business growth through data-driven strategies and operational excellence.

    Related Reading

    HubSpot Marketing Hub in 2027: The Complete Guide to Features, Pricing, Implementation and Real Pain Points

    October 15, 2026

    India Mobile Congress 2026: Dates, Venue, Theme and Everything You Need to Know

    September 18, 2026

    HubSpot Revenue Hub: What Changed With the Shift From Commerce Hub

    September 14, 2026
    View 1 Comment

    1 Comment

    1. Pingback: HubSpot Revenue Hub: Commerce Hub's Next Chapter

    About Author
    Grace Anderson

    Grace Anderson

    HubSpot CRM Consultant

    Hi, I'm Grace Anderson, a HubSpot CRM Consultant specializing in marketing automation, customer lifecycle management, and revenue operations. I help organizations optimize HubSpot implementations, enhance customer engagement, and drive measurable business growth through data-driven strategies.

    Top Posts

    Why HubSpot MCP Matters More Than APIs

    July 22, 2026564 Views

    How a Professional HubSpot Audit Improves Sales Performance

    May 26, 2026275 Views

    HubSpot Customer Data Sharing Policy Update: What Happened, and Why It Reversed So Fast

    July 8, 2026182 Views

    Top HubSpot Marketing Hub Features Explained

    May 22, 2026165 Views
    Don't Miss
    Hubspot

    HubSpot Marketing Hub in 2027: The Complete Guide to Features, Pricing, Implementation and Real Pain Points

    By James AndersonOctober 15, 2026

    Most guides about HubSpot Marketing Hub tell you what the features are. Very few tell…

    India Mobile Congress 2026: Dates, Venue, Theme and Everything You Need to Know

    September 18, 2026

    HubSpot Revenue Hub: What Changed With the Shift From Commerce Hub

    September 14, 2026

    HubSpot + n8n: A Better Alternative to Zapier

    September 2, 2026
    Subscribe to Blog via Email

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 3 other subscribers
      About Us
      About Us

      Your trusted source for the latest HubSpot, CRM, AI, and Marketing Automation updates. We bring valuable insights and practical knowledge to keep you informed and productive.

      Our Picks

      HubSpot Marketing Hub in 2027: The Complete Guide to Features, Pricing, Implementation and Real Pain Points

      October 15, 2026

      India Mobile Congress 2026: Dates, Venue, Theme and Everything You Need to Know

      September 18, 2026
      Most Popular

      Why HubSpot MCP Matters More Than APIs

      July 22, 2026564 Views

      How a Professional HubSpot Audit Improves Sales Performance

      May 26, 2026275 Views
      X (Twitter) Pinterest Facebook
      © 2026 Hubsphere Co. All Rights Reserved. | Privacy Policy | Disclaimer

      Type above and press Enter to search. Press Esc to cancel.