Guides selection and use of CrestApps Orchard Core Omnichannel features: shared message store, contracts (IOmnichannelProcessor, IOmnichannelEventHandler), Azure Communication Services, and inbound webhook map for Event Grid, Twilio, Telnyx, and email.
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.
You are an Orchard Core expert. Use this skill to pick the right Omnichannel feature and to build on the shared contracts that every Omnichannel channel uses. The base feature is plumbing: it stores messages and preferences and defines contracts. It sends nothing, places no calls and has no admin screens.
CrestApps.OrchardCore.Omnichannel is enabled by every
other Omnichannel feature through dependencies; you rarely enable it alone.Omnichannel YesSql collection
(OmnichannelConstants.CollectionName).sealed classes and file-scoped namespaces.| Need | Feature ID | Skill |
|---|---|---|
| Shared message store, preferences, contracts | CrestApps.OrchardCore.Omnichannel | this skill |
| Azure Communication Services email and SMS providers | CrestApps.OrchardCore.Omnichannel.AzureCommunicationServices | this skill |
| Headless contacts, subjects, campaigns, activities | CrestApps.OrchardCore.Omnichannel.Activities | orchardcore-omnichannel-management |
| Omnichannel addresses (channel endpoints) admin | CrestApps.OrchardCore.Omnichannel.ChannelEndpoints (dependency only) | orchardcore-omnichannel-management |
| CRM admin, loads, subject flows, cadences, reports | CrestApps.OrchardCore.Omnichannel.Managements | orchardcore-omnichannel-management |
| Leads, accounts, opportunities | CrestApps.OrchardCore.Omnichannel.Crm | orchardcore-omnichannel-management |
| AI-driven SMS conversations | CrestApps.OrchardCore.Omnichannel.Sms | orchardcore-omnichannel-sms |
| AI-driven email conversations (Email Omnichannel Automation) | CrestApps.OrchardCore.Omnichannel.Email | orchardcore-omnichannel-messaging |
| AI-driven voice calls (provider neutral) | CrestApps.OrchardCore.Omnichannel.Voice | orchardcore-omnichannel-voice |
| Human messaging inbox and routing rules | CrestApps.OrchardCore.Omnichannel.Messaging | orchardcore-omnichannel-messaging |
| SMS channel of the inbox | CrestApps.OrchardCore.Omnichannel.Messaging.Sms | orchardcore-omnichannel-messaging |
| Email channel of the inbox | CrestApps.OrchardCore.Omnichannel.Messaging.Email | orchardcore-omnichannel-messaging |
| Push routing for the inbox | CrestApps.OrchardCore.Omnichannel.Messaging.RoutedDistribution | orchardcore-omnichannel-messaging |
| Messaging pictures in Azure Blob Storage | CrestApps.OrchardCore.Omnichannel.Messaging.Azure | orchardcore-omnichannel-messaging |
| Azure Event Grid inbound webhook | CrestApps.OrchardCore.Omnichannel.EventGrid | orchardcore-omnichannel-event-grid |
Related skills owned elsewhere: orchardcore-contact-center (queues, entry
points, agents, dialer), orchardcore-business-hours (the Business Hours
schedules that gate queues, loads and cadences), orchardcore-telephony,
orchardcore-telephony-telnyx (Telnyx SMS and the Telnyx AI Voice Agent),
orchardcore-telephony-asterisk, orchardcore-dnc-registry,
orchardcore-phone-numbers, orchardcore-signalr, and the framework skills
orchardcore-sms and orchardcore-sms-azure.
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.Omnichannel",
"CrestApps.OrchardCore.Omnichannel.Managements"
],
"disable": []
}
]
}
CrestApps.OrchardCore.Omnichannel.AzureCommunicationServices (Omnichannel -
Azure Communication Services) depends on CrestApps.OrchardCore.Omnichannel,
OrchardCore.Email.Azure and OrchardCore.Sms.Azure. It adds no settings,
connection-string model or processor of its own: it switches on Orchard Core's
ACS email and SMS providers so Omnichannel components can send through the
standard ISmsService and email services.
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.Omnichannel.AzureCommunicationServices"
],
"disable": []
}
]
}
After enabling it:
Microsoft.Communication.SMSReceived is
routed as an SMS inbound text; Microsoft.Communication.SMSDeliveryReportReceived
is stored but not routed (the sent message's status is not updated). The ACS
number must exist as an SMS omnichannel address so the event matches it.| Provider path | Endpoint | Owning feature |
|---|---|---|
| Azure Event Grid (including ACS SMS) | POST ~/api/azure/webhook/eventgrid | CrestApps.OrchardCore.Omnichannel.EventGrid |
| Twilio inbound SMS | POST ~/api/twilio/webhook/sms | CrestApps.OrchardCore.Omnichannel.Sms or CrestApps.OrchardCore.Omnichannel.Messaging.Sms (mapped once when both are on); refused while the Twilio provider is disabled in the SMS settings |
| Telnyx inbound SMS | POST ~/api/telnyx/webhook/sms | Telnyx SMS (orchardcore-telephony-telnyx) |
Inbound email (sendgrid, mailgun, postmark, ses, mime, json) | POST ~/api/omnichannel/email/inbound/{provider}?key=... | CrestApps.OrchardCore.Omnichannel.Messaging.Email; 404 until the site's webhook key exists |
| Email bounces and complaints | POST ~/api/omnichannel/email/events/{provider}?key=... | CrestApps.OrchardCore.Omnichannel.Messaging.Email |
| Email unsubscribe | GET/POST ~/omnichannel/email/unsubscribe/{token} | CrestApps.OrchardCore.Omnichannel.Messaging.Email |
Every SMS receiver raises the same OmnichannelConstants.Events.SmsReceived
event on the SMS channel, so SMS Automation and the SMS Messaging Channel act
on Twilio, Telnyx and ACS texts identically. Every email source (webhooks and
IMAP mailboxes) ends in IEmailInboundReceiver and raises
OmnichannelConstants.Events.EmailReceived on the Email channel. Both SMS features depend on the
dependency-only Provider Webhook Inbox
(CrestApps.OrchardCore.ContactCenter.ProviderInbox, shipped by the
CrestApps.OrchardCore.Webhooks module): each receiver commits the text to it,
keyed on the provider message id, before answering the provider, so a restart
loses nothing and redeliveries are absorbed on every node.
Whether a person may be contacted on a channel is answered by the shared
IConsentService (CrestApps.OrchardCore.Consent); see
orchardcore-omnichannel-management.
All types are in CrestApps.OrchardCore.Omnichannel.Core (models in
CrestApps.OrchardCore.Omnichannel.Core.Models, services in
CrestApps.OrchardCore.Omnichannel.Core.Services).
| Type | Purpose |
|---|---|
IOmnichannelProcessor | Starts an automated activity on one channel (Channel, StartAsync(activity, cancellationToken)). SMS Automation registers SMS; Telnyx AI Voice registers Phone. |
IOmnichannelEventHandler | Receives every inbound OmnichannelEvent (HandleAsync(event, cancellationToken)). |
OmnichannelEvent | Id, EventType, Subject, Message, Data (BinaryData) and GetDataFromJson<T>(). |
OmnichannelMessage | Stored message: Channel, CustomerAddress, ServiceAddress, Content, IsInbound, ConversationId, ProviderMessageId, DeliveryStatus, MediaReferences, ErrorCode. |
IOmnichannelHandoffAvailability | Optional companion of IOmnichannelHandoffService: GetAvailabilityAsync(queueId) returns HandoffAvailability (Open, CallbackOnly, Unavailable) so an automated conversation is offered a transfer only when someone can take it. Contact Center implements it. |
ISmsProviderRouter | Resolves the SMS provider that owns a sending number (ResolveProviderNameAsync, GetProviderAsync, SendAsync), falling back to the tenant default. |
OmnichannelConstants.Channels | Phone, SMS, Email. |
OmnichannelConstants.Events | SmsReceived, EmailReceived. |
OmnichannelConstants.SmsErrorCodes | Provider-neutral refusals such as recipient_opted_out and media_not_supported. |
OmnichannelConstants.MessagingErrorCodes | Refusals on any channel: recipient_rejected (hard bounce, never retried), deferred (held back by a sending limit or pause, not a failed attempt), sender_blocked (policy block on the sender; slow the sending address, keep the recipient). |
OmnichannelActivityDeferredException, OmnichannelActivityRefusedException | Thrown by IOmnichannelProcessor.StartAsync: deferred reschedules the activity at RetryAtUtc without spending an attempt; refused cancels it with TerminalReasonCode (such as address_undeliverable). |
Every handler is called for every event, so filter by event type, channel and direction before acting, and keep side effects idempotent because providers retry.
using CrestApps.OrchardCore.Omnichannel.Core;
using CrestApps.OrchardCore.Omnichannel.Core.Models;
namespace MyCompany.OrchardCore.Communications;
public sealed class ProviderReceiptHandler : IOmnichannelEventHandler
{
public Task HandleAsync(OmnichannelEvent omnichannelEvent, CancellationToken cancellationToken = default)
{
if (!string.Equals(omnichannelEvent.EventType, "Contoso.MessageDelivered", StringComparison.Ordinal))
{
return Task.CompletedTask;
}
// Read the provider payload with omnichannelEvent.GetDataFromJson<T>().
return Task.CompletedTask;
}
}
Register it in the owning feature's startup with
services.AddScoped<IOmnichannelEventHandler, ProviderReceiptHandler>();.
using CrestApps.OrchardCore.Omnichannel.Core;
using CrestApps.OrchardCore.Omnichannel.Core.Models;
namespace MyCompany.OrchardCore.Communications;
public sealed class WhatsAppOmnichannelProcessor : IOmnichannelProcessor
{
public string Channel => "WhatsApp";
public Task StartAsync(OmnichannelActivity activity, CancellationToken cancellationToken)
{
// Send the opening message for the automated activity.
return Task.CompletedTask;
}
}
Register with
services.TryAddEnumerable(ServiceDescriptor.Scoped<IOmnichannelProcessor, WhatsAppOmnichannelProcessor>());
and also register the channel in ActivityChannelOptions (see
orchardcore-omnichannel-management) so loads and filters offer it. The
management feature's AutomatedActivitiesProcessorBackgroundTask dispatches
due automated activities to the processor whose Channel matches. Throw
OmnichannelActivityDeferredException when the address is at a sending limit
and OmnichannelActivityRefusedException when the destination can never be
reached.
For a messaging channel (one with an IMessagingChannel in the workspace),
prefer the channel-neutral engine in CrestApps.OrchardCore.Omnichannel.Automation.Core
(namespace CrestApps.OrchardCore.Omnichannel.Automation) over a hand-written
processor. Email Omnichannel Automation uses it; SMS automation still has its
own engine. Implement IAutomatedMessagingChannel (Channel,
ReceivedEventType, ActivityKind, UsageCategory,
ConclusionPromptTemplateId, ConversationNoun, NormalizeAddress,
IsAutomaticMessage, IsOptOutRequest, ApplyOptOutAsync,
GetDefaultResponseDelay, GetReadingDelay, GetTypingDelay,
SplitOpeningMessage) and register:
services.AddAutomatedMessagingChannel<WhatsAppAutomatedMessagingChannel>();
services.AddEntryPointAIAgentChannel("WhatsApp");
AddAutomatedMessagingChannel registers an IOmnichannelProcessor
(AutomatedConversationProcessor) for the channel, the
AutomatedConversationHandler event handler (reply loop, conclusion and
disposition, handoff, safeguards), the entry point AI conversation starter, owed
reply recovery and cadence follow-ups; schedule the last two with background
tasks of your own, as Email Omnichannel Automation does. See
orchardcore-omnichannel-messaging (references/email-channel.md) for the email
implementation.
api/{provider}/webhook/{action}: point Event Grid at
api/azure/webhook/eventgrid and Twilio at api/twilio/webhook/sms. The old
Omnichannel/webhook/AzureEventGrid, Omnichannel/webhook/Twilio and
Omnichannel/webhook/TwilioEventGrid routes are gone.DoNotChat; the preferences are DoNotCall,
DoNotSms and DoNotEmail.IContactMethodsAccessor
(see orchardcore-omnichannel-management), not by walking the
ContactMethods bag.OrchardCore.SignalR; the
messaging hub is mapped with SignalRHubRoutes.GetHubPath<T>() (see
orchardcore-signalr).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/crestapps-orchardcore:orchardcore-omnichannelfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 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.Other plugins' skills for the same job