Skip to content

Latest commit

 

History

History

Umbraco.AI.Prompt.Deploy

README.md

Umbraco.AI.Prompt.Deploy

Umbraco Deploy support for Umbraco.AI.Prompt - enables deployment of AI prompt templates across environments using disk-based artifacts.

Features

  • Prompt Deployment - Deploy prompt templates with instructions and configurations
  • Profile Dependencies - Automatic resolution of prompt-to-profile relationships
  • Scope Deployment - Deploy prompt scoping rules for content types and properties
  • Tag Preservation - Maintain prompt tags and categorization
  • Context and Guardrail Dependencies - Referenced contexts and guardrails are declared as dependencies
  • Disk-Based Artifacts - Git-friendly JSON artifacts for version control

Monorepo Context

This package is part of the Umbraco.AI monorepo. For local development, see the monorepo setup instructions in the root README.

Installation

dotnet add package Umbraco.AI.Prompt.Deploy

Prerequisites:

  • Umbraco.AI.Deploy (Core Deploy support)
  • Umbraco.AI.Prompt (Prompt management)

Requirements

  • Umbraco CMS 17.0.0+
  • Umbraco.AI 1.0.0+
  • Umbraco.AI.Prompt 1.0.0+
  • Umbraco.AI.Deploy 1.0.0+
  • Umbraco Deploy 17.0.0+
  • .NET 10.0

Supported Entities

Entity UDI Type Description
AIPrompt umbraco-ai-prompt AI prompt templates

How It Works

Artifact Properties

AIPrompt artifacts include:

  • Basic Properties: Alias, Name, Description, Instructions
  • Profile Dependency: Optional ProfileUdi reference
  • Context References: Array of context IDs (each declared as a dependency)
  • Guardrail References: Array of guardrail IDs (each declared as a dependency)
  • Tags: Categorization tags
  • Scope: JSON-serialized scope rules (content types, properties)
  • Settings: IsActive, IncludeEntityContext, OptionCount

Deployment Process

Prompts are processed in a single pass (Pass 3), after connections (pass 1) and profiles, contexts and guardrails (pass 2) are in place.

Example:

Source Environment:
  Prompt "Generate Summary" → Profile "GPT-4 Summary", Context "Brand Voice"

Target Environment:
  Pass 2: Profile and context are created/updated
  Pass 3: Resolves Profile UDI → ProfileId and creates/updates the prompt

Related Packages

Documentation

License

This project is licensed under the MIT License. See LICENSE.md for details.