Overview

After building the page using the page builder agent of XB AI the last element added to the layout is set as the currently selected element, which is passed as a context for other tasks such as title generation and it leads to confusion for the AI/LLM in terms of context for title/metadata generation tasks.

Proposed resolution

Maybe change the prompt to ignore the context of selected component for tasks like title/metadata generation.

User interface changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

utkarsh_33 created an issue. See original summary.

narendrar’s picture

utkarsh_33’s picture

Status: Active » Needs review
narendrar’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new41.72 KB

Tested manually and confirmed that the page is redirected to /editor after it is built from AI.
However, I noticed that the focus still remains on the last added component, but that shouldn't be a problem in this context.
Issue

Moving it to RTBC.

tim.plunkett made their first commit to this issue’s fork.

tim.plunkett’s picture

Version: 1.x-dev » 0.x-dev
Status: Reviewed & tested by the community » Fixed

Merged and backported

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.