Drupal AI Assistant API Plugin Error: 'Plugin does not exist'

Created on 24 April 2025, 19 days ago

Problem/Motivation

When installing all necessary modules to build a chatbot, creating the chatbot assistant, placing the chatbot block, and attempting to use it, a persistent error appears in the logs. This error prevents the chatbot from functioning correctly.

The error:
cms | [24-Apr-2025 14:21:28] WARNING: [pool www] child 436 said into stderr: "[drupal "base_url":"http://localhost","severity":"ERROR","type":"ai_assistant_api","date":"2025-04-24T10:21:28","uid":"1","request_uri":"http://localhost/api/deepchat?token=S8vnOom8PAQ6QzlA106tU8MYXtVpK7gGQjwM...","refer":"http://localhost/user/1?check_logged_in=1","ip":"192.168.65.1","link":"","message":"The "" plugin does not exist. Valid plugin IDs for Drupal\ai_assistant_api\AiAssistantActionPluginManag"r are: "]

Steps to reproduce

1. Install the AI module using `bin/composer require 'drupal/ai:^1.0'`.
2. Go to the Extensions page at ``, find and install the following modules:
- AI Core
- AI Chatbot
- AI Assistant API
- Key
3. Install the Ollama Provider using `composer require 'drupal/ai_provider_ollama:^1.0@beta'`.
4. Go to the Extensions page at ``, find and install the Ollama Provider.
5. Download and install Ollama.
6. Start Ollama and run the model: `ollama run llama3.2`.
- Ollama runs at port ``. Use `http://host.docker.internal` for the host in the provider setup.
7. Set up the Ollama Provider.
8. Enable and configure the AI Assistant API module.
9. Enable the AI Deepchat Chatbot module.
10. Visit /admin/structure/block
11. Choose a region of your theme template and click the "place" button.
12. Select the AI Deepchat Chatbot block and press the place button.
13. Select which AI Assistant to use.
14. Attempt to use the chatbot functionality.
15. Observe the error in the logs:
- `[24-Apr-2025 14:21:28] WARNING: [pool www] child 436 said into stderr: "[drupal "base_url":"http://localhost","severity":"ERROR","type":"ai_assistant_api","date":"2025-04-24T10:21:28","uid":"1","request_uri":"http://localhost/api/deepchat?token=S8vnOom8PAQ6QzlA106tU8MYXtVpK7gGQjwM...","refer":"http://localhost/user/1?check_logged_in=1","ip":"192.168.65.1","link":"","message":"The "" plugin does not exist. Valid plugin IDs for Drupal\\ai_assistant_api\\AiAssistantActionPluginManag"r are: "]`

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

AI Assistants API

Created by

🇵🇷Puerto Rico yaritzagarcia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024