@venkata_naga_saibu - This is an interesting use-case - Use Generative AI for Tagging web pages in AEM.
- Use of Gen AI for tagging needs to be trained before using it in AEM for webpages. You need to train the model (similar to training smart tags in AEM for assets). An example of the same using OpenAI can be found here - https://platform.openai.com/docs/guides/fine-tuning. You need to provide various data sets as per your web page content to effectively tag your webpages. Example if your webpage contains certain text related to 'EV car' then add 'emission-free' as a tag.
- Once you have your model trained well enough then next thing is to map Gen AI tags to AEM tags. You would NOT want to map all the AI generated tags to AEM tags some of which would be silly ones so I don't suggest creating a corresponding AEM tag.
A pre-created set of AEM tags should be mapped with AI generated tags. You could run an event on save properties which will run on saving the page properties which will then map and generate AEM tags corresponding to generated AI tags - If no mapping found then remove the AI suggested tags.
Note: Please be aware that AI will generate the tags that may not be relevant at all and you definitely would not want to save all of them in AEM
Hope this helps!
Jineet