Creating Lex bot and custom type

Creating the bot

  1. Go to Lex bot console manager
  • Click on Create bot from template Connect
  1. in amazon lex click on bot lex1
  2. click on create bot lex2
  3. in configure bot setting :
  • In Creation method click Create a blank bot
  • In bot configuration set bot name as EmployeesBot lex4
  • In IAM role choose to create a role with basic permission
  • Click no for Children’s Online Privacy Protection Act (COPPA)
  • Click next lex5
  1. Add languages to lex bot
  • In languages choose english
  • In Voice interaction choose None this is only a text bases application

lex6

Creating a custom Slot types

In Amazon Lex, custom slot types are like labels for specific types of information that your bot needs to understand. They help your bot recognize and grab important details from what users say, like dates, names, or places. This makes your bot smarter at understanding and responding accurately.

  1. In the intend section tab click on Slot types lex7
  2. click the Add slot type
  3. click Add a blank slot type lex7
  4. In Add blank slot type :
  • Add the slot type name as Jobs
  • click next lex7
  1. now configure the Jobs slot types :
  • click Restrict to slot values
  • add sotfware engineer as a value
  • then click add lex7
  • add the value data engineer
  • add the value data analysis
  • then click Save Slot Type lex7

now let move on to create the lex bot configuration