Skip to content

Sitecore-Hackathon/2025-Resilient-Core

Repository files navigation

Hackathon Logo

Sitecore Hackathon 2025

Team name

⟹ Resilient Core

Module

⟹ Gemini AI API integration to update Meta data page fields

Description

⟹ This year Hackathon event, we have built the Gemini AI API integration to update the meta page fields.

  • What problem was solved?

    • Updating meta description and keywords based on the page content using Gemini API saves time for the content author or client. One can review it and publish it.

Video link

⟹ Video Resilient Core Demo Video

Pre-requisites and Dependencies

⟹ XM Cloud license file

Installation instructions

Visit https://aistudio.google.com/apikey to obtain the Google API key.

⟹ XM cloud local instance setup

  1. We had no Docker Desktop installed our local machine. Hence we have setup the Docker Engine binaries in our local. Check this to link https://blogs.perficient.com/2023/10/12/sitecore-containers-without-docker-desktop/ to setup Docker Engine in local if you do not have Docker Desktop.

  2. Ensure local IIS and SOLR are stoped.

iisreset /stop

Run Services.msc and stop the SOLR service if any.

  1. Run the Docker Engine.

  2. Sign up for an account on https://portal.sitecorecloud.io/ if you don't have one. Since this feature we test in local, we don't need to be part of any organization in the Sitecore Cloud portal. We create the account for authentication purpose in our local.

  3. git clone https://github.com/Sitecore-Hackathon/2025-Resilient-Core.git

  4. Update the 2025-Resilient-Core\src.env file with GOOGLE_API_KEY=<YOUR_GOOGLE_API_KEY> value.

  5. Traverse to 2025-Resilient-Core\src. In an ADMIN terminal:

    .\init.ps1 -InitEnv -LicenseXmlPath "C:\path\to\license.xml" -AdminPassword "DesiredAdminPassword"
  6. Restart your terminal and run:

    .\up.ps1

Once it opens the browser, login with Sitecore cloud portal user you have or created in the step 4.

Configuration

⟹ Covered in Installation steps.

Usage instructions

⟹ Setup in local XM Cloud instance

  1. Login to Local Sitecore XM Coud instance.

  2. Do the local host entry of meta-api domain.

  3. Install the Sitecore packages from 2025-Resilient-Core\src\sitecore-packages folder, and overwrite upon prompt.

  4. Traverse to Item : /sitecore/system/Tasks/Schedules/ScheduleUpdateMetaData, right click > Scripts > Run Task Schedule. This will update page items for /sitecore/content/DemoCollections/sxastarter/home and its subitems if its meta fields are empty.

  5. Check the admin review page: https://xmcloudcm.localhost/sitecore/admin/metakeyworddesc.html.

  6. Please check the Video for steps to test the feature.

Future Improvements

  1. Making hard coded values configurable.
  2. To be tested in Sitecore cloud XM cloud app. This is tested only in local.
  3. Dynamic data for https://xmcloudcm.localhost/sitecore/admin/metakeyworddesc.html.

Team: Resilient Core

⟹ Developers:

Rasika Senad : https://www.linkedin.com/in/rasika-senad-59b8633b/

Sandeepkumar Gupta: https://www.linkedin.com/in/gupta-sandeepkumar/

About

Resilient Core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9