A Powershell-only module for XM Cloud, XP, and XM, that leverages Generative AI to create content (text and imagery), keeping the quality control under human hands.
Assets can be generated and stored in Content Hub in two ways:
- Asynchronously (faster): Powershell runs the text generation, while Sitecore Connect executes the image generation processing in parallel
- Synchronously (slower): Powershell executes both the text and image generation processing
- Sitecore Content Hub with an OAuth Client configured as described here
- Sitecore XP, XM or XM Cloud
- Sitecore Powershell Extensions
- OpenAI API Key - Before using the module, you must configure the OpenAI API Key. If you need help to get your API Key, follow the steps in the Creating an OpenAI API Key guide
- Sitecore Connect for Asynchronous image generation. The module works without it, but the Synchronous generation of images makes the experience slower.
- For a better experience with image selection with Content Hub, your XP, XM or XM Cloud must have enabled the DAM connector as described here
Sitecore GenAI Assistant is a Powershell-only Module with no binaries or executables. To start using it, all you have to do is to install the module into your Sitecore instance with a few simple steps.
The module is distributed in two flavors:
For a quick installation via Sitecore Package, follow the steps below:
- Download the latest .zip package from the Releases page;
- Install the package with the Sitecore Installation Wizard (In case of conflicts use the Merge/Merge option).
To use SCS packages (.itempackage) as build artifacts in your continuous integration pipeline, install them in your delivery pipeline:
- Download the latest .itempackage package from the Releases page;
- Install the package in your delivery pipeline following this instructions.
No matter the option selected, after installing the package, you need to sync the library with the Content Editor to make the module available for use:
-
Open Sitecore PowerShell ISE;
-
Go to Settings Ribbon, Rebuild All button, Sync Library with Content Editor Ribbon;
-
Open /sitecore/system/Modules/GenAI/Settings/GenAI Settings item in Content Editor;
-
Populate the fields API Key with your OpenAI API Key and select the Model you want to use;
-
Setup a new OAuth Client at your Content Hub following this instructions
-
Populate the fields under the Content Hub Settings group:
- BaseURL - The main Base URL of your Content Hub instance - Eg: https://yourinstance.sitecoresandbox.cloud/
- Username & Password - A valid account with permission to create and approve assets. It is recommended to create a new account for this integration instead of using a real person account.
-
Populate the fields under the Sitecore Connect Settings group:
- Use Sitecore Connect - If this field is checked, Sitecore Connect will be used for faster-generating images asynchronously. Otherwise, Sitecore Connect is not used and images are generated synchronously, which is slower.
If the field Use Sitecore Connect is checked, you also have to follow the steps below:
-
Download here and install the Sitecore Connect package into your Sitecore Connect instance (Read this article for details on how to install the package in Sitecore Connect), then follow the steps below:
- Configure the CH Symposium 2024 connection with the Content Hub OAuth information
- Configure the OpenAI Symposium connection with your OpenAI API Key
- Start the formulas Generate Image with AI and Build GraphQL Query to Save Image Field
-
Populate the fields under the Sitecore Connect Settings group:
- Generate Image Endpoint - Your Sitecore Connect endpoint to the Generate Image Webhook (Eg: https://webhooks.workato.com/webhooks/rest/{yourID}/generateimage)
- GraphQL Base URL - The Base URL of your GraphQL Endpoint (normally the CM - Eg: https://yourcms.sitecorecloud.io/)
- GraphQL Client ID and GraphQL Client Secret as described here
The module comes with a sample workflow called Sample GenAI Content Workflow. When using this workflow, the content profiling is triggered at the Ask AI for Changes action, after the command "Reject with AI" is executed (normally by the content moderator).
Tip
You can easily integrate the Ask AI for Changes action in your custom workflows. To do so, copy the action to your workflow, or follow the steps below:
- Create a new action item under your workflow command using the template /sitecore/templates/Modules/PowerShell Console/PowerShell Script Workflow Action
- Point the Script field to /sitecore/system/Modules/PowerShell/Script Library/GenAI/Content Generation/Content Editor/Context Menu/GenAI/Update Content with AI
After the module is installed and configured, you will see the following scripts under the context menu in Content Editor:
The video below shows a demo of content being created with help of AI by a content editor
The following steps are shown in the video:
-
Using Content Editor, the content author right-clicks the item where the new item is going to be created, then Scripts > GenAI > Generate Content with AI;
-
The content author selects the template to be used in the new item creation (Eg: Page);
-
At the Content tab, the content author fills in the fields:
- Force Item Name (optional) - If the field is left empty, the item name will also be generated with AI;
- What do you want the content to speak about?
- Keywords (comma-separated)
- Select the length - Content length to be generated (Headline, Medium or Long)
- Choose a tone for your text
-
At the Template tab, the author selects the fields to populate with generated content (Text and Image fields are allowed)
After the content is generated, the video shows all text fields populated, but not the image field, which is still being populated asynchronously by Sitecore Connect. After some time, the page is refreshed and the generated image will show up.
The video below shows a demo of content being improved with help of AI by a content editor
The following steps are shown in the video:
-
Using Content Editor, the content author right-clicks the item to be improved, then Scripts > GenAI > Update Content with AI;
-
At the Content tab, the content author fills in the fields:
- What do you want to change in this content?
- Select the length - Content length to be generated (Headline, Medium or Long)
- Choose a tone for your text
-
At the Template tab, the author selects the fields to populate with generated content (Text and Image fields are allowed)
The video below shows a demo of content being submitted for review by the content editor, and further being reviewed by a content moderator with the help of AI
The following steps are shown in the video:
-
The content author submits the generated content for revision under the Sample GenAI Content Workflow
-
Moderator opens the Workbox and reviews the content under Awaiting Approval
-
He didn't like the generated content, so he clicks on Reject with AI
-
At the Content tab, the moderator fills in the fields:
- What do you want to change in this content?
- Select the length - Content length to be generated (Headline, Medium or Long)
- Choose a tone for your text
-
At the Template tab, the moderator selects the fields to populate. He selects the Content field only.
-
The content is generated and immediately available for the moderator to check again. This time he likes the results, so he clicks on Approve and Publish.