Easy, Fast, and Free!
Launch sites in < 5 seconds!
Demo, Develop, and Deploy.
Share recipes and templates.
Free for 30 days.
Drupal CMS AI Demo
Try Drupal CMS AI with a built-in AI key. The built-in key has a $1 spending limit.
Here is an AI summary of the video “Drupal CMS +AI Demo on Drupal Forge” for YouTube, featuring Marcus from FreelyGive (https://freelygive.io/).
This video provides an insightful demonstration of various AI integrations and modules within Drupal CMS, showcasing how artificial intelligence can enhance content creation, management, and site functionality. Marcus from FreelyGive guides viewers through practical examples, from basic AI API interactions to advanced agent-based automations and content workflows, highlighting the power and flexibility of AI in a Drupal environment.
Here’s a breakdown of the video’s key topics and their timestamps for easy navigation:
- 00:01 - Vector Databases and RAG Search Discussion: Marcus begins by discussing the desire to integrate vector databases, like PostgreSQL, for RAG (Retrieval Augmented Generation) search capabilities within DevPanel, noting the challenge of providing cloud databases for individual spin-ups.
- 01:40 - AI API Explorer: This section introduces the AI API Explorer, a tool that showcases raw queries and helps developers understand the underlying processes. It demonstrates how to write code for chat or text-to-image requests in a normalized fashion, making it compatible with various providers like Drupal Forge, OpenAI, or local Llama. Marcus shows testing chat functionality, streaming, JSON schema returns, and even checking model identities, though some models may not accurately report who they are. It also briefly touches upon embeddings, which are used in RAG search for finding similarity.
- 05:08 - AI Content Suggestions Module: Marcus demonstrates this simple yet powerful module that provides AI-driven suggestions for content on nodes, blocks, or any entity. He enables plugins for summarizing, suggesting titles, evaluating readability, and altering tone. Viewers see live examples of generating a title suggestion, getting a Flesch readability score, altering text tone to be friendlier, and creating a summary. It is emphasized that this is a plugin system, allowing users to add their own custom suggestion plugins.
- 10:17 - CKEditor Integration with AI Tools: This segment showcases how AI tools are integrated directly into the CKEditor body field. Marcus demonstrates using an AI assistant to generate text (e.g., two sentences about Formula 1) and utilizing a bubble menu to summarize selected text.
- 12:28 - Advanced CKEditor Feature: Tone/Target Group Rewriting: Marcus illustrates a more advanced feature that leverages AI to rewrite text for a specific target audience or tone. He sets up a taxonomy for target group (e.g., “suitable for 15 year olds”) and demonstrates how to reverse engineer AI by asking a reasoning model to create a system prompt for rewriting text in a specific way. The video shows the AI rewriting a lengthy article and then re-evaluating its readability score to confirm the change.
- 16:15 - Drupal 11.2 Compatibility and Patching: This section briefly touches on a technical issue with Drupal 11.2 and the Field Validation module's dependency on Symfony updates, showing how to apply patches via Composer to resolve such conflicts.
- 21:18 - AI Logging Module: Marcus demonstrates the AI Logging module, which logs all incoming and outgoing AI calls, providing transparency and a way to debug interactions.
- 23:18 - Translate Module: This module enables AI-powered content translation. Marcus shows the setup process, including enabling target languages (e.g., Spanish) and making content types translatable, followed by a live demonstration of translating an entire page.
- 26:23 - Image Bulk Alt Text Module: Marcus showcases how this module automates the process of generating alternative text for images. He explains settings, including the image style option to crop images to reduce costs associated with processing high-resolution images by vision models. The module can also be configured to auto-generate alt text upon image upload.
- 28:38 - AI Agents: Marcus delves into AI Agents, which are built into Drupal CMS and can autonomously create content types, fields, and vocabularies/taxonomies.
- He demonstrates asking an agent to create a movie reviews content type, add a description to it, and add a numerical review score field aware of field types.
- He also shows the agent creating taxonomy terms for movie genre.
- The concept of clearing agent history to maintain accuracy is highlighted.
- Marcus demonstrates the AI Agent Explorer, which allows direct interaction with agents and provides visibility into their internal thought processes and tool usage, crucial for debugging.
- He then shows how to set up a simple agent (e.g., a media type agent) by defining its description, maximum loop iterations (to prevent endless loops caused by hallucination), and instructions.
- A significant discussion is held on agent autonomy versus workflows and the security risks associated with generic tools (e.g., prompt injection), emphasizing the need for property restrictions to force specific values and prevent malicious actions.
- 45:54 - Automators / Workflows: Marcus introduces automators as a way to use AI to fill out field data based on other content, similar to workflows.
- He demonstrates enabling an AI automator for a movie genre taxonomy field, using a prompt to select categories based on a review’s description.
- He shows how the AI automatically fills in action adventure for the genre.
- The automator is also applied to the review score field, allowing the AI to suggest a score based on the text.
- Marcus showcases a plain text summary automator that generates a two-sentence summary from a review.
- An attempt to demonstrate an image generation automator is made, but a missing model prevents its execution.
- He also briefly mentions the concept of a “chat” default model for cost optimization.
- 58:47 - ECA (Event-Condition-Action) Module: Marcus briefly introduces ECA as an extremely powerful but advanced module for building complex automations. He explains that it allows for highly complex workflows and actions that automators might not cover, such as triggering AI chat responses based on specific events and tokens.
Credits:
https://freelygive.io/
https://devpanel.com/
Frequently Asked Questions
Simplytest is a great service. We were in fact inspired by it. If you have not tried it, you should try it out. Seriously. Here's the link. Drupal Forge is a community service - just like Simplytest. Here are the similarities and differences:
- Like Simplytest, Drupal Forge (DF) lets you create 6 hour temporary disposable Drupal Dev sites.
- On DF, you can optionally add a Cloud Dev Environment (CDE) to your Drupal Dev sites.
- With a CDE, your Dev sites are automatically paused at after 6-hours instead of getting deleted.
- You can un-pause your sites and continue where you left off.
- You can keep extending the working life of your Dev sites (in increments of 6 hours).
- With a CDE, you get a browser-based VS Code IDE (aka Cloud IDE), pre-installed with Composer and Drush.
- Full access to the MySQL database with PhpMyAdmin - a browser-based db admin tool.
- Invite and collaborate with other developers on the Code IDE - think parallel programming.
- Download your site and use it on your Local Dev Environment.
- Go live with your site - deploy it to an external server on Digital Ocean, Light Sail, etc. Connect your custom URL to it. Maintain the Dev site on DF.