HubSpot Connector
Updated
Connect HubSpot and let your agents work with HubSpot contacts and tickets.
HubSpot Connector lets your agent use your HubSpot account during conversations. After you attach the HubSpot connector to an agent, the agent can work with HubSpot contacts and tickets.
What the connector enables
When HubSpot is attached to an agent, it exposes tools for:
- Listing contacts
- Searching contacts
- Getting contact details
- Creating contacts
- Updating contacts
- Deleting contacts
- Listing tickets
- Searching tickets
- Getting ticket details
- Creating tickets
- Updating tickets
- Deleting tickets
Prerequisites
- A HubSpot account.
- Permission to authorize the HubSpot app for your workspace.
- An agent in the Agora project where you want to use the connector.
Connect HubSpot
- In the navigation sidebar, select Integrations.
- Open the Connectors tab.
- Find HubSpot.
- Select Connect.
- Complete the HubSpot OAuth flow in the new browser tab.
- Return to the Connectors tab and wait for the connection status to update.
After connection succeeds, HubSpot appears under Connected.
Attach HubSpot to an agent
- In the navigation sidebar, select Agents.
- Select your agent from the list.
- From the Action menu, select Edit Agent.
- Go to the Actions tab.
- Under Connectors, select Add connectors
- Select HubSpot.
- Save the agent.
After you attach the connector, your agent can call HubSpot tools during testing and live conversations.
Prompting tips
Tell the agent exactly when to use HubSpot. For example:
When the user asks about ticket status, search HubSpot tickets first. When the user wants to update their contact email, update the HubSpot contact after confirming the new email address.Good prompt patterns:
- Confirm identity before reading or changing CRM data.
- Ask for missing fields before create or update operations.
- Summarize changes after a tool call succeeds.
- Avoid destructive actions unless the user clearly confirms.
Test the connector
Use the agent's test panel to verify:
- The agent can find a known contact.
- The agent can find or create a ticket.
- The agent handles HubSpot errors gracefully.
If a test fails, check both the agent's prompt and the HubSpot connection status.
Disconnect HubSpot
- In the navigation sidebar, select Integrations.
- Open the Connectors tab.
- Under Connected, find HubSpot.
- Select Disconnect.
Disconnecting HubSpot removes connector access for agents that depend on it.
Troubleshooting
| Issue | Solution |
|---|---|
| Connect opens the OAuth page but status never changes | Wait a few seconds, then refresh the connection list. |
| Agent cannot use HubSpot after connection | Make sure the connector is attached to that agent. |
| Agent gives poor results | Tighten the system prompt with clearer rules for search, create, and update behavior. |
| Permission issues in HubSpot | Reconnect with an account that has the required HubSpot scopes. |
Next steps
- Manage integrations: Manage connectors and other reusable resources
- Customize your agent: Attach connectors from the Actions tab
- Test your agent: Validate HubSpot-backed workflows before deployment
