A containerized tool to download all Intercom Help articles in Markdown format with their images. Perfect for importing into Notion or other documentation platforms.
- Downloads all Intercom Help articles via their API
- Converts HTML content to Markdown format
- Downloads and includes all images
- Organizes content by collections and sections
- Containerized solution - no need to install dependencies on your local machine
- Docker installed on your machine
- Intercom API token with access to your Help Center
-
Clone this repository:
git clone https://github.com/yourusername/intercom-article-slurper.git cd intercom-article-slurper
-
Create a
.env
file with your Intercom API token:cp .env.example .env
Then edit the
.env
file to add your Intercom API token.
# Build the Docker image
docker build -t intercom-slurper .
# Run the container with your API token
docker run --rm -v /Users/jamesevans/intercom_articles:/app/output --env-file .env intercom-slurper
- The tool will fetch all collections, sections, and articles from your Intercom Help Center
- It will convert each article to Markdown format
- Images will be downloaded and stored in the
output/images
directory - Articles will be stored in the
output/articles
directory, organized by collection and section - A metadata file (
output/articles_metadata.json
) will be created with information about all downloaded articles
output/
├── articles/
│ ├── Collection_Name_1/
│ │ ├── Section_Name_1/
│ │ │ ├── Article_Title_1.md
│ │ │ ├── Article_Title_2.md
│ │ │ └── ...
│ │ └── Section_Name_2/
│ │ └── ...
│ └── Collection_Name_2/
│ └── ...
├── images/
│ ├── image1.jpg
│ ├── image2.png
│ └── ...
└── articles_metadata.json
After running the tool, you'll have a complete set of Markdown files with images that can be imported into Notion:
- In Notion, click "Import" in the sidebar
- Select "Markdown & CSV"
- Choose the files or directories from the
output/articles
directory - Images referenced in the Markdown files will be automatically imported
MIT