HubSpot CRM tool for Strands Agents SDK
Project description
strands-hubspot
READ-ONLY HubSpot CRM tool for Strands Agents SDK. Enables safe CRM data access for AI agents with zero risk of data modification.
Features
- 🔍 Universal READ-ONLY Access: Safely search ANY HubSpot object type (contacts, deals, companies, tickets, etc.)
- 🔎 Smart Search: Advanced filtering with property-based queries and sorting
- 📄 Object Retrieval: Get detailed information for specific CRM objects by ID
- 🏷️ Property Discovery: List and explore all available properties for any object type
- 👤 User Management: Get HubSpot user/owner details and assignments
- 🎨 Rich Console Output: Beautiful table displays with Rich library formatting
- 🛡️ 100% Safe: NO CREATE, UPDATE, or DELETE operations - read-only by design
- 🔧 Easy Integration: Drop-in tool for Strands agents
- 📝 Type Safe: Full type hints and comprehensive error handling
Requirements
- Python 3.9+
- Strands Agents SDK 1.11.0+
- HubSpot API access
Installation
pip install strands-hubspot
Quick Start
from strands import Agent
from strands_hubspot import hubspot
# Create an agent with HubSpot READ-ONLY tool
agent = Agent(tools=[hubspot])
# Search contacts (READ-ONLY)
agent("find all contacts created in the last 30 days")
# Get company details (READ-ONLY)
agent("get company information for ID 67890")
# List available properties (READ-ONLY)
agent("show me all available deal properties")
# Search with filters (READ-ONLY)
agent("search for deals with amount greater than 10000")
Configuration
Set your HubSpot API key as an environment variable:
HUBSPOT_API_KEY=your_hubspot_api_key # Required
HUBSPOT_DEFAULT_LIMIT=100 # Optional
Get your API key at: app.hubspot.com/private-apps
Supported READ-ONLY Actions
⚠️ Important: This tool is designed for READ-ONLY operations only. It CANNOT create, update, or delete any HubSpot data, ensuring complete safety for your CRM.
Search (search)
agent("search for contacts with email containing '@example.com'")
Features:
- Search any HubSpot object type (contacts, deals, companies, tickets, etc.)
- Advanced filtering by property values
- Sorting and pagination support
- Property selection and customization
Get (get)
agent("get contact with ID 12345")
Features:
- Retrieve full object details by ID
- Specify which properties to return
- Works with any object type
- Comprehensive error handling
List Properties (list_properties)
agent("show me all available contact properties")
Features:
- Discover available fields for any object type
- Property metadata and type information
- Field types and available options
Get Property Details (get_property)
agent("get details about the 'email' property for contacts")
Features:
- Detailed property metadata
- Property type, options, and validation rules
- Useful for understanding data structure
Get User Details (get_user_details)
agent("get details for user ID 123")
Features:
- User profile information
- Owner assignment data
- Permission and role details
Why READ-ONLY?
🛡️ Safety First: This tool is intentionally designed as READ-only to:
- Prevent accidental data loss or corruption in your HubSpot CRM
- Enable safe AI exploration of your customer data
- Allow analytics and reporting without modification risks
- Perfect for research and insights without affecting production data
- Ideal for AI agents that need CRM access but shouldn't modify records
Use Cases
- 📊 Analytics & Reporting: Generate insights from CRM data
- 🔍 Customer Research: Search and analyze customer information
- 📋 Data Discovery: Explore available properties and data structure
- 🤖 AI-Powered Insights: Let agents analyze CRM data safely
- 📈 Sales Intelligence: Extract trends and patterns from deals/contacts
- 🎯 Lead Analysis: Research prospects and opportunities
Testing
# Install development dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/ -v
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Links
- PyPI: pypi.org/project/strands-hubspot
- GitHub: github.com/eraykeskinmac/strands-hubspot
- Strands Agents SDK: github.com/strands-agents/strands
- HubSpot API: developers.hubspot.com
Built for the Strands community 🚀
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file strands_hubspot-0.1.1.tar.gz.
File metadata
- Download URL: strands_hubspot-0.1.1.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4937d17883168a46c35835e4d3f857882dbecd4afaf8f86563ee1e348c19599
|
|
| MD5 |
f54721b5ddb60f7b0b20d75972016ae9
|
|
| BLAKE2b-256 |
3a4714c67da9d6b7fe0850ae4f64dd92d7d29ea1100fb6769fc57da0ebace6e9
|
Provenance
The following attestation bundles were made for strands_hubspot-0.1.1.tar.gz:
Publisher:
publish.yml on eraykeskinmac/strands-hubspot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strands_hubspot-0.1.1.tar.gz -
Subject digest:
f4937d17883168a46c35835e4d3f857882dbecd4afaf8f86563ee1e348c19599 - Sigstore transparency entry: 606836072
- Sigstore integration time:
-
Permalink:
eraykeskinmac/strands-hubspot@1f55aef50a2d2ec826a5aef72c07fa9f40c493ea -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/eraykeskinmac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1f55aef50a2d2ec826a5aef72c07fa9f40c493ea -
Trigger Event:
release
-
Statement type:
File details
Details for the file strands_hubspot-0.1.1-py3-none-any.whl.
File metadata
- Download URL: strands_hubspot-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1644b8f22bf5509e043b5da16fadf0a7a5ff40eb72d7dd0130696cb615ddaabf
|
|
| MD5 |
1a524beb0a75698f4c15b676d1662fc6
|
|
| BLAKE2b-256 |
6272ad27b3eac59f4100c217fe88b673471f92b3e6e598426e2ce909b2bdcc71
|
Provenance
The following attestation bundles were made for strands_hubspot-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on eraykeskinmac/strands-hubspot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
strands_hubspot-0.1.1-py3-none-any.whl -
Subject digest:
1644b8f22bf5509e043b5da16fadf0a7a5ff40eb72d7dd0130696cb615ddaabf - Sigstore transparency entry: 606836098
- Sigstore integration time:
-
Permalink:
eraykeskinmac/strands-hubspot@1f55aef50a2d2ec826a5aef72c07fa9f40c493ea -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/eraykeskinmac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1f55aef50a2d2ec826a5aef72c07fa9f40c493ea -
Trigger Event:
release
-
Statement type: