crestapps/crestapps.agentskills/orchardcore-ai-chat
Claude Code and agent skill by crestapps/crestapps.agentskills
- community
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-chatSKILL.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.Chatand at least one provider package (OpenAI, Azure OpenAI, Azure AI Inference or Ollama) in the web/startup project. CrestApps.OrchardCore.AI.Chatdepends onOrchardCore.SignalR(the Orchard Core module, not the deprecated CrestApps one),OrchardCore.Liquid,CrestApps.OrchardCore.Resources,CrestApps.OrchardCore.AIand the dependency-onlyCrestApps.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. Seeorchardcore-ai-model-capabilities. - A chat-type profile with Show On Admin Menu (
AIChatProfileSettings.IsOnAdminMenu) appears under Artificial Intelligence. The menu entry needsQueryAnyAIProfileor the per-profileQueryAIProfile_{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 withprofile.AlterSettings<ChatModeProfileSettings>(...). They live inAIProfile.Settings, not inProperties. - 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 aresealed, except view models.
Features
| Feature | ID | Notes | |
|---|---|---|---|
| AI Chat | CrestApps.OrchardCore.AI.Chat | Admin chat UI, frontend widget, chat modes, prompt security and visitor identity settings | |
| AI Chat Admin Widget | CrestApps.OrchardCore.AI.Chat.AdminWidget | Floating chat on every admin page. Depends on AI Chat and CrestApps.OrchardCore.AI.Agent | |
| AI Chat Session Analytics | CrestApps.OrchardCore.AI.Chat.Analytics | See orchardcore-ai-chat-analytics | |
| AI Chat Services | CrestApps.OrchardCore.AI.Chat.Core | Dependency only; hub, session manager and handlers | |
| AI Chat WebAPI | CrestApps.OrchardCore.AI.Chat.Api | REST 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
Connection, Deployments and a Chat Profile
- Profiles are source-agnostic. The selected chat and utility deployments decide the client and model, so
Sourceis not needed. - Leaving
ChatDeploymentNameempty uses the connection default, then Default Chat Deployment in site settings. - Link a persona with a top-level
"PersonaId"on the profile. Seeorchardcore-ai-personas.
Define a Chat Profile in Code
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'sSetPageToolsandClearPageTools. 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
| Mode | Behavior | Requirement | |
|---|---|---|---|
TextInput | Typed chat (default) | None | |
AudioInput | Microphone dictation; transcript is placed in the input for review | A speech-to-text deployment in the speechToText slot | |
Conversation | Voice toggle beside a working message box; both kinds of turn land in one thread | A realtime deployment that resolves, or both speech-to-text and text-to-speech deployments |
- The Chat mode field only appears on Chat profiles, and only when a speech-to-text deployment or a realtime deployment exists.
VoiceNameis 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
| Route | Purpose | Permission | |
|---|---|---|---|
ai/chat/session/{profileId}/{sessionId?} | Admin chat session | QueryAnyAIProfile 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 metrics | QueryAnyAIProfile | |
ai/chat/chat-session/delete/{sessionId} | Delete one session | DeleteChatSession | |
ai/chat/history/{profileId}/delete-all | Delete all sessions of a profile | DeleteAllChatSessions |
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
- SKILL.md in the repositoryCheckingplugins/crestapps-orchardcore/skills/orchardcore-ai-chat/SKILL.md
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
[](https://verified-skill.com/skills/crestapps/crestapps.agentskills/orchardcore-ai-chat)