{"id":1064,"date":"2026-11-16T00:47:35","date_gmt":"2026-11-15T19:17:35","guid":{"rendered":"https:\/\/techgyan360.com\/blog\/?p=1064"},"modified":"2026-11-16T01:03:35","modified_gmt":"2026-11-15T19:33:35","slug":"amazon-lex-tutorial","status":"publish","type":"post","link":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/","title":{"rendered":"Amazon Lex Tutorial: Build a Chatbot &#038; Connect It to Amazon Connect (2026)"},"content":{"rendered":"<blockquote><p><strong>Quick answer:<\/strong> Amazon Lex is AWS&#8217;s service for building chatbots and voice bots that understand natural language. You create a <strong>bot<\/strong>, add <strong>intents<\/strong> (what the customer wants), <strong>sample utterances<\/strong> (how they say it) and <strong>slots<\/strong> (details you need to collect), then build and test it. To use it in a contact center, publish a bot <strong>version and alias<\/strong>, add it to your Amazon Connect instance, and call it from a contact flow with the <strong>Get customer input<\/strong> block. Standard pricing is $0.004 per speech request and $0.00075 per text request.<\/p><\/blockquote>\n<p>Amazon Lex powers the &#8220;how can I help you today?&#8221; moment in thousands of IVRs and chat widgets. Instead of &#8220;press 1 for billing&#8221;, customers just say what they need, and Lex works out the intent and collects the details.<\/p>\n<p>In this Amazon Lex tutorial you&#8217;ll build a real order-status bot step by step, connect it to Amazon Connect for voice and chat, and add a Lambda function so it can look up live data. No prior Lex experience is needed.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#What_is_Amazon_Lex\" >What is Amazon Lex?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Key_Lex_concepts_in_plain_English\" >Key Lex concepts in plain English<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Build_your_first_Amazon_Lex_chatbot\" >Build your first Amazon Lex chatbot<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Step_1_Create_the_bot\" >Step 1: Create the bot<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Step_2_Add_a_language_and_voice\" >Step 2: Add a language and voice<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Step_3_Create_the_CheckOrderStatus_intent\" >Step 3: Create the CheckOrderStatus intent<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Step_4_Add_the_OrderNumber_slot\" >Step 4: Add the OrderNumber slot<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Step_5_Add_a_confirmation_and_closing_response\" >Step 5: Add a confirmation and closing response<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Step_6_Build_and_test\" >Step 6: Build and test<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Step_7_Add_a_Lambda_function_for_real_answers\" >Step 7: Add a Lambda function for real answers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Connect_your_Lex_bot_to_Amazon_Connect\" >Connect your Lex bot to Amazon Connect<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Step_8_Publish_a_version_and_alias\" >Step 8: Publish a version and alias<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Step_9_Add_the_bot_to_your_Connect_instance\" >Step 9: Add the bot to your Connect instance<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Step_10_Use_the_bot_in_a_contact_flow\" >Step 10: Use the bot in a contact flow<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Generative_AI_features_in_Amazon_Lex\" >Generative AI features in Amazon Lex<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Amazon_Lex_pricing\" >Amazon Lex pricing<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Best_practices_and_common_mistakes\" >Best practices and common mistakes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Frequently_asked_questions\" >Frequently asked questions<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Is_Amazon_Lex_free\" >Is Amazon Lex free?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#What_is_the_difference_between_Amazon_Lex_V1_and_V2\" >What is the difference between Amazon Lex V1 and V2?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Can_Amazon_Lex_be_used_without_Amazon_Connect\" >Can Amazon Lex be used without Amazon Connect?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Is_Amazon_Lex_the_same_as_ChatGPT\" >Is Amazon Lex the same as ChatGPT?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#What_languages_does_Amazon_Lex_support\" >What languages does Amazon Lex support?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#How_do_I_pass_data_from_Amazon_Connect_to_Lex\" >How do I pass data from Amazon Connect to Lex?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#Next_steps\" >Next steps<\/a><\/li><\/ul><\/nav><\/div>\n<h2 id=\"what\"><span class=\"ez-toc-section\" id=\"What_is_Amazon_Lex\"><\/span>What is Amazon Lex?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Amazon Lex is a fully managed AWS service for building <strong>conversational interfaces<\/strong>, chatbots and voice bots, using the same speech recognition and language understanding technology behind Alexa. It combines two capabilities:<\/p>\n<ul>\n<li><strong>Automatic speech recognition (ASR):<\/strong> turns spoken words into text.<\/li>\n<li><strong>Natural language understanding (NLU):<\/strong> works out what the text means: the customer&#8217;s intent and the details inside it.<\/li>\n<\/ul>\n<p>Common uses include IVR self-service (order status, balance checks, password resets), website and app chatbots, appointment booking, and routing callers to the right queue based on what they say. The current version is <strong>Amazon Lex V2<\/strong>; all new bots should use it.<\/p>\n<h2 id=\"concepts\"><span class=\"ez-toc-section\" id=\"Key_Lex_concepts_in_plain_English\"><\/span>Key Lex concepts in plain English<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<table>\n<thead>\n<tr>\n<th>Concept<\/th>\n<th>What it means<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Bot<\/strong><\/td>\n<td>The whole conversational assistant<\/td>\n<td><code>OrderHelperBot<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>Intent<\/strong><\/td>\n<td>A goal the customer wants to achieve<\/td>\n<td><code>CheckOrderStatus<\/code>, <code>SpeakToAgent<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>Utterance<\/strong><\/td>\n<td>A sample phrase that triggers an intent<\/td>\n<td>&#8220;Where is my order?&#8221;, &#8220;Track my parcel&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>Slot<\/strong><\/td>\n<td>A piece of information the bot must collect<\/td>\n<td><code>OrderNumber<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>Slot type<\/strong><\/td>\n<td>The kind of value a slot accepts<\/td>\n<td><code>AMAZON.AlphaNumeric<\/code>, <code>AMAZON.Date<\/code>, or a custom list<\/td>\n<\/tr>\n<tr>\n<td><strong>Prompt<\/strong><\/td>\n<td>What the bot asks to fill a slot<\/td>\n<td>&#8220;What&#8217;s your order number?&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>Fulfillment<\/strong><\/td>\n<td>What happens once all slots are filled<\/td>\n<td>A Lambda function looks up the order<\/td>\n<\/tr>\n<tr>\n<td><strong>Version \/ Alias<\/strong><\/td>\n<td>A frozen snapshot of the bot, and a pointer to it<\/td>\n<td>Version 1, alias <code>prod<\/code><\/td>\n<\/tr>\n<tr>\n<td><strong>FallbackIntent<\/strong><\/td>\n<td>Built-in intent for anything the bot doesn&#8217;t understand<\/td>\n<td>&#8220;Sorry, I didn&#8217;t get that.&#8221;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"build\"><span class=\"ez-toc-section\" id=\"Build_your_first_Amazon_Lex_chatbot\"><\/span>Build your first Amazon Lex chatbot<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We&#8217;ll build <strong>OrderHelperBot<\/strong>, which answers &#8220;where is my order?&#8221; by voice and chat. Use the same AWS Region as your Amazon Connect instance.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_1_Create_the_bot\"><\/span>Step 1: Create the bot<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Open the <strong>Amazon Lex V2 console<\/strong> and choose <strong>Create bot<\/strong>.<\/li>\n<li>Choose <strong>Create a blank bot<\/strong> (traditional). You can also use the generative <em>descriptive bot builder<\/em>, covered later.<\/li>\n<li>Name it <code>OrderHelperBot<\/code>.<\/li>\n<li>Under <strong>IAM permissions<\/strong>, choose <em>Create a role with basic Amazon Lex permissions<\/em>.<\/li>\n<li>For the <strong>COPPA<\/strong> question (Children&#8217;s Online Privacy Protection Act), choose <em>No<\/em> unless your bot is aimed at children under 13.<\/li>\n<li>Keep the <strong>idle session timeout<\/strong> at 5 minutes and choose <strong>Next<\/strong>.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Step_2_Add_a_language_and_voice\"><\/span>Step 2: Add a language and voice<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Select <strong>English (US)<\/strong> (or your language) and pick a voice for spoken responses, for example <em>Danielle<\/em> or <em>Joanna<\/em>. Leave the <strong>intent classification confidence score threshold<\/strong> at the default 0.40 for now. Choose <strong>Done<\/strong>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_3_Create_the_CheckOrderStatus_intent\"><\/span>Step 3: Create the CheckOrderStatus intent<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Rename the default intent (or add a new one) to <code>CheckOrderStatus<\/code>.<\/li>\n<li>Add at least 10\u201315 <strong>sample utterances<\/strong>. Variety matters more than quantity:\n<pre><code class=\"language-text\">Where is my order\r\nTrack my order\r\nI want to check my order status\r\nHas my parcel shipped\r\nWhere is my order {OrderNumber}\r\nCheck order {OrderNumber}\r\nWhen will my package arrive\r\nMy delivery hasn't arrived\r\nOrder status please\r\nI'm calling about an order<\/code><\/pre>\n<\/li>\n<\/ol>\n<p>Writing <code>{OrderNumber}<\/code> inside an utterance lets customers give the slot value in the same sentence, so the bot doesn&#8217;t need to ask again.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_4_Add_the_OrderNumber_slot\"><\/span>Step 4: Add the OrderNumber slot<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>In the <strong>Slots<\/strong> section, choose <strong>Add slot<\/strong>.<\/li>\n<li>Name: <code>OrderNumber<\/code>. Slot type: <code>AMAZON.AlphaNumeric<\/code> (use <code>AMAZON.Number<\/code> if your order IDs are digits only).<\/li>\n<li>Prompt: <em>&#8220;Sure, what&#8217;s your order number?&#8221;<\/em><\/li>\n<li>Mark the slot as <strong>Required<\/strong>.<\/li>\n<\/ol>\n<p><strong>Voice tip:<\/strong> for alphanumeric IDs over the phone, open the slot&#8217;s advanced options and set a <strong>slot resolution \/ spelling style<\/strong> (such as &#8220;spell by letter&#8221;). This greatly improves recognition of values like &#8220;AB12345&#8221;.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_5_Add_a_confirmation_and_closing_response\"><\/span>Step 5: Add a confirmation and closing response<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Optionally turn on <strong>Confirmation<\/strong>: <em>&#8220;Just to confirm, your order number is {OrderNumber}?&#8221;<\/em> This is very useful on voice, where misheard digits are common. For now, set a simple <strong>closing response<\/strong>: <em>&#8220;Thanks, let me check order {OrderNumber}.&#8221;<\/em><\/p>\n<p>Also add a second intent, <code>SpeakToAgent<\/code>, with utterances such as &#8220;agent&#8221;, &#8220;talk to a person&#8221; and &#8220;representative&#8221;. Customers must always have a way out.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_6_Build_and_test\"><\/span>Step 6: Build and test<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Choose <strong>Save intent<\/strong>, then <strong>Build<\/strong> (it takes about a minute). Open the <strong>Test<\/strong> panel and type &#8220;where is my order&#8221;. The bot should ask for the order number. Try a few phrasings you didn&#8217;t add as utterances; Lex&#8217;s NLU should still recognise most of them.<\/p>\n<h2 id=\"lambda\"><span class=\"ez-toc-section\" id=\"Step_7_Add_a_Lambda_function_for_real_answers\"><\/span>Step 7: Add a Lambda function for real answers<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Right now the bot collects the order number but can&#8217;t look anything up. A Lambda <strong>fulfillment code hook<\/strong> fixes that. Create a Python Lambda function in the same Region:<\/p>\n<pre><code class=\"language-python\">ORDERS = {  # demo data - replace with DynamoDB or your order API\r\n    \"AB12345\": {\"status\": \"shipped\", \"eta\": \"18 November\"},\r\n    \"CD67890\": {\"status\": \"being packed\", \"eta\": \"20 November\"},\r\n}\r\n\r\ndef close(intent_name, message, attributes=None):\r\n    \"\"\"Build a Lex V2 response that ends the intent.\"\"\"\r\n    return {\r\n        \"sessionState\": {\r\n            \"dialogAction\": {\"type\": \"Close\"},\r\n            \"intent\": {\"name\": intent_name, \"state\": \"Fulfilled\"},\r\n            \"sessionAttributes\": attributes or {},\r\n        },\r\n        \"messages\": [{\"contentType\": \"PlainText\", \"content\": message}],\r\n    }\r\n\r\ndef lambda_handler(event, context):\r\n    intent = event[\"sessionState\"][\"intent\"]\r\n    slots = intent.get(\"slots\") or {}\r\n    slot = slots.get(\"OrderNumber\") or {}\r\n    order_id = ((slot.get(\"value\") or {}).get(\"interpretedValue\") or \"\").upper()\r\n\r\n    order = ORDERS.get(order_id)\r\n    if not order:\r\n        return close(intent[\"name\"],\r\n                     f\"Sorry, I couldn't find order {order_id}. Let me get someone to help.\",\r\n                     {\"orderFound\": \"false\"})\r\n\r\n    return close(intent[\"name\"],\r\n                 f\"Order {order_id} is {order['status']} and should arrive on {order['eta']}.\",\r\n                 {\"orderFound\": \"true\", \"orderStatus\": order[\"status\"]})<\/code><\/pre>\n<p>Then connect it to the bot:<\/p>\n<ol>\n<li>In the <code>CheckOrderStatus<\/code> intent, under <strong>Fulfillment<\/strong>, turn on <strong>Use a Lambda function for fulfillment<\/strong> (in advanced options).<\/li>\n<li>Go to <strong>Aliases \u2192 TestBotAlias \u2192 English (US)<\/strong> and select your Lambda function and version (<code>$LATEST<\/code> for testing).<\/li>\n<li>Build and test again: &#8220;where is my order AB12345&#8221; should now return the real status.<\/li>\n<\/ol>\n<p>The <code>sessionAttributes<\/code> you return (<code>orderFound<\/code>, <code>orderStatus<\/code>) travel back to Amazon Connect, so your contact flow can branch on them. For more on Lambda patterns, timeouts and error handling, see our <a href=\"https:\/\/techgyan360.com\/blog\/amazon-connect-lambda-integration\/\">Amazon Connect Lambda integration guide<\/a>.<\/p>\n<h2 id=\"connect\"><span class=\"ez-toc-section\" id=\"Connect_your_Lex_bot_to_Amazon_Connect\"><\/span>Connect your Lex bot to Amazon Connect<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Step_8_Publish_a_version_and_alias\"><\/span>Step 8: Publish a version and alias<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>Don&#8217;t use <code>TestBotAlias<\/code> in production.<\/strong> It has low limits and is meant for testing only.<\/p>\n<ol>\n<li>In your bot, go to <strong>Bot versions \u2192 Create version<\/strong>. This freezes the current design as Version 1.<\/li>\n<li>Go to <strong>Aliases \u2192 Create alias<\/strong>, name it <code>prod<\/code> and point it to Version 1.<\/li>\n<li>In the <code>prod<\/code> alias language settings, attach your Lambda function (ideally a Lambda alias, also called <code>prod<\/code>).<\/li>\n<\/ol>\n<p>Later, when you change the bot, create Version 2, test it, then simply repoint the <code>prod<\/code> alias. Your contact flows don&#8217;t need to change.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_9_Add_the_bot_to_your_Connect_instance\"><\/span>Step 9: Add the bot to your Connect instance<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Open the <strong>Amazon Connect console<\/strong> and select your instance alias.<\/li>\n<li>Choose <strong>Flows<\/strong> in the left menu.<\/li>\n<li>Under <strong>Amazon Lex<\/strong>, select the Region, the bot <code>OrderHelperBot<\/code> and the alias <code>prod<\/code>, then choose <strong>Add Amazon Lex Bot<\/strong>.<\/li>\n<\/ol>\n<p>This grants Amazon Connect permission to call the bot. You can also add bots from the Amazon Connect admin website under <em>Routing \u2192 Bots<\/em>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_10_Use_the_bot_in_a_contact_flow\"><\/span>Step 10: Use the bot in a contact flow<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>In your inbound flow, add a <strong>Get customer input<\/strong> block.<\/li>\n<li>Set the greeting prompt, for example <em>&#8220;Hi, thanks for calling. How can I help you today?&#8221;<\/em> (text-to-speech or a recorded prompt).<\/li>\n<li>Open the <strong>Amazon Lex<\/strong> tab, select <code>OrderHelperBot<\/code> and alias <code>prod<\/code>.<\/li>\n<li>Under <strong>Intents<\/strong>, add <code>CheckOrderStatus<\/code> and <code>SpeakToAgent<\/code>. Each becomes an output branch.<\/li>\n<li>Connect the branches:\n<ul>\n<li><strong>CheckOrderStatus<\/strong> \u2192 Lex has already spoken the answer. Add a <em>Check contact attributes<\/em> block on <code>$.Lex.SessionAttributes.orderFound<\/code>: <code>true<\/code> \u2192 &#8220;Anything else?&#8221; or disconnect; <code>false<\/code> \u2192 transfer to queue.<\/li>\n<li><strong>SpeakToAgent<\/strong> \u2192 Set working queue \u2192 Transfer to queue.<\/li>\n<li><strong>Default<\/strong> and <strong>Error<\/strong> \u2192 a friendly retry or transfer to an agent.<\/li>\n<\/ul>\n<\/li>\n<li>Save and <strong>Publish<\/strong> the flow, then assign it to a phone number or your chat widget.<\/li>\n<\/ol>\n<p>Useful values available in the flow after the Lex block:<\/p>\n<table>\n<thead>\n<tr>\n<th>Value<\/th>\n<th>Reference<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Matched intent<\/td>\n<td><code>$.Lex.IntentName<\/code><\/td>\n<\/tr>\n<tr>\n<td>A slot value<\/td>\n<td><code>$.Lex.Slots.OrderNumber<\/code><\/td>\n<\/tr>\n<tr>\n<td>Session attributes from Lambda<\/td>\n<td><code>$.Lex.SessionAttributes.orderStatus<\/code><\/td>\n<\/tr>\n<tr>\n<td>Customer sentiment (if enabled)<\/td>\n<td><code>$.Lex.SentimentResponse.Label<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Save anything you need later into contact attributes with a <em>Set contact attributes<\/em> block, so agents see it in their screen when the call is transferred. New to flows? Start with our <a href=\"https:\/\/techgyan360.com\/blog\/amazon-connect-contact-flows-guide\/\">Amazon Connect contact flows guide<\/a>.<\/p>\n<h2 id=\"genai\"><span class=\"ez-toc-section\" id=\"Generative_AI_features_in_Amazon_Lex\"><\/span>Generative AI features in Amazon Lex<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Lex now includes optional generative AI features, powered by Amazon Bedrock, that reduce manual work:<\/p>\n<ul>\n<li><strong>Descriptive bot builder:<\/strong> describe the bot in plain English (&#8220;a bot that books hotel rooms and checks reservations&#8221;) and Lex drafts the intents, utterances and slots for you to review.<\/li>\n<li><strong>Utterance generation:<\/strong> generates sample utterances for an intent, a quick way to cover more phrasings.<\/li>\n<li><strong>Assisted slot resolution:<\/strong> uses an LLM to understand slot values that standard NLU misses, such as &#8220;the day after tomorrow&#8221;.<\/li>\n<li><strong>QnAIntent:<\/strong> answers FAQs directly from a knowledge base (such as a Bedrock knowledge base), with no need to build an intent for every question.<\/li>\n<\/ul>\n<p>For fully open-ended conversations, Amazon Connect also offers AI agents that go beyond intent-based bots. See <a href=\"https:\/\/techgyan360.com\/blog\/amazon-connect-ai-agents\/\">Amazon Connect AI agents explained<\/a> for when to use each.<\/p>\n<h2 id=\"pricing\"><span class=\"ez-toc-section\" id=\"Amazon_Lex_pricing\"><\/span>Amazon Lex pricing<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Lex charges per request, with no upfront fees. Standard (request-and-response) pricing:<\/p>\n<table>\n<thead>\n<tr>\n<th>Request type<\/th>\n<th>Price<\/th>\n<th>Example cost<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Speech request<\/td>\n<td>$0.004 per request<\/td>\n<td>100,000 requests = $400<\/td>\n<\/tr>\n<tr>\n<td>Text request<\/td>\n<td>$0.00075 per request<\/td>\n<td>100,000 requests = $75<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>A &#8220;request&#8221; is one customer turn. A 4-turn voice conversation is 4 speech requests, about $0.016. Streaming conversations and generative AI features are priced separately; check the <a href=\"https:\/\/aws.amazon.com\/lex\/pricing\/\" target=\"_blank\" rel=\"noopener\">official Amazon Lex pricing page<\/a> for current rates. New AWS accounts can use AWS Free Tier credits to experiment.<\/p>\n<p><strong>Using Lex inside Amazon Connect?<\/strong> Under the newer Amazon Connect Customer pricing, Lex requests made from your Connect instance are included in the per-channel rate. Under the older \u00e0 la carte model they&#8217;re billed separately. Our <a href=\"https:\/\/techgyan360.com\/blog\/amazon-connect-pricing\/\">Amazon Connect pricing guide<\/a> explains both.<\/p>\n<h2 id=\"best\"><span class=\"ez-toc-section\" id=\"Best_practices_and_common_mistakes\"><\/span>Best practices and common mistakes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li><strong>Always offer an exit.<\/strong> Include a <code>SpeakToAgent<\/code> intent, and route the Default and Error branches to a human. Trapping callers is the fastest way to destroy CSAT.<\/li>\n<li><strong>Write utterances from real calls.<\/strong> Pull phrases from call transcripts or chat logs instead of guessing. Lex&#8217;s <em>analytics and utterance statistics<\/em> show what customers actually say that the bot missed.<\/li>\n<li><strong>Keep intents distinct.<\/strong> &#8220;CheckOrder&#8221; and &#8220;TrackOrder&#8221; as separate intents will confuse the model. Merge overlapping intents.<\/li>\n<li><strong>Confirm important slots on voice.<\/strong> Read back numbers before acting on them.<\/li>\n<li><strong>Never point production at <code>TestBotAlias<\/code> or <code>$LATEST<\/code>.<\/strong> Use versions and aliases for both the bot and Lambda.<\/li>\n<li><strong>Keep Lambda fast.<\/strong> Customers hear silence while it runs. Aim for well under a second, and play a prompt before anything slow.<\/li>\n<li><strong>Measure containment.<\/strong> Track how many conversations the bot resolves without an agent; it&#8217;s one of the key <a href=\"https:\/\/techgyan360.com\/blog\/call-center-kpis\/\">call center KPIs<\/a> for self-service.<\/li>\n<li><strong>Turn on conversation logs<\/strong> (text and audio) to CloudWatch or S3, with sensitive slots marked as obfuscated so card numbers or dates of birth aren&#8217;t stored in logs.<\/li>\n<\/ol>\n<h2 id=\"faq\"><span class=\"ez-toc-section\" id=\"Frequently_asked_questions\"><\/span>Frequently asked questions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Is_Amazon_Lex_free\"><\/span>Is Amazon Lex free?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No. It&#8217;s pay-per-request, but costs are low: $0.004 per speech request and $0.00075 per text request. New AWS accounts can use AWS Free Tier credits while learning.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_is_the_difference_between_Amazon_Lex_V1_and_V2\"><\/span>What is the difference between Amazon Lex V1 and V2?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Lex V2 is the current version. It supports multiple languages in one bot, a better console, versions and aliases per language, streaming conversations and the generative AI features. All new bots should be built on V2.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_Amazon_Lex_be_used_without_Amazon_Connect\"><\/span>Can Amazon Lex be used without Amazon Connect?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Yes. Lex works on its own in websites, mobile apps, Slack, Facebook Messenger and Twilio SMS, or through the Lex runtime API from any application.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Is_Amazon_Lex_the_same_as_ChatGPT\"><\/span>Is Amazon Lex the same as ChatGPT?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No. Classic Lex is an intent-based bot: it recognises defined goals and collects specific details, which makes it predictable and good for transactions. Large language models generate free-form answers. Lex&#8217;s generative features and Amazon Connect AI agents combine both approaches.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"What_languages_does_Amazon_Lex_support\"><\/span>What languages does Amazon Lex support?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Lex supports many languages and locales, including several varieties of English, Spanish, French, German, Italian, Portuguese, Japanese, Korean, Chinese and Hindi. Check the AWS documentation for the current list and which features each language supports.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_do_I_pass_data_from_Amazon_Connect_to_Lex\"><\/span>How do I pass data from Amazon Connect to Lex?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>In the Get customer input block, set <strong>session attributes<\/strong> (for example, the customer&#8217;s name or account tier from a previous Lambda lookup). Lex and its Lambda function receive them in <code>sessionState.sessionAttributes<\/code>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Next_steps\"><\/span>Next steps<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Make your bot smarter with live data: <a href=\"https:\/\/techgyan360.com\/blog\/amazon-connect-lambda-integration\/\">Amazon Connect Lambda integration<\/a>.<\/li>\n<li>Understand the bigger picture: <a href=\"https:\/\/techgyan360.com\/blog\/amazon-connect-architecture\/\">Amazon Connect architecture<\/a> and <a href=\"https:\/\/techgyan360.com\/blog\/what-is-ccaas\/\">what is CCaaS<\/a>.<\/li>\n<li>Build Lex bots, flows and AI agents hands-on with a trainer in our live <a href=\"https:\/\/techgyan360.com\/training\/\">Amazon Connect training<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Step-by-step Amazon Lex tutorial: build a Lex V2 chatbot, add a Lambda function, connect it to Amazon Connect, plus generative AI features and Lex pricing.<\/p>\n","protected":false},"author":1,"featured_media":1065,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,50],"tags":[],"class_list":["post-1064","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-amazon-connect-hub","category-aws-cloud-hub"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Amazon Lex Tutorial (2026): Build a Chatbot + Connect Integration - TechGyan360.Com<\/title>\n<meta name=\"description\" content=\"Amazon Lex tutorial: build a Lex V2 chatbot step by step, add Lambda, connect it to Amazon Connect, and see Lex pricing and generative AI features.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Amazon Lex Tutorial (2026): Build a Chatbot + Connect Integration - TechGyan360.Com\" \/>\n<meta property=\"og:description\" content=\"Amazon Lex tutorial: build a Lex V2 chatbot step by step, add Lambda, connect it to Amazon Connect, and see Lex pricing and generative AI features.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"TechGyan360.Com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/techgyan360trainings\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-15T19:17:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-15T19:33:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techgyan360.com\/blog\/wp-content\/uploads\/2026\/11\/Amazon-Lex-Tutorial-Build-a-Chatbot-Connect-It-to-Amazon-Connect.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1376\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sonu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sonu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/\"},\"author\":{\"name\":\"Sonu\",\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/#\\\/schema\\\/person\\\/1904c1c56ff1926dea33c23d57640acc\"},\"headline\":\"Amazon Lex Tutorial: Build a Chatbot &#038; Connect It to Amazon Connect (2026)\",\"datePublished\":\"2026-11-15T19:17:35+00:00\",\"dateModified\":\"2026-11-15T19:33:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/\"},\"wordCount\":1953,\"publisher\":{\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Amazon-Lex-Tutorial-Build-a-Chatbot-Connect-It-to-Amazon-Connect.jpg\",\"articleSection\":[\"Amazon Connect Hub\",\"AWS Cloud Hub\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/\",\"url\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/\",\"name\":\"Amazon Lex Tutorial (2026): Build a Chatbot + Connect Integration - TechGyan360.Com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Amazon-Lex-Tutorial-Build-a-Chatbot-Connect-It-to-Amazon-Connect.jpg\",\"datePublished\":\"2026-11-15T19:17:35+00:00\",\"dateModified\":\"2026-11-15T19:33:35+00:00\",\"description\":\"Amazon Lex tutorial: build a Lex V2 chatbot step by step, add Lambda, connect it to Amazon Connect, and see Lex pricing and generative AI features.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/#primaryimage\",\"url\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Amazon-Lex-Tutorial-Build-a-Chatbot-Connect-It-to-Amazon-Connect.jpg\",\"contentUrl\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/Amazon-Lex-Tutorial-Build-a-Chatbot-Connect-It-to-Amazon-Connect.jpg\",\"width\":1376,\"height\":768,\"caption\":\"Amazon Lex Tutorial Build a Chatbot & Connect It to Amazon Connect\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/amazon-lex-tutorial\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/techgyan360.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Amazon Lex Tutorial: Build a Chatbot &#038; Connect It to Amazon Connect (2026)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/\",\"name\":\"TechGyan360.Com\",\"description\":\"Your 360\u00b0 Tech Learning &amp; Career Growth Hub\",\"publisher\":{\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/#organization\",\"name\":\"TechGyan360.Com\",\"url\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Gemini_Generated_Image_lkkuvilkkuvilkku.png\",\"contentUrl\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Gemini_Generated_Image_lkkuvilkkuvilkku.png\",\"width\":1408,\"height\":768,\"caption\":\"TechGyan360.Com\"},\"image\":{\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/techgyan360trainings\",\"https:\\\/\\\/www.youtube.com\\\/@techgyan360trainings\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/techgyan360\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/#\\\/schema\\\/person\\\/1904c1c56ff1926dea33c23d57640acc\",\"name\":\"Sonu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d9eed09c873acdf4595ae8aabd56ed75c615f7c4814f73a6610e893f9eaa9c1e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d9eed09c873acdf4595ae8aabd56ed75c615f7c4814f73a6610e893f9eaa9c1e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d9eed09c873acdf4595ae8aabd56ed75c615f7c4814f73a6610e893f9eaa9c1e?s=96&d=mm&r=g\",\"caption\":\"Sonu\"},\"description\":\"Sonu is a Technical Content Writer, Editor, and Manager at TechGyan360, specializing in blogs and articles. With over 8 years of experience in technical content and a broad understanding of diverse technologies, Sonu brings expertise in Cloud Computing, VoIP, Cloud Contact Centers, Web Development, and Blogging. Passionate about simplifying complex technical concepts, Sonu creates informative, engaging, and high-quality content for a wide range of audiences.\",\"sameAs\":[\"https:\\\/\\\/techgyan360.com\\\/blog\"],\"url\":\"https:\\\/\\\/techgyan360.com\\\/blog\\\/author\\\/techgyan360-in\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Amazon Lex Tutorial (2026): Build a Chatbot + Connect Integration - TechGyan360.Com","description":"Amazon Lex tutorial: build a Lex V2 chatbot step by step, add Lambda, connect it to Amazon Connect, and see Lex pricing and generative AI features.","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:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/","og_locale":"en_US","og_type":"article","og_title":"Amazon Lex Tutorial (2026): Build a Chatbot + Connect Integration - TechGyan360.Com","og_description":"Amazon Lex tutorial: build a Lex V2 chatbot step by step, add Lambda, connect it to Amazon Connect, and see Lex pricing and generative AI features.","og_url":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/","og_site_name":"TechGyan360.Com","article_publisher":"https:\/\/www.facebook.com\/techgyan360trainings","article_published_time":"2026-11-15T19:17:35+00:00","article_modified_time":"2026-11-15T19:33:35+00:00","og_image":[{"width":1376,"height":768,"url":"https:\/\/techgyan360.com\/blog\/wp-content\/uploads\/2026\/11\/Amazon-Lex-Tutorial-Build-a-Chatbot-Connect-It-to-Amazon-Connect.jpg","type":"image\/jpeg"}],"author":"Sonu","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sonu","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#article","isPartOf":{"@id":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/"},"author":{"name":"Sonu","@id":"https:\/\/techgyan360.com\/blog\/#\/schema\/person\/1904c1c56ff1926dea33c23d57640acc"},"headline":"Amazon Lex Tutorial: Build a Chatbot &#038; Connect It to Amazon Connect (2026)","datePublished":"2026-11-15T19:17:35+00:00","dateModified":"2026-11-15T19:33:35+00:00","mainEntityOfPage":{"@id":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/"},"wordCount":1953,"publisher":{"@id":"https:\/\/techgyan360.com\/blog\/#organization"},"image":{"@id":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/techgyan360.com\/blog\/wp-content\/uploads\/2026\/11\/Amazon-Lex-Tutorial-Build-a-Chatbot-Connect-It-to-Amazon-Connect.jpg","articleSection":["Amazon Connect Hub","AWS Cloud Hub"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/","url":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/","name":"Amazon Lex Tutorial (2026): Build a Chatbot + Connect Integration - TechGyan360.Com","isPartOf":{"@id":"https:\/\/techgyan360.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/techgyan360.com\/blog\/wp-content\/uploads\/2026\/11\/Amazon-Lex-Tutorial-Build-a-Chatbot-Connect-It-to-Amazon-Connect.jpg","datePublished":"2026-11-15T19:17:35+00:00","dateModified":"2026-11-15T19:33:35+00:00","description":"Amazon Lex tutorial: build a Lex V2 chatbot step by step, add Lambda, connect it to Amazon Connect, and see Lex pricing and generative AI features.","breadcrumb":{"@id":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#primaryimage","url":"https:\/\/techgyan360.com\/blog\/wp-content\/uploads\/2026\/11\/Amazon-Lex-Tutorial-Build-a-Chatbot-Connect-It-to-Amazon-Connect.jpg","contentUrl":"https:\/\/techgyan360.com\/blog\/wp-content\/uploads\/2026\/11\/Amazon-Lex-Tutorial-Build-a-Chatbot-Connect-It-to-Amazon-Connect.jpg","width":1376,"height":768,"caption":"Amazon Lex Tutorial Build a Chatbot & Connect It to Amazon Connect"},{"@type":"BreadcrumbList","@id":"https:\/\/techgyan360.com\/blog\/amazon-lex-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techgyan360.com\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/techgyan360.com\/blog\/"},{"@type":"ListItem","position":3,"name":"Amazon Lex Tutorial: Build a Chatbot &#038; Connect It to Amazon Connect (2026)"}]},{"@type":"WebSite","@id":"https:\/\/techgyan360.com\/blog\/#website","url":"https:\/\/techgyan360.com\/blog\/","name":"TechGyan360.Com","description":"Your 360\u00b0 Tech Learning &amp; Career Growth Hub","publisher":{"@id":"https:\/\/techgyan360.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techgyan360.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techgyan360.com\/blog\/#organization","name":"TechGyan360.Com","url":"https:\/\/techgyan360.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techgyan360.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/techgyan360.com\/blog\/wp-content\/uploads\/2026\/05\/Gemini_Generated_Image_lkkuvilkkuvilkku.png","contentUrl":"https:\/\/techgyan360.com\/blog\/wp-content\/uploads\/2026\/05\/Gemini_Generated_Image_lkkuvilkkuvilkku.png","width":1408,"height":768,"caption":"TechGyan360.Com"},"image":{"@id":"https:\/\/techgyan360.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/techgyan360trainings","https:\/\/www.youtube.com\/@techgyan360trainings","https:\/\/www.linkedin.com\/company\/techgyan360\/"]},{"@type":"Person","@id":"https:\/\/techgyan360.com\/blog\/#\/schema\/person\/1904c1c56ff1926dea33c23d57640acc","name":"Sonu","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d9eed09c873acdf4595ae8aabd56ed75c615f7c4814f73a6610e893f9eaa9c1e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d9eed09c873acdf4595ae8aabd56ed75c615f7c4814f73a6610e893f9eaa9c1e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d9eed09c873acdf4595ae8aabd56ed75c615f7c4814f73a6610e893f9eaa9c1e?s=96&d=mm&r=g","caption":"Sonu"},"description":"Sonu is a Technical Content Writer, Editor, and Manager at TechGyan360, specializing in blogs and articles. With over 8 years of experience in technical content and a broad understanding of diverse technologies, Sonu brings expertise in Cloud Computing, VoIP, Cloud Contact Centers, Web Development, and Blogging. Passionate about simplifying complex technical concepts, Sonu creates informative, engaging, and high-quality content for a wide range of audiences.","sameAs":["https:\/\/techgyan360.com\/blog"],"url":"https:\/\/techgyan360.com\/blog\/author\/techgyan360-in\/"}]}},"_links":{"self":[{"href":"https:\/\/techgyan360.com\/blog\/wp-json\/wp\/v2\/posts\/1064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techgyan360.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techgyan360.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techgyan360.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techgyan360.com\/blog\/wp-json\/wp\/v2\/comments?post=1064"}],"version-history":[{"count":2,"href":"https:\/\/techgyan360.com\/blog\/wp-json\/wp\/v2\/posts\/1064\/revisions"}],"predecessor-version":[{"id":1072,"href":"https:\/\/techgyan360.com\/blog\/wp-json\/wp\/v2\/posts\/1064\/revisions\/1072"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techgyan360.com\/blog\/wp-json\/wp\/v2\/media\/1065"}],"wp:attachment":[{"href":"https:\/\/techgyan360.com\/blog\/wp-json\/wp\/v2\/media?parent=1064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techgyan360.com\/blog\/wp-json\/wp\/v2\/categories?post=1064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techgyan360.com\/blog\/wp-json\/wp\/v2\/tags?post=1064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}