Sitefinity x Azure OpenAI Integration
sitefinity | .NET, CMS, Sitefinity | 2023-11-20
Pre-Requisite
- Sitefinity 15.0+
- Install Progress.Sitefinity.AIServiceConnector
- Azure Subscription
Azure
- Go to Azure Portal Microsoft Azure
- Create a resource group under your subscription
- Create a service in the resource group you created in step 2
- Search "OpenAi" in the marketplace, select Azure OpenAI and create
- In the Azure OpenAI service, go to Keys and Endpoints, save the KEY 1 or KEY 2 and Endpoint for later use.
- Go to Overview, and click Go to Azure OpenAI Studio
- Create a new Deployment, select gpt-35-turbo and set a Deployment Name
- Save the Deployment Name for later use.
Sitefinity
-
Install nuget package, Progress.Sitefinity.AIServiceConnector to Sitefinity project
-
Login to Sitefinity CMS dashboard, navigate to Administration → Modules & Services
-
Install AI services
- Navigate to Administration → Settings → AI services
-
Key in API key with the KEY 1 or KEY 2 from Azure step 5 above.
-
Key in Endpoints with the Endpoint from Azure step 5 above.
-
Key in Deployment name with Deployment Name from Azure step 7 above.
-
We can check the stable API Version from the question mark tool tip, in this demo, we are using the stable version 2023-05-15
- Save the changes and restart the Sitefinity instance (must restart, otherwise it may not work)
Sitefinity Integrate AI Demo
-
Login to Sitefinity CMS dashboard, navigate to Content → Content Blocks
-
Create a new content block
-
Go to content, and you will see the AI button available within editor
-
It supports 3 options:
- Select Compose new text, and key in details to aid the content and compose it
- Then taadaa! The content has generated and we are able to insert into content block / compose again if you are not happy with the content.
-
The new Use AI to generate tags in v15.1! My new example is using this artcile
-
There is a new icon besides Tags "Use AI"
- Save and see all new tags are created and attach the the article!