Active
Project:
Drupal Canvas
Version:
1.x-dev
Component:
AI
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2025 at 13:11 UTC
Updated:
10 Jul 2025 at 04:51 UTC
Jump to comment: Most recent
Follow-up to #3530733: Introduce AI Agents and tools to Build Pages from components
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,

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.
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot From 2025-07-09 16-08-53.png | 292.15 KB | heyyo |
Comments
Comment #2
heyyo commentedComment #3
heyyo commented