Follow-up to #3530733: Introduce AI Agents and tools to Build Pages from components

Overview

This prompt won't set the url on the requested button
Place a button with link to https://new.drupal.org/ai

We can see the LLM answer is correct,
URL with XB_AI

But for some reason XB doesn't take it in consideration and keep using default value set by the examples key.
Same issue for image.src prop.

I modified the instructions like this to be sure llm generates the links:

        *   **Links:** If a URL is not specified in the prompt, always use `href: "#"` 
        *   **Images:** Configure `aspect_ratio` and other non-content props, If a SRC is not specified in the prompt,  **NEVER** generate `src` or `alt` props.

Proposed resolution

User interface changes

CommentFileSizeAuthor
Screenshot From 2025-07-09 16-08-53.png292.15 KBheyyo

Comments

heyyo created an issue. See original summary.

heyyo’s picture

Title: Impossible to set a URL or SRC of an SDC with AI » Follow-up to #3530733: Impossible to set a URL or SRC of an SDC with AI
Issue summary: View changes
heyyo’s picture

Project: Experience Builder » Drupal Canvas
Version: 0.x-dev » 1.x-dev

Experience Builder has been renamed to Drupal Canvas in preparation for its beta release. You can now track issues on the new project page.