How to use create_call_analytics_category method in localstack

Best Python code snippet using localstack_python

GeneralCategories.py

Source:GeneralCategories.py Github

copy

Full Screen

1import boto32transcribe = boto3.client('transcribe', 'us-west-2')3# Lost credit card4transcribe.create_call_analytics_category(5 CategoryName="lost-card",6 Rules= [7 {8 "TranscriptFilter": {9 "TranscriptFilterType": "EXACT",10 "ParticipantRole": "CUSTOMER",11 "Targets": [12 "lost my card",13 "lost my credit card",14 "lost",15 "is missing",16 "can't find",17 "cannot find",18 "find"19 ]20 }21 } 22 ]23)24# Card declined25transcribe.create_call_analytics_category(26 CategoryName="card-declined",27 Rules= [28 {29 "TranscriptFilter": {30 "TranscriptFilterType": "EXACT",31 "Targets": [32 "my card was declined",33 "my credit card was declined",34 "declined",35 "can't pay",36 "cannot pay"37 ]38 }39 } 40 ]41)42# Card stolen43transcribe.create_call_analytics_category(44 CategoryName="stolen-card",45 Rules= [46 {47 "TranscriptFilter": {48 "TranscriptFilterType": "EXACT",49 "ParticipantRole": "CUSTOMER",50 "Targets": [51 "my card was stolen",52 "stolen",53 "robbed"54 ]55 }56 } 57 ]58)59# Cancel card60transcribe.create_call_analytics_category(61 CategoryName="cancel-card",62 Rules= [63 {64 "TranscriptFilter": {65 "TranscriptFilterType": "EXACT",66 "Targets": [67 "cancel my card",68 "cancel your card",69 "cancelled your card",70 "card was cancelled",71 "cancelled the card",72 "was cancelled"73 ]74 }75 } 76 ]77)78# Savings account79transcribe.create_call_analytics_category(80 CategoryName="savings-account",81 Rules= [82 {83 "TranscriptFilter": {84 "TranscriptFilterType": "EXACT",85 "Targets": [86 "savings",87 "debit",88 "debit card",89 "savings account"90 ]91 }92 } 93 ]94)95# Insurance96transcribe.create_call_analytics_category(97 CategoryName="insurance",98 Rules= [99 {100 "TranscriptFilter": {101 "TranscriptFilterType": "EXACT",102 "Targets": [103 "insurance",104 "coverage",105 "damage",106 "deductible",107 "insurance policy"108 ]109 }110 } 111 ]112)113# Money withdrawal114transcribe.create_call_analytics_category(115 CategoryName="withdrawal",116 Rules= [117 {118 "TranscriptFilter": {119 "TranscriptFilterType": "EXACT",120 "Targets": [121 "withdraw",122 "withdrawing",123 "get money",124 "get cash",125 "withdrawal",126 ]127 }128 } 129 ]130)131# Loans132transcribe.create_call_analytics_category(133 CategoryName="loans",134 Rules= [135 {136 "TranscriptFilter": {137 "TranscriptFilterType": "EXACT",138 "Targets": [139 "loan",140 "loans",141 "borrow",142 "interest rate"143 ]144 }145 } 146 ]147)148# Investments149transcribe.create_call_analytics_category(150 CategoryName="investments",151 Rules= [152 {153 "TranscriptFilter": {154 "TranscriptFilterType": "EXACT",155 "Targets": [156 "investment",157 "investments",158 "portfolio",159 "stock",160 "trade"161 ]162 }163 } ...

Full Screen

Full Screen

CustomerCreateCategories.py

Source:CustomerCreateCategories.py Github

copy

Full Screen

...11import time12import boto313transcribe = boto3.client('transcribe', 'us-west-2')14# Overall positive15transcribe.create_call_analytics_category(16 CategoryName="c-entire-call-positive",17 Rules= [18 {19 "SentimentFilter": {20 "ParticipantRole": "CUSTOMER",21 "Sentiments": [22 "POSITIVE" 23 ]24 }25 }26 27 ]28)29# Overall negative30transcribe.create_call_analytics_category(31 CategoryName="c-entire-call-negative",32 Rules= [33 {34 "SentimentFilter": {35 "ParticipantRole": "CUSTOMER",36 "Sentiments": [37 "NEGATIVE" 38 ]39 }40 }41 42 ]...

Full Screen

Full Screen

AgentCreateCategories.py

Source:AgentCreateCategories.py Github

copy

Full Screen

...11import time12import boto313transcribe = boto3.client('transcribe', 'us-west-2')14# Overall negative15transcribe.create_call_analytics_category(16 CategoryName="a-entire-call-negative",17 Rules= [18 {19 "SentimentFilter": {20 "ParticipantRole": "AGENT",21 "Sentiments": [22 "NEGATIVE" 23 ]24 }25 }26 27 ]...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful