Skip to content

Amazon connect conversational analytics - contact flow condition

0

Hello Team, I have enabled conversational analytics on their Connect instance. I would like to only stream events on specific contact flows. How can I achieve that? The event message does not contain queue or contact flow ID to add a condition in the triggered Lambda function.


We are currently working on an agent assist project, which involves real-time categorization of information during a call using Bedrock, with the aim of filling out an ticket creation form. I am trying to stream contact lens data (specifically the audio transcription data) into my kinesis data stream.

To avoid all contact flows unnecessarily triggering this entire logic, we would like to condition the triggering of Kinesis events only for a specific contact flow. Is there a way to do this?


  • Can you provide more context related to what exactly you are trying to solve for? Are you planning to use standard dashboards for Contact Lens? If yes, which Lambda are you referring to? Understanding the challenge you are solving for can clarify and simplify the solution you are trying to build.

  • @Magda I've added more context

asked 2 years ago536 views

3 Answers
2

To enable conversational analytics for specific contact flows in Amazon Connect, you can use the "Set recording and analytics behavior" block within your desired flows. This approach allows you to selectively enable or disable conversational analytics based on the specific flow a contact is going through.

Here's how you can achieve this:

  1. In the flow designer, add a "Set recording and analytics behavior" block to the specific contact flows where you want to enable conversational analytics.

  2. Configure the block by setting "Call recording" to "On" and selecting "Agent and Customer" (for voice contacts).

  3. Under the "Analytics" section, choose "Enable Contact Lens conversational analytics" and "Enable speech analytics" for voice contacts, or the appropriate options for chat if you're using chat analytics.

  4. Place this block at an appropriate location in your flow, typically near the beginning, to ensure it captures the entire interaction.

By using this method, you can control which contact flows will have conversational analytics enabled, without needing to rely on queue or contact flow ID information in the event messages. Contacts going through flows without this block (or where the block is configured differently) will not have conversational analytics enabled.

Remember that to use this feature, you must first ensure that Contact Lens is enabled for your Amazon Connect instance, and that users have the appropriate security profile permissions to access the analytics data.

This approach gives you granular control over which interactions are analyzed, allowing you to focus on specific flows or customer journeys that are most important for your analytics needs.
Sources
Enable conversational analytics in Amazon Connect Contact Lens - Amazon Connect
Amazon Connect Contact Lens conversational analytics dashboard - Amazon Connect

answered 2 years ago

EXPERT

reviewed 2 years ago

0

Your question doesn't make sense. If you don't want analytics on a specific flow, don't put the analytics blow on that flow. If you want to exclude specific calls then I don't see how that would be possible as the analytics are on the flow and not on the contact. I would assume some sort of post call clean up might be possible, but a good bit of work.

david

answered 2 years ago

0

@Agius you can control where you enable the desired functionality for Contact Lens streaming by adding the Set recording and analytics behavior block only to the flow(s) where you need it. If you want an example of contact lens streaming on a second call leg (transfer only), please check the demo code here: https://github.com/amazon-connect/amazon-connect-contact-lens-api-sample-app?tab=readme-ov-file. I am not sure if the code still works, but you can get the idea from here. I hope this helps.

AWS

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.