Drupal Canvas AI Assistant Enables Prompt-Based Page Building with SDCs

Drupal Canvas AI Assistant Enables Prompt-Based Page Building with SDCs

Drupal Canvas now features an integrated AI assistant that lets users create pages and components by entering natural-language prompts, using a system based on Single Directory Components (SDCs).

The feature is enabled through the canvas_ai submodule and requires an AI provider with function calling support. Once active, the assistant analyzes prompt wording to determine whether to reuse existing components or generate new ones. Terms such as “place” or “use” direct prompts to the page builder agent, while words like “create” or “add” may trigger the component creation agent. Users can structure prompts to enforce reuse by starting with “Using the page builder tool.”

Ivan Zugec tested the assistant ahead of a Drupal CMS 2 alpha 1 livestream. He used it to generate a hero section, pricing blocks, and a call-to-action. Ivan reported that prompt specificity is necessary for correct agent selection. He also noted that generating a few pages consumed over 500,000 tokens, due to background code generation.

For configuration steps and full documentation, visit https://project.pages.drupalcode.org/canvas/ai-assistant/.

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Drupal Initiatives

Related People

Upcoming Events

Latest Opportunities