- Issue created by @Akhil Babu
- Merge request !1169Issues/3530733: Add page builder agent and its tools. → (Open) created by Akhil Babu
- 🇮🇳India Akhil Babu Chengannur
Currently there are 2 issues
1. The messages from the page_builder_agent are not rendering in the chatbot window.
2. Once a component is selected from the canvas, the screen automatically refreshes while typing the next message. It seems that a request is somehow being triggered to the endpoint /xb/api/v0/form/content-entity/{entity_type}/{entity}/{entity_form_mode} - 🇮🇳India narendraR Jaipur, India
I think we can limit scope of this issue to only create page using existing components.
Eg. "Create a page for our university website featuring a heading, a hero section, featured content, and news sections." should create the page with existing components.Creating/editing of components using AI already exists and we should use those tools wherever required.
I tried testing the current MR, but the changes are not reflected on my local. Could I be missing something? Please see below.
- 🇮🇳India Akhil Babu Chengannur
The changes aren’t about creating or editing components. They’re focused on adding already existing components (Only SDC as of now) to the canvas with dynamic content to help build pages. For example: “Create a section showing three key features of Drupal” or “Add a button with the text ‘Read more.’”
In my opinion, creating entire page templates (with header, body, footer, etc.) can be handled in a separate issue after the current approach is reviewed and accepted, since we’ll need to reuse a lot of the existing logic for that.Also, have you run npm run build after pulling the latest changes? If yes, are you seeing any errors in the console?
- 🇮🇳India narendraR Jaipur, India
Forgot to run npm commands , now it is working as shown in Demo, Thanks.
We need to decide whether considering only the SDC component for now is acceptable.
Also, I have a question: What is the purpose of using 'default_information_tools' here instead of using the tool directly? - 🇮🇳India Akhil Babu Chengannur
The page builder AI agent needs both the curent layout structure (Provided by the get_current_layout tool) of the page and the details of avaialble SDCs (Provided by get_sdc_info tool). Default information tools option helps to send these direct;y along with the Agent instructions as context. So it saves two extra AI calls.