Add proactive messaging sample with server integration#494
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a sample application demonstrating proactive messaging capabilities for Teams and WebChat channels, allowing bots to send messages to users outside of the normal conversation flow. The sample includes server endpoints that can trigger proactive messages and updates the CloudAdapter to properly handle connector client initialization for proactive scenarios.
- Added a comprehensive proactive messaging sample with support for both Teams and WebChat channels
- Enhanced CloudAdapter to properly initialize connector clients for proactive messaging scenarios
- Updated test expectations to reflect the additional connector client creation calls
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| samples/basic/proactive.ts | New sample application demonstrating proactive messaging with server endpoints for Teams and WebChat |
| packages/agents-hosting/src/cloudAdapter.ts | Enhanced connector client initialization for proactive messaging scenarios |
| packages/agents-hosting/test/hosting/adapter/cloudAdapter.test.ts | Updated test expectations for additional connector client creation calls |
axelsrz
approved these changes
Jul 28, 2025
This was referenced Jul 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a sample application demonstrating proactive messaging capabilities for Teams and WebChat, including server integration for sending proactive messages.