Get Session
lexv2_runtime.get_session
ActionAmazon Web Servicesconnection required
Calls the AWS lexv2_runtime API (SigV4).
Returns session information for a specified bot, alias, and user.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Amazon Lex Runtime V2
- Secret shape
- {"access_key_id", "secret_access_key"}
- Config it needs
- region
- Resolved by
- config.connection_id, else node.connection_id
Configuration
6 fields, 4 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
region AWS region (overrides the connection). | string | No | — | — | — |
bot_id The identifier of the bot that contains the session data. | string | Yes | — | — | — |
bot_alias_id The alias identifier in use for the bot that contains the session data. | string | Yes | — | — | — |
locale_id The locale where the session is in use. | string | Yes | — | — | — |
session_id The identifier of the session to return. | string | Yes | — | — | — |
request Extra request members as JSON; GetSession is addressed by the four ids above and needs no body. | object | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
sessionId | string | — |
messages | array | — |
interpretations | array | — |
sessionState | object | — |
{
"interpretations": [],
"messages": [],
"sessionId": "",
"sessionState": {}
}Related Amazon Lex Runtime V2 nodes
See Get Session run in a workflow.
In a technical demo we add the Amazon Lex Runtime V2 connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.