

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

# 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

------