Skip to main content
Import categories and articles from your HubSpot Service Hub knowledge base into AGO. The connector converts articles to Markdown and nests them under their categories.
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.read scope

Create a private app

  1. In HubSpot, go to Settings > Integrations > Private Apps and click Create a private app.
  2. Enter a name, for example “AGO Knowledge Base”.
  3. In the Scopes tab, enable cms.knowledge_base.articles.read.
  4. Click Create app and copy the Access token.

Find your portal ID

Your portal ID is the number in your HubSpot URLs, for example 12345678 in https://app.hubspot.com/contacts/12345678/....

Setup

  1. Go to Knowledge > Sources and click Create New Source.
  2. Enter a name and select hubspot_kb as the Source Type.
  3. Paste the access token under Authentication.
  4. Enter your Portal ID and set the options below.
  5. 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

  • Check the access token is correct and has not been rotated or revoked.
  • Check the private app has the cms.knowledge_base.articles.read scope.
  • Check your HubSpot subscription includes Service Hub Professional or Enterprise.
  • 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.
HubSpot does not return category parents for every account. In that case, categories are imported without nesting, and articles are still imported.