crestapps/crestapps.agentskills/orchardcore-ai-chat

Claude Code and agent skill by crestapps/crestapps.agentskills

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Skill for setting up and extending AI Chat in Orchard Core with the CrestApps AI Chat module. Covers the AI Chat and AI Chat Admin Widget features, chat profiles on the admin menu, chat session and history pages, Invoke Profile, the frontend AIChat widget with AIProfilePart, chat modes with ChatModeProfileSettings, session uploads and citations, AG-UI tool cards and tool approvals, admin widget page context with IAIChatPageContextProvider and SendPageContext, the AG-UI endpoint, PromptSecurityOptions rate-limit tiers, AIVisitorIdentityOptions cookies, AIChatHub methods, and upgrading from deployment purposes and ChatMode.Realtime. Use this skill when requests mention Orchard Core AI Chat, chat profiles, chat widgets, the admin chat widget, anonymous chat visitors, chat rate limits, or prompt security. Strong matches include AIChatHub, AG-UI, RequireApproval, IAIChatPageContextProvider, AIChatProfileSettings, IsOnAdminMenu, AIProfilePart, QueryAIProfile, and AIChatApp.

Install

npx vskill@latest install crestapps/crestapps.agentskills/orchardcore-ai-chat

SKILL.md

The same SKILL.md was published earlier as crestapps/crestapps.agentskills/orchardcore-ai-chat.

Orchard Core AI Chat - Prompt Templates

Configure AI Chat

You are an Orchard Core expert. Generate code, configuration, and recipes for adding profile-driven AI chat to an Orchard Core application with the CrestApps AI Chat module.

Guidelines
  • Install CrestApps.OrchardCore.AI.Chat and at least one provider package (OpenAI, Azure OpenAI, Azure AI Inference or Ollama) in the web/startup project.
  • CrestApps.OrchardCore.AI.Chat depends on OrchardCore.SignalR (the Orchard Core module, not the deprecated CrestApps one), OrchardCore.Liquid, CrestApps.OrchardCore.Resources, CrestApps.OrchardCore.AI and the dependency-only CrestApps.OrchardCore.AI.Chat.Core (AI Chat Services).
  • AI Chat ships no completion client. Enable a provider feature and create a connection and deployments for it.
  • A deployment declares model capabilities in Properties.AIDeploymentMetadata.Features. The deployment purpose (Purpose, Type) is gone in 3.0. Which deployment serves chat, utility, speech and the other slots is chosen under Settings → Artificial Intelligence → Default Deployments or on the profile. See orchardcore-ai-model-capabilities.
  • A chat-type profile with Show On Admin Menu (AIChatProfileSettings.IsOnAdminMenu) appears under Artificial Intelligence. The menu entry needs QueryAnyAIProfile or the per-profile QueryAIProfile_{profileName} permission.
  • Add Profile opens the New AI Profile picker. Blank profile opens the editor; every other card creates the profile from a profile template. See orchardcore-ai-profile-templates.
  • The Chat deployment is the text model only. A spoken conversation is carried by the Conversation deployment. See orchardcore-ai-realtime-voice.
  • Read chat-mode settings with profile.TryGetSettings<ChatModeProfileSettings>() and write them with profile.AlterSettings<ChatModeProfileSettings>(...). They live in AIProfile.Settings, not in Properties.
  • Never put API keys in recipes or committed configuration. Use user secrets, environment variables, or a key vault.
  • All recipe JSON uses the root { "steps": [...] } format and C# classes are sealed, except view models.
Features
FeatureIDNotes
AI ChatCrestApps.OrchardCore.AI.ChatAdmin chat UI, frontend widget, chat modes, prompt security and visitor identity settings
AI Chat Admin WidgetCrestApps.OrchardCore.AI.Chat.AdminWidgetFloating chat on every admin page. Depends on AI Chat and CrestApps.OrchardCore.AI.Agent
AI Chat Session AnalyticsCrestApps.OrchardCore.AI.Chat.AnalyticsSee orchardcore-ai-chat-analytics
AI Chat ServicesCrestApps.OrchardCore.AI.Chat.CoreDependency only; hub, session manager and handlers
AI Chat WebAPICrestApps.OrchardCore.AI.Chat.ApiREST chat API and the AG-UI endpoint POST /api/ai/v1/agui, shipped by the AI module

Provider features: CrestApps.OrchardCore.OpenAI, CrestApps.OrchardCore.OpenAI.Azure, CrestApps.OrchardCore.AzureAIInference, CrestApps.OrchardCore.Ollama. See orchardcore-ai-providers.

Enable AI Chat
json
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.AI.Chat",
"CrestApps.OrchardCore.OpenAI"
],
"disable": []
}
]
}
Connection, Deployments and a Chat Profile
json
{
"steps": [
{
"name": "AIProviderConnections",
"Connections": [
{
"Source": "OpenAI",
"Name": "openai",
"DisplayText": "OpenAI",
"Properties": {
"OpenAIConnectionMetadata": {
"Endpoint": "https://api.openai.com/v1",
"ApiKey": "{{YourApiKey}}"
}
}
}
]
},
{
"name": "AIDeployment",
"Deployments": [
{
"Name": "gpt-4o",
"ClientName": "OpenAI",
"ConnectionName": "openai",
"Properties": {
"AIDeploymentMetadata": {
"Features": [ "textGeneration", "toolCalling", "streaming" ]
}
}
},
{
"Name": "gpt-4o-mini",
"ClientName": "OpenAI",
"ConnectionName": "openai",
"Properties": {
"AIDeploymentMetadata": {
"Features": [ "textGeneration", "toolCalling", "streaming" ]
}
}
}
]
},
{
"name": "AIProfile",
"Profiles": [
{
"Name": "customer-support-chat",
"DisplayText": "Customer Support Chat",
"WelcomeMessage": "Hello! How can I help you today?",
"Type": "Chat",
"TitleType": "InitialPrompt",
"ChatDeploymentName": "gpt-4o",
"UtilityDeploymentName": "gpt-4o-mini",
"Properties": {
"AIProfileMetadata": {
"SystemMessage": "You are a helpful customer support assistant. Be friendly and concise.",
"Temperature": 0.3,
"MaxTokens": 2048,
"PastMessagesCount": 10
}
},
"Settings": {
"AIChatProfileSettings": {
"IsOnAdminMenu": true
},
"ChatModeProfileSettings": {
"ChatMode": "TextInput",
"EnableTextToSpeechPlayback": false
}
}
}
]
}
]
}
  • Profiles are source-agnostic. The selected chat and utility deployments decide the client and model, so Source is not needed.
  • Leaving ChatDeploymentName empty uses the connection default, then Default Chat Deployment in site settings.
  • Link a persona with a top-level "PersonaId" on the profile. See orchardcore-ai-personas.
Define a Chat Profile in Code
csharp
public sealed class SiteAssistantMigrations : DataMigration
{
private readonly IAIProfileManager _profileManager;
public SiteAssistantMigrations(IAIProfileManager profileManager)
{
_profileManager = profileManager;
}
public async Task<int> CreateAsync()
{
var profile = await _profileManager.NewAsync();
profile.Name = "site-assistant";
profile.DisplayText = "Site Assistant";
profile.Type = AIProfileType.Chat;
profile.WithSettings(new AIProfileSettings
{
LockSystemMessage = true,
IsRemovable = false,
IsListable = true,
});
profile.WithSettings(new AIChatProfileSettings
{
IsOnAdminMenu = true,
});
profile.Put(new AIProfileMetadata
{
SystemMessage = "You are a site assistant. Help users navigate the site and answer questions.",
Temperature = 0.3f,
MaxTokens = 4096,
PastMessagesCount = 10,
});
var result = await _profileManager.ValidateAsync(profile);
if (result.Succeeded)
{
await _profileManager.CreateAsync(profile);
}
return 1;
}
}

IAIProfileManager is a catalog manager: NewAsync, ValidateAsync, CreateAsync, UpdateAsync, FindByNameAsync, DeleteAsync. There is no SaveAsync.

For agent profiles, profile types and tools, see orchardcore-ai, orchardcore-ai-agent and orchardcore-ai-tools. The framework profile API is described in crestapps-core-ai-profiles.

Profile Editor Layout
  • The first tab holds the General, Deployments & Interactions, Instructions, Parameters and Prompt Security cards (plus Speaking Style and Guardrails). Knowledge, Capabilities and Data Processing & Metrics tabs come from enabled features; Data Processing & Metrics also holds Contact memory and Data Privacy (see orchardcore-ai-conversations).
  • Every save of a profile is kept as a version (Versions in the row menu: compare and restore).
  • With the WebMCP module, the Capabilities tab has Allow page tools and Allow consequential page tools (WebMcpProfileSettings): the chat discovers and runs the WebMCP tools of the page the user has open, through the hub's SetPageTools and ClearPageTools. See orchardcore-ai-webmcp.
  • Deployments & Interactions reads in one pass: chat deployment, its model parameters, Chat mode, Conversation deployment, Voice, Enable text-to-speech playback, then the utility deployment and its parameters.
  • Start the conversation automatically (formerly Add initial prompt) with its Opening message (formerly Initial prompt) still stores AIProfileMetadata.InitialPrompt. The session is created lazily: it is persisted only when the visitor sends the first message, and the opening message is inserted ahead of it.
  • A Welcome Message is placeholder text for new sessions and is never added to the model history.
Chat Modes
ModeBehaviorRequirement
TextInputTyped chat (default)None
AudioInputMicrophone dictation; transcript is placed in the input for reviewA speech-to-text deployment in the speechToText slot
ConversationVoice toggle beside a working message box; both kinds of turn land in one threadA realtime deployment that resolves, or both speech-to-text and text-to-speech deployments
csharp
profile.AlterSettings<ChatModeProfileSettings>(settings =>
{
settings.ChatMode = ChatMode.Conversation;
// Empty means the site's default realtime deployment, then the first realtime-capable one.
settings.ConversationDeploymentName = "gpt-realtime";
settings.VoiceName = "alloy";
settings.EnableTextToSpeechPlayback = false;
});
  • The Chat mode field only appears on Chat profiles, and only when a speech-to-text deployment or a realtime deployment exists.
  • VoiceName is kept whatever the mode, because phone calls answered or placed with the profile use it. Without one, the persona's voice, then the site default voice, then the provider default is used.
  • Enable text-to-speech playback adds a read-aloud button to each answer and needs a text-to-speech deployment. It is hidden in Conversation mode, which already speaks.
  • Resolution order, cascaded realtime and transport configuration are in orchardcore-ai-realtime-voice.
Admin Chat Pages
RoutePurposePermission
ai/chat/session/{profileId}/{sessionId?}Admin chat sessionQueryAnyAIProfile or QueryAIProfile_{name}
ai/chat/history/{profileId}Chat history (AIChatSessions admin list)Same
ai/chat/test/{profileId}Invoke Profile for Utility and Agent profiles; no session, history or metricsQueryAnyAIProfile
ai/chat/chat-session/delete/{sessionId}Delete one sessionDeleteChatSession
ai/chat/history/{profileId}/delete-allDelete all sessions of a profileDeleteAllChatSessions

The history page renders through Orchard Core's AdminList shape (AIChatSessions, rows are AIChatSessionEntry_SummaryAdmin, grid columns Name, Status, LastActivity, Actions). Add columns with an IAdminListColumnsProvider for AIChatSessions; see orchardcore-admin-lists.

Admin Widget

Enable CrestApps.OrchardCore.AI.Chat.AdminWidget, then pick the profile, the history size (1 to 50, default 10), the primary color (default #41b670) and Tell the AI which page the user is on (SendPageContext, on by default) in the Admin Widget section of Settings → Artificial Intelligence (permission ManageAIProfiles). It renders for signed-in users allowed to query that profile and keeps its position, size and session in browser local storage.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
9
Repository forks
4
7-day trend score
12

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Apr 2026, 7 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/crestapps/crestapps.agentskills/orchardcore-ai-chat/badge)](https://verified-skill.com/skills/crestapps/crestapps.agentskills/orchardcore-ai-chat)

Something wrong with this skill or its page? Tell us.