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 | Community
Skip to main content
Level 2
October 18, 2023
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

  • October 18, 2023
  • 4 replies
  • 1577 views

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-tasks-for-a-digital-platform-708f71855f10

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jineet_Vora

@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

4 replies

arunpatidar
Community Advisor
Community Advisor
October 18, 2023

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
Level 2
October 18, 2023

Hi arun, 

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

 

 

 

But they are not saving in the location.

arunpatidar
Community Advisor
Community Advisor
October 18, 2023

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

Arun Patidar
divanshug
Adobe Champion
Adobe Champion
October 18, 2023

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.

kautuk_sahni
Community Manager
Community Manager
October 19, 2023

@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
Jineet_Vora
Community Advisor and Adobe Champion
Jineet_VoraCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
October 19, 2023

@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

Level 2
October 25, 2023

@jineet_vora Thanks for your Update, I will look into it

 

Thanks