Advanced Configuration
Embedded
Explains advanced configuration for embedded Stubber Webchat. Useful for custom payloads, control events, browser integration, and embedded chat behavior.
Overview
Advanced configuration options for embedded webchat:
- Control channels for bidirectional communication between webpage and stub
- Custom notification parameters for rich messaging
- Headless mode for building your own custom interface
- Advanced embedding options for different UI requirements
Notification Parameters
Use these notification parameters to send messages, forms, and update client settings.
Basic Payload
Sending a payload requires the webchat client sessionuuid. A single payload may combine a message and client configuration:
Sending a Message
To send a message, add webchat_message to the webchat object:
Message with Custom Agent Name
Add webchat_agent to the webchat object:
Sending a Form
Client Settings
To update client settings, add webchat_client_configuration to the webchat object:
Building Your Own Interface
For full control over the webchat UI, use headless mode. Include the webchat core script:
This exposes the global StubberWebchatCore object, with methods for connecting to and interacting with the webchat service.
See Control Channels for details.