Skip to content

BotLocale

Source: src/AWS/LexV2/BotLocale.ts

A language/locale on the DRAFT version of an Amazon Lex V2 bot. Intents and slot types live under a locale; a locale must exist before either can be created.

US English Locale

import * as AWS from "alchemy/AWS";
const locale = yield* AWS.LexV2.BotLocale("En", {
botId: bot.botId,
localeId: "en_US",
});

Locale with Voice and Threshold

const locale = yield* AWS.LexV2.BotLocale("En", {
botId: bot.botId,
localeId: "en_US",
nluIntentConfidenceThreshold: 0.7,
voiceSettings: { voiceId: "Ivy", engine: "neural" },
});