ai_slack
AI Chat Integrations allows you to connect external chat platforms like Slack with Drupal’s AI module. It lets you interact with AI Agents directly from Slack and send updates from Drupal back to your chat.
Disclaimer: Some of the code was generated using AI for this module, under human supervision.Features
- Connect a Slack bot to Drupal’s AI ChatProcessor system.
- Interact with AI Agents directly from Slack without logging into Drupal.
- Send commands or questions to agents and receive responses in real time.
- Bidirectional communication: trigger messages from Drupal to Slack based on events.
- Flexible integration with custom ChatProcessor plugins.
This module is useful when you want to bring Drupal’s AI capabilities into team workflows. For example, editors, developers, or support teams can query or trigger AI agents directly from Slack instead of navigating the Drupal UI. It’s especially valuable for automation, monitoring, and quick interactions with AI-powered features.
Post-Installation
After installing the module, you will need to configure a Slack bot and connect it to your Drupal site:
- Create a Slack app and bot via the Slack developer interface.
- Configure OAuth tokens and permissions required for messaging.
- Enter the Slack credentials in the module’s configuration page.
- Connect the bot to a ChatProcessor (typically an AI Agent) within the AI module.
- Optionally configure event-based triggers to send messages from Drupal to Slack.
Once configured, you can start interacting with your AI Agents directly from Slack channels or direct messages. Responses will be handled through the configured ChatProcessor.
Additional Requirements
- Drupal AI module (with ChatProcessor support).
- A configured Slack workspace and Slack bot.
- Valid Slack API credentials (OAuth token, signing secret, etc.).
Recommended modules/libraries
- AI Agents module (to provide advanced agent-based interactions).
- AI ChatProcessor plugins for custom workflows.
- Queue or event-based modules for advanced automation scenarios.
Similar projects
While other integrations may connect Drupal to external services, this module focuses specifically on AI-driven chat interactions through the AI module’s ChatProcessor system. Its tight integration with AI Agents and bidirectional messaging differentiates it from more general Slack integration modules.
Supporting this Module
If you find this module useful, consider supporting its development through community contributions, issue reporting, and sponsoring ongoing work on Drupal AI initiatives.
Community Documentation
- AI module ChatProcessor documentation: https://project.pages.drupalcode.org/ai/1.4.x/developers/writing_a_chat_...
- Guides for setting up Slack bots (to be expanded with step-by-step instructions and screenshots).
- Future improvements will include visual walkthroughs and example configurations.
Planned improvements:
- Add a setup “skill” to simplify configuration.
- Provide clearer, image-based documentation for Slack bot setup.