Implements the NLWeb protocol for Orchard Core, enabling natural-language site queries with schema.org answers. Covers /ask and /await endpoints, protocol versions, AI rewriting/ranking/generation, MCP ask tool, and pipeline extensibility.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
NLWeb is an open protocol (being standardized in a W3C Community Group) that lets agents ask a web site questions in natural language. The site answers with the matching items as schema.org objects. The NLWeb module implements it for Orchard Core and describes every result with the same schema.org object the item's page publishes, through the Advanced SEO engine (orchardcore-advanced-seo).
CrestApps.OrchardCore.NLWeb (category Search), depending on CrestApps.OrchardCore.Seo (enabled with it). Install the CrestApps.OrchardCore.NLWeb package in the web/startup project. Extension code only needs CrestApps.OrchardCore.NLWeb.Core, which has no Orchard Core dependency.[RequireFeatures]):| Enabled module | What it adds |
|---|---|
| (always) | /ask, /await, list mode, the content item resolver, settings, permissions |
OrchardCore.Search | Keyword retriever over the selected search indexes (Lucene, Elasticsearch, Azure AI Search) |
CrestApps.OrchardCore.AI | Follow-up query rewriting, AI ranking, summarize and generate modes, the ask AI tool |
CrestApps.OrchardCore.AI.DataSources | Vector retriever over an AI data source's knowledge base index |
OrchardCore.RateLimits | 30 questions a minute per IP address, in the NLWeb rate limit group |
ManageNLWebSettings, Administrator). Asking needs Ask the site questions with NLWeb (QueryNLWeb), held by Anonymous, Authenticated and Administrator by default.ViewContent) and of the allowed content types.AllowCrossOrigin), endpoints send Access-Control-Allow-Origin: *; browsers then send no credentials, so cross-site calls get anonymous answers.Routes are at the tenant root.
| Version | Request | Response |
|---|---|---|
| 0.54 and 0.55 | POST /ask with { query: { text, site, itemType }, context: { prev, text, memory }, prefer: { streaming, response_format, mode, accept-language }, meta: { version, session_context } } | { _meta: { response_type, version }, results: [ schema.org objects ], content: [ { type: "text", text } ] } |
| 0.5 | POST /ask, same body with return_response instead of prefer | Same as 0.54 |
| 0.1 (original) | GET /ask?query=&site=&prev=&mode=&streaming=&query_id= (needs AllowLegacyRequests) | { query_id, results: [ { url, name, site, score, description, schema_object } ] } |
_meta.response_type is answer, elicitation, promise or failure; _meta.summary holds the summary in summarize mode; session_context is echoed back.prefer.streaming is true, or, without that preference, when Accept holds text/event-stream. Events: start, result (one per item), content, elicitation or failure, complete, end.200 for answers and protocol failures, 400 for non-JSON bodies or empty queries, 401/403 without QueryNLWeb, 429 when rate limited.POST /await always answers UNKNOWN_PROMISE, because every question is answered at once.query.site picks one of the selected indexes by name; otherwise the first index is used.curl -X POST https://example.com/ask \
-H "Content-Type: application/json" \
-d '{"query":{"text":"vegetarian recipes with cinnamon","itemType":"Recipe"},"prefer":{"mode":"summarize"},"meta":{"version":"0.54"}}'
INLWebAskService.AskAsync produces a stream of NLWebEvent; the JSON, SSE and AI tool responses are all written from it.
INLWebQueryProcessor (by Order): the settings processor caps results, picks the mode and maps site; the AI rewriter decontextualizes follow-ups. A processor can end the question with a failure or an elicitation.INLWebRetriever: each enabled retriever returns CandidateFactor (3) times MaxResults candidates; multiple lists are merged with reciprocal rank fusion.INLWebResultResolver: loads published items, filters by view permission and content type, and describes each with IStructuredDataManager.BuildEntityAsync(item, StructuredDataPurpose.Answer). When the question asks for a schema.org type, other types are dropped unless none match.INLWebResultRanker: the AI ranker scores 0 to 100 and drops results under 25; a failing ranker leaves the order unchanged.INLWebResponseGenerator: writes the text in summarize or generate mode.INLWebAskHandler: told about every question (analytics, auditing).AI steps use the deployment picked in the settings (DeploymentName) or the default utility deployment, and record usage under the NLWeb purpose. Their prompts are overridable prompt templates: nlweb-decontextualize, nlweb-rank, nlweb-summarize, nlweb-generate.
The ask AI tool takes the same query, context and prefer arguments as POST /ask, returns the NLWeb JSON response, and answers as the calling user. Select it on the Exposed tools card of Settings > Artificial Intelligence (orchardcore-ai-mcp-server), on the WebMCP card (orchardcore-ai-webmcp), or in an AI profile.
NLWebSettings is a site setting set by the Settings step; the NLWeb settings deployment step exports it. Index profiles, the AI deployment and the data source are referenced by name or id, not copied, so create them on the target site too. With CrestApps Recipes enabled the section has a JSON schema.
{
"steps": [
{
"name": "Feature",
"enable": [ "CrestApps.OrchardCore.NLWeb", "OrchardCore.Search" ],
"disable": []
},
{
"name": "Settings",
"NLWebSettings": {
"IndexProfileNames": [ "Main", "Blog" ],
"ContentTypes": [],
"MaxResults": 10,
"DefaultMode": "list",
"AllowLegacyRequests": true,
"AllowCrossOrigin": true,
"RewriteQueries": true,
"RankResults": false,
"AllowSummarize": true,
"AllowGenerate": true,
"DeploymentName": null,
"DataSourceId": null
}
}
]
}
An empty ContentTypes allows every type. MaxResults ranges from 1 to 50 in the editor.
Register any of the interfaces in your module; they are scoped services in the CrestApps.OrchardCore.NLWeb.Services namespace. A retriever returns NLWebCandidate(id, score, source) where id is a content item id the resolver can load.
using CrestApps.OrchardCore.NLWeb.Models;
using CrestApps.OrchardCore.NLWeb.Services;
internal sealed class FeaturedItemsNLWebRetriever : INLWebRetriever
{
private readonly IFeaturedItemsService _featuredItems;
public FeaturedItemsNLWebRetriever(IFeaturedItemsService featuredItems)
=> _featuredItems = featuredItems;
public string Name => "featured";
public Task<bool> IsEnabledAsync(NLWebAskContext context)
=> Task.FromResult(!string.IsNullOrWhiteSpace(context.QueryText));
public async Task<IReadOnlyList<NLWebCandidate>> RetrieveAsync(NLWebAskContext context, int count, CancellationToken cancellationToken)
{
var ids = await _featuredItems.FindAsync(context.QueryText, count, cancellationToken);
return ids.Select(id => new NLWebCandidate(id, null, Name)).ToList();
}
}
// In a startup marked [RequireFeatures("CrestApps.OrchardCore.NLWeb")]:
services.AddScoped<INLWebRetriever, FeaturedItemsNLWebRetriever>();
| Interface | Members |
|---|---|
INLWebQueryProcessor | Order (default 0), ProcessAsync(context, ct); set context.Failure or context.Elicitation to stop |
INLWebRetriever | Name, IsEnabledAsync(context), RetrieveAsync(context, count, ct) |
INLWebResultRanker | RankAsync(context, ct) over context.Results |
INLWebResponseGenerator | CanGenerate(mode), GenerateAsync(context, ct) returns the text |
INLWebAskHandler | AskedAsync(context) |
NLWebAskContext exposes Request, User, QueryText, ItemType, Site, Mode, MaxResults, CandidateFactor, Results, SessionContext and a Properties bag. To change how items are described, add an IStructuredDataProvider (see orchardcore-advanced-seo) rather than a custom resolver.
NLWebTelemetryAskHandler records crestapps.nlweb.ask.duration (tags mode = list, summarize, generate, other; outcome = answered, empty, elicitation, failed; reason when failed) and crestapps.nlweb.ask.results on the CrestApps.OrchardCore.NLWeb meter (no activity source). NLWebAskContext.Elapsed gives the time since the pipeline started the question, for your own INLWebAskHandler. See orchardcore-observability.
orchardcore-advanced-seo for the schema.org objects in every answer.orchardcore-search-indexing, orchardcore-lucene, orchardcore-elasticsearch and orchardcore-azure-ai-search for the indexes.orchardcore-ai-data-sources for the vector retriever; orchardcore-ai-prompting for overriding prompt templates.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
orchard-core, nlweb, natural-language-search, schema-org, mcp
137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts./orchardcore-addressesSkill for the CrestApps Orchard Core Addresses module (CrestApps.OrchardCore.Addresses, Addresses.Countries, Addresses.GooglePlaces). Covers the immutable Address value shared by customers, checkout, orders, shipping and taxation, per-country address formats from Google address data with AddAddressesCore, IAddressFormatProvider and AddressFormat, IAddressValidator and AddressProblem, IAddressFormatter, the AddressEditor shape with IAddressEditorService and AddressEditorOptions, CreateAddressEditorAsync and CreateAddressDisplayAsync, ICountryService and managed Country content items, address suggestions through IAddressAutocompleteProvider, ContactInfo, NamedAddress and IShippingAddressBook, the Google Places provider with its protected API key, the address-autocomplete rate-limit group, and the ManageAddressSuggestions permission. Use it when requests mention Orchard Core addresses, international address formats, address validation, a country list, address autocomplete or Google Places./orchardcore-advanced-seoSkill for the CrestApps Orchard Core Advanced SEO module (CrestApps.OrchardCore.Seo), which publishes schema.org structured data as one JSON-LD graph per page and for NLWeb answers. Covers the Schema.org part (SchemaOrgPart, SchemaOrgPartSettings with SchemaType and property mappings from Content, Fixed, Editor or Liquid sources), the StructuredDataSettings site settings and their deployment step, the ManageAdvancedSeoSettings permission, Orchard Core SEO, Search, Products and Reviews integration, the getSchemaOrgOptions, configureContentTypeSchemaOrg and configureSiteStructuredData AI tools, describing pages in code with IPageStructuredData, the structured-data tag helper and the structured_data Liquid filter, and extending with IStructuredDataProvider, ContentPartStructuredDataProvider and SelfDescribingParts. Use this skill when requests mention schema.org, JSON-LD, structured data, rich results, Google required properties, product or article markup, or Advanced SEO in Orchard Core./orchardcore-agentic-commerceSkill for the CrestApps Orchard Core Agentic Commerce module (CrestApps.OrchardCore.AgenticCommerce), which lets AI agents such as Gemini and ChatGPT buy from the store with the Universal Commerce Protocol (UCP), the Agentic Commerce Protocol (ACP) and the AP2 mandates extension (preview). Covers every feature (UCP, account linking, catalog and cart, MCP and A2A bindings, ACP, Agent Product Feeds, AP2), the /.well-known/ucp and /.well-known/acp.json discovery documents, checkout session endpoints, agent platforms and their sign-in, AgenticCommerceSettings, store signing keys in Secrets, idempotency, payment handlers (Stripe shared payment tokens, Google Pay, test credentials), delegated 3-D Secure, embedded checkout, signed order updates, the AgentPlatforms recipe step, and extending with IAgentPaymentHandler, IUcpProfileContributor, IUcpCheckoutExtension and IAgentOrderPublisher. Use it when requests mention agentic commerce, selling through AI agents, UCP, ACP, AP2, agent checkout or agent product feeds./orchardcore-agreementsSkill for the CrestApps Orchard Core Agreements module (CrestApps.OrchardCore.Agreements), support and maintenance contracts with accounts. Covers the Agreement record with its SA- number, status, period and covered hours (a block or a monthly allowance with rounding), Content > Agreements, the account Service tab, the ManageAgreements and ViewAgreements permissions, the Agreements recipe and deployment step, module terms in Properties with IAgreementTermsValidator, IAgreementUsageProvider and IAgreementBalanceService, the hourly lifecycle task with IAgreementObserver, account manager notifications, and the Agreement Usage and Burn-down reports. Use this skill when requests mention service agreements, support contracts, prepaid or retainer hours, entitlements or agreement expiry. Strong matches include Agreement, AgreementHours, AgreementStatus, AgreementBalance, AgreementUsage, IAgreementManager, IAgreementObserver and TicketAgreementTerms./crestapps-orchardcore:orchardcore-nlwebfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcoreOther plugins' skills for the same job