- Newest
- Most votes
- Most comments
To implement persistent chat in Amazon Connect flows using the "Create Persistent Contact Association" block, follow these steps and best practices:
-
Retrieving and passing the source contact ID:
- You can use the "Set contact attributes" block before the "Create persistent contact association" block to set a user-defined attribute with the source contact ID.
- The source contact ID can be retrieved from your customer database or CRM system. You may need to use a Lambda function to fetch this information if it's not readily available in the flow.
-
Testing persistent chat functionality:
- To test, initiate a chat session and end it.
- Start a new chat session for the same customer and verify that the previous chat history is rehydrated.
- Check if the chat transcript from the previous session is displayed in the new session.
-
S3 bucket configurations:
- Ensure that your Amazon Connect instance has the necessary permissions to access the S3 bucket where chat transcripts are stored.
- Verify that the S3 bucket retention policy aligns with your persistent chat requirements.
-
Best practices and flow implementation:
- Place the "Create persistent contact association" block early in your flow, typically after initial contact creation and any necessary customer identification steps.
- Use the ENTIRE_PAST_SESSION rehydration type to resume the full chat history, as you've already configured.
- Consider adding error handling branches to manage cases where the persistent chat association fails.
- Implement logic to handle scenarios where a previous chat session doesn't exist for a customer.
-
Additional considerations:
- Remember that you can only enable persistence of a SourceContactID on a new chat once.
- The "Create persistent contact association" block is recommended when using the Amazon Connect chat widget or Apple Messages for Business.
- Ensure that your flow logic accounts for both new and returning customers, providing appropriate experiences for each.
By following these guidelines and properly configuring the "Create persistent contact association" block in your flow, you should be able to successfully implement persistent chat in Amazon Connect, allowing customers to resume previous conversations with full context and history.
Sources
Enable customers to resume chat conversations in Amazon Connect - Amazon Connect
Flow block in Amazon Connect: Create persistent contact association - Amazon Connect
PersistentChat - Amazon Connect
Release notes for Amazon Connect - Amazon Connect
Relevant content
- asked a year ago
- asked 2 years ago
I’m working on an Amazon Connect setup where customers initiate chats through a Communications Widget embedded on our website, and I need help tracking event logs from when the customer starts the chat to when it lands on and progresses through a contact flow. My goal is to monitor events like chat initiation, contact creation, and the execution of flow blocks in real-time or historically, using CloudWatch Logs or other tools. I’ve reviewed the AWS documentation on Amazon Connect flow logs and contact events, but I’m unclear on the exact steps to track these events for chat interactions.
The provided information to implement persistent chat in Amazon Connect flows is correct.