{"id":4940,"date":"2022-07-06T09:02:57","date_gmt":"2022-07-06T00:02:57","guid":{"rendered":"https:\/\/www.ryucom.co.jp\/blog\/?p=4940"},"modified":"2022-07-06T09:02:59","modified_gmt":"2022-07-06T00:02:59","slug":"post-4940","status":"publish","type":"post","link":"https:\/\/www.ryucom.co.jp\/blog\/aws\/4940","title":{"rendered":"AWS\u3092\u6d3b\u7528\u3057\u3066LINE\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u4f5c\u3063\u3066\u307f\u305f\uff01\u2462"},"content":{"rendered":"\n

\u3053\u3093\u306b\u3061\u306f\u3001\u5bae\u5185\u3067\u3059\u3002
\u524d\u56de\u306fAmazon Lex\u3092\u4f7f\u7528\u3057\u3066\u3001\u5230\u7740\u901a\u77e5\u30b5\u30fc\u30d3\u30b9\u306e\u5229\u7528\u8005\u3092\u767b\u9332\u3059\u308b\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002
\u6700\u7d42\u56de\u3068\u306a\u308b\u4eca\u56de\u306f\u3001Lambda\u3068\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u9023\u643a\u3055\u305b\u3001LINE\u304b\u3089\u30b5\u30fc\u30d3\u30b9\u3092\u52d5\u304b\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u4eca\u56de\u306f\u3001\u7b2c\uff11\u56de\u76ee\u3068\u7b2c\uff12\u56de\u76ee\u306e\u8a18\u4e8b\u3067\u4f5c\u6210\u3057\u305f\u30ea\u30bd\u30fc\u30b9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002
\u305d\u308c\u305e\u308c\u306e\u8a18\u4e8b\u306f\u3001\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304b\u3089\u662f\u975e\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n

\n
\n
<\/a><\/div>\n<\/div>\n\n\n\n
\n
<\/a><\/div>\n<\/div>\n<\/div>\n\n\n\n

\u4eca\u56de\u306e\u76ee\u6a19<\/h2>\n\n\n\n

\u30b5\u30fc\u30d3\u30b9\u69cb\u6210\u56f3<\/h3>\n\n\n\n

\u4eca\u56de\u306e\u30b5\u30fc\u30d3\u30b9\u69cb\u6210\u56f3\u3067\u3059\u304c\u3001\u5229\u7528\u8005\u306e\u767b\u9332\u6a5f\u80fd\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002
\u3053\u308c\u307e\u3067\u306e\u8a18\u4e8b\u3067\u4f5c\u6210\u3057\u305f\u30ea\u30bd\u30fc\u30b9\u3082\u4fee\u6b63\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\u30b7\u30b9\u30c6\u30e0\u6982\u8981\u56f3<\/figure>\n\n\n\n

\u307e\u305f\u3001\u5230\u7740\u901a\u77e5\u306e\u6a5f\u80fd\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002
\u30e9\u30ba\u30d1\u30a4\u306b\u63a5\u7d9a\u3057\u305f\u30ab\u30e1\u30e9\u3067\u753b\u50cf\u3092\u64ae\u5f71\u3057\u3001IoT Core\u3092\u7d4c\u7531\u3057\u3066Lambda\u51e6\u7406\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002
\u64ae\u5f71\u3057\u305f\u753b\u50cf\u306b\u5bfe\u3057\u3066Rekognition\u3067\u753b\u50cf\u5206\u6790\u3092\u884c\u3044\u3001\u5206\u6790\u7d50\u679c\u306b\u7d10\u3065\u304f\u5229\u7528\u8005\u306e\u60c5\u5831\u3092DynamoDB\u304b\u3089\u53d6\u5f97\u3057\u3001LINE\u3067\u5230\u7740\u901a\u77e5\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\"\u30b7\u30b9\u30c6\u30e0\u6982\u8981\u56f3<\/figure>\n\n\n\n

\u65e2\u5b58\u30ea\u30bd\u30fc\u30b9\u306e\u5909\u66f4\u70b9\u306b\u3064\u3044\u3066<\/h3>\n\n\n\n

\u7b2c\uff11\u56de\u76ee\u306e\u8a18\u4e8b\u3067\u4f5c\u6210\u3057\u305fLINE\u30dc\u30c3\u30c8\u3068Lambda\u306b\u3064\u3044\u3066\u3001\u4ee5\u4e0b\u306e\u5909\u66f4\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

\u25cfLINE\u30dc\u30c3\u30c8 \uff1a \u30ea\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc\u3092\u8ffd\u52a0\u3057\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3057\u3084\u3059\u304f\u3059\u308b
\u25cfLambda \uff1a LINE\u3067\u53d7\u4fe1\u3057\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3078\u9023\u643a\u3057\u3001\u5bfe\u8a71\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u4fee\u6b63\u3059\u308b<\/p><\/div><\/div>\n\n\n\n

\u65b0\u898f\u30ea\u30bd\u30fc\u30b9\u306e\u5b9f\u88c5\u306b\u3064\u3044\u3066<\/h3>\n\n\n\n

\u65b0\u898f\u3067\u4f5c\u6210\u3059\u308b\u30ea\u30bd\u30fc\u30b9\u3068\u3057\u3066\u306f\u3001\u4ee5\u4e0b\uff12\u3064\u306eLambda\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\u25cf\u30b5\u30fc\u30d3\u30b9\u5229\u7528\u8005\u3092\u767b\u9332\u3059\u308bLambda \uff1a \u30d5\u30eb\u30d5\u30a3\u30eb\u30e1\u30f3\u30c8\u51e6\u7406\uff08\u30dc\u30c3\u30c8\u3068\u306e\u5bfe\u8a71\u5b8c\u4e86\u5f8c\uff09\u3067\u4f7f\u7528\u3059\u308b
\u25cf\u5230\u7740\u901a\u77e5\u306e\u6a5f\u80fd\u3092\u5b9f\u884c\u3059\u308bLambda \uff1a E\u30e1\u30fc\u30eb\u901a\u77e5\u304b\u3089LINE\u901a\u77e5\u306b\u5909\u66f4\u3059\u308b<\/p><\/div><\/div>\n\n\n\n

\u203b\u5229\u7528\u8005\u60c5\u5831\u306e\u767b\u9332\u5148\u3068\u3057\u3066\u4f7f\u7528\u3059\u308bS3\u3001DynamoDB\u3001Rekognition\u306e\u30ea\u30bd\u30fc\u30b9\u4f5c\u6210\u306e\u624b\u9806\u306b\u3064\u3044\u3066\u306f\u5272\u611b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u65e2\u5b58\u30ea\u30bd\u30fc\u30b9\u306e\u5909\u66f4<\/h2>\n\n\n\n

\u307e\u305a\u306f\u7b2c\uff11\u56de\u306e\u8a18\u4e8b\u3067\u4f5c\u6210\u3057\u305fLINE\u30dc\u30c3\u30c8\u3068\u3001Lambda\u51e6\u7406\u306e\u4fee\u6b63\u3092\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

LINE\u30dc\u30c3\u30c8\u306e\u4fee\u6b63\uff08\u30ea\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc\u3092\u8ffd\u52a0\uff09<\/h3>\n\n\n\n

\u30ea\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc\u3068\u306f\u3001LINE\u306e\u516c\u5f0f\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30c8\u30fc\u30af\u753b\u9762\u306b\u8a2a\u308c\u305f\u969b\u306b\u3001\u753b\u9762\u306e\u4e0b\u306b\u8868\u793a\u3059\u308b\u30e1\u30cb\u30e5\u30fc\u306e\u3053\u3068\u3092\u3044\u3044\u307e\u3059\u3002
\u2193LINE\u3067\u3088\u304f\u3042\u308b\u3001\u30c8\u30fc\u30af\u753b\u9762\u306b\u56fa\u5b9a\u8868\u793a\u3055\u308c\u308b\u30e1\u30cb\u30e5\u30fc\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u30c6\u30ad\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u4ee5\u5916\u306b\u3082\u3001Web\u30da\u30fc\u30b8\u3078\u306e\u30ea\u30f3\u30af\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3067\u304d\u308b\u306e\u3067\u3001\u63d0\u4f9b\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3078\u7c21\u5358\u306b\u8a98\u5c0e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u516c\u5f0f\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u6d3b\u7528\u3059\u308b\u4e0a\u3067\u306f\u5fc5\u9808\u3068\u306a\u308b\u6a5f\u80fd\u3067\u3059\u3002
\u30ea\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306eLINE Developers\u306e\u30da\u30fc\u30b8\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n

LINE Developers – \u30ea\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc<\/a><\/p>developers.line.biz<\/cite><\/blockquote>\n\n\n\n

\u30ea\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc\u306e\u7de8\u96c6\u306f\u3001LINE Official Account Manager\u3068\u3044\u3046\u30b5\u30a4\u30c8\u3067\u884c\u3044\u307e\u3059\u3002
\u307e\u305a\u306f\u3001LINE Developers\u306e\u30c1\u30e3\u30cd\u30eb\u57fa\u672c\u8a2d\u5b9a\u30bf\u30d6\u306b\u3042\u308b\u3001LINE Official Account Manager\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u65b0\u3057\u3044\u30bf\u30d6\u3067LINE Official Account Manager\u306e\u30da\u30fc\u30b8\u304c\u958b\u304f\u306e\u3067\u3001\u5de6\u4e0a\u306e\u30db\u30fc\u30e0\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u5de6\u5074\u306e\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u306b\u3042\u308b\u30ea\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u753b\u9762\u4e0b\u90e8\u306b\u3042\u308b\u4f5c\u6210\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u4f5c\u6210\u3059\u308b\u30ea\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002
\u307e\u305a\u306f\u3001\u8868\u793a\u8a2d\u5b9a\u306e\u30bf\u30a4\u30c8\u30eb\u3068\u8868\u793a\u671f\u9593\u3092\u5165\u529b\u3057\u307e\u3057\u3087\u3046\uff08\u4e21\u65b9\u3068\u3082\u306b\u5fc5\u9808\u5165\u529b\u3067\u3059\uff09\u3002
\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u306e\u30c6\u30ad\u30b9\u30c8\u3001\u30e1\u30cb\u30e5\u30fc\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8868\u793a\u306f\u521d\u671f\u5024\u3092\u305d\u306e\u307e\u307e\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u6b21\u306b\u3001\u30ea\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc\u306e\u30dc\u30bf\u30f3\u914d\u7f6e\u3068\u753b\u50cf\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002
\u307e\u305a\u306f\u30dc\u30bf\u30f3\u306e\u914d\u7f6e\u3092\u6c7a\u3081\u308b\u305f\u3081\u306b\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u629e\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u30e1\u30cb\u30e5\u30fc\u306f\u5927\u5c0f\uff12\u3064\u306e\u30b5\u30a4\u30ba\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u3001\u8a2d\u5b9a\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u6570\u306b\u5fdc\u3058\u3066\u6c7a\u5b9a\u3057\u307e\u3059\u3002
\u4eca\u56de\u306f\u3001\u5229\u7528\u8005\u306e\u767b\u9332\u6a5f\u80fd\u3068\u3001\u7167\u4f1a\u6a5f\u80fd\u306e\uff12\u3064\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u3001\u30dc\u30bf\u30f3\u3092\uff12\u3064\u6301\u3063\u3066\u3044\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u3057\u307e\u3059\u3002
\u8a2d\u5b9a\u3059\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u3001\u9078\u629e\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u6b21\u306f\u30e1\u30cb\u30e5\u30fc\u3067\u8868\u793a\u3059\u308b\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3001\u307e\u305f\u306f\u4f5c\u6210\u3057\u307e\u3059\u3002
\u4eca\u56de\u306f\u3042\u3089\u304b\u3058\u3081\u7528\u610f\u3057\u3066\u304a\u3044\u305f\u753b\u50cf\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002
\u203b\u753b\u50cf\u3092\u4f5c\u6210\u3059\u308b\u969b\u306f\u3001\u53f3\u4e0a\u306e\u30c7\u30b6\u30a4\u30f3\u30ac\u30a4\u30c9\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3068\u30b9\u30e0\u30fc\u30ba\u306b\u4f5c\u696d\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u30e1\u30cb\u30e5\u30fc\u306b\u8a2d\u5b9a\u3059\u308b\u753b\u50cf\u3092\u9078\u629e\u3001\u307e\u305f\u306f\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002
\u753b\u50cf\u3092\u9078\u629e\u3059\u308b\u3068\u81ea\u52d5\u7684\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u304c\u59cb\u307e\u308a\u307e\u3059\u304c\u3001\u753b\u9762\u4e0b\u306e\u8a18\u8f09\u306e\u901a\u308a\u3001\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u3084\u5bb9\u91cf\u306b\u306f\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002
\u5236\u9650\u3092\u8d85\u3048\u305f\u5834\u5408\u306f\u30a8\u30e9\u30fc\u3068\u306a\u308b\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u753b\u50cf\u304c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u305f\u3089\u3001\u6b21\u306f\u5404\u30dc\u30bf\u30f3\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u4eca\u56de\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3092Lambda\u3078\u9001\u4fe1\u3059\u308b\u305f\u3081\u3001\u30bf\u30a4\u30d7\u306f\u30c6\u30ad\u30b9\u30c8\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002
\u9001\u4fe1\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u306b\u3064\u3044\u3066\u306f\u3001Amazon Lex\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3092\u8d77\u52d5\u3059\u308b\u305f\u3081\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3084\u3001Lambda\u51e6\u7406\u3067\u4f7f\u7528\u3059\u308b\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002
\u767b\u9332\u6a5f\u80fd\u3092\u5b9f\u884c\u3059\u308b\u30dc\u30bf\u30f3\u306b\u306f\u300ccreateUser\u300d\u3001\u7167\u4f1a\u6a5f\u80fd\u3092\u5b9f\u884c\u3059\u308b\u30dc\u30bf\u30f3\u306b\u306f\u300cconfirmUser\u300d\u3092\u305d\u308c\u305e\u308c\u8a2d\u5b9a\u3057\u307e\u3059\u3002
\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u4fdd\u5b58\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u4ee5\u4e0a\u3067\u30ea\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc\u306e\u7de8\u96c6\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u5909\u66f4\u306f\u5373\u6642\u53cd\u6620\u3055\u308c\u308b\u306e\u3067\u3001LINE\u306e\u30c8\u30fc\u30af\u753b\u9762\u306b\u30ea\u30c3\u30c1\u30e1\u30cb\u30e5\u30fc\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

\u66f4\u306b\u30dc\u30bf\u30f3\u3092\u30bf\u30c3\u30d7\u3059\u308b\u3068\u3001\u8a2d\u5b9a\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u304c\u9001\u4fe1\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002
Lambda\u5074\u306f\u30aa\u30a6\u30e0\u8fd4\u3057\u3092\u3059\u308b\u3060\u3051\u306e\u51e6\u7406\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u6b21\u306fLambda\u51e6\u7406\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"LINE<\/figure>\n\n\n\n

Lambda\u51e6\u7406\u306e\u4fee\u6b63\uff08\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u3068\u306e\u9023\u643a\uff09<\/h3>\n\n\n\n

Lambda\u51e6\u7406\u306b\u3064\u3044\u3066\u3001\u65e2\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u53d7\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u72b6\u614b\u306a\u306e\u3067\u3001\u53d7\u3051\u53d6\u3063\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u5fdc\u3058\u305f\u6761\u4ef6\u5206\u5c90\u3068\u51e6\u7406\u3092\u6b21\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"Lambda<\/figure>\n\n\n\n

\u30b3\u30fc\u30c9\u3092\u5168\u3066\u8a18\u8f09\u3059\u308b\u3068\u975e\u5e38\u306b\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u305f\u3081\u3001Amazon Lex\u3068\u306e\u9023\u643a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3001\u30b3\u30fc\u30c9\u3092\u629c\u7c8b\u3057\u3066\u8aac\u660e\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n

Amazon Lex\u3068\u306e\u5bfe\u8a71\u51e6\u7406<\/h4>\n\n\n\n

\u307e\u305a\u306f\u3001Lambda\u3068Lex\u3092\u9023\u643a\u3059\u308bAPI\uff08recognize_text\uff09\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

# Lex\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f5c\u6210
lex_client = boto3.client('lexv2-runtime')<\/code>

# Amazon Lex\u306e\u30dc\u30c3\u30c8\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1
lex_response = lex_client.recognize_text(
\u3000\u3000botId = CREATE_USER_BOT_ID,
\u3000\u3000botAliasId = CREATE_USER_BOT_ALIAS,
\u3000\u3000localeId = CREATE_USER_BOT_LOCALE,
\u3000\u3000sessionId = \/* LINE\u306e\u30e6\u30fc\u30b6ID *\/,<\/em><\/code>
\u3000\u3000text = \/* LINE\u304b\u3089\u53d7\u4fe1\u3057\u305f\u30e1\u30c3\u30bb\u30fc\u30b8 *\/
)
# \u30dc\u30c3\u30c8\u306e\u8fd4\u7b54\u3092LINE\u306b\u30ea\u30d7\u30e9\u30a4
for message in lex_response['messages']:
\u3000\u3000LINE_BOT_API.reply_message(
\u3000\u3000\u3000\u3000replyToken,
\u3000\u3000\u3000\u3000TextSendMessage(text=message['content'])<\/code>
\u3000\u3000)<\/code><\/p><\/div><\/div>\n\n\n\n

Amazon Lex\u3068\u9023\u643a\u3059\u308b\u305f\u3081\u306b\u3001Amazon Lex Runtime V2\u3092\u4f7f\u7528\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002
\u3053\u308c\u306b\u3088\u308a\u3001\u30dc\u30c3\u30c8\u3078\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\u3084\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306eAPI\u304c\u5b9f\u884c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

Amazon Lex\u306e\u30dc\u30c3\u30c8\u3078\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u306b\u306f\u3001recognize_text\u3068\u3044\u3046API\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002
\u3053\u306eAPI\u306e\u5b9f\u884c\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n