Skip to content

GetSession

Source: src/AWS/LexV2/GetSession.ts

Runtime binding for lex:GetSession — read the session state (active intent, slots, session attributes, interpretations) of a conversation with an Amazon Lex V2 bot alias.

// init
const getSession = yield* AWS.LexV2.GetSession(alias);
// runtime
const session = yield* getSession({
localeId: "en_US",
sessionId: "user-123",
});
const intent = session.sessionState?.intent?.name;