Coming from a system HAIMDALL has no dedicated importer for — an in-house wiki, a database export, a set of Word documents you've converted? The Generic Bulk Importer takes a plain .zip you can build yourself: a spreadsheet-style index (CSV), one Markdown file per article, and a folder of images and downloadable files. Like every import, it's checked in a dry run first, and nothing in HAIMDALL changes until you confirm. For Zendesk, GitBook and Paligo exports, use their own importers instead — see Importing from Legacy Systems.
Importing is for admins only.
Start from the Template
The quickest way to learn the format is to import the template and look at the result. Go to Import and click Download the template on the Generic CSV & Zip card (it's also linked inside the importer). The zip contains:
import_index.csv the index — one row per article per language
article-1.md a sample article using every editor style
article-2.md a second article, nested under the first
attachments/sample-diagram.png a sample image
attachments/quick-reference.pdf a sample downloadable file
README.txt a short summary of this pageUpload it unchanged to see what the importer makes of it, then replace the files with your own content.
The Zip Layout
import_index.csvmust be in the zip — at the top level, or inside a single folder if you zipped a folder. Everything else is found relative to it.One Markdown file per row, anywhere in the zip (
article-1.md, ordocs/setup/install.md).attachments/holds images and downloadable files. Other locations work too, as long as the Markdown points at them correctly.A
README.txtat the top level is ignored, and so are macOS and Windows clutter files (__MACOSX,.DS_Store,Thumbs.db).
Upload Size Limit
A Generic import can be at most 50 MB. The importer refuses a larger file the moment you choose it, before anything is uploaded, and the server enforces the same limit while the file streams in. If your content is bigger, split it into several zips — each with its own import_index.csv — and import them one after another. Links from a later zip to articles from an earlier one still work (see After Importing below).
Formatting the CSV
The first line names the columns. These six are required:
Folder Name — the folder the article goes into. If a folder with this name already exists, the article goes there by default; otherwise a new folder is created. You can change either in the mapping step.
Article Title — the article's title.
Slug — the article's web address, and the name other articles use to link to it. Leave it empty to make one from the title. Letters are lower-cased and spaces become hyphens.
Language — the language code, such as
en,frorpt-br. It's used as-is.Territory Tags — the territories allowed to see the article, such as
UK; FR. Leave it empty (or writeALL) for everyone. Codes must already exist on the Territories page.Content Filename — the Markdown file holding the content, as a path inside the zip, such as
article-1.md.
These three are optional: Parent Slug (nests the article under the article with that slug), Description (the summary shown in search results) and Keywords (search keywords separated by ;, applied to every language).
Rules worth knowing:
One row per language. Rows with the same Slug are translations of one article — give each its own Language and Content Filename. The first row's language is the article's main language; every language shares the article's one address, so the rows for
getting-startedbecome/latest/en/getting-started,/latest/fr/getting-startedand so on.Which version. With several product versions, the import goes into the version you're working in (the import dialog says which).
Territory applies to the whole article, in every language. To hide just a passage, use territory text in the Markdown (below).
Columns can be in any order, and capitals or extra spaces in their names don't matter.
Commas, semicolons or tabs between columns are all fine. Put a value in double quotes if it contains a comma or a line break, and write a quote inside a quoted value as two quotes (
""). Saving as CSV UTF-8 from a spreadsheet app does all of this for you.
A small example:
Folder Name,Article Title,Slug,Language,Territory Tags,Content Filename,Parent Slug
Getting Started,Installing the App,installing,en,,install.md,
Getting Started,Installer l'application,installing,fr,,install.fr.md,
Getting Started,Upgrading,upgrading,en,"UK, FR",upgrade.md,installingWriting the Markdown Files
Write ordinary Markdown: headings, bold, italic, inline code, bulleted and numbered lists (nested too), quotes and external links all come across as they are. A first-line heading that repeats the article's title is dropped, since the title is shown anyway. HAIMDALL's own extras work as well:
```bash
# Fenced code blocks become code boxes; the language after the fence is kept.
npm run build
```
{{columns:2}}
Left column content
{{column}}
Right column content
{{/columns}}
[This sentence is only shown in the UK.]{territory="UK"}See Layouts & Reusable Templates for columns and Search Optimization & Keywords for territories.
Linking Between Articles
Link to another article in the same CSV by its Slug, with double square brackets — the slug, a vertical bar, then the link text:
Next, read [[upgrading|how to upgrade]].An ordinary Markdown link to the other article's file works too:
Next, read [how to upgrade](upgrade.md).Both become proper HAIMDALL links, stored by article rather than by address, so they keep working if the article is renamed later. You can also link to an article from an earlier Generic import by its slug. A link to a slug that isn't in the CSV (or an earlier import) is reported in the dry run; if you import anyway, the words stay and only the link is removed.
Images
Use a normal Markdown image pointing at the file in the zip:
Paths are looked up next to the Markdown file first, then from the top of the zip — so attachments/settings.png works from any folder. Images on the web (https://…) are kept as they are.
Attachments (Download Links)
To offer a file for download, write its path inside double curly braces after file::
Download the {{file:attachments/price-list.pdf}} before you start.The importer uploads the file and turns this into an in-line download link with a stable address that keeps working when the article is republished — the same kind of link the editor's file tool makes (see Adding Hyperlinks). Every reference to the same file, in any article of the import, shares one link. The address starts working when the article is published.
The path can't contain spaces — rename Price List.pdf to price-list.pdf. A plain Markdown link to an attachment, such as [price list](attachments/price-list.pdf), can't become a download link, so the dry run flags it and keeps only the words.
Running the Import
Go to Import and click Import a zip… on the Generic CSV & Zip card (or choose Generic CSV & Zip in any importer).
Drop your
.zipon the box or click Choose a file…, then Upload & check. The button shows the upload's progress.Check the mapping: the languages (already filled in from the CSV) and the folders (an existing folder of the same name, or a new one you can rename).
Click Run dry run › and read the report.
Click Confirm & Import. The import runs in the background — you can close the pop-up and follow it under Import history.
Reading the Dry Run Report
Above the usual totals, a Generic import shows three checks, each ticked, flagged or crossed:
Content files — every Content Filename in the CSV is in the zip, and the CSV itself is readable: required columns present, no empty required values, no two rows with the same slug and language. A problem here is an error: fix the zip and upload it again.
Internal links — every link points at a slug in the CSV, or one imported before. A problem here is a warning.
Attachments — every image and attachment file is in the zip. A problem here is a warning: the image is left out, or the attachment's name is kept as plain text without a download link.
A territory code that doesn't exist — in the Territory Tags column or in territory text — is also an error. Add the territory on the Territories page first, or correct the code. Confirm & Import stays disabled while there are errors. Files in the zip that no article uses, and Markdown files the CSV doesn't mention, are listed as information and not imported.
After Importing
Everything arrives as a Draft, in the folders you chose. Review the articles and publish them as usual — Publish Selected on the dashboard handles a whole folder.
The import appears in the Activity log as one group of Import entries, one per language version.
Importing again: articles whose slug was imported before are skipped, so you can re-upload a zip that has grown and only the new rows are added. Changes to articles you've already imported are not copied over — edit those in HAIMDALL.
If the import fails, nothing is kept — it's all or nothing — and you can retry it from Import history.
Importing with an AI Agent
AI agents connected through the MCP server can use the runGenericImport tool with the path of a zip on the server's machine. With dryRun: true it only returns the validation report; otherwise it imports — if the report has no errors — and returns what it created. See AI Feeds.