Orchardcore ai agent

From CrestApps/CrestApps.AgentSkills · View interactive version

Orchardcore ai agent is an AI agent skill from the GitHub repository CrestApps/CrestApps.AgentSkills. Skill for the CrestApps Orchard Core AI Agent module (CrestApps.OrchardCore.AI.Agent) and agent profiles. Covers the Orchard-aware AI tools it registers and the feature that enables each group (content, content definitions, features, tenants, recipes, users, roles, workflows, email, SMS, notificatio

How to use this skill

Skill file

Orchard Core AI Agent

The AI Agent module registers Orchard-aware tools that let an AI profile manage the site in natural language: content, content definitions, features, tenants, recipes, users, roles, workflows, communications, and AI profiles. Agent profiles (profiles of type Agent) are a separate concept that comes from the base AI module and can use these tools.

Guidelines

Enable

{
  "steps": [
    {
      "name": "Feature",
      "enable": [
        "CrestApps.OrchardCore.AI",
        "CrestApps.OrchardCore.AI.Agent",
        "OrchardCore.Contents",
        "OrchardCore.ContentTypes",
        "OrchardCore.Features",
        "OrchardCore.Recipes.Core",
        "OrchardCore.Users",
        "OrchardCore.Roles",
        "OrchardCore.Workflows"
      ],
      "disable": []
    }
  ]
}

Add OrchardCore.Tenants, OrchardCore.Email, OrchardCore.Sms, OrchardCore.Notifications, or CrestApps.OrchardCore.AI.Chat.Analytics only when you want those tool groups.

Tool catalog

| Group | Requires | Tools |

|---|---|---|

| System and AI profiles | Base feature | listTimeZones, listAIProfiles, viewAIProfile |

| AI Conversations | Base feature | listAIConversations (every channel, newest first, by profile, status and time), viewAIConversation (transcript, variables, extracted fields, analysis, evaluations, flow stages), getAIContactMemory |

| AI Quality | CrestApps.OrchardCore.AI.Quality | summarizeAIQuality, listAITestCases, runAITests, listAIAlerts |

| Recipes | OrchardCore.Recipes.Core | applySiteSettings, getOrchardCoreRecipeJsonSchema, listOrchardCoreRecipeStepsAndSchemas, importOrchardCoreRecipe, listNonStartupRecipes, executeNonStartupRecipe |

| Tenants | OrchardCore.Tenants | listStartupRecipes, createTenant, getTenant, listTenant, enableTenant, disableTenant, removeTenant, reloadTenant, setupTenant |

| Content | OrchardCore.Contents | searchForContentItems, getSampleContentItemForContentType, publishContentItem, unpublishContentItem, getContentItemById, deleteContentItem, cloneContentItem, createOrUpdateContentItem, getLinkForContentItem |

| Content schema (system) | OrchardCore.Contents + CrestApps.OrchardCore.Recipes | getContentItemSchema |

| Content definitions | OrchardCore.ContentTypes | getContentTypeDefinition, getContentPartDefinition, listContentTypesDefinitions, listContentPartsDefinitions, listContentFieldDefinitions |

| Content definition changes | OrchardCore.ContentTypes + OrchardCore.Recipes.Core | removeContentTypeDefinition, removeContentPartDefinition, applyContentTypeDefinitionFromRecipe |

| Features | OrchardCore.Features | disableSiteFeature, enableSiteFeature, searchSiteFeature, listSiteFeature, getSiteFeature |

| Notifications | OrchardCore.Notifications | sendNotification |

| Email | OrchardCore.Email | sendEmail |

| SMS | OrchardCore.Sms | sendSmsMessage |

| Users | OrchardCore.Users | getUserInfo, searchForUsers |

| Roles | OrchardCore.Roles | getRoleInfo |

| Workflows | OrchardCore.Workflows | getWorkflowType, listWorkflowTypes |

| Workflow changes | OrchardCore.Workflows + OrchardCore.Recipes.Core | createOrUpdateWorkflow, listWorkflowActivities |

| Analytics | CrestApps.OrchardCore.AI.Chat.Analytics | queryChatSessionMetrics |

listWorkflowActivities takes no parameters and returns every workflow activity with its name, display text,

category and whether it is an event or a task (it used to refuse calls without a workflowTypeId).

Schema-driven writes

Agent profiles

An AI profile with Profile type Agent is a reusable specialist that other AI experiences can call.

| Field | Stored in | Meaning |

|---|---|---|

| Description | AIProfile.Description | What the agent does; used by orchestrators, A2A cards, and MCP tool descriptions |

| Availability | AgentMetadata.Availability | OnDemand (selectable per profile) or AlwaysAvailable (offered to every profile) |

| Let this agent use its tools | AgentMetadata.AllowToolInvocation | Off: the agent runs as a single completion with no tools, whatever is ticked on its Capabilities tab (CrestApps.Core AgentProxyTool). On: it runs its ticked tools |

Select on-demand agents in the Agents section of another profile's or template's Capabilities tab; the selection is stored in AgentInvocationMetadata.Names. Always-available agents are not listed there because they are always offered.

{
  "steps": [
    {
      "name": "AIProfile",
      "profiles": [
        {
          "Name": "content-editor-agent",
          "DisplayText": "Content Editor Agent",
          "Description": "Finds, drafts, and publishes site content on request.",
          "Type": "Agent",
          "ChatDeploymentName": "default-chat",
          "Properties": {
            "AIProfileMetadata": {
              "SystemMessage": "You manage site content. Confirm before deleting anything."
            },
            "AgentMetadata": {
              "Availability": "OnDemand",
              "AllowToolInvocation": true
            },
            "FunctionInvocationMetadata": {
              "Names": [ "searchForContentItems", "createOrUpdateContentItem", "publishContentItem" ]
            }
          }
        }
      ]
    }
  ]
}

An agent called by another agent never delegates further, so delegation is one level deep.

Ready-made agent templates

The module ships Agent profile templates (category Site management) on the New AI Profile picker,

greyed out until their features are enabled. Each sets ProfileType: Agent, AgentAvailability: OnDemand and

AllowToolInvocation: true and lists its tools in ToolNames:

| Template (Name) | Requires | Tools |

| --- | --- | --- |

| Content Agent | OrchardCore.Contents, OrchardCore.ContentTypes | The content management and content definition tools |

| Workflow Agent | OrchardCore.Workflows | The workflow tools |

| AI Operations Agent (AIOperationsAgent) | Base feature | listAIProfiles, viewAIProfile, listAIConversations, viewAIConversation, getAIContactMemory, summarizeAIQuality, listAITestCases, runAITests, listAIAlerts, queryChatSessionMetrics |

A tool whose feature is off is skipped when the agent runs. No template ticks the tenant, feature, recipe or

settings tools. Template front-matter keys are in orchardcore-ai-profile-templates.

Agents or tools

Each delegation costs at least one more completion plus the caller reading the answer, and details can be

lost in the hand-off. The default orchestrator already trims large tool sets (scoping above 30 tools,

planning above 100). Use an agent when an area needs many tools and its own instructions; tick tools directly

when an assistant needs only a few. Never give one profile both an agent and that agent's tools.

Agent profiles can be exposed outside the site:

Security

Troubleshooting

| Symptom | Check |

|---|---|

| A tool group is missing from the picker | Its Orchard Core feature is disabled, or the editing user lacks the tool permission. |

| createOrUpdateContentItem produces invalid items | Enable CrestApps.OrchardCore.Recipes so getContentItemSchema is registered and payloads are validated. |

| An agent is not offered on another profile | It is AlwaysAvailable (already included) or not of type Agent. |

| An agent answers without using its tools | Let this agent use its tools (AllowToolInvocation) is off. |

| A2A clients see no agents | No profile has type Agent, or the A2A Host feature is disabled. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.