{"id":416,"date":"2017-11-09T16:13:48","date_gmt":"2017-11-09T07:13:48","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2017\/11\/09\/amazon-connect-customer-support"},"modified":"2022-10-28T22:38:29","modified_gmt":"2022-10-28T13:38:29","slug":"amazon-connect-customer-support","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2017\/11\/09\/amazon-connect-customer-support\/","title":{"rendered":"Amazon Connect\u3067\u62c5\u5f53\u8005\u76f4\u901a\u96fb\u8a71\u30b7\u30b9\u30c6\u30e0\u306e\u958b\u767a"},"content":{"rendered":"
<\/head><\/p>\nAmazon Connect\u3067\u306f\u3001\u591a\u6a5f\u80fd(IVR\u3084\u7740\u96fb\u7ba1\u7406\u3001\u30b1\u30fc\u30b9\u8ffd\u8de1\u306a\u3069)\u306a\u30b3\u30fc\u30eb\u30bb\u30f3\u30bf\u30fc\u306e\u5fdc\u5bfe\u30d5\u30ed\u30fc\u3092\u7d20\u65e9\u304f\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306b\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u306e\u5165\u529b\u3057\u305f\u756a\u53f7\u306b\u3088\u3063\u3066\u62c5\u5f53\u8005\u3092\u5909\u3048\u305f\u308a\u3001\u96fb\u8a71\u756a\u53f7\u306b\u3088\u3063\u3066\u3069\u306e\u30aa\u30da\u30ec\u30fc\u30bf\u306b\u3064\u306a\u304c\u308b\u304b\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n
\u4eca\u56de\u306f\u3001Amazon Connect\u3092\u4f7f\u3063\u3066\u3001\u5f0a\u793e\u306e\u304a\u5ba2\u69d8\u5411\u3051\u306b\u3001 \u6a5f\u80fd\u3068\u3057\u3066\u306f\u3001\u5f0a\u793e\u3078\u96fb\u8a71\u3067\u306e\u304a\u554f\u5408\u308f\u305b\u6642\u306b\u3001\u304a\u5ba2\u69d8\u5c02\u7528\u306e \u3053\u308c\u306b\u3088\u3063\u3066\u3001\u304a\u5ba2\u69d8\u306b\u3068\u3063\u3066\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u524d\u63d0\u77e5\u8b58\u306a\u3069\u304c\u5171\u6709\u3055\u308c\u3066\u3044\u308b\u62c5\u5f53\u8005\u306b\u554f\u3044\u5408\u308f\u305b\u3092\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u307e\u305f\u3001\u62c5\u5f53\u8005\u304c\u5225\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u96fb\u8a71\u5bfe\u5fdc\u3092\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u6b21\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u8a73\u3057\u3044\u62c5\u5f53\u8005\u3078\u9806\u306b\u8ee2\u9001\u3055\u308c\u308b\u305f\u3081\u3001\u5f85\u3061\u6642\u9593\u3092\u6975\u529b\u5c11\u306a\u304f\u3001\u7d20\u65e9\u304f\u554f\u984c\u89e3\u6c7a\u306b\u3054\u5354\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n \u5168\u4f53\u306e\u6d41\u308c\u3068\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n <\/p>\n \u4eca\u56de\u5229\u7528\u3059\u308bAmazon Connect\u306e\u4e3b\u306a\u6a5f\u80fd\u306f\u6b21\u306e8\u3064\u3067\u3059\u3002<\/p>\n Amazon Connect\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u51e6\u7406\u306e\u4e00\u89a7\u306f\u3053\u3061\u3089<\/a>\u3092\u5fa1\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n \u3067\u306f\u3001\u3072\u3068\u3064\u305a\u3064 \u55b6\u696d\u65e5\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308b\u305f\u3081\u3001 <\/p>\n \u305d\u306e\u5f8c\u3001Contact Flow\u3067\u3001\u4f5c\u6210\u3057\u305f\u55b6\u696d\u6642\u9593\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u30c1\u30fc\u30e0\u3054\u3068\u306b\u5225\u306e\u55b6\u696d\u6642\u9593\u3092\u6c7a\u3081\u3066\u304a\u304f\u3088\u3046\u306a\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n <\/p>\n \u795d\u796d\u65e5\u5224\u5b9a\u306f\u3001Lambda\u3092\u547c\u3073\u51fa\u3057\u3001Google Calendar\u306e Lambda\u5074\u3067\u306f\u3001\u53d6\u5f97\u3057\u305f\u795d\u65e5\u4e00\u89a7\u306b\u5f53\u65e5\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u8fd4\u5374\u3057\u3001 \u3053\u3053\u304b\u3089\u304a\u5ba2\u69d8\u306e\u64cd\u4f5c\u304c\u958b\u59cb\u3057\u307e\u3059\u3002\u9867\u5ba2\u756a\u53f7\u3092\u5165\u529b\u3057\u3066\u3044\u305f\u3060\u304d\u3001\u3069\u306e\u62c5\u5f53\u8005\u306b\u8ee2\u9001\u3059\u308b\u304b\u3092DynamoDB\u304b\u3089\u53d6\u5f97\u3059\u308b\u306e\u3067\u3001\u307e\u305a\u306f\u3001 <\/p>\n \u5165\u529b\u5f8c\u3001 <\/p>\n Lambda\u3067\u3001Amazon Connect\u3067\u5165\u529b\u3057\u305f\u9867\u5ba2\u756a\u53f7\u3092\u53d7\u53d6\u308a\u3001DynamoDB\u304b\u3089\u30ad\u30e5\u30fc\u306e\u540d\u524d\u3092\u53d6\u5f97\u3057\u3066\u3001\u8fd4\u5374\u3057\u307e\u3059\u3002\u30ad\u30e5\u30fc\u304cDB\u306b\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f \u305d\u308c\u3092Amazon Connect\u5074\u3067\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002\u307e\u305a <\/p>\n \u30ad\u30e5\u30fc\u306e\u53d6\u5f97\u306b\u6210\u529f\u3057\u305f\u5834\u5408\u3001\u6b21\u306e\u30d5\u30ed\u30fc\u3067 <\/p>\n \u524d\u306e\u624b\u9806\u3067 <\/p>\n \u30ad\u30e5\u30fc\u306b\u5bfe\u3057\u3066\u901a\u8a71\u3092\u8ee2\u9001\u3059\u308b\u3068\u3001\u4e88\u3081\u5b9a\u7fa9\u3057\u305f\u512a\u5148\u9806\u4f4d\u3067\u30b9\u30ad\u30eb\u30d9\u30fc\u30b9\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<\/a>\u304c\u81ea\u52d5\u7684\u306b\u884c\u308f\u308c\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u6700\u9069\u3001\u304b\u3064\u3001\u624b\u304c\u958b\u3044\u3066\u3044\u308b\u62c5\u5f53\u8005\u3092\u81ea\u52d5\u7684\u306b\u63a2\u3057\u51fa\u3057\u3001\u5bfe\u5fdc\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n \u518d\u751f\u3059\u308b\u97f3\u58f0\u306f\u3001Amazon Polly\u3067\u751f\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u62c5\u5f53\u8005\u76f4\u901a\u96fb\u8a71\u30b7\u30b9\u30c6\u30e0<\/code>\u3092\u958b\u767a\u3044\u305f\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n
\u76ee\u6b21<\/h2>\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\u6a5f\u80fd\u6982\u8981<\/h2>\n
\u9867\u5ba2\u756a\u53f7<\/code>\u3092\u5165\u529b\u3057\u3066\u3044\u305f\u3060\u304f\u3068\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u6700\u3082\u8a73\u3057\u3044\u62c5\u5f53\u8005(
\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8<\/code>)\u306b\u76f4\u901a\u96fb\u8a71\u304c\u7e4b\u304c\u308b\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002(
\u9867\u5ba2\u756a\u53f7<\/code>\u306f\u3001\u304a\u5ba2\u69d8\u3054\u3068\u306b\u4e00\u610f\u306b\u63a1\u756a\u3055\u308c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9(\u4eca\u56de\u306fDynamoDB)\u3067\u7ba1\u7406\u3055\u308c\u3066\u304a\u308a\u307e\u3059)\u3002<\/p>\n
\n
Play prompt<\/code>: \u97f3\u58f0\u3092\u518d\u751f\u3059\u308b<\/li>\n
Check hours of operation<\/code>: \u30aa\u30da\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3046\u6642\u9593\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n
Check contact attributes<\/code>: \u60c5\u5831\u3092\u5143\u306b\u51e6\u7406\u3092\u5206\u5c90\u3055\u305b\u308b<\/li>\n
Store customer input<\/code>: \u30e6\u30fc\u30b6\u306e\u756a\u53f7\u5165\u529b\u3092\u53d7\u3051\u53d6\u308a\u3001\u4fdd\u5b58\u3059\u308b<\/li>\n
Invoke AWS Lambda function<\/code>: Lambda\u95a2\u6570\u3092\u5b9f\u884c\u3059\u308b<\/li>\n
Set call recording behavior<\/code>: \u9332\u97f3\u3092\u958b\u59cb\u3059\u308b<\/li>\n
Transfer to queue<\/code>: \u8a72\u5f53\u306e\u30b9\u30ad\u30eb\u3092\u6301\u3064\u62c5\u5f53\u8005\u306b\u96fb\u8a71\u3092\u8ee2\u9001\u3059\u308b<\/li>\n
Disconnect \/ hang up<\/code>: \u96fb\u8a71\u3092\u5207\u308b<\/li>\n<\/ul>\n
\u5b9f\u88c5\u8a73\u7d30<\/h2>\n
Contact Flow<\/code>\u3092\u5b9f\u88c5\u3092\u3057\u3066\u3086\u304d\u307e\u3059\u3002<\/p>\n
\u55b6\u696d\u65e5\u5224\u5b9a<\/h3>\n
Check hours of operation<\/code>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4e88\u3081\u3001
Routing > Hours of operation<\/code>\u304b\u3089\u55b6\u696d\u6642\u9593\u3092\u6c7a\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n
\u795d\u796d\u65e5<\/h3>\n
\u65e5\u672c\u306e\u795d\u65e5\u30ab\u30ec\u30f3\u30c0\u30fc<\/code>\u3092\u53d6\u5f97\u3057\u3066\u3001\u305d\u308c\u3092\u795d\u65e5\u3068\u3057\u307e\u3057\u305f\u3002
Invoke AWS Lambda function<\/code>\u3067\u4f5c\u6210\u3057\u305f\u95a2\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n
\n<\/p>\nCheck contact attributes<\/code>\u3067\u5206\u5c90\u3092\u884c\u3044\u3001\u795d\u65e5\u3067\u306a\u3051\u308c\u3070\u6b21\u306e\u51e6\u7406\u3078\u7d9a\u304f\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n
\u9867\u5ba2\u756a\u53f7\u5165\u529b<\/h3>\n
Store customer input<\/code>\u3092\u4f7f\u7528\u3057\u3066\u3001\u6570\u5b57\u306e\u5165\u529b\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n
StoredCustomerInput<\/code>\u3068\u3057\u3066\u5024\u3092Lambda\u306b\u6e21\u3057\u307e\u3059\u3002<\/p>\n
\u9867\u5ba2\u756a\u53f7\u304b\u3089\u30ad\u30e5\u30fc\u3092\u53d6\u5f97<\/h3>\n
404<\/code>\u3001\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u305f\u969b\u306f
500<\/code>\u3092\u8fd4\u3059\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n
def handle(event, context):\n customer_id = event['Details']['Parameters']['StoredCustomerInput']\n dynamodb = boto3.resource(\n 'dynamodb',\n region_name='ap-northeast-1',\n )\n table = dynamodb.Table(os.environ['TABLE_NAME_AMAZON_CONNECT_QUEUE'])\n response = table.query(\n KeyConditionExpression=Key('CustomerId').eq(int(customer_id))\n )\n\n is_success = response['ResponseMetadata']['HTTPStatusCode'] == 200\n if not is_success:\n return {\n 'status': 500,\n }\n\n queue_name = None\n for r in response['Items']:\n queue_name = r['Name']\n\n if queue_name:\n return {\n 'status': 200,\n 'queue_name': queue_name,\n }\n else:\n return {\n 'status': 404,\n }<\/code><\/pre>\n
status<\/code>\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u4f8b\u5916\u3092\u9664\u5916\u3057\u3001
404<\/code>\u306f\u5165\u529b\u30df\u30b9\u3068\u3057\u3066\u6271\u3044\u3082\u3046\u4e00\u5ea6\u5165\u529b\u3055\u305b\u308b\u7b49\u306e\u30d5\u30ed\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n
queue_name(\u30ad\u30e5\u30fc\u306e\u540d\u524d)<\/code>\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u30ad\u30e5\u30fc\u3092\u7279\u5b9a\u3057\u305f\u3089\u3001\u4e88\u3081\u4f5c\u6210\u3057\u305f\u30ad\u30e5\u30fc\u306b\u8ee2\u9001\u3067\u304d\u308b\u3088\u3046\u3001
Set queue<\/code>\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n
\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3078\u306e\u8ee2\u9001<\/h3>\n
queue_name<\/code>\u306b\u3088\u3063\u3066
Set queue<\/code>\u3092\u884c\u306a\u3063\u305f\u306e\u3067\u3001\u5225\u3005\u306e\u30ad\u30e5\u30fc\u306b\u8ee2\u9001\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u9867\u5ba2\u3054\u3068\u306b\u30ad\u30e5\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4f8b\u3048\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30c1\u30fc\u30e0\u3001UI\u30c7\u30b6\u30a4\u30f3\u30c1\u30fc\u30e0\u306a\u3069\u306e\u5358\u4f4d\u3067\u30ad\u30e5\u30fc\u3092\u4f5c\u6210\u3057\u3066\u62c5\u5f53\u8005\u3092\u632f\u308a\u5206\u3051\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n
\u5bfe\u5fdc\u97f3\u58f0<\/h3>\n
\u9867\u5ba2\u756a\u53f7\u5165\u529b<\/code>\u306a\u3069\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u97f3\u58f0\u304c\u6d41\u308c\u307e\u3059\u3002<\/p>\n
\u9867\u5ba2\u756a\u53f7\u5165\u529b\u6642<\/h4>\n