Intent
Source:
src/AWS/LexV2/Intent.ts
An intent on the DRAFT locale of an Amazon Lex V2 bot — an action the user wants to perform, recognized from sample utterances.
Creating Intents
Section titled “Creating Intents”Intent with Sample Utterances
import * as AWS from "alchemy/AWS";
const greet = yield* AWS.LexV2.Intent("Greet", { botId: locale.botId, localeId: locale.localeId, sampleUtterances: ["hello", "hi", "good morning"],});Built-in Parent Intent
const help = yield* AWS.LexV2.Intent("Help", { botId: locale.botId, localeId: locale.localeId, parentIntentSignature: "AMAZON.HelpIntent",});