Skip to content

Add user disconnect message and escalation state storage#625

Merged
tracyboehrer merged 3 commits into
mainfrom
users/sigaur/fix-conversation-end-and-emoji-issue
Jun 17, 2026
Merged

Add user disconnect message and escalation state storage#625
tracyboehrer merged 3 commits into
mainfrom
users/sigaur/fix-conversation-end-and-emoji-issue

Conversation

@siddharthh98

Copy link
Copy Markdown
Contributor
  • Add UserDisconnectedMessage to settings and config
  • Notify live agent when user disconnects from escalated chat
  • Persist escalation marker in storage for external API access
  • Convert Teams HTML/emoji to plain text for Genesys
  • Secure /api/conversations/reset with authorization

sigaurmicrosoft and others added 2 commits June 17, 2026 16:06
- Add UserDisconnectedMessage to settings and config
- Notify live agent when user disconnects from escalated chat
- Persist escalation marker in storage for external API access
- Convert Teams HTML/emoji to plain text for Genesys
- Secure /api/conversations/reset with authorization
@siddharthh98 siddharthh98 requested a review from Copilot June 17, 2026 10:38
@github-actions github-actions Bot added the Samples Changes to Samples label Jun 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the samples/dotnet/genesys-handoff sample by improving Genesys handoff reliability and operability: it persists an escalation marker for out-of-turn APIs, notifies live agents when users disconnect, improves message text fidelity when forwarding Teams content, and secures the external reset endpoint.

Changes:

  • Persist escalation state in IStorage keyed by MCS conversation ID for external reset API checks.
  • Notify the live agent (via Genesys) when the Teams user disconnects from an escalated conversation.
  • Convert Teams HTML/emoji attachments into plain text before sending messages to Genesys, and require authorization for /api/conversations/reset.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
samples/dotnet/genesys-handoff/Services/ConversationStateManager.cs Adds storage-backed escalation marker set/clear/check helpers.
samples/dotnet/genesys-handoff/Program.cs Secures the reset endpoint by requiring authorization.
samples/dotnet/genesys-handoff/GenesysHandoffAgent.cs Persists/clears escalation markers and sends a “user disconnected” notice to the live agent.
samples/dotnet/genesys-handoff/Genesys/IGenesysConnectionSettings.cs Adds UserDisconnectedMessage setting contract.
samples/dotnet/genesys-handoff/Genesys/GenesysMessageSender.cs Converts Teams HTML/emoji-rich content to plain text for Genesys payloads.
samples/dotnet/genesys-handoff/Genesys/GenesysConnectionSetting.cs Wires UserDisconnectedMessage from configuration.
samples/dotnet/genesys-handoff/appsettings.json Adds default UserDisconnectedMessage configuration value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread samples/dotnet/genesys-handoff/Services/ConversationStateManager.cs
@tracyboehrer tracyboehrer merged commit 31ccaaf into main Jun 17, 2026
10 checks passed
@tracyboehrer tracyboehrer deleted the users/sigaur/fix-conversation-end-and-emoji-issue branch June 17, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Samples Changes to Samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants