Learn what it means to work with AI agents in HubSpot, how agents use context, coordination, and actions, and where to go next.
An AI agent is an AI tool that takes actions for you instead of only answering questions. For example, you can ask an agent to find deals that haven’t had much activity recently, summarize why, and draft follow-up emails. It does this by reading from and updating your HubSpot account. You can use agents in tools like Claude, ChatGPT, and Gemini, or inside HubSpot with Breeze Assistant.Below, learn how agents work, where you stay in control, and what to do when results aren’t what you expected.
Build on HubSpot with agents: to build custom solutions on top of HubSpot, such as app cards, webhooks, and website modules, see the Build with AI docs.
How agents work
As an example, you might ask an agent to update the owner on deals that haven’t had much activity recently. To complete this task well, the agent needs three things:
Context: the information that the agent works with, such as your deal data and your rules for who should own what.
Coordination: what the agent is allowed to do on its own, and when a person reviews or approves its work.
Action: the tools that the agent uses to read and update your records.
An agent repeats these steps until the task is complete, and the quality of the result depends on all three. If results aren’t what you expected, each one is also a place to start investigating.
Context
Context is the information an agent uses to understand a task and decide how to complete it. Many kinds of context can inform an agent, and these three are especially useful when an agent works in HubSpot:
Structured data: data that follows a predefined format, such as fields that hold specific values. Examples in HubSpot include contact properties, lifecycle stages, and deal stages.
Unstructured data: information in free-form text, such as emails, call and meeting transcripts, notes, chat conversations, knowledge base articles, and files. It doesn’t follow a predefined format, but it often explains the reasons behind the structured data.
Business logic: the rules for how your team does things, such as routing rules, escalation paths, brand style guidelines, and pricing exceptions.
As an example, suppose you ask an agent to help you prioritize support tickets opened over the weekend. It might use all three types of context together:
Structured data: it checks the Priority property across the recently opened tickets, along with properties such as status and owner.
Unstructured data: it reads the notes on each ticket and any call transcripts to fill in details that the properties don’t capture, such as a customer who already has a workaround.
Business logic: it applies your escalation rules and support priority guidelines, which might be stored in an agent context file, a skill, or a knowledge base article, so that its recommendations are consistent with your company’s policies and your department’s best practices.
If some of this context is missing, an agent usually continues anyway and fills the gap with general knowledge, so the answer can sound polished but be generic. For example, without your escalation rules, the agent can only guess which tickets need a senior rep. If an answer sounds reasonable but isn’t useful, missing context is often the cause.In HubSpot, an agent can only see what your HubSpot user permissions allow and what its connection supports. Your business logic usually isn’t stored in your HubSpot data, so document it in an agent context file (a file of instructions that agents read when they start) or a skill (a reusable set of instructions) that your team shares.To give an agent better context, name the objects, properties, and filters you care about, for example “tickets created in the last seven days with a Priority of High”, and tell the agent your rules and preferences before it starts.
Coordination
Coordination covers what an agent is allowed to do and when a person reviews or approves its work. An agent can act on its own for low-risk work, such as summarizing records. For changes that are hard to undo or that affect many records, such as changing the owner on 500 deals, it’s safer to have the agent propose the changes for you to approve. For tasks you don’t want an agent to perform, such as sending customer emails, you can keep a person on your team responsible.In HubSpot, coordination involves several controls:
Permissions: agents act with the permissions of the user who authorized them, or with the scopes (the permissions granted to an app) of an app or service key (an account-level access key). They can’t view or change anything that the user or key can’t.
Confirmation: chat tools usually show the changes an agent proposes and ask you to approve them, although the prompt depends on the tool. The Agent CLI can preview changes first, and asks you to confirm destructive ones.
Account access: Super Admins control which apps are installed in your account and who can install them. Learn more in HubSpot’s Knowledge Base about managing access to apps.
Audit: actions made through the remote MCP server are attributed to both you and the connector in your account’s audit log, and actions made with a service key show as assisted by the key’s name.
As a best practice, ask the agent to read and summarize what it finds before it changes anything. For more practical guidance, see Best practices.
Action
Actions are what an agent does with its tools. Reading and changing are different. Reading, like viewing a deal or a call transcript, doesn’t change anything. Changing, like updating a ticket or sending an email, does, so those actions deserve more review. An agent that can summarize a ticket may not be able to close it.An action can fail if the agent’s connection doesn’t include the right tool, if you didn’t give it a required detail, or if your HubSpot user can’t make that change.
When results aren’t what you expected
Agents don’t always produce the result you expect on the first attempt. Depending on what you see, try the following:
The answer is generic: add context. Name the objects and properties you care about, share your business rules, and ask the agent what information it used.
The agent changed the wrong thing: be specific about which records, properties, and filters to change, and ask it to show a preview before it applies changes.
The agent couldn’t finish the task: ask it which tool it tried to use and what happened. Check that its connection includes that tool and that your HubSpot user has permission to make the change.
The agent acted without asking: ask it to describe its plan and wait for your approval first, and review every confirmation prompt.
You can also tell the agent what went wrong. Describe what you expected, what happened, and the impact, then ask it to review what it did, explain why, and suggest how to prevent it. For example: “That wasn’t the right update. I expected you to change the owner on deals with little recent activity, but you changed it on every open deal, and now I have to fix those records. Review what you did, tell me why, and tell me what to add to my instructions to prevent it.” The agent’s explanation is its best reconstruction of what happened, so verify it against what actually changed in your account.
Next steps
Ways to work with agents: compare the remote MCP server, the Agent CLI, and the REST API, and decide which to use.