Getting started
Requirements
This module requires:
- AI (Artificial Intelligence) -- AI core platform
- AI Agents -- agent management system (submodule of AI)
- Content Moderation -- editorial workflow for context items (Drupal core)
- Taxonomy -- organize context items via tags (Drupal core)
- Dynamic Entity Reference -- associate context items with content entities
- Scheduler -- schedule publish and unpublish of context items
- Scheduler Content Moderation Integration -- bridges Scheduler with Content Moderation
Recommended modules
- 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:
- Create one or more agents at
/admin/config/ai/agents - Create context items at
/admin/ai/context/items - Configure agent context settings at
/admin/ai/context/settings/agents
For detailed configuration options, see Configuration.