Install
Works with Drupal: ^10.3 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
AI Integration - ECA 1.0.0
We are pleased to announce the first stable release of AI Integration - ECA, the bridge between Drupal's AI module and the ECA (Events-Conditions-Actions) framework. Thank you to everyone who tested the alpha and release-candidate versions and helped us reach this milestone.
What this module does
AI Integration - ECA turns AI into a first-class building block in your no-code workflows. Every AI operation the AI module can perform becomes an action you can drop into an ECA model, wire to any Drupal event, and gate with any condition - without writing code.
Key features
AI operations as ECA actions
- Text: Chat, Moderation, Embeddings, Translate Text
- Speech: Text to Speech, Speech to Text
- Images and media: Text to Image, Image to Image, Image to Video, Speech to Speech, Audio to Audio
- Understanding: Image Classification, Object Detection
Each action selects a provider and model, reads its input from an ECA token, and writes its result back into another token for later steps in the model. The file-based actions accept input as a managed file, a path or URI, or raw binary, and return their results as a list of file references.
Token-based data flow
Like all ECA plugins, these actions communicate through ECA's token system. Input comes from a configurable token, results are stored into another, and any [token] placeholder in a prompt or configuration value resolves against the full ECA token scope. A content event can feed its text into a moderation or embedding action, and that action's result can drive the next condition or action in the flow.
Modeler Assistant
An AI chat assistant is embedded in the ECA modeler. While editing a model you can ask it questions about the model on your canvas, or ask which component fits the task at hand. When you ask it to build something, it proposes a one-click plan - adding nodes, connecting them, and attaching conditions - validated against your site before you can apply it.
Submodules
- AI ECA Agents: lets an LLM answer questions about your existing ECA models and create new models from a natural-language description. Every model it creates is saved in a disabled state for human review. (Requires ECA 3 / Drupal 11.3+.)
- AI ECA Automators: brings AI Automators into ECA as an action, so AI-driven field interpolation can be triggered at exactly the point your workflow needs it.
- AI ECA Interceptor: turns the AI module's provider proxy into something your models can watch and steer. Every AI call dispatches events, and a rich set of conditions and actions lets you govern AI request/response traffic - including calls made by other modules - from a model instead of from code.
What's new in 1.0.0
- Support for media entities in vision models
- The chat system prompt moved out of the model configuration into its own field
- Token replacement for the token input and mask fields
- Fixed failover chat output overwriting an output when the provider failed
- Cleaner interceptor action names and updated config schema labels
- New logo, and a refreshed README and documentation
Replacing earlier modules
This module replaces the earlier attempts to integrate AI and ECA, both now obsolete: the standalone AI - ECA module and the ECA integration submodule that shipped inside the main AI module. All of that functionality now lives here - the package declares replace: drupal/ai_eca. If you are coming from either, this is the module to use going forward.
Requirements
- Drupal 10.3 or Drupal 11
- AI module 1.4 or newer
- ECA 2 or ECA 3
- AI Agents 1.3 or newer
Documentation and help
- Full documentation, including the usage guide and the action reference
- Usage documentation - inputs, outputs, and result-token shapes for every action
- Agents documentation and Interceptor documentation
- Questions, bug reports, and feature requests belong in the issue queue
- Project page on Drupal.org: https://www.drupal.org/project/ai_integration_eca
Thank you for using AI Integration - ECA. Happy modeling!