Skip to content

Getting started

Requirements

This module requires:

  • Diff -- compare context item revisions side-by-side

Installation

Markdown editor (MDXEditor)

If you are using the AI core dev branch rather than a tagged version of the module, you need to build the markdown editor assets. The minimum required version of Node is 20.14.0.

cd web/modules/contrib/ai/ui/mdxeditor
npm install
npm run build

Context Control Center

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

composer require drupal/ai_context
drush en ai_context
drush cr

Quick configuration

After enabling the module:

  1. Create one or more agents at /admin/config/ai/agents
  2. Create context items at /admin/ai/context/items
  3. Configure agent context settings at /admin/ai/context/settings/agents

For detailed configuration options, see Configuration.