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.
Managing Sessions
Section titled “Managing Sessions”// initconst getSession = yield* AWS.LexV2.GetSession(alias);
// runtimeconst session = yield* getSession({ localeId: "en_US", sessionId: "user-123",});const intent = session.sessionState?.intent?.name;