{"id":310,"date":"2021-11-01T14:36:53","date_gmt":"2021-11-01T14:36:53","guid":{"rendered":"http:\/\/18.141.20.153\/?p=310"},"modified":"2025-08-22T07:53:01","modified_gmt":"2025-08-22T07:53:01","slug":"how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2","status":"publish","type":"post","link":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/","title":{"rendered":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?"},"content":{"rendered":"<span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">10<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span>\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/sAbCZGGNBFeSLTbXI11JeA3-mPOU9KP8K7Z4GJ9sXa_nOkfKW8fE-7QbXwsrpRfNh2vzZPRpjtMYfNl1ggmS-cu8PmDlpZs9zbizJH9X40Ho-DNm6du-6AEjMloJLuefl-lLH5Hc\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">In our previous blog, <a href=\"https:\/\/www.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/\">How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis(Part 1)?<\/a> we have discussed NLP, Amazon Comprehend as one of the best NLP services, its features, benefits, use cases, etc. In this blog, we will demonstrate how to configure Amazon Comprehend with AWS Lambda and Amazon Lex for sentiment analysis to create interactive, efficient, and helpful Amazon Lex bots.<\/p>\n\n\n\n<h2>Hands-on<\/h2>\n\n\n\n<p class=\"has-text-align-justify\">Even with the best voice bot systems, customers often get frustrated. If the voice bot is not able to help with some queries then people often want to be directed to an actual agent directly. But nowadays that\u2019s not the case. Bots can be frustrating for some users. What if your bot was smart enough to admit, \u201cI\u2019m sorry, I cannot help you with this. Let me find someone for you.\u201d? What if your bot could automatically detect the sentiments of a user, analyze them, and reply back accordingly? Wouldn\u2019t that make it easy for companies to configure a single bot that becomes very useful and helpful to its customers?<\/p>\n\n\n\n<p class=\"has-text-align-justify\">In this blog, we will see how we can use and configure <a href=\"https:\/\/aws.amazon.com\/comprehend\/\" target=\"_blank\" rel=\"noreferrer noopener\">Amazon Comprehend<\/a> with AWS Lambda and Amazon Lex for sentiment analysis to make your Amazon Lex bots interactive, efficient and helpful. The Lambda function is straightforward. It analyses the input transcript field of the Amazon Lex event using the Amazon Comprehend Service.&nbsp;<\/p>\n\n\n\n<p><strong>To implement this, we will do the following:<\/strong><\/p>\n\n\n\n<ul><li>Log in to the AWS console and navigate to the Lambda function dashboard.<\/li><li>Create a new Lambda function with the Runtime as Python 3.8.<\/li><li>Navigate to the Permissions tab on the Lambda function dashboard and alter the policies to attach a new policy.<\/li><li>Add the provided code in the Editor pane of the Lambda Function.<\/li><li>Create a new test event with the provided JSON code.<\/li><li>Test the Lambda function for Neutral, Negative, and Positive utilization.<\/li><li>Search for the Amazon Lex service and navigate to the Bots dashboard.<\/li><li>Create a new bot with the provided configuration settings.<\/li><li>Create a new intent for the newly created bot.<\/li><li>Edit the Sample Utterances (if needed) and provide permission to invoke the created Lambda function for the already existing and the newly created intents attached to the bot.<\/li><li>Save all the intents with the newly configured settings.<\/li><li>Build the bot.<\/li><li>Test the functioning of the bot.<\/li><li>Publish the newly created bot to be integrated with various mobile or web applications.<\/li><\/ul>\n\n\n\n<p class=\"has-text-align-justify\">Login to your AWS console and search for Lambda in the search bar.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/9-30vr08YyC46233x1LibNdj7171TB_RZb0F4omA8AkSUjE2CIv3VEHKdYBihyvFagF3tNEWPQtJ8W4uXU0cxzsmRDQUJFH56K8CG3AwG0OW3L116MwnKj7jFjP0_AbxHIspe6mq\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On the Lambda function dashboard, click on Create function to create a new function.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/JZSD5_QEKL5bBg3jcLogAvgpd4Dpe2nFR--3sR3sXxpoqBsQo6OyxrGAXMJCtBkLNUw0VVftWyqfoHBpXI2YENuD9KlkRpHa62vLzC_cj_rR9vPuZ_9Nhb10GrXtKFGnRrRrTHHj\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On the create function dashboard, choose Author from scratch for the function.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/2f4N5Ec3lIK3hsJ8PubqQPkIDsAEwWBAy6mnfS0xfgM-Mq8WI03RR18nMHki3TaCIPgJAtX5kvdCpIffLCQlZS8V9kMtqSEtwQ3ycS5ZQ1AJmhmacVIaC9hOovVXAkhthr7SYPqR\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Enter a name for the function.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/R1G-xs9hOvh79X3hWc6tobxsg6vinPl15M0l7Qn7-T_9w6Il4vtQEVXRPLTF-raVqnOp-G1pKKPmxh0qLHbNjpa3Q1xPcRHFOjXzQFYTVZIXiwccpv_dmygRwxuPMTFpoxpml_ix\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">For the runtime, open the dropdown and select the runtime as Python 3.8.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/fYxDgrtn3KH-Vsg3HFbemMLMqNPhjogTxqMrHib7susx2oT0WpFjSrBAXLCdRmG7lZapoDDFRDckd08-M7ehV7J9CvfO8FDH9_7Lwa7i71yxXrGxqPHi4g_iorh4GFtYQxu935MZ\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">For the execution role, select Create a new role with Basic Lambda permissions and once done, click on Create function.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/xxj-JSoy1wv3LW3aRDWKwasQDjKk5CzTtZ7nSBOfcj2ZsFbubtgFzZ-EpeFraZXykuJezW3RVVxZPy485HQU6v4jL5kzJ8Li-qNBPsUSe7FiWbJw8YiL_qgKVUuGxVSl_y-Lyp0S\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On success, you will see the success message as shown in the image below and will be navigated to the function dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/wCLq7Dt44QWAvckCtYG4pUUjltzepSgqBp17Ucg7UvZ0CJynbjNmKv160pOKupY01E6RBIy7ZKMBR8EIRmasi2wLyOQRkA7H_MmIIJMhNwbhqyemsXBmTi7P3TcQ9TJnxaxYAi0s\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">To alter the IAM role and attach some new permissions to it, scroll down on the dashboard and select the Configuration tab.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/83Qp6qMzOiXSpcZZPh_pgeaOrQBZK-P5PA_fs5ddtBWUDNOTUrLjPlAeDM4uYeavayxi2l1BQfUNG15hvJd1Z5Bv1-8HwEJi9Xg2sZ00udOCwfqnaLVUvqbH0iSXqoy3VU86HTJ8\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">From the list of configurations available, select the Permissions tab.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/cK4V4FYJsALS94gpC72uGQeCh76CCyk8T2xIrAi3DcpCo8Ha6AVEX0Wsk7N_zYFJwm25TZFfGCXjxruC6jwYgun01ZVFzafV7ymQ6Oe5jwBgVapHYMJNvH5SgaqEcrk8tKjHqSw7\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Click on the Role name and you will be navigated to the IAM console where you have to alter the role attaching a new policy.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/r8OkI2pPdge29K20FL8dGJ78t4BQEGIft8YPYEyfuJWv9a2p7jdk083EgvEOz8jIfopdFtsLbfg1j3HWTDhDgCD0BMhSV1A6drspK_IGJw-Ir0Bcw6YjA3XW-D0RVopLtmymMP3b\" alt=\"\"\/><\/figure>\n\n\n\n<p>On the role dashboard, click on Attach policies to attach a new policy.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/z9cw9fip0Am6n_vBB87jhhRYI8D07TbtV0oQHBKvTzzfxZ963ff7yk6LqVjM9g7ND2Jw3Xts-LtWpwqyXy_dD57Z8AYrC9aGD_VyxmW33Uy1hInWPTuBTP8Bj7rYQXVymh1cpp22\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select Create policy and you will be navigated to the policies dashboard in a new tab.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/hHrOYWOcUo_FKFPoM3sbRbZzg4F0Ja4b5qnJ9YRii2YTaeZ78uciAKeXdkym2z0UCGBsXhzNv961BbGRBUfsmaD29unlQIJl3XI_sGrr3gznrn9vhu9zef-48dCe5-c9kx4uWjW3\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On the Create policy dashboard, you can either select an already existing policy or write it down in the JSON format.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/NwFt3lPUcJsKfBSEYiK7EGbaavDC_J3iXnn_4xItlxgTH3CKOEixF0odzQ-nYwIlN3FMrOK4iQ2-bMfsloUEIJGBKktgSWYTTD21pyYRKTIGWp9NP0YvJm5-qUI1RlHeegFHWoDC\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select the JSON tab and add the below policy in the editor.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/-skLWKeTCy_a5byq8omEK4jBlVRYLO4er_esIAwR4qsKXXIQvW7vzFUvK8--VdYzkeihz1cmKJUtze2ty9GmllHpuc0KdZ7L_6EAESDbDqOfgxBDjrPS-wRq1SDMK8O8qbrsO4lh\" alt=\"\"\/><\/figure>\n\n\n\n<p>Once done, click on Next:Tags.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/mk9Bng-4_9nB-7yogaO5U3nXhmoLOpEr1Uo3_fEHEy2Kw9D2G1gqtE_XDyIOjQ7iqhiyRCp-Lag8_DfQzp9eGLyYLaaHlVh_X8RwdJhpxnWLZ7lwRgwQOQYKD3JoueHzR1w_7ZGk\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Enter a tag (key\/value) pair if you wish to for the policy. Once done, click on Next: Review.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/xqNO0PqNzPgpVbCftsCwbJCYm2_LDXBnvaya-YbROMY2YcNPjvp7u3_KpEN1RjgxZQ2xd58lJv1Ul8gtywg3vguK5MnVXn5Izvy6pK_G6-Ui9g2v8apDxV5AT480-n8h_hz2K_sJ\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Enter a name for the newly created policy and review the policies before creating it.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/MaJC1G5ylblnvp55ngBnucII1Cbx9OKCsB6BDRfSCjs9Kj5FW1peO6jazvENuAJEFxS0f4OmbjiOwCoYUFBgjHAcXJi_RRMJsLQC1h6YtHatvDGQqjZ58DncZ0qqtR4mDaXD2cIH\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Once done, scroll down and click on Create policy.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/qtzs2lko3qYTstStgIQCl9IZP3gZOXjmssJGoNdoNju23rKTGrlFa7VAq7QaWtC329_LkPMKT5O1nGlLN7L12aj4tf0wDm4tZkDR_MSsUQ76VPov6XNRbhJ9GM0Kbxw4lSuaDMIH\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On success, you will see the message as shown below. You can search for the newly created policy by entering its name in the search bar.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/gS2E_9hTbxbRlJrDwwSCTdgJMOP5xIhDcAg9x-EIjdy_Eiorje29Iit_w1PUzlQbXJlWEPV_9WUrQROfD7A7rBUNfTYu06nOzOpSzE1SDhDQLUdH8ptkg1Tsus-6Gnn27O7hclyV\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Navigate back to the IAM role dashboard and click on Refresh. Search for the policy you just created by entering its name in the search bar.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/DPTGs_qyiimblCmT0MqqomF5ckz2UjjcyK6-w31JxBYFC_hevKNbq-Epqn46b-81-jMClNQw79jNrEmxx4waGcW1b1JGAzZSPqFEokxm1oTApZSSQNfjdviN3ypwns5eEtPwkEwD\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select the checkbox of the newly created policy and click on Attach policy.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/Qyn2g500VJiY2wPWD5ZvvFLTxq_zs11mSNcpUs_CFnKVyv0t-D47LgBuc2UUOi5wSKwoEW3e5yU3w64mr0QvhYHuka9mxKPPb-Gaq8D-BPRpzOnPLWH-A6I8bwxORFOvn6qoMZhq\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On success, you will see the success message as shown below. If you scroll down, you will see the policy attached to the role.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/kvjlksrZZSG6XiHUeYKtNAa-48utPVkwLSs3HFyU6jAw6YuLcPSMnVXktRaK8vwRsbnlJMPwOHVJp1Vm9A-qFcINGMiuLmjhzM4E7o30VqklWpG7CuEsVoUIhQX7marx-XTEi6xc\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, navigate back to the Lambda functions editor pane.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/wc4BPze8pO7SK5tjSbVN6Hlt-94YA2dD4AFxDyE-W3cMWVYz_6TvYuGuDJl7ctirOnU2XDK8MZyqUSrxOz0jc1_hqdTDB6w67vm_aQhWNz0azO2AMJdpqSeWorXk7o9zbUc7YiDm\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">In the editor pane, clone the below repository and add the code in the comprehend.py file.<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/workfall\/amazon_comprehend.git\">https:\/\/github.com\/workfall\/amazon_comprehend.git<\/a><\/p>\n\n\n\n<p class=\"has-text-align-justify\">Once done, click on the Deploy button to deploy the latest changes.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/tNSF-N-xrrZK--1XMK15HUro1R8syF0D1VAkugC7x2YRD11yZXkxjE2oRpRvIm1eqdkr4A9pAc6qMMip3CVHfTLvhMwNje0ZIuozolDlrWcpp7ji7VkDEbO-D8079_UYVr5sZafp\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On success, you will see that the changes have been deployed successfully and your lambda function is ready to be tested and executed.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/XdnSL6TViyQxrTnGbhaggvDeJTCgsdWaTjt72k6E5cHV8z-tXOMQnkGwbq3rTJTExqWPVhmwJUkfOIMQsZSL9gOaiOxCAg3VmDZl-K7s1_jdfJNfTR3O21SBI55Qbrf3JEU6BiiV\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Click on the Configuration tab to add an environment variable for the Amazon Lex bot to detect the intent.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/0U3WtfZpPIpXQjrTgf3jjy8EG3PY2YNE4tRETUVnv24FF0mFgjFjwa1sBFj3P99NQeTnGuRFoXSTJykxtwOFE32izB4WzjMtEkcMvJ14muKMRdeI43EG8SRDcX-I7al8SJTu_m3L\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select the Environment variables tab in the left navigation pane and click on Edit.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/EDJ4-FCRnycj0NjLuZQCxNZYgcXhQ6_SYAa_wjr2ktWnePiNcoElH5hbjpgLpqLHtuhFWWOOYsJdnQJRuEsWZdJfXLZ-_T8SRLaFBvH5jQIG2AUTF5P6RNOek1TGbXzCScxXTqO0\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Click on Add environment variable to add a new variable.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/xAzhZgJf5-0kgducWGf94cyB3_2ty3DWgKGwesZMWxB_aVt6QZCtLAQWciGGUZo5cdE3Bg2c9AlS5s2uwg8GcIEp0qXVznm191W7g3gO0EkWrw1bAEOLHdyT1LX6e-bAxiFQQ65i\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Enter the key\/value pair as shown in the image below. Once done, click on Save.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/AyHxG1dS7wSaCHClt5SgTJdhfBlbU0y2dWCYdIzF95QOuhYnPNlE6MRF6rixSbDPmt_P62_b4m1do48xcGpMH3K8Bf6bEo-AAvYpPPPv3mX3h5fZ6Kx0qQ6IndEO9SDyjFtd4gnV\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On success, you will see the message as shown below and a new environment variable entry created for your Lambda function.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/GhgWFfcan5Z9YiwsR61gk4EdbbHDPANBQu5yVeBGdeWpEb41uainPWs1WDqINXAL3WcJ48oVvJ7r9mx4D0TJUMZZbR4tW_P0MK02Ki2L_HdJMkZV7Sajgui7KNgVSpWF1WMI3ik2\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now select the Test tab to create an event and test out your Lambda function.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/GOOPO6da5YRVV4Cs0unKJbrF2wtiUD2rzBOYt0kbNbsbgWADwsAp7i8ZZiZd8n2KuzC700y1ULHGrUnwab365cVVkzsE8Csi3HaWEGzr0r1Ga3DXfIthnQD_PwNU9481P6kWqoc6\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Enter a name for your test event and in the JSON editor pane paste the following.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img src=\"https:\/\/lh6.googleusercontent.com\/ylKn2GehGi_nr7rtJehseveyXiR6wLQTYDjHBH__uvL6vRo95No8CQsnE3AthCcPHcgvaaWpT1n8x389_Aes6sE9GjXupJkajHEHXz-my9zs8_7LK8I-WSSpwz2KQAJJ3tzuiAKQ\" alt=\"\"\/><\/figure><\/div>\n\n\n\n<p>Once done, click on Save changes to create a test event.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/Wvc2FYNkmkUuZ5d0g1VgzE9CGPKUhsgN9z1F7O3ZFn1YxZmeK5InomNDv3H6dQfFwgB6hCVPxYiKz3xHNnNxUg-V36O-8qW1CNYTumQHR3iQdfYItddC3GGYghEmTtVul_xExqOD\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On success, you will see the message as shown below. Now let\u2019s invoke the Lambda function and test its execution. Click on the Invoke button in the Test event section.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/cikwalwIECA5E9CAPKNwtvmbvHv6apx5NnryY3lkpdcPq8Vq-cDzrBqePE6EQSHc37-kDVtS_7jslOiRBK0vphyC7QqGp2hxm8z_aCDudLVT77d-M9tNwZfaZq4gtJ6UMnnqUs_Y\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On success, you will see the Execution result: succeeded on the dashboard in the test section. Expand Details to view the output.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/bQbqU6njRmBsn0cvWKTM_XZLIO8Sroj56LMuc2YVeY0Ut3ah4a0UYokae0_OzrquG0Kik0OGRuJegRizFxcOWiDmLhF2ZLwupjfja106ycqXBj0inlc0hi_BMOZiVa-xVug3VU-D\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You will see that the Amazon Comprehend has performed the sentiment analysis for the input transcript in the test event. It detects the sentiment as Neutral.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/gePGs7F8Kj9rvXzYEw_MNh_22_U0zSqljgg0a1eAaMep4bQNgjzMqqphA_1i1hqsoOTuQllatwg6t98f21YSfuWM8rFmHZe94rCOtZshtIIqDYZVBWaP0TSRvs3JvqrmRVeyBYad\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now let\u2019s test the same lambda function for a negative sentiment. Scroll down to the JSON editor pane and change the inputTranscript as below. Once done, save the changes and click on Invoke.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/GaVGuI7s-IIqp9EzthQEPweVQSM02GJFP3bwbEkp8E-ASW15s8_wCcSZUp4p2BUKzkAc1sxr328PYRprQQvu67I8RMtEJyQb3K7JNdglAVarb12zyKW_nx9M-RokQyfQdpqDNVdF\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now if you see the output, Amazon Comprehend detects the sentiment as Negative for the inputTranscript.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/5q0Cpry_cLl28B4ZcSpLC7mT9ReSzu8dOboHqz-86nGbjpo_M7CzyEvErRhXno-J00SKiKOotj6rMpR4KsVbt3swmUhUZhU2XTi4jAoKzsHhLngCwhZid5uecVtDp-WOpXlCR2ei\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now let\u2019s test the same function for a positive sentiment. Change the inputTranscript as below and invoke the function.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/OgzJU-qtqOJil3x0QV68UOXeTcwze87WhzHBX-IUb3_2HKzdJSt1LmpNqmE_BuZ6V8Bms--dibfBw6HIjs7ZjmUqHorvkQBej5O1Z3MVShr0Ms2cej6IBj5V7qh7JZefwaeaU2ci\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On successful execution, you will see that the sentiment detected is Positive.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/2rXjjb9uR242zdSyiE1BGVfFZUsUV90bhBraCYt2kbOizu3HsTLqdJ0z3549NPLwTvvPoOX1ERmg_1rqNH7NTBgpo8IRyD_j_0hGoHbY2bX4zeh-KWWQuRzQeSCmyzLrEgj9E5sb\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now, search for Amazon Lex in the search bar of the AWS console. Click on the service to navigate to its dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/iKskCk82ZmdMUJq3UmPs5W88--VUBcpMdbsqYgJRPNydMmanN_j7wVtWkQp8Bu_jJpxFt_et3xy4Lucpzb77lTnUaJM87bx8KQbMubbw0o4B5FLq7l-HbxQ_L9W_v1NY3C5NorW3\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On the Amazon Lex dashboard, under the Bots tab, click on Create Bot to create a new bot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/GwmmalKJ3VDY7T_QeZ6Hk5SkcI-7UHgD-wOzU9XGC0hIZ23AQ21ThiO1HdzJgLML4UXRWYvUzzvyz_3RN-ghKIPIGymaRcHiLno5xbOM07Hd_GNln9cGjxmVLObd95t7RY7idjSD\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You can create a custom bot or select some other bot based on your requirements. In this blog, we will be selecting the BookTrip bot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/pcmraYEkIFR11muTlTXITMVEOWSImCYbQs9cuj6sgpEs1hcmZlk9flk__QmuiHDd8lTWjiPACKhFG4P9tsTmH0x1rSYqujJwAIJkF1s_bYJzvXJQAg1s65r-IAJoPAfdDJUBFxKI\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Scroll down and enter a name for the bot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/aXyj0LT1CSLtmOycl70N3K7YslZ4PNAVT6xuM5tmddipUimfhyw0noG9n1IcIz2Aez0uCkn8e7cYk4E9tZ97WZUt45l9Lbal6Bz_D6KErVjo_q3oJ-yz4nkkTVoFkLOpXqoKS4PS\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select a Language based on your preferences for the bot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/1EYxTx0ZH1l3D6TSv7osIO9cw89rigccLhqG8vwe21sBnG0RbBp6HlquTRvCJ_qd3v7F_8NUvLJCNdyPRPsI4vAIZA8jR1XBJvjPRFZcOc7vzzOC92mhyGIHyGOKrVaS_DJancCG\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">For the sentiment analysis section, make sure to select yes to allow Amazon Comprehend to perform sentiment analysis.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/fyZXLem5uwN0ATZBE9t7mO4YPeDI4ObFQc-n9OSwC5X29xQchOh13WZWeNMhppMYNLYEjbigRdBcht_309zxAI-rmfahH-SakigfNourTSQfIoXhUJfhhFivJaidhn-CUJgAercz\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">An IAM role will already be attached for your bot so you need not make any changes over there. For the COPPA, select No, add tags (if any)and once done, click on Create.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/2s-miOviWJI9XuU-RBHqasLm1gREe-3Go0WILiNINOubrrOboB7KD65L-ynWmL6OIoSXcV9egGpYHsrTPLKbneP283S7CbA5knKAahpOhQgi-HGdp9C2BekoX-DPk-KoECGpzoqg\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You will be navigated to the created Bot dashboard. Wait for a few seconds till the bot is built.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/tZb0tzSffDkI9eWsOrB-Bw4aqoH_iU2_GiG0b_aRpQNwX1B1NqiB8cLgQQcsmpKhVZ_74kCrmEPS9j9YHqoa8ACDuSyJD93K7YNPpz7lqEnl041yNWP7F4YKVaSbiHLweg5vra_M\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On success, you will see the message as shown below. Now to create a new intent, click on the + sign under the Intents section in the left navigation pane.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/MPAgu4o02TnBsdxx7sinU-c00Zl6trCtjYEgVGYfXcPB2q58m-c876aoflni8q3HuK2viJQOKcciPlUA2VKP292I-cmMtcREQ-633RRAQ3a69Ia3pgqNmmcVVb7IpY6BObNjXMZc\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">A modal will appear with 3 options for intent. Click on Create intent.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/twAoF5N3uz23AD5iPWwp60hvZhj1eVMfhivmbAJbxdi7fu3TZ0lWjwD6xHyPpZPlQ8OFFruZzVBWo3ujRHKCDELVI6urObBIuQ5HZO7lGi-m5IonEnAWhDbAITGfv-AIrLoISktn\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Enter a name for the new intent to be created and click on Add.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/n1BjEZzHcjH6tBsGuc0W6kRCoOgIa_zhsMaKE4kDmQyYb9phURYDvKsp1eb4FSdYtmemCfwihfq2Wt8CUK-zTkAHzaL0fzn4NwTwHRUqzxlyjg0O0EspsJgBE59dd5_Av8mtJVfa\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">You will see the newly created intent in the list of Intents. Now, click on the BookCar intent.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/i0a2jEHbo5sOC9vwDE-fOvE3eLGqdRulwu64UKmBoIGvE8xVQuNB76bTPcMGCWp5b4wAXc1L4F4rPkxBcr1_N7zqW8mfWIJb-rwEZCHlFQvvJ5l45acUcrxA66nywDQFjLNfU0Ra\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On the dashboard, select the checkbox under the Lambda initialization and validation section to allow the intent to invoke the Lambda function.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/WFw23xFEuq7SBuynPCg9hn0qPy_S7f1YRAFTLHj0kj8MULlJYvM5O_pQqsBnjye44hizNDyUvl2VN5AV_wesc0KGLlzzL3A9xeksZtxQ08Dd7K3Vr4o3RGYaWjpw28QiH7d5IVwM\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Click on OK to confirm the action and add the permission for the same.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/n5rFl1B-oYdqB_Tme4sRNYUH8E7XKlaTcss63uejiyCIPUie80fSkVYNkQwr0PnMvxlBkUCtJ3GswfmwOonjjC0VOWojREE1WdVUupfP6MjB9Pww0BvX4HRBAv23xnBZCfB3Kr0E\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Select the Lambda function you created above under the Lambda function section from the dropdown.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh4.googleusercontent.com\/ldfRFr24hDBPTJpZrQpuB-cqmi7sxnV2EjXKyLtmQh6OmHb1bzSEBom6keDek68m87NW_XwzfHpGrBcy5582O5a5SIHSD3vI3o1huPfgPIC_kXX5t8WeMOWM20ZAv2cMxe6RTCRu\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Scroll to the bottom and click on Save intent to save all the changes made.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/m-hkNB375c67mwY8x9EPNUE58YHUo0ggvATul0-htIcyB7hIGV0YOZlobc9aWG2fjrdRqBq9dtmMqC0ondu5W0wRFZ7SXGUgyBbWU4cwi9id5H_3z4UW019agMBvcyfX8ZPeF6Vk\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now open the BookHotel section and repeat the same configuration changes as done above.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/9PQ2LoUuubNVS2zqO9P5Aw3noq3p8IyE_qySOG0ShrJvhaU0zozdVuyaeVPZxxiMUNadzmlE9zJwq-brmnFVso6Ei64e910BuEQV_QgiXCcEPb2myY1MbLac-UjgvTgXBYzayK5K\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Scroll down to the bottom and save the intent to save all the changes for the BookHotel intent.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/HtxdktUhi9F4KoRICS6PjlFq_sgRMBcjPAYHXRfFXBbb8SgwA9UIlo-hlTKfZ0bwnwlcRQBJYRLQ8jmFxQ5h0eL6OQLqaiCFsjG9YDvjNCW_tMPB_pFEc8rs6BcChVP826QLk0RO\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Switch to the Escalate intent and repeat the same steps and save the intent once done.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/_sRanYpbhWBLgn25UeMOXCTe7-8MDHqJ1NfhLRLrYPjgr7Tc-F0r4bSRSsDQWSpxU5r3Euhrk56Lv5aiJDQuf5GGh9H2KTGDcVp324anej17PqPTjiLMtBor8idOWzyXwKY7x91K\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now on the top of the dashboard, click on Build to build the bot. A modal will appear as shown in the image below. Click on Build to confirm the action.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/5UwyWgnsixLl0XuLEqBJ5iu8Lr35Nt6QZDDPY9LSS1Tx3azrA0HrOgxFPl6WHNRQ5S7HB5aud7UUAEG-5yjoq6ApD3-RPZmdFxYe6FGosrfznjGVtH33DHjPzvDnyxFllsQvCeC7\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">It might take a few seconds for the bot to be built and get into action.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/GepyNlSw4zBV4ThoZvfTDXo1nuRcDMXb3hlcg3nEBDSi5EhhNAnbBirRFY43I0GGUc_9hLMUHFan4ZsKF0Sa9NVBsnQt7ubhX5l3tojPFcsLxBPfPLD_L-0_2YIhYbYC6DSzqGwL\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On success, you can test out your bot using the pane provided on the right-hand side of the dashboard. Enter the following as shown in the image below and test out the bot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh3.googleusercontent.com\/4TaNzGPtozYQ67ai49wBf_JWoPA4Scobxi7eEvWpQEyToL1tdihmDAF1KdUxlpng_Wtx32zwvviwixTaupYpvkfrmZm1skgFOW9ay-3EFffZmR-urfxCTblZ4Df2EjDJjyndDYZ0\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Now let\u2019s publish the bot. Click on the Publish button on the top of the dashboard. For the Create an alias section, enter a name for your alias. Click on Publish.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/85PALMiL1Z4ghxbTc_f6B8EPA6rxIU2s_oiyV-7h-TejyOMoU4B0elFUyFxI2P7s_FQYmINiPiLEerZmf9B5AHxV0l0fa9XZ72vKVORd-tteF3HMjSVyvKBjK6Qo3xuQvK5icMWh\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">Wait for a few minutes for the bot to be published.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh6.googleusercontent.com\/R6EtTsd-6zpiZqxFukYISnvBecJ0xaFqlYZ4oORfVmHPRHg9gsc6_uJ4jUAsjE-qj1jhWV1GimIqcSWSCZGbHDn-KLgRDZJgP7ER2Fbf2G70f2rl1N-LEaFLLNcQPsZBuiuhvSp-\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">On success, you will see the message as shown below wherein you can download the connection info for your bot and integrate it easily with your web or mobile application to have a bot providing answers based on performing the sentiment analysis for the input Transcript entered by the user.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img src=\"https:\/\/lh5.googleusercontent.com\/N7b5G4Bpajrc7LGjpfrxfw8JRxJfqxQ5TvE8k-6GOOlXeLfcosyHZ2PgmoRMEfj1XbjKzMFnBOxjKXPa_5EaAstCvn6G_zj8NVGEZnxHdecYqMVhXZrOg_nQLJVklA7W9J7_C2Ob\" alt=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"\/><\/figure>\n\n\n\n<h2><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p class=\"has-text-align-justify\">In this blog, we have integrated Amazon Comprehend with AWS Lambda function and Amazon Lex bot to create an efficient and helpful bot. We implemented the sentiment analysis feature for the bot via Lambda Function integrating it with Amazon Comprehend. We even saw how this approach gives us the flexibility to analyze user input and then configure our Lex bot to act accordingly. We will discuss more use cases of Amazon Comprehend and its integration with other services in our upcoming blogs. Stay tuned to keep getting all updates about our upcoming new blogs on AWS and relevant technologies.<\/p>\n\n\n\n<p>Meanwhile \u2026<\/p>\n\n\n\n<p><strong>Keep Exploring -&gt; Keep Learning -&gt; Keep Mastering<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-justify\">This blog is part of our effort towards building a knowledgeable and kick-ass tech community. At <a href=\"https:\/\/www.workfall.com\/\">Workfall<\/a>, we strive to provide the best tech and pay opportunities to AWS-certified talents. If you\u2019re looking to work with global clients, build kick-ass products while making big bucks doing so, give it a shot at<a href=\"https:\/\/www.workfall.com\/partner\/\"> workfall.com\/partner<\/a> today.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading Time: <\/span> <span class=\"rt-time\">10<\/span> <span class=\"rt-label rt-postfix\">minutes<\/span><\/span> In our previous blog, How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis(Part 1)? we have discussed NLP, Amazon Comprehend as one of the best NLP services, its features, benefits, use cases, etc. In this blog, we will demonstrate how to configure Amazon Comprehend with AWS Lambda and Amazon [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":311,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[2],"tags":[80,3,82,4,57,81,6],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis? - The Workfall Blog<\/title>\n<meta name=\"description\" content=\"In this blog, we will demonstrate how to configure Amazon Comprehend for sentiment analysis to create interactive, &amp; helpful Amazon Lex bots.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis? - The Workfall Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, we will demonstrate how to configure Amazon Comprehend for sentiment analysis to create interactive, &amp; helpful Amazon Lex bots.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/\" \/>\n<meta property=\"og:site_name\" content=\"The Workfall Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/workfall\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-01T14:36:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-22T07:53:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@workfall\" \/>\n<meta name=\"twitter:site\" content=\"@workfall\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Workfall\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"21 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\",\"name\":\"Workfall - Hire #Kickass Coders On Demand\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/\",\"sameAs\":[\"https:\/\/www.instagram.com\/workfall\/\",\"https:\/\/www.linkedin.com\/company\/workfall\/\",\"https:\/\/facebook.com\/workfall\",\"https:\/\/twitter.com\/workfall\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400\",\"contentUrl\":\"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400\",\"width\":400,\"height\":400,\"caption\":\"Workfall - Hire #Kickass Coders On Demand\"},\"image\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#website\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/\",\"name\":\"The Workfall Blog\",\"description\":\"#Tech #Remote #Jobs\",\"publisher\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learning.workfall.com\/learning\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#primaryimage\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend.png\",\"contentUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend.png\",\"width\":1200,\"height\":628,\"caption\":\"How to use AWS Comprehend for Sentiment Analysis\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#webpage\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/\",\"name\":\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis? - The Workfall Blog\",\"isPartOf\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#primaryimage\"},\"datePublished\":\"2021-11-01T14:36:53+00:00\",\"dateModified\":\"2025-08-22T07:53:01+00:00\",\"description\":\"In this blog, we will demonstrate how to configure Amazon Comprehend for sentiment analysis to create interactive, & helpful Amazon Lex bots.\",\"breadcrumb\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learning.workfall.com\/learning\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#webpage\"},\"author\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a\"},\"headline\":\"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?\",\"datePublished\":\"2021-11-01T14:36:53+00:00\",\"dateModified\":\"2025-08-22T07:53:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#webpage\"},\"wordCount\":1816,\"publisher\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend.png\",\"keywords\":[\"ai\",\"AWS\",\"bots\",\"Cloud\",\"lambda\",\"lex\",\"workfall\"],\"articleSection\":[\"AWS Cloud Computing\"],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a\",\"name\":\"Workfall\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png\",\"contentUrl\":\"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png\",\"caption\":\"Workfall\"},\"sameAs\":[\"https:\/\/www.workfall.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis? - The Workfall Blog","description":"In this blog, we will demonstrate how to configure Amazon Comprehend for sentiment analysis to create interactive, & helpful Amazon Lex bots.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/","og_locale":"en_US","og_type":"article","og_title":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis? - The Workfall Blog","og_description":"In this blog, we will demonstrate how to configure Amazon Comprehend for sentiment analysis to create interactive, & helpful Amazon Lex bots.","og_url":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/","og_site_name":"The Workfall Blog","article_publisher":"https:\/\/facebook.com\/workfall","article_published_time":"2021-11-01T14:36:53+00:00","article_modified_time":"2025-08-22T07:53:01+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@workfall","twitter_site":"@workfall","twitter_misc":{"Written by":"Workfall","Est. reading time":"21 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization","name":"Workfall - Hire #Kickass Coders On Demand","url":"https:\/\/learning.workfall.com\/learning\/blog\/","sameAs":["https:\/\/www.instagram.com\/workfall\/","https:\/\/www.linkedin.com\/company\/workfall\/","https:\/\/facebook.com\/workfall","https:\/\/twitter.com\/workfall"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400","contentUrl":"https:\/\/i1.wp.com\/18.141.20.153\/learning\/blog\/wp-content\/uploads\/2021\/10\/cropped-WF_logo.png?fit=400%2C400","width":400,"height":400,"caption":"Workfall - Hire #Kickass Coders On Demand"},"image":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#website","url":"https:\/\/learning.workfall.com\/learning\/blog\/","name":"The Workfall Blog","description":"#Tech #Remote #Jobs","publisher":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learning.workfall.com\/learning\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#primaryimage","url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend.png","contentUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend.png","width":1200,"height":628,"caption":"How to use AWS Comprehend for Sentiment Analysis"},{"@type":"WebPage","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#webpage","url":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/","name":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis? - The Workfall Blog","isPartOf":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#primaryimage"},"datePublished":"2021-11-01T14:36:53+00:00","dateModified":"2025-08-22T07:53:01+00:00","description":"In this blog, we will demonstrate how to configure Amazon Comprehend for sentiment analysis to create interactive, & helpful Amazon Lex bots.","breadcrumb":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learning.workfall.com\/learning\/blog\/"},{"@type":"ListItem","position":2,"name":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?"}]},{"@type":"Article","@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#article","isPartOf":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#webpage"},"author":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a"},"headline":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis?","datePublished":"2021-11-01T14:36:53+00:00","dateModified":"2025-08-22T07:53:01+00:00","mainEntityOfPage":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#webpage"},"wordCount":1816,"publisher":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/#organization"},"image":{"@id":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-2\/#primaryimage"},"thumbnailUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend.png","keywords":["ai","AWS","bots","Cloud","lambda","lex","workfall"],"articleSection":["AWS Cloud Computing"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/cab8236044692bc5b27606b13167794a","name":"Workfall","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learning.workfall.com\/learning\/blog\/#\/schema\/person\/image\/","url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png","contentUrl":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2023\/09\/avatar_user_1_1693914404-96x96.png","caption":"Workfall"},"sameAs":["https:\/\/www.workfall.com"]}]}},"jetpack_featured_media_url":"https:\/\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend.png","jetpack-related-posts":[{"id":486,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-can-we-use-amazon-comprehend-with-aws-lambda-and-amazon-lex-for-sentiment-analysispart-1\/","url_meta":{"origin":310,"position":0},"title":"How can we use Amazon Comprehend with AWS Lambda and Amazon Lex for Sentiment Analysis (Part 1)?","date":"November 10, 2021","format":false,"excerpt":"When we are asking Siri - \u201cHey Siri, where is the nearest grocery store?\u201d or telling Alexa - \u201cAlexa, can you play my workout music?\u201d, we are actually talking to machines! These virtual assistants are examples of machines that understand human languages and respond!! Sounds interesting right? Now you must\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Natural Language Processing using Amazon Comprehend","src":"https:\/\/i0.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/comprehend1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":416,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-do-event-driven-programming-using-aws-lambda-with-amazon-kinesis-streams\/","url_meta":{"origin":310,"position":1},"title":"How to do event-driven programming using AWS Lambda with Amazon Kinesis Streams?","date":"November 3, 2021","format":false,"excerpt":"Amazon Kinesis is an AWS-managed service that processes streaming data at a massive scale. Using Amazon Kinesis, data could be easily sent to various sources like S3, DynamoDB, Redshift, and Lambda. Kinesis is used to process hundreds of terabytes of data per hour. AWS LAMBDA works as an event-driven computing\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"Amazon Kinesis Streams","src":"https:\/\/i2.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/Kinesis.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":461,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-trigger-lambda-function-using-amazon-cloudwatch-events-and-configure-cloudwatch-alarm-to-get-email-notifications-using-amazon-snspart-2\/","url_meta":{"origin":310,"position":2},"title":"How to trigger Lambda function using Amazon CloudWatch events and configure CloudWatch alarm to get email notifications using Amazon SNS(Part 2)?","date":"November 9, 2021","format":false,"excerpt":"Modern applications such as those running on microservices architectures generate large volumes of data in the form of metrics, logs, and events. Amazon CloudWatch enables you to collect, access, and correlate this data on a single platform from across all your AWS resources, applications, and services that run on AWS.\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"How to trigger Lambda Function using Amazon CloudWatch Events?","src":"https:\/\/i0.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/cloudwatch2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1274,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-detect-operational-issues-in-lambda-function-automatically-with-amazon-devops-guru-for-serverless\/","url_meta":{"origin":310,"position":3},"title":"How to detect operational issues in Lambda Function automatically with Amazon DevOps Guru for Serverless?","date":"September 13, 2022","format":false,"excerpt":"Hands-on In this hands-on, we will see how we can detect operational issues in Lambda Function with Amazon DevOps Guru for Serverless. We will first log in and navigate to the AWS console. Then, we will change the region to the one that has Amazon DevOps Guru available. Navigating to\u2026","rel":"","context":"In &quot;DevOps&quot;","img":{"alt_text":"detect operational issues in Lambda Function automatically with Amazon DevOps Guru for Serverless","src":"https:\/\/i2.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2022\/09\/Cover-Images_Part2-1-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":504,"url":"https:\/\/learning.workfall.com\/learning\/blog\/how-to-use-aws-textract-to-extract-data-from-any-image-pdf\/","url_meta":{"origin":310,"position":4},"title":"How to use Amazon Textract to extract data from any Image & PDF?","date":"November 10, 2021","format":false,"excerpt":"Amazon Textract is a highly scalable machine learning service that collects printed text, handwriting, and other information from scanned documents automatically.\u00a0\u00a0\u00a0 Using Amazon Textract, you can easily extract text and data from images and any scanned documents that go beyond simple optical character recognition (OCR) to extract data from tables\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"How to use AWS Textract to extract data from any Image & PDF","src":"https:\/\/i0.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/Textract.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":389,"url":"https:\/\/learning.workfall.com\/learning\/blog\/send-s3-event-notification-email-using-lambda-and-ses\/","url_meta":{"origin":310,"position":5},"title":"How to send S3 event notification email using Lambda and SES?","date":"November 3, 2021","format":false,"excerpt":"Email notifications are an important part of any modern application. In this blog, we will discuss how to send Email notifications using the Amazon SES service and AWS Lambda and will demonstrate how to send an acknowledgment email to a user using AWS Lambda and Amazon SES upon adding new\u2026","rel":"","context":"In &quot;AWS Cloud Computing&quot;","img":{"alt_text":"How to send S3 event notification email using Lambda and SES","src":"https:\/\/i1.wp.com\/learning.workfall.com\/learning\/blog\/wp-content\/uploads\/2021\/11\/SESandLambda.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/310"}],"collection":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/comments?post=310"}],"version-history":[{"count":7,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/310\/revisions"}],"predecessor-version":[{"id":2535,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/posts\/310\/revisions\/2535"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media\/311"}],"wp:attachment":[{"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/media?parent=310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/categories?post=310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learning.workfall.com\/learning\/blog\/wp-json\/wp\/v2\/tags?post=310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}