Explanation
In Amazon Lex, an Intent is the component that identifies what the user wants to do or accomplish. It represents the purpose or goal behind a user's input.
Key points about Intents:
- Intents define the action the user wants to perform (e.g., 'book an appointment', 'check order status', 'make a reservation')
- Each intent contains:
- Utterances: Sample phrases users might say to invoke the intent
- Slots: Required information to fulfill the intent (e.g., date, time, location)
- Fulfillment: The action taken when the intent is complete
Other components explained:
- Slots: These are the specific pieces of information needed to fulfill an intent (like parameters)
- Utterances: These are sample phrases or expressions users might say to trigger an intent
- Fulfillment: This is the action taken when all required information (slots) is collected
Example:
For a 'BookAppointment' intent:
- Intent: Book an appointment
- Utterances: 'I want to book an appointment', 'Schedule a meeting', 'Make an appointment'
- Slots: Date, Time, ServiceType, DoctorName
- Fulfillment: Call Lambda function to create appointment in database
Therefore, the component that identifies what the user wants to do is the Intent.