Skip to main content

Artificial Intelligence Suite

The CrestApps AI Suite is a comprehensive and extensible AI ecosystem built on Orchard Core, designed to unify and streamline AI integration and management. It combines provider integrations, flexible deployment and connection management, AI profiles, and advanced orchestration into a cohesive platform.

The suite enables highly customizable chat experiences, along with robust prompt and tool management, retrieval workflows, and long-term memory capabilities. It also supports MCP and Agent-to-Agent integrations, delivering a powerful foundation for building intelligent, interconnected systems—all seamlessly managed within the Orchard Core admin experience.

It supports most AI providers including OpenAI, Azure OpenAI, Azure AI Inference, Ollama, and any provider that adheres to the OpenAI API standard.

Architecture

The AI Suite is built on Microsoft.Extensions.AI, providing a standardized abstraction layer for AI services. The architecture follows a modular, feature-rich design, allowing you to enable only the components you need while still composing a larger AI integrations and solutions platform for your Orchard Core solution.

Key Concepts

AI Profiles

An AI Profile defines how the AI system interacts with users — including its welcome message, system message, response behavior, deployments, and which tools, data sources, and capabilities are available. Profiles can be managed through the admin UI or created programmatically via code and recipes.

Orchestrator

The Orchestrator (IOrchestrator) is the central runtime that manages AI completion sessions. It handles:

  • Planning and decomposing complex requests into steps
  • Scoping relevant tools based on context
  • Executing iterative agent loops (calling the LLM with scoped tools)
  • Detecting capability gaps and expanding tool scope progressively
  • Producing the final streaming response

AI Providers

Providers are modules that implement the connection to specific AI services. Each provider knows how to create chat clients, embedding generators, and image generators for its platform. See AI Providers for details.

AI Management

The suite also includes rich management capabilities in Orchard Core, such as AI profile administration, deployment and connection management, prompt template management, site-level AI settings, MCP connection/resource management, and other operational surfaces required to run AI features in production.

Modules

ModuleDescription
AIFoundation for the AI ecosystem with profiles, orchestration, connections, deployments, settings, and management
AI ChatAdmin and frontend chat interfaces
AI Chat InteractionsAd-hoc chat with configurable parameters and document upload
AI Prompt TemplatesCentralized prompt management with Liquid templates and file-based discovery
Consuming AI ServicesUsing AI services programmatically via code
Copilot IntegrationGitHub Copilot SDK-based orchestration
Data SourcesRetrieval-augmented generation (RAG) / knowledge base indexing and vector search
DocumentsDocument upload, text extraction, and embedding
AI MemoryPersistent, user-scoped memory for preferences, projects, topics, interests, and other durable background details
MCPModel Context Protocol client and server support
Orchard Core AgentIntelligent agents that perform tasks on your site

Getting Started

  1. Install the CrestApps.OrchardCore.Cms.Core.Targets package (includes all modules), or install individual AI packages
  2. Enable the desired AI features in the Orchard Core admin dashboard (Tools → Features)
  3. Configure at least one AI provider with connection credentials
  4. Create an AI Profile and start interacting with AI models

Quick Start Configuration

Add the following to your appsettings.json to get started with OpenAI:

{
"OrchardCore": {
"CrestApps_AI": {
"DefaultParameters": {
"Temperature": 0,
"MaxOutputTokens": 800
},
"Providers": {
"OpenAI": {
"Connections": {
"my-connection": {
"Endpoint": "https://api.openai.com/v1/",
"ApiKey": "<your-openai-api-key>",
"Deployments": [
{ "Name": "gpt-4o-mini", "Type": "Chat", "IsDefault": true }
]
}
}
}
}
}
}
}

For full configuration details, see AI Services and Configuration.