Overview
The HubSpot Knowledge Base connector allows you to import content from HubSpot Service Hub Knowledge Base, including:- Categories: Organizational groupings for articles
- Articles: Individual knowledge base articles with rich HTML content
Note: This connector imports from HubSpot’s Knowledge Base (Service Hub). For HubSpot ticketing integration, see HubSpot Ticketing.
Features
- Article Import: Fetch published, draft, or all articles
- Category Support: Import category hierarchy
- HTML to Markdown Conversion: Automatically converts article HTML to Markdown
- Hierarchical Structure: Preserves category-article parent-child relationships
- Category Filtering: Import only specific categories by ID
- State Filtering: Filter articles by publication state (Published, Draft, All)
- Incremental Updates: Version-controlled imports with deduplication
Prerequisites
HubSpot Requirements
- Service Hub Professional or Enterprise: The Knowledge Base feature requires a paid Service Hub tier
- Private App: Create a private app with the required API scope
- Scope:
cms.knowledge_base.articles.read
Creating a HubSpot Private App
- In HubSpot, go to Settings > Integrations > Private Apps
- Click Create a private app
- Enter a name (e.g.,
AGO Knowledge Base) - Go to the Scopes tab
- Under CMS, enable:
cms.knowledge_base.articles.read - Click Create app
- Copy the Access Token (store it securely)
Finding Your Portal ID
Your Portal ID appears in your HubSpot URL:Configuration
Knowledge Source Setup
Create a new Knowledge Source with the following configuration:- Navigate to Knowledge > Sources > Add Source
- Select HubSpot Knowledge Base as the source type
- Enter a name (e.g., “My HubSpot Knowledge Base”)
- Paste your Private App access token
- Configure the import options described below
- Click Save
Configuration Parameters
Usage Examples
Import Only Published Articles
Import Specific Categories
Import only articles from selected categories:Import All Content Including Drafts
Content Processing
HTML to Markdown Conversion
Article content is automatically converted from HTML to Markdown:- Headings are converted to ATX format (
# Heading) - Lists, links, and formatting are preserved
- The article title is prepended as a top-level heading
Metadata Preservation
Each imported document retains key properties from HubSpot:Hierarchical Structure
The connector preserves the HubSpot Knowledge Base hierarchy: Articles without a matching category are imported as top-level documents.Error Handling
The connector includes error handling for common scenarios:- Invalid credentials: Clear error messages for authentication failures
- Missing content: Skips articles that fail to process without stopping the import
- Categories endpoint unavailable: Falls back gracefully if the categories REST endpoint returns 404
- Rate limiting: HubSpot private apps are limited to 100 requests per 10 seconds
Best Practices
Improving Sync Speed
- Filter Content: Use category and state filters for large knowledge bases
- Published Only: Import only published articles unless drafts are needed
- Incremental Updates: Version IDs track import iterations automatically
Content Management
- Regular Syncs: Schedule periodic imports to capture content updates
- Review Content: Check imported documents for formatting issues after initial import
- Category Organization: Use HubSpot categories to organize content before import
Security
- Private App Security: Use a dedicated private app with minimal scopes
- Token Rotation: Rotate private app tokens periodically
- Scope Limitation: Only grant
cms.knowledge_base.articles.readscope
Troubleshooting
Common Issues
Authentication Errors:
Authentication Errors:
- Verify the private app access token is correct and not revoked
- Ensure the private app has the
cms.knowledge_base.articles.readscope - Check that your HubSpot account has Service Hub Professional or Enterprise
No Articles Imported:
No Articles Imported:
- Verify articles exist in your HubSpot Knowledge Base
- Check that the
state_filtermatches your articles’ publication state - Ensure
category_filterIDs are correct (if set)
Categories Not Imported:
Categories Not Imported:
- The categories REST endpoint may not be available in all HubSpot tiers
- The connector falls back gracefully; articles are still imported without category hierarchy
Missing External Links:
Missing External Links:
- Provide a
portal_idin the configuration to enable external link generation - External links use the format
https://app.hubspot.com/knowledge/{portal_id}/articles/{path}
Related Documentation
- HubSpot Ticketing - HubSpot ticketing integration
- Knowledge Connectors - All available knowledge connectors
- Knowledge Source Management - Source configuration
- Zendesk Integration - Similar help center connector
