

There are more AWS SDK examples available in the [AWS Doc SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples) GitHub repo.

# Code examples for Amazon Lex using AWS SDKs
<a name="lex_code_examples"></a>

The following code examples show you how to use Amazon Lex with an AWS software development kit (SDK).

*Scenarios* are code examples that show you how to accomplish specific tasks by calling multiple functions within a service or combined with other AWS services.

**More resources**
+  **[ Amazon Lex Developer Guide](https://docs.aws.amazon.com/lexv2/latest/dg/what-is.html)** – More information about Amazon Lex.
+ **[Amazon Lex API Reference](https://docs.aws.amazon.com/lexv2/latest/APIReference/welcome.html)** – Details about all available Amazon Lex actions.
+ **[AWS Developer Center](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23lex)** – Code examples that you can filter by category or full-text search.
+ **[AWS SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples)** – GitHub repo with complete code in preferred languages. Includes instructions for setting up and running the code.

**Contents**
+ [Scenarios](lex_code_examples_scenarios.md)
  + [Building an Amazon Lex chatbot](lex_example_cross_LexChatbotLanguages_section.md)

# Scenarios for Amazon Lex using AWS SDKs
<a name="lex_code_examples_scenarios"></a>

The following code examples show you how to implement common scenarios in Amazon Lex with AWS SDKs. These scenarios show you how to accomplish specific tasks by calling multiple functions within Amazon Lex or combined with other AWS services. Each scenario includes a link to the complete source code, where you can find instructions on how to set up and run the code. 

Scenarios target an intermediate level of experience to help you understand service actions in context.

**Topics**
+ [Building an Amazon Lex chatbot](lex_example_cross_LexChatbotLanguages_section.md)

# Create an Amazon Lex chatbot to engage your website visitors
<a name="lex_example_cross_LexChatbotLanguages_section"></a>

The following code examples show how to create a chatbot to engage your website visitors.

------
#### [ Java ]

**SDK for Java 2.x**  
 Shows how to use the Amazon Lex API to create a Chatbot within a web application to engage your web site visitors.   
 For complete source code and instructions on how to set up and run, see the full example on [GitHub](https://github.com/awsdocs/aws-doc-sdk-examples/tree/main/javav2/usecases/creating_lex_chatbot).   

**Services used in this example**
+ Amazon Comprehend
+ Amazon Lex
+ Amazon Translate

------
#### [ JavaScript ]

**SDK for JavaScript (v3)**  
 Shows how to use the Amazon Lex API to create a Chatbot within a web application to engage your web site visitors.   
 For complete source code and instructions on how to set up and run, see the full example [Building an Amazon Lex chatbot](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/lex-bot-example.html) in the AWS SDK for JavaScript developer guide.   

**Services used in this example**
+ Amazon Comprehend
+ Amazon Lex
+ Amazon Translate

------