This page covers HubSpot’s knowledge base. To create tickets in HubSpot, see HubSpot Ticketing.
Prerequisites
- HubSpot Service Hub Professional or Enterprise, which includes the knowledge base
- A private app with the
cms.knowledge_base.articles.readscope
Create a private app
- In HubSpot, go to Settings > Integrations > Private Apps and click Create a private app.
- Enter a name, for example “AGO Knowledge Base”.
- In the Scopes tab, enable
cms.knowledge_base.articles.read. - Click Create app and copy the Access token.
Find your portal ID
Your portal ID is the number in your HubSpot URLs, for example12345678 in https://app.hubspot.com/contacts/12345678/....
Setup
- Go to Knowledge > Sources and click Create New Source.
- Enter a name and select
hubspot_kbas the Source Type. - Paste the access token under Authentication.
- Enter your Portal ID and set the options below.
- Click Save, then open the source and click Sync Source.
Configuration
Choose categories
After you save the source once, the Category Filter shows your categories so you can pick them. Before that, or if the list can’t load, enter category IDs manually. Leave the filter empty to import all categories.What gets imported
- Categories become parent documents. Sub-categories are nested under their parent category when HubSpot provides that information; otherwise categories are listed at the same level.
- Articles are converted to Markdown, with the title as the first heading, and nested under their category. Articles without a category are placed at the top level.
- Each article links to its public page when Knowledge Base Domain is set, or to the article in HubSpot when only Portal ID is set.
Tips
- Import published articles only, unless agents need drafts.
- Use category filters on large knowledge bases.
- Use a dedicated private app with only the scope above, and rotate its token periodically.
Troubleshooting
Authentication errors
Authentication errors
- Check the access token is correct and has not been rotated or revoked.
- Check the private app has the
cms.knowledge_base.articles.readscope. - Check your HubSpot subscription includes Service Hub Professional or Enterprise.
No articles imported
No articles imported
- Check articles exist in the selected Article State.
- Check the category filter IDs.
- If Knowledge Base Domain is set, check it matches the domain your articles are published on.
Sub-categories appear flat
Sub-categories appear flat
HubSpot does not return category parents for every account. In that case, categories are imported without nesting, and articles are still imported.
Missing external links
Missing external links
Set Portal ID, or Knowledge Base Domain for links to your public pages, then sync again.
Related
- HubSpot Ticketing: HubSpot ticketing integration
- Knowledge Connectors: all connectors
- Knowledge Source Management: managing sources
