StaticcreateCreates a DirectLine-compatible connection for integrating Copilot Studio with WebChat.
A configured CopilotStudioClient instance that handles the underlying communication with the Copilot Studio service. This client should be properly authenticated and configured with the target bot details.
Optionalsettings: CopilotStudioWebChatSettingsOptional configuration settings that control the behavior of the WebChat connection. These settings allow customization of features like typing indicators and other user experience enhancements.
A new CopilotStudioWebChatConnection instance that can be passed directly to WebChat's renderWebChat function as the directLine parameter. The connection is immediately ready for use and will automatically manage the conversation lifecycle.
Error if the provided client is not properly configured or if there are issues establishing the initial connection to the Copilot Studio service.
This method establishes a real-time communication channel between WebChat and the Copilot Studio service. The returned connection object implements the DirectLine protocol, making it fully compatible with Microsoft Bot Framework WebChat components.
A utility class that provides WebChat integration capabilities for Copilot Studio services.
Remarks
This class acts as a bridge between Microsoft Bot Framework WebChat and Copilot Studio, enabling seamless communication through a DirectLine-compatible interface.
Key Features:
Usage Scenarios:
Example: Basic WebChat Integration
Example: Advanced Usage with Connection Monitoring