diff --git a/example/readme.md b/example/readme.md index a7e8cf9..ec2dcad 100644 --- a/example/readme.md +++ b/example/readme.md @@ -1769,4 +1769,295 @@ export TRACE_ID=call_trace_id "totalDuration": 161136 } } -json``` +``` + +### CX-Analysis (WIP): +```json +{ + "startTime": "2024-07-19T03:01:23.644Z", + "endTime": "2024-07-19T03:04:04.644Z", + "recognizer": "deepgram", + "turns": [ + { + "offer": "Hello, and thank you for calling [ORGANIZATION_1]. My name is [NAME_GIVEN_1]. How can I assist you today?", + "response": { + "asTranscribed": { + "transcript": "Hi. I have a question about my recent order.", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": "hi I have a question about my recent order", + "confidence": 0.9734987616539001 + } + }, + "follow_up": "I'd be happy to help you. Can I please have your full name and order number?" + }, + { + "offer": "Hi. I have a question about my recent order.", + "response": { + "asTranscribed": { + "transcript": "I'd be happy to help you. Can I please have your full name and order number?", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " I'd be happy to help you can I please have your full name and order number", + "confidence": 0.9531590938568115 + } + }, + "follow_up": "Sure. My name is [NAME_1], and my order number is [NUMERICAL_PII_1]." + }, + { + "offer": "I'd be happy to help you. Can I please have your full name and order number?", + "response": { + "asTranscribed": { + "transcript": "Sure. My name is [NAME_1], and my order number is [NUMERICAL_PII_1].", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " sure my name is John Smith and my order number is 123456789", + "confidence": 0.8831360936164856 + } + }, + "follow_up": "Thank you. For verification purposes, could you also provide me with the last four digits of your credit card used for the purchase?" + }, + { + "offer": "Sure. My name is [NAME_1], and my order number is [NUMERICAL_PII_1].", + "response": { + "asTranscribed": { + "transcript": "Thank you. For verification purposes, could you also provide me with the last four digits of your credit card used for the purchase?", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " thank you for verification purposes could you also provide me with the last four digits of your credit card used for the purchase", + "confidence": 0.9808544516563416 + } + }, + "follow_up": "Of course. It's 9876." + }, + { + "offer": "Thank you. For verification purposes, could you also provide me with the last four digits of your credit card used for the purchase?", + "response": { + "asTranscribed": { + "transcript": "Of course. It's 9876.", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " of course it's 9876", + "confidence": 0.8269519209861755 + } + }, + "follow_up": "Thank you. Please give me a moment to pull up your details. Okay. I see your order here. It looks like you purchased the smartwatch on [DATE_1]. How can I assist you with that?" + }, + { + "offer": "Of course. It's 9876.", + "response": { + "asTranscribed": { + "transcript": "Thank you. Please give me a moment to pull up your details. Okay. I see your order here. It looks like you purchased the smartwatch on [DATE_1]. How can I assist you with that?", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " thank you please give me a moment to pull up your details", + "confidence": 0.9891281127929688 + } + }, + "follow_up": "Yeah. I received the product, but it's not functioning properly. It seems to be defective." + }, + { + "offer": "Thank you. Please give me a moment to pull up your details. Okay. I see your order here. It looks like you purchased the smartwatch on [DATE_1]. How can I assist you with that?", + "response": { + "asTranscribed": { + "transcript": "Yeah. I received the product, but it's not functioning properly. It seems to be defective.", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " yeah I received the product but it's not function properly it seems to be defective", + "confidence": 0.9271853566169739 + } + }, + "follow_up": "I'm sorry to hear that. We can definitely get this sorted for you. Can you describe the issue we are facing?" + }, + { + "offer": "Yeah. I received the product, but it's not functioning properly. It seems to be defective.", + "response": { + "asTranscribed": { + "transcript": "I'm sorry to hear that. We can definitely get this sorted for you. Can you describe the issue we are facing?", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " okay I see your order here it looks like you purchased this Smartwatch on July 1st how can I assist you with that", + "confidence": 0.8799465894699097 + } + }, + "follow_up": "Yes. The screen keeps flickering, and sometimes I won't turn on at all." + }, + { + "offer": "I'm sorry to hear that. We can definitely get this sorted for you. Can you describe the issue we are facing?", + "response": { + "asTranscribed": { + "transcript": "Yes. The screen keeps flickering, and sometimes I won't turn on at all.", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " I'm sorry to hear that we can definitely get this sorted for you can you describe the issue your facing", + "confidence": 0.9006506204605103 + } + }, + "follow_up": "That sounds frustrating. Let's, proceed with the return and replacement. Could you confirm shipping address?" + }, + { + "offer": "Yes. The screen keeps flickering, and sometimes I won't turn on at all.", + "response": { + "asTranscribed": { + "transcript": "That sounds frustrating. Let's, proceed with the return and replacement. Could you confirm shipping address?", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " yes the screen keeps licking and sometimes I won't turn on at all", + "confidence": 0.937334418296814 + } + }, + "follow_up": "Sure. It's [LOCATION_ADDRESS_1]." + }, + { + "offer": "That sounds frustrating. Let's, proceed with the return and replacement. Could you confirm shipping address?", + "response": { + "asTranscribed": { + "transcript": "Sure. It's [LOCATION_ADDRESS_1].", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " that sounds frustrating let's proceed with the return and replacement could you confirm shipping address", + "confidence": 0.9030960202217102 + } + }, + "follow_up": "Thank you, [NAME_GIVEN_2]. We will send a prepaid return label to your email address on file, which is [EMAIL_ADDRESS_1]. Is" + }, + { + "offer": "Sure. It's [LOCATION_ADDRESS_1].", + "response": { + "asTranscribed": { + "transcript": "Thank you, [NAME_GIVEN_2]. We will send a prepaid return label to your email address on file, which is [EMAIL_ADDRESS_1]. Is", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " sure it's one two three Maple Street Apartment 4B Spring Field Illinois 62704", + "confidence": 0.7194310426712036 + } + }, + "follow_up": "Yes." + }, + { + "offer": "Thank you, [NAME_GIVEN_2]. We will send a prepaid return label to your email address on file, which is [EMAIL_ADDRESS_1]. Is", + "response": { + "asTranscribed": { + "transcript": "Yes.", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": "thank you John we will send a prepaid return label to your email address on file which is John dot Smith at example.com is that correct", + "confidence": 0.8666307926177979 + } + }, + "follow_up": "that correct?" + }, + { + "offer": "Yes.", + "response": { + "asTranscribed": { + "transcript": "that correct?", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": "yes that's correct", + "confidence": 0.9237890243530273 + } + }, + "follow_up": "That's correct." + }, + { + "offer": "that correct?", + "response": { + "asTranscribed": { + "transcript": "That's correct.", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " great once you receive the return label please send the defective product back to us as soon as we receive it we will ship out a replacement to your address which I'm really confirming as one two three Maple Street Apartment 4B Springfield Illinois 62704", + "confidence": 0.8999208211898804 + } + }, + "follow_up": "Great. Once you receive the return label, please send the defective product back to us. As soon as we receive it, we will ship out a replacement to your address, which I'm reconfirming as [LOCATION_ADDRESS_1]." + }, + { + "offer": "That's correct.", + "response": { + "asTranscribed": { + "transcript": "Great. Once you receive the return label, please send the defective product back to us. As soon as we receive it, we will ship out a replacement to your address, which I'm reconfirming as [LOCATION_ADDRESS_1].", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " no yes thank you very much her how long will it how long will the entire process take", + "confidence": 0.9343628287315369 + } + }, + "follow_up": "Yes. Thank you very much. How long will it, how long will the entire process take?" + }, + { + "offer": "Great. Once you receive the return label, please send the defective product back to us. As soon as we receive it, we will ship out a replacement to your address, which I'm reconfirming as [LOCATION_ADDRESS_1].", + "response": { + "asTranscribed": { + "transcript": "Yes. Thank you very much. How long will it, how long will the entire process take?", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " once we receive the defective product the replacement should arrive within 5 to 7 business days", + "confidence": 0.8692674040794373 + } + }, + "follow_up": "Once we receive the defective product, the replacement should arrive within [DURATION_1]." + }, + { + "offer": "Yes. Thank you very much. How long will it, how long will the entire process take?", + "response": { + "asTranscribed": { + "transcript": "Once we receive the defective product, the replacement should arrive within [DURATION_1].", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " perfect thank you for your help", + "confidence": 0.9718412756919861 + } + }, + "follow_up": "Perfect. Thank you for your help." + }, + { + "offer": "Once we receive the defective product, the replacement should arrive within [DURATION_1].", + "response": { + "asTranscribed": { + "transcript": "Perfect. Thank you for your help.", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " you're welcome John if you have any other questions please reach out", + "confidence": 0.9155542254447937 + } + }, + "follow_up": "You're welcome, [NAME_GIVEN_2]. If you have any other questions, please" + }, + { + "offer": "Perfect. Thank you for your help.", + "response": { + "asTranscribed": { + "transcript": "You're welcome, [NAME_GIVEN_2]. If you have any other questions, please", + "vendor": "deepgram" + }, + "asHeard": { + "transcript": " sure thank you goodbye", + "confidence": 0.9046414494514465 + } + }, + "follow_up": "Sure." + } + ] +} +```