Overview

Generate metadata(metatag description) for xb_page entity using AI. We can create metadata for the xb_page based on the page's content using a simple prompt like :-Generate metadata. It will analyse the current page content and based on that it will generate the metadata.

We can also generate metadata for a specific topic/content Create metadata on topic Drupal, in this case it will generate the metadata on the topic Drupal.

Proposed resolution

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

kunal.sachdev created an issue. See original summary.

tim.plunkett’s picture

Assigned: Unassigned » kunal.sachdev
kunal.sachdev’s picture

This video shows that how it's working for now.
It can be seen in the video that there's an issue that the update isn't showing up on the UI right away; it becomes visible only after a reload. Created a follow-up for that #3532511: Xb_page data is updated only after a reload.

kunal.sachdev’s picture

We want this metadata generation to only work with the xb_page entity for now. And it's working fine on xb_page entity. But it's working on node page too instead of giving an error( as per my agent's system prompt) and I tried to fix it by improving the system prompt but it's still an issue.

Prompts used for testing :-
1. What do you do?
2. Generate metadata
3. Add metadata on drupal
4. Add metadata for title field
5. Add metadata for title
6. Create metadata for image field
7. Add metadata for 'Drupal : Create ambitious digital experiences'
8. Generate metadata on cats

kunal.sachdev’s picture

Issue summary: View changes
kunal.sachdev’s picture

Issue summary: View changes
kunal.sachdev’s picture

StatusFileSize
new34.87 MB

This is how it's working now.

kunal.sachdev’s picture

Status: Active » Needs review

All feedback has been addressed.

narendrar’s picture

Status: Needs review » Needs work
StatusFileSize
new539.66 KB

Tested it manually and most of the functionality seems working, I created metadata based on page content it worked as expected. But when I tried to update the metadata based on title, it did not worked. See SS:
Issue

kunal.sachdev’s picture

Status: Needs work » Needs review
narendrar’s picture

Assigned: kunal.sachdev » Unassigned
Status: Needs review » Reviewed & tested by the community

Manually tested it with @kunal.sachdev and functionality is working as expected. Moving it to RTBC.

balintbrews made their first commit to this issue’s fork.

balintbrews’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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