Service Digital Engagement Deployment Configure
Configures Embedded Messaging Deployments for Messaging for In-App and Web (MIAW). Use when the user needs to create a new embedded messaging deployment from scratch using Connect API with defaults, or update an existing deployment's settings using Metadata API. Produces Connect API request payloads for new deployments and EmbeddedServiceConfig metadata XML for updates. TRIGGER when the user mentions embedded messaging deployment, embedded service deployment, MIAW deployment, messaging widget setup, chat widget configuration, embedded chat deployment, or references a .EmbeddedServiceConfig-meta.xml file. DO NOT TRIGGER when the user is creating a messaging channel (use service-digital-engagement-channel-configure), configuring legacy Live Agent embedded service, or generating the JavaScript code snippet for website embedding.
- Skill ID
- forcedotcom/sf-skills/service-digital-engagement-deployment-configure
- Publisher
- forcedotcom
- Repository
- sf-skills
- Installs
- 0
- Files
- 11
- Synced
- Sep 23, 2026
Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.
forcedotcom/sf-skills/service-digital-engagement-deployment-configureInstalls these files- SKILL.md
- assets/esd_api_mobile_template.xml
- assets/esd_web_update_template.xml
- examples/esd_api.xml
- examples/esd_mobile.xml
- examples/esd_web_full.xml
- references/branding_and_tooling.md
- references/code_snippet.md
- references/connect_api_creation.md
- references/deployment_settings.md
- scripts/check-api-version.sh
What this skill tells the agent
Configuring Embedded Messaging Deployment
Configures EmbeddedServiceConfig metadata for Salesforce Messaging for In-App and Web (MIAW). Supports two distinct workflows: creating new deployments via Connect API and updating existing deployments via Metadata API.
Scope
- In scope: Creating new Embedded Service Deployments (API, Mobile, Web types) via Connect API; updating existing deployments with forms, branding, channel settings, and features via Metadata API; generating
EmbeddedServiceConfigXML for updates - Out of scope: Creating the messaging channel itself (use
service-digital-engagement-channel-configure), publishing deployments (Connect API post-step), creating Experience Sites (Connect API prerequisite for Web type)
Clarifying Questions
Before generating, ask the user if not already clear:
- Create or update? Are you creating a new deployment or updating an existing one?
- Deployment type? API (headless), Mobile (native apps), or Web (browser widget)?
- Channel name? What is the
channelPlatformKeyof the messaging channel to associate? - For create: What should the deployment be named?
- For update: What features to configure? (pre-chat forms, business hours, T&C, UI toggles)
- For update (Web): What is the Experience Site name? Branding overrides needed?
Required Inputs
Gather or infer before proceeding:
- Operation:
createorupdate - Deployment type:
API,Mobile, orWeb - Deployment name: Used for
masterLabeland the API name - Channel name: The
channelPlatformKeyof the associated messaging channel
For update operations additionally:
- Site name (Web only): The Experience Site name (format
ESW_<name>_<timestamp>) - Branding name (optional): Reference to existing
BrandingSet - Pre-chat form fields (optional): Field names and required status
- Business hours (optional): Name of existing
BusinessHoursrecord
Defaults unless specified:
isEnabled:truedeploymentFeature:EmbeddedMessaging
Workflow
All steps are sequential. Do not skip or reorder. Branch based on the operation type.
Phase 1 — Gather Context
- Verify org API version — run
scripts/check-api-version.sh 67.0 <org-alias>and report any errors it returns. If the script fails, generate asfdx-project.jsonin the metadata output folder with"sourceApiVersion": "67.0".
- Determine operation — ask whether the user wants to create a new deployment or update an existing one.
- Collect inputs — gather deployment name, type, and channel name per Clarifying Questions above.
- Read deployment settings reference — load
references/deployment_settings.mdto understand all available configuration options.
Phase 2A — Create New Deployment
Use this path when the operation is create.
- Determine API method by type:
| Deployment Type | Creation Method | Prerequisites |
|---|---|---|
| API | Metadata API deploy | Channel must exist |
| Mobile | Metadata API deploy | Channel must exist |
| Web | Connect API | Channel must exist + Experience Site required |
- For API/Mobile types — read the template
assets/esd_api_mobile_template.xmland generate theEmbeddedServiceConfigXML with:
deploymentTypeset toAPIorMobiledeploymentFeatureset toEmbeddedMessaging- All defaults applied
- For Web type — inform the user that Web deployments require Connect API for initial creation because of a circular dependency between Network and CustomSite. Read
references/connect_api_creation.mdfor the Connect API payload and instructions.
- Generate output — produce the
.EmbeddedServiceConfig-meta.xmlfile (for API/Mobile) or Connect API instructions (for Web).
- Present output and next steps — show the generated file and summarize what was configured. Recommend as next steps:
- Publish the deployment via Connect API to make it live: ``
bash sf api request rest "/services/data/v67.0/connect/embeddedservice/embeddedserviceconfig/publish/<EMBEDDED_SERVICE_CONFIG_ID>" -X POST -o <org-alias>`To obtain theEMBEDDED_SERVICE_CONFIG_ID:`bash sf data query --query "SELECT Id FROM EmbeddedServiceConfig WHERE DeveloperName = '<DEPLOYMENT_NAME>'" --target-org <org-alias>`` - Generate code snippet for integration — see
references/code_snippet.md
Phase 2B — Update Existing Deployment (Metadata API)
Use this path when the operation is update.
- Retrieve the existing deployment — retrieve the current
EmbeddedServiceConfigmetadata from the org before making changes: ``bash sf project retrieve start --metadata EmbeddedServiceConfig:<DEPLOYMENT_NAME> --target-org <org-alias>`Use the retrieved file as the starting structure. If retrieval is not possible, loadassets/esd_web_update_template.xml` as a fallback reference.
- Apply messaging channel settings — configure
<embeddedServiceMessagingChannel>with:
messagingChannel— the channel'schannelPlatformKeyshouldShowAgentforceTagline— Agentforce brandingshouldShowDeliveryReceipts— delivery receiptsshouldShowEmojiSelection— emoji pickershouldShowReadReceipts— read receiptsshouldShowTypingIndicators— typing indicatorsshouldStartNewLineOnEnter— Enter key behaviorisChatInvitationCustomizable/isInvitationEnabled— chat invitation settings
- Apply pre-chat forms — if the user needs pre-chat data collection, generate
<embeddedServiceForms>with<embeddedServiceFormFields>elements containingembeddedServiceFormFieldNameandisRequired.
- Apply branding customization (Web only) — a BrandingSet is automatically created with defaults when the deployment is created via Connect API. If the user wants to override specific branding properties (colors, fonts, dimensions), read
references/branding_and_tooling.mdfor the Tooling API steps to update individual properties.
- Apply invitation (Web only) — if the user wants the widget to proactively invite visitors based on conditions:
- Set
isInvitationEnabledtotruein<embeddedServiceMessagingChannel> - Generate repeatable
<embdMsgChannelInvitationConditions>elements withsequence,conditionType,operand,value, and optionallycustomVariableName - Update the
formulafield in<embeddedServiceMessagingChannel>to reference the condition sequences (e.g.,1 AND 2,1 OR 2). The formula must be updated whenever conditions are added or removed to stay in sync with thesequencenumbers - See
references/deployment_settings.mdfor available condition types and operators
- Apply additional settings:
isTermsAndConditionsEnabled/isTermsAndConditionsRequired— T&C in pre-chat- Do NOT update `site` — the site name is auto-generated during creation and must never be modified
- Generate the file — produce the
.EmbeddedServiceConfig-meta.xmlfile at the path the user specifies, or default toEmbeddedServiceConfig/in the project's metadata source path.
- Present output and next steps — show the generated file and summarize what was configured. Recommend as next steps:
- Publish the deployment via Connect API to make changes live: ``
bash sf api request rest "/services/data/v67.0/connect/embeddedservice/embeddedserviceconfig/publish/<EMBEDDED_SERVICE_CONFIG_ID>" -X POST -o <org-alias>`To obtain theEMBEDDED_SERVICE_CONFIG_ID:`bash sf data query --query "SELECT Id FROM EmbeddedServiceConfig WHERE DeveloperName = '<DEPLOYMENT_NAME>'" --target-org <org-alias>`` - Generate code snippet for integration — see
references/code_snippet.md
Phase 3 — Validate
More from forcedotcom
Use this skill in a project
Open any RiverX project, search the Skills panel for forcedotcom/sf-skills/service-digital-engagement-deployment-configure, and install it in one click.
