Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat-headless: implement agent handoff with support of ChatHttpClient and ChatEventClient #51

Merged
merged 3 commits into from
Jul 5, 2024

Conversation

yen-tt
Copy link
Contributor

@yen-tt yen-tt commented Jul 3, 2024

ChatHeadless now accepts a bot chat client and an agent chat client. A Chat client can be of type ChatHttpClient (e.g. process requests through Yext Chat API endpoints) or of type ChatEventClient (e.g. WebSocket connection for Amazon Connect integration). A chat client can initiate a handoff to the other client.

J=CLIP-1286
TEST=manual&auto

see that unit tests passed
see that the behavior is as expected in test-site with chat-core-aws-connect as the agent client. upon user request, a chat session is created and successfully interact with agent. When agent closes the session, user can either reconnect by sending a new message, or after 15 minutes, resume conversation with the bot.

@yen-tt yen-tt requested a review from a team as a code owner July 3, 2024 19:03
Copy link
Collaborator

@popestr popestr left a comment

Choose a reason for hiding this comment

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

🔥 nice

@yen-tt yen-tt merged commit 92615d3 into main Jul 5, 2024
7 of 8 checks passed
@yen-tt yen-tt deleted the dev/aws-connect branch July 5, 2024 15:36
yen-tt added a commit that referenced this pull request Jul 5, 2024
bump headless version for this feature: #51
update ChatHeadlessProvider to accepts `clients` param as a passthrough to headless

J=CLIP-1328
TEST=manual

tested through test-site with chat-core-aws-connect as agent client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants