Skip to main content

Banner

Display announcements and notices to your users

Display important messages to all your users at the top of the app. Perfect for announcements, maintenance notices, or updates.

Quick Overview

  • Only one banner can be active at a time
  • Schedule banners to appear and disappear automatically
  • Choose whether users can dismiss the banner or not
  • Show banners to everyone, or only logged-in users

Creating a Banner

There are two ways to create or update a banner — use whichever you prefer:

  • intelliask binary — manage the banner from the host, no need to shell into the container.
  • npm run update-banner — the app's built-in script, run inside the IntelliAsk container.

Both drive the same underlying banner, so you can mix and match.

Set a banner in one line from the host:

intelliask banner set -m "🎉 Welcome to IntelliAsk! Check out our new features."

Common flags:

FlagPurpose
-m, --message <text>Banner text (required for non-interactive use).
--from <ts>Show from — format yyyy-mm-ddTHH:MM:SSZ (default: now).
--to <ts>Show until — format yyyy-mm-ddTHH:MM:SSZ (default: no end).
--publicAlso show to logged-out visitors (e.g. the login page).
--persistableUsers cannot dismiss the banner — use for important notices.

Check or remove the current banner:

intelliask banner show      # print the active banner
intelliask banner clear     # remove it (asks to confirm; --yes to skip)

Run set with no flags to be walked through the same guided prompts shown in the other tab:

intelliask banner set

What do these options mean?

  • Display From/To: When the banner should appear and disappear. Leave empty (or press Enter at the prompt) for "now" and "forever".
  • Is public (--public): Show to visitors who aren't logged in (like on the login page).
  • Is persistable (--persistable): If yes, users can't dismiss the banner (use it for important notices).

Running this again replaces the existing banner

There is only ever one banner. update-banner looks for an existing banner and overwrites it in place, creating one only when none exists, so you cannot queue up a second banner for a later date, and you cannot have two scheduled windows overlap. Running the command again discards the previous banner's message and schedule.

To change a banner, run update-banner again. To take one down before its Display To time, use delete-banner below.


Deleting a Banner

intelliask banner clear

You'll be asked to confirm before it's removed. Pass --yes to skip the prompt.

Only an active banner can be deleted

delete-banner only finds a banner that is currently active: its Display From time must have passed, and its Display To time must be in the future or not set. A banner scheduled for a later date, or one whose Display To has already passed, is reported as "No banner found to delete" and stays in the database. To replace such a banner, run update-banner again.

Removing a banner this way is also how you take one down early: there is no "disable" flag. A banner otherwise disappears on its own once Display To passes, and one saved with no Display To stays up until you delete it.


Example Banners

A simple welcome message that users can dismiss:

# intelliask binary
intelliask banner set -m "👋 Welcome to IntelliAsk!"
 
# npm (inside the container)
npm run update-banner "" "" "👋 Welcome to IntelliAsk!" "false" "false"

Empty date arguments still prompt

An empty string ("") for a date is treated as missing, so the script still asks for Display From and Display To interactively. Press Enter at each prompt to accept the default, or pass ISO dates (yyyy-mm-ddTHH:MM:SSZ) as the first two arguments to run the command without prompts. The message argument is also required to skip the message prompt, and the isPublic and persistable arguments must be given as true or false to skip theirs.


Date Format

Use this format for dates: yyyy-mm-ddTHH:MM:SSZ

Examples:

  • 2025-12-25T09:00:00Z → December 25, 2025 at 9:00 AM (UTC)
  • 2025-01-01T00:00:00Z → January 1, 2025 at midnight (UTC)

When prompted, press Enter without typing a date to use the current time for Display From, or no end date for Display To.

Last updated on