Skip to content

fluxdigital/S-3PO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

S-3PO

 

An Generative AI Module for Sitecore XP built with SPE and using various models from ChatGPT/OpenAI.


Current features in Content Editor are:

  • Rewriting Text with AI (using GPT-35 Turbo, GPT-4o mini, GPT-4o Turbo or GPT-4o)
  • Generating Images with AI (using Dall-e-2 or Dall-e-3)

Note: This module sends prompts to ChatGPT in order to function - Flux Digital Ltd, Adam Seabridge and any of the developers of this Module accept no responsibility for any loss or damage caused by using this module.

Pre-requisites

  • You must have Sitecore Powershell Extensions installed. This release has been tested with Sitecore 10.3 and 10.4 and SPE 6.4 but should work with older versions also.
  • You must have an API Key for ChatGPT/Open AI: https://platform.openai.com/. Note: in my testing this was not expensive, especially if you select the cheaper Open AI Models.


Install Notes

  1. Download the package from the release link below
  2. Install the package using the Sitecore package install option in the Sitecore Desktop
  3. You should now have S-3PO installed under the SPE modules item:


  1. Open the web.config and update the <Content-Security-Policy> under the <customHeaders> to add in https://oaidalleapiprodscus.blob.core.windows.net (this will re-start your CM so be aware of this):


Note: this is required for images to display when Generating them with AI - otherwise you will see no images returned and Content-Security-Policy errors in your browser console.

Settings

  • Add your API Key from OpenAI in the settings here: /sitecore/system/Modules/PowerShell/Script Library/S-3PO/S-3PO Settings


  • Choose which models you'd like to use for Text and Image AI.
  • Optionally - create a new folder in the media library and change the Media Library Folder (e.g '/S-3PO') images are created by default here: /sitecore/media library/Files
  • Save the settings

Usage

  • Once you've updated the settings to add your API Key and so forth you can go to a page in Content editor and use one of the two options:


Re-write with AI

Choose this option to Re-write Text using AI. Select a Text Field (Singleline Text, Multline Text or Rich Text) and the options you want to use and click continue:

Choose one of the results returned and click continue to update your Text field with the re-written text:

Generate Image with AI

Choose this option to Generate Images using AI. Select an Image field and the options you want to use and click continue:

Choose one of the Images returned and click continue to update your Image field with the Generated Image:

Releases

Download Release v1

About

An Generative AI Module for Sitecore XP

Resources

License

Stars

Watchers

Forks

Packages

No packages published