Expand my Community achievements bar.

SOLVED

Can anyone tell how to save tags n aem which are generated by open ai or chatgpt. In the below post they shown how to generate, but i need them to save

Avatar

Level 2

Can anyone tell how to save tags in aem which are generated by open ai or chatgpt.

 

In the below post they shown how to generate, but i need them to save

 

https://medium.com/@vorajineet/use-generative-ai-in-adobe-experience-manager-aem-cms-to-ease-seo-tas...

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Venkata_Naga_SaiBu - This is an interesting use-case - Use Generative AI for Tagging web pages in AEM.

 

  1. 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.
  2. 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

View solution in original post

7 Replies

Avatar

Community Advisor

The tags are saved at 

https://localhost:4502/aem/tags

you have to create tags/use tags if generated by AI (tags will be saved automatically at above location)



Arun Patidar

Avatar

Level 2

Hi arun, 

The tags are generated at the proprties/tags location which is shown as below.

 

Venkata_Naga_SaiBu_1-1697620626308.png

 

 

Venkata_Naga_SaiBu_0-1697620555333.png

But they are not saving in the location.

Avatar

Community Advisor

can you chekc what is the namespace for the tags?
Could you share how does it stored page from the crx?



Arun Patidar

Avatar

Level 3

Hi @Venkata_Naga_SaiBu 

 

When it comes to saving the cq:tags generated through OpenAI into JCR nodes, it's important to follow a specific process. Begin by creating these tags as resources within the "/content/cq:tags" path. Once you've established these tags as resources, you can then proceed to assign them to the relevant content as required.

Avatar

Administrator

@Venkata_Naga_SaiBu Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

@Jineet_Vora , can you please look at this Question.



Kautuk Sahni

Avatar

Correct answer by
Community Advisor

@Venkata_Naga_SaiBu - This is an interesting use-case - Use Generative AI for Tagging web pages in AEM.

 

  1. 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.
  2. 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