Skip to content

PutSession

Source: src/AWS/LexV2/PutSession.ts

Runtime binding for lex:PutSession — create or overwrite the session state of a conversation with an Amazon Lex V2 bot alias, letting your application steer the dialog (e.g. pre-fill slots or elicit a specific intent).

// init
const putSession = yield* AWS.LexV2.PutSession(alias);
// runtime
yield* putSession({
localeId: "en_US",
sessionId: "user-123",
sessionState: {
intent: { name: "OrderPizza", slots: {} },
dialogAction: { type: "ElicitSlot", slotToElicit: "Size" },
},
});