Sample context
Context Control Center ships optional university sample context so you can try the module without writing items from scratch.
The copy is illustrative. Do not use it unchanged on a production site. Adapt it to your organization's voice, audience, and policy before you publish a copy.
There are two ways to get the same three items:
- Developers / site builders apply an optional recipe.
- Editors copy or upload the markdown files in this documentation.
The recipe is not applied when you enable ai_context. Sample items stay
unpublished (draft) so they do not affect agent prompts on their own.
Duplicate a sample, adapt the copy, and publish the copy — do not publish
the originals unchanged.
What each sample contains
All three items use the Working with Text use case. Leave the originals unpublished. Duplicate them, then set scope for your site on the copy.
| Label | What it covers | Markdown |
|---|---|---|
| Sample: Voice and tone | Plain language, British English, and student messaging for current-student content | voice-and-tone.md |
| Sample: Structure and grammar | Sentence case, headings, lists, punctuation, spelling, and date, number, time, money, and distance formats | structure-and-grammar.md |
| Sample: Inclusive language | Writing about people, including disability, sex, gender, sexuality, race, and ethnicity | inclusive-language.md |
Voice and tone includes a student-messaging section that applies only to current-student content. The other two items apply to all content editing.
Each item stores a disclaimer and GPL-2.0-or-later licensing line in
the description and at the top of the content.
Apply the recipe (developers)
The recipe lives at recipes/ai_context_demo_university/ and is listed
on Configuration → AI → Context Control Center → Settings →
Extensions.
From the Drupal web root, with DDEV:
ddev exec -d /var/www/html/web php core/scripts/drupal recipe \
../modules/contrib/ai_context/recipes/ai_context_demo_university
Or with Drush from the project root:
ddev exec drush recipe \
web/modules/contrib/ai_context/recipes/ai_context_demo_university
Without DDEV, run php core/scripts/drupal recipe from the Drupal web
root.
If Context Control Center is already enabled, the recipe only imports the three items. Re-applying skips items that already exist (same UUID), so it does not create duplicates.
After apply, visit /admin/config/ai/context/items. You should see the
three draft items. They do not enter agent prompts while unpublished.
Duplicate a sample and adapt the copy before you publish anything.
The Extensions page shows Applied when all three sample UUIDs exist, Partially applied if some were deleted, and Not applied if none are present.
Create the items from markdown (editors)
You do not need a developer to try the samples.
- Go to
/admin/config/ai/context/itemsand add a context item. - Set the Label, Description, and Purpose from the table below.
- Set Use Cases to Working with Text. Do not use Global.
- Paste the matching markdown file into the Content field (it is a markdown textarea; there is no separate editor mode to switch). Or use the markdown file importer if that submodule is enabled.
- Save as Draft. Duplicate this sample, adapt the copy, and publish the copy — do not publish the original unchanged.
Sample: Voice and tone
- Description: Illustrative university sample. Do not use unchanged in production. Licensed GPL-2.0-or-later. University editorial voice: plain language, British English, and student messaging for current-student content.
- Purpose: Apply plain language and British English on every page. Apply the student messaging section only when writing for current enrolled students, not prospective students or applicants.
- Content: samples/voice-and-tone.md
Sample: Structure and grammar
- Description: Illustrative university sample. Do not use unchanged in production. Licensed GPL-2.0-or-later. University formatting, punctuation, spelling, and dates, numbers, times, money, and distances.
- Purpose: Apply sentence case, stand-alone link text, heading hierarchy, list style, punctuation, British spelling, and consistent date, number, time, money, and distance formats.
- Content: samples/structure-and-grammar.md
Sample: Inclusive language
- Description: Illustrative university sample. Do not use unchanged in production. Licensed GPL-2.0-or-later. University guidance for writing about people, including disability, sex, gender, sexuality, race, and ethnicity.
- Purpose: Apply when writing about people. Only mention personal characteristics when they are directly relevant to the content. Ask how people want to be described; never assume.
- Content: samples/inclusive-language.md
Duplicate and adapt
Do not edit the recipe originals if you still want a clean sample to compare against. Duplicate the sample and edit the duplicate.
- From the context items listing, use Duplicate in the row
operations. You can also open the item and use the Duplicate tab
(
/admin/config/ai/context/items/{id}/duplicate). - Change the label so it is no longer prefixed with
Sample:if the copy is now yours. - Remove or rewrite the illustrative disclaimer.
- Adapt the content, purpose, and scope.
- Publish the copy when it is ready. Leave the original unpublished, or delete it.
See Duplicating items.
Disable and remove sample data
Unpublished samples are already disabled for agent selection. To remove them:
- Go to
/admin/config/ai/context/items. - Delete the three items whose labels start with
Sample:.
Or delete by UUID with Drush. The recipe does not uninstall
ai_context. Re-applying the recipe after a delete recreates the
missing items only.
License and attribution
Sample copy is licensed GPL-2.0-or-later, the same terms as AI Context. It is an original adaptation informed by general higher-education editorial principles, not a copy of any university style guide.
See also
- Context items — creating, duplicating, and managing items
- Content moderation — draft vs published
- Extensions settings (
/admin/config/ai/context/settings/extensions) — optional recipe listing on the site