Configures the CrestApps Omnichannel Messaging Workspace in Orchard Core: SMS/email channels, routing rules, AI handoff, templates, broadcasts, and custom channel building via IMessagingChannel.
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.
Read when SKILL.md points to them.
You are an Orchard Core expert. Set up the human messaging inbox, its SMS and email channels, routing and permissions, and extend it with new channels through its contracts instead of changing the workspace.
CrestApps.OrchardCore.Omnichannel.Messaging and the channel
packages (CrestApps.OrchardCore.Omnichannel.Messaging.Sms,
CrestApps.OrchardCore.Omnichannel.Messaging.Email,
CrestApps.OrchardCore.Omnichannel.Email) in the web/startup project.orchardcore-contact-center. Conversations nobody owns are
assigned by routing rules.orchardcore-omnichannel-sms and
to Email Omnichannel Automation; both run on the same addresses and an
automated conversation hands off into it.sealed classes.| Feature | ID | Depends on |
|---|---|---|
| Omnichannel Messaging Workspace | CrestApps.OrchardCore.Omnichannel.Messaging | CrestApps.OrchardCore.Omnichannel.ChannelEndpoints, CrestApps.OrchardCore.ContactCenter.AgentServices, CrestApps.OrchardCore.ContactCenter.EntryPoints, OrchardCore.SignalR, CrestApps.OrchardCore.Teams (routing rules pick through it), CrestApps.OrchardCore.Outreach (sends broadcasts) |
| SMS Messaging Channel | CrestApps.OrchardCore.Omnichannel.Messaging.Sms | the workspace, CrestApps.OrchardCore.ContactCenter.ProviderInbox (the Provider Webhook Inbox of the Webhooks module), OrchardCore.Sms |
| Email Messaging Channel | CrestApps.OrchardCore.Omnichannel.Messaging.Email | the workspace, CrestApps.OrchardCore.ContactCenter.ProviderInbox, OrchardCore.Email |
| Email Omnichannel Automation | CrestApps.OrchardCore.Omnichannel.Email | CrestApps.OrchardCore.AI, CrestApps.OrchardCore.AI.Chat.Core, CrestApps.OrchardCore.Omnichannel.Managements, the Email Messaging Channel, CrestApps.OrchardCore.ContactCenter.BusinessHours |
| Omnichannel Messaging Routed Distribution | CrestApps.OrchardCore.Omnichannel.Messaging.RoutedDistribution | the workspace, CrestApps.OrchardCore.ContactCenter.Queues |
| Omnichannel Messaging - Azure Blob Storage | CrestApps.OrchardCore.Omnichannel.Messaging.Azure | the workspace. Keeps pictures in Azure Blob Storage (see Pictures below) |
All are in the Contact Center category. Admin menus: Messaging > Inbox, Messaging > Broadcasts, Messaging > Templates, Messaging > Routing Rules, and (email) Interaction Center > Management > Email Suppressions plus the Inbound email tab of Settings > Communication > Email.
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.Omnichannel.Messaging.Sms",
"CrestApps.OrchardCore.Omnichannel.Messaging.Email",
"CrestApps.OrchardCore.Omnichannel.Messaging.RoutedDistribution"
],
"disable": []
}
]
}
Operators are Contact Center agent profiles; a bare profile is created the first time a permitted user opens the inbox, which is what ties them to their queues.
orchardcore-sms-azure, or
Telnyx from orchardcore-telephony-telnyx) and the tenant default at
Settings > Communication > SMS.Inbound Entry Points**: route to an agent or a queue, choose Shared pool or Routed distribution, and set the auto-reply (at most once a day per conversation) and closed auto-reply.
api/twilio/webhook/sms
(mapped by this channel, shown as Webhook URL on the Twilio tab), Telnyx
api/telnyx/webhook/sms, ACS through api/azure/webhook/eventgrid
(orchardcore-omnichannel-event-grid).Inbound deliveries are committed to the durable provider webhook inbox (keyed on
the provider's message id, handler sms-inbound) before the provider is
answered, so retries are de-duplicated on every node and a restart loses
nothing; a text that cannot be stored gets 503 so the provider resends it. Outbound SMS goes through the
per-number ISmsDispatcher (SendAsync, ResolveProviderNameAsync), so
different numbers can use different carriers. A Send SMS button appears
beside phone-number fields on admin pages.
| Keyword | Synonyms | Effect |
|---|---|---|
STOP | STOPALL, UNSUBSCRIBE, CANCEL, END, QUIT | Closes the conversation, sets Do not SMS, sends one confirmation. |
START | UNSTOP, YES | Reverses an opt-out (ignored when not opted out). |
HELP | INFO | Sends the help reply. |
The message is trimmed, trailing . ! ? , ; : removed, and compared without
case (SmsKeywordPolicy.Classify). An opt-out wins when the message is an
opt-out keyword or starts with one followed by a space or punctuation ("STOP",
"stop." and "STOP please" opt out; "stopping by" and "please stop" do not).
HELP and START must be the whole message. SMS automation uses the same rule
(OmnichannelSmsComplianceHelper.IsOptOutRequest). A STOP from a number no
contact holds is recorded against the number (ContactAddressOptOut), and every
SMS send path refuses it until it texts START.
A keyword suppresses the entry point's auto-reply for that message. Customize
replies with SmsKeywordReplySettings:
{
"OrchardCore": {
"CrestApps": {
"Omnichannel": {
"Messaging": {
"Sms": {
"KeywordReplies": {
"StopMessage": "You are unsubscribed. Reply START to resubscribe.",
"HelpMessage": "Reply STOP to unsubscribe.",
"StartMessage": "You are resubscribed. Reply STOP to unsubscribe."
}
}
}
}
}
}
}
SendMessagesDuringQuietHours only softens the banner.App_Data (MessagingAttachments), encrypted with data protection.
On hosts whose file system is replaced on deployment, enable
CrestApps.OrchardCore.Omnichannel.Messaging.Azure and configure
CrestApps:Omnichannel:Messaging:AzureAttachments (ConnectionString,
ContainerName and BasePath, both Liquid such as {{ ShellSettings.Name }},
and CreateContainer). Pictures stay encrypted before they reach Azure, so
persist the data protection keys too; incomplete settings log an error and
keep the local store; existing local files are not moved.api/omnichannel/email/inbound/{sendgrid|mailgun|postmark|ses|mime|json}?key=...
and its bounce and complaint events at api/omnichannel/email/events/{provider}.Inbound email (webhook or IMAP) goes through one receiver: Message-ID
de-duplication in the durable inbox (handler email-inbound), quoted history
folded, attachments stored, bounces matched to the email they name, automatic
mail and the business's own addresses never auto-answered. Outbound email is
threaded, embeds attachments (up to 10, 20 MB), and passes a sending governor
(limits, warm-up, per-domain pacing, suppression list, health pauses). Full
setup, deliverability, the Email Suppressions page, the EmailSuppressions
step, AI email automation, extension points and troubleshooting are in
references/email-channel.md.
unread=true, MessagingWorkspaceBuilder.BuildInboxAsync(..., unreadOnly, ...))
narrows any filter and its counts to conversations whose IsRead is off, the
same rule as the Messaging menu badge; the open customer keeps their row.agent=, an agent profile id; only for ViewAllMessagingConversations),
Queue (queue=; every enabled queue for a supervisor, the agent's own
queues otherwise) and Campaign (campaign=). They only narrow what the
viewer may already see, carry through links, live refresh and the open
conversation, and show as removable chips. The campaign filter reads
MessagingConversation.CampaignId, recorded from the activity a conversation
was handed off from (indexed by messaging migration 7; step 8 adds the column
and index where they are missing); older conversations have none.AccentColor (SMS green, email blue). Email messages show their
subject, Show quoted text and an automatic-message badge.Ordered, admin-defined rules at Messaging > Routing Rules
(ManageMessagingRoutingRules) give conversations nobody owns (replies to
workflow or broadcast texts, shared-pool threads, waiting messages) to an
agent: signed in to a queue, entitled to a queue, team members, users in roles
or named users, picked by round robin, fewest open conversations or least busy
through Teams. They run on every channel, on a new conversation, a reply, an
agentless automated send (opt-in) and a sweep every minute. Rules travel with
the Messaging Routing Rules deployment step and the MessagingRoutingRules
recipe step. See references/routing-rules.md.
While an automated activity handles a contact on an address, the workspace
leaves that contact's texts or emails to the AI. On hand-off the whole
transcript is copied into the conversation once (provider message ids prevent
duplicates), and the workspace owns the thread from then on. The workspace
implements IOmnichannelHandoffService for messaging channels.
| Permission | Grants |
|---|---|
UseMessagingWorkspace | Open the inbox; visibility comes from the next three |
ViewOwnMessagingConversations | Conversations assigned to you or sent to an address you own that no colleague claimed |
ViewQueueMessagingConversations | Also unclaimed conversations of your queues, within your agent entitlements |
ViewAllMessagingConversations | Every conversation, including unrouted ones; transfer any |
SendGroupMessages | Broadcasts and multi-recipient messages |
SendMessagesDuringQuietHours | Plain quiet-hours notice |
ManageMessaging | Messaging > Templates |
ManageMessagingRoutingRules | Messaging > Routing Rules (Administrator and Supervisor) |
View-all implies queue, which implies own. Agent gets
UseMessagingWorkspace and ViewQueueMessagingConversations; Supervisor
gets UseMessagingWorkspace, ViewAllMessagingConversations,
SendGroupMessages, SendMessagesDuringQuietHours, ManageMessaging and
ManageMessagingRoutingRules. There is no per-channel permission. Email
addresses, the Email Suppressions page and the inbound email settings
need ManageChannelEndpoints (Manage omnichannel addresses).
Authorize a conversation in code against ViewAllMessagingConversations; the
MessagingConversationAuthorizationHandler grants narrower access:
using CrestApps.OrchardCore.Omnichannel.Messaging.Core;
using CrestApps.OrchardCore.Omnichannel.Messaging.Core.Models;
if (!await _authorizationService.AuthorizeConversationAsync(User, conversation, ConversationOperation.Send))
{
return Forbid();
}
ConversationOperation is View, Send, Claim, Close, Snooze or
Transfer.
ManageMessaging) are reply templates with a Name and
Body, exported by the Messaging Templates deployment step. With
Fill in placeholders (FillsPlaceholders, on for new templates) the body's
Liquid placeholders, such as {{ Contact.DisplayName }}, are filled in by
IMessageTemplateRenderer.RenderAsync(template, models) in restricted Liquid
that reads only the given models (never the request or site); a body whose
placeholders don't parse is refused on save and import. Templates written
before placeholders keep FillsPlaceholders off and are inserted verbatim.Scope is empty for the messaging workspace, which offers only
unscoped templates. Another module offers its own templates from the same
page by registering a scope (the editor then shows Used for); an unknown
scope from another site's recipe is kept. Register one with
services.AddMessageTemplateScope("Tickets", LocalizationSource.Create<Startup>("Tickets"))
and render with the record under the name the body reads, such as
Contact or Ticket.SendGroupMessages) send one message to many recipients
(contacts and leads reachable on the channel, plus typed addresses), each on
their own, from one sending address, in the background, on any channel whose
capabilities allow broadcasts (with a Subject on email). The Outreach
engine sends them, 50 recipients per batch (OutreachRunId tracks the run);
opted-out recipients are skipped (SkippedCount), a refused send counts as
failed (it is not retried), a batch that throws is retried with back-off from
1 minute doubling to 30 (five attempts) and then stops the run, and a number
listed twice gets one message. They cannot be cancelled once queued.QueuedCount and the
broadcast shows Sending until the outbox sends it or gives up.MessagingBroadcasts recipe step: delivery state is never
exported, an import never queues a message, and a queued or sent broadcast on
the target is left alone. Recipients are personal data.OrchardCore.Workflows, the SMS channel adds the Send Text Message
task (SendTextMessageTask: From, To, Body, optional UserName;
outcomes Done and Failed), which sends into the customer's conversation.OrchardCore.DataPipelines.Core, a Messaging data source exposes
conversations and messages to report builders (orchardcore-reports).{
"steps": [
{
"name": "OmnichannelMessageTemplate",
"Templates": [
{
"ItemId": "2hb7c4x9m1q6z3v8k5r0t2n7y",
"Name": "Opening hours",
"Body": "Hi {{ Contact.DisplayName }}, we are open Monday to Friday, 8am to 6pm.",
"FillsPlaceholders": true
}
]
},
{
"name": "MessagingBroadcasts",
"Broadcasts": [
{
"ItemId": "4bc00000000000000000000001",
"Name": "Holiday hours",
"Channel": "sms",
"ServiceAddress": "+12025550100",
"Body": "We close at noon on Friday.",
"Recipients": [ "+12025550101", "+12025550102" ]
}
]
}
]
}
Routing travels with entry points through the ContactCenterEntryPoint
deployment step (orchardcore-contact-center).
| Section | Options class | Settings |
|---|---|---|
CrestApps:Omnichannel:Messaging | MessagingWorkspaceOptions | InboxPageSize (50), ConversationLockTimeoutSeconds (10), ConversationLockExpirationSeconds (30), OutboxBatchSize (200), MaxMessagesPerPassPerEndpoint (20), MaxInboundAttachmentBytes (10 MB), MaxInboundAttachments (10), AttachmentLinkLifetimeHours (72) |
CrestApps:Omnichannel:Messaging:RoutedDistribution | MessagingRoutedDistributionOptions | PickupGraceMinutes (5), MaxReassignmentAttempts (2), VoiceCapacityWeight (3) |
CrestApps:Omnichannel:Messaging:Sms:KeywordReplies | SmsKeywordReplySettings | StopMessage, HelpMessage, StartMessage |
In the root appsettings.json put these under the OrchardCore key; a tenant
file starts at CrestApps. Routed distribution pushes conversations only to
agents who are Available with the inbox open, and re-pools unpicked ones.
The meter and activity source CrestApps.OrchardCore.Messaging (matched by
CrestApps.OrchardCore.*, see orchardcore-opentelemetry) emit
crestapps.messaging.*: send.duration (channel, provider, result),
outbox.retry, optout, delivery and delivery.latency (Telnyx receipts
only), inbound.duration and inbound.lag, route, assignment,
sla.breached, reassigned, first_response.duration, broadcast and
broadcast.recipient, plus the AI SMS instruments (ai.turn.duration,
ai.handoff, ai.respond_decision, activity.start). Spans:
crestapps.messaging.send, .inbound, .route, .ai.turn. No metric carries
a phone number, an id or a body. Log event ids: 18000-18099 Messaging.Core,
18100-18199 Messaging.Sms.Core. The background tasks report on
crestapps.background_task.*. Delivery and assignment counters are approximate
(recorded before commit).
The workspace maps its own MessagingHub with
SignalRHubRoutes.GetHubPath<MessagingHub>() on Orchard Core SignalR (see
orchardcore-signalr). New messages, receipts and assignment changes are
pushed; missed pushes are caught up by polling. Other admin pages show a notice
when a customer writes or a conversation is transferred, and Messaging >
Inbox shows the waiting count. Each notification is logged at Information.
Implement IMessagingChannel and register it with
services.AddMessagingChannel<TChannel>(), plus an address capability and an
entry point channel. Outbound messages carry ConversationId, ReplyTo,
Purpose and Attachments (set Attachments.DeliveredAsLinks = false to
embed files); channel data on a message goes in its entity properties. Inbound
receivers call IMessagingInboundProcessor.ProcessAsync; channel-only rules
are IMessagingInboundHandlers; delivery receipts go to
IMessagingConversationService.ApplyDeliveryReceiptAsync. Automate a channel
with IAutomatedMessagingChannel and services.AddAutomatedMessagingChannel<T>().
See references/adding-a-channel.md.
orchardcore-contact-center - text and email entry points, queues, agentsorchardcore-omnichannel-sms - AI SMS automationorchardcore-omnichannel-management - addresses, activities, loads, cadences, consentorchardcore-email, orchardcore-sms - Orchard Core email and SMS providersCrestApps.OrchardCore.Omnichannel.Sms.Portal) is replaced.
Enable SMS Messaging Channel; the first workspace migration imports
conversations, templates, broadcasts, each SMS endpoint's routing (as a text
entry point) and role permissions. Agents turn Available back on.SmsNumberRoute is retired: routing lives on inbound entry points and the
provider on the SMS omnichannel address.CrestApps:Sms:Workspace to
CrestApps:Omnichannel:Messaging, CrestApps:Sms:RoutedDistribution to
CrestApps:Omnichannel:Messaging:RoutedDistribution,
CrestApps:Sms:Portal:KeywordReplies to
CrestApps:Omnichannel:Messaging:Sms:KeywordReplies.UseMessagingWorkspace no longer implies the other permissions. A migration
grants ViewQueueMessagingConversations to every role that could use the
workspace; review roles that should see everything and grant
ViewAllMessagingConversations explicitly.IMessagingConversationAuthorizationService is removed; use
IAuthorizationService.AuthorizeConversationAsync.SmsMessagingChannel takes IContactMethodsAccessor and
IOmnichannelContactPhoneLookup; register services.AddContactMethods() when
you build it by hand.AdminList
(list names MessagingBroadcasts, MessagingTemplates; see
orchardcore-admin-lists).MessagingFileFormat, MessagingFileFormats and MessagingFileSignature
moved to CrestApps.OrchardCore.Attachments.Models as FileFormat,
FileFormats and FileSignature; Messaging attachments keep their own store.MessagingWorkspaceBuilder takes IMessageTemplateRenderer; a migration adds
the template Scope column.MessagingOutboxIndex,
backfilled by a migration); it used to scan the oldest outbound messages and
missed retries once a tenant had sent more than one batch.IMessagingChannel gained the optional AccentColor; MessagingOutboundMessage
gained ConversationId, ReplyTo, Purpose and Attachments, and
MessagingAttachmentCapabilities gained DeliveredAsLinks.PrivateAssets="none", so a site that
installs Messaging loads Outreach as a module; before the fix the broadcast
task failed every minute resolving IOutreachEngine.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
omnichannel, messaging-workspace, sms, email-automation, orchard-core
/crestapps-orchardcore:orchardcore-omnichannel-messagingfrom 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