Is there a specific JSON schema for overriding the default Web Messaging widget appearance when initializing the deployment?
We’ve got a custom agent desktop built with the Embeddable Client App SDK, and we’re trying to inject a Web Messaging widget that matches our internal branding. The docs mention passing a deployment object, but I’m stuck on the exact property names for the launcher icon color and the anchor position.
Here is what I’m trying in our widget initialization:
const client = new PureCloudPlatformClientV2.Client();
client.init({
// ... auth details
});
// Attempting to configure messaging
const messagingConfig = {
deploymentId: 'my-deployment-id',
settings: {
launcherPosition: 'bottom-right', // or 'bottom-left'?
theme: {
primaryColor: '#007bff',
launcherIconColor: '#ffffff'
}
}
};
// How do I apply this to the actual widget instance?
The widget loads, but it ignores the settings object entirely. It just shows the default blue bubble in the bottom-left. I’ve tried putting the config in the init call, but that doesn’t seem right either. We’re using the latest JS SDK version.
Does the settings object need to be sent via a separate API call to /api/v2/webdeployments/{deploymentId} or is it part of the client-side render config? I can’t find a clear example of the runtime config object.