Say your Pro plan costs 29 dollars, and that number sits in a pricing FAQ, three help articles and a blog post. When the price changes, you have five entries to find and edit. With a variable the number lives in one config, and each entry shows it.
Insert a variable
The config has to exist first. Under Config, create one with the key plans and a JSON value such as { "pro": { "price": 29 } }. A config holds any JSON, as Feature flags and settings with the Config module explains, but a variable shows only text and numbers.
Open the entry.
Put the cursor where the value goes.
Click the Insert variable icon at the end of the editor's toolbar.
Pick the config.
Pick the value inside it, such as
pro.price, if the config holds an object.
The editor shows the value as a chip. A chip in the warning style shows the reference, such as plans.pro.price, instead of a value: the config is missing or disabled, or holds no text or number at that path.
Variables work in the body of blog posts, pages, help articles, changelog entries, announcements and FAQ items. Titles and excerpts can't hold them, and neither can feedback posts or comments.
What readers see
Readers see the value as plain text. Kookee writes it into the entry when you save, so the API, the portal, the widget and its Ask AI tab all get the value, and your site needs no code for it.
Text shows as it is.
A number follows the entry's language: 15000 reads 15,000 in English and 15.000 in German, and a four-digit number such as 2026 stays as it is. A number has no currency sign, so write the sign in the text next to the variable. Store a price with cents as text: the number 29.90 reads 29.9, and the string
"29.90"stays as it is.A missing or disabled config, or a path with no text or number, shows empty text, and the words around it stay. A sign written next to the variable leaves "Pro costs $ a month".
A variable shows only what an enabled config already makes public, since the public API returns every enabled config. Never put a secret in a config.
When the config changes
About ten seconds after you save a config, Kookee writes the new value into every entry that shows it, in every language, drafts included. An entry that shows pro.price isn't touched by a change to team.price. A changed entry's Updated date moves, because its text changed. A change to the config's description alone changes nothing.
A site that caches its pages learns about the change through webhooks:
Up to 20 published language versions changed:
entry.updatedfor each, thenconfig.updatedonce. An article in six languages counts as six.More than 20:
config.updatedalone. The config's form shows a warning while more than 20 published language versions show the config.
Above that limit, a site that doesn't subscribe to config.updated refreshes when its cache expires. Send events to your site with webhooks has the details.
Disable, rename or delete a config
The config list and the config's form show a line such as Used in 3 entries, which counts a translated entry once. With no entries, the line is absent.
Turning a config off asks first: the Disable this config? dialog names that number. In the form, it opens when you save. While the config is disabled, its variables show empty text, and they show the value again when you turn it back on.
While an entry shows the config, the form locks its key, and Delete ends in an error. Remove the variables first.
Write a variable from an AI assistant
In Markdown, a variable is a link with the config: scheme: [29](config:plans.pro.price). The part before the first dot is the config's key, and the label is the current value. list_configs gives an assistant the keys and values. A link to a key that doesn't exist keeps its label as plain text, and the result lists it under unknownConfigLinks. A wrong path on a real key isn't listed: the variable shows empty text. See Managing your content from an AI assistant.
Continue reading
Feature flags and settings with the Config module: what a config holds, and how your app reads one.
Add a FAQ to your site: questions and answers for your own pages, which can show variables too.
Send events to your site with webhooks: refresh your site when an entry or a config changes.