Skip to main content

Import topics in bulk

Editors can create many topics, or add notes to existing ones, in one step from Admin → Topics → Import topics from a zip. Each CSV file in the zip is one topic. A preview is shown first and nothing is saved until the import is confirmed.

Prerequisites​

  • An account with the editor role (or owner).
  • A running deployment of Help Me Outgrow with the notification platform granting the tenant content:write. Note links need the platform's clickUrl support, and removing or restoring a note needs the platform's retire endpoint. Both ship with notification-service v2.

File format​

# slug: loss
# title: Loss
# description: For when someone or something you loved is gone.
# sensitive: true
# visibility: private
# repeat: false
body,attribution,media,link
"Grief has no schedule.",,,
"You are allowed to rest.",A friend,https://example.org/rest.png,https://example.org/read-more
Header lineRequiredRules
slugYes2 to 40 lower-case letters, digits or dashes. Reserved slugs are rejected.
titleFor a new topicUp to 60 characters.
descriptionNoUp to 300 characters.
sensitiveNotrue or false; default false.
visibilityNoprivate (default) or public.
repeatNotrue starts again after the last note; default false.
Notes columnRequiredRules
bodyYesUp to 300 characters.
attributionNoUp to 120 characters.
mediaNoAn https image shown with the note.
linkNoAn https page opened when the notification is tapped. {deliveryId} and {token} may be used.

A download link for an example CSV is shown in the import panel.

Steps​

  1. Put one CSV per topic into a zip file.
  2. Open Admin → Topics → Import topics from a zip and choose the zip.
  3. Select Preview. Each file shows as a new topic, an addition to an existing topic, or skipped, with the notes to add, duplicates already present, problems and notes whose wording may look like spam.
  4. Fix any listed problems and preview again if needed.
  5. Select Import. Each topic reports how many notes were added.

Behaviour​

  • A new slug creates a topic, private unless the file says public.
  • An existing slug keeps its notes; only new notes are added at the end. Exact duplicates are skipped.
  • Title, description, sensitive and repeat are updated when the file states them. A private topic can be made public by import; a public topic never becomes private.
  • Files with problems are skipped whole; the others still import.
  • Each topic imported is recorded in the audit log.
  • Large topics are sent to the notification platform in batches of at most 56 KB (and at most 1,000 notes), in order, because the platform accepts request bodies up to 64 KB. Topics in non-Latin scripts such as Tamil use more bytes per character and therefore more batches.
  • If a batch fails partway, the result states how many notes were saved. Importing the same file again adds only the notes still missing.

Remove, restore and review duplicates​

Editors manage individual notes under Admin → Topics → a topic.

  • Remove retires a note after confirmation. It is no longer sent, but it keeps its place, so nobody's position in a running course moves. Removed notes appear struck through and the note count shows how many are removed. Each removal is recorded in the audit log as line.remove.
  • Restore brings a removed note back.
  • A removed note still counts as a duplicate, so importing its text again does not bring it back; use Restore.
  • Show likely duplicates only lists both copies of every pair of notes with the same words or at least 80% shared words, tagged "like note N". The editor chooses which copy to remove.
  • Notes are never deleted or reordered.

Limits​

Zip of up to 5 MB, 100 CSV files, 1,000 notes per file, 2 MB per file. Other file types and __MACOSX entries are ignored.

Troubleshooting​

MessageCause
missing "# slug: …" lineThe file has no slug header line.
a new topic needs a "# title: …" lineThe slug does not exist yet and no title was given.
the notes table needs a "body" columnThe header row has no body column (text or note also work).
the media link must be an https:// addressA media or link value is not https.
slug appears in more than one fileTwo files in the zip use the same slug.
This is not a zip file that can be openedThe upload is not a valid zip.