Get Session
lex_runtime.get_session
ActionAmazon Web Servicesconnection required
Calls the AWS lex_runtime API (SigV4).
Returns session information for a specified bot, alias, and user ID.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Amazon Lex Runtime Service
- Secret shape
- {"access_key_id", "secret_access_key"}
- Config it needs
- region
- Resolved by
- config.connection_id, else node.connection_id
Configuration
4 fields, 3 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_name The name of the bot that contains the session data. | string | Yes | — | — | — |
bot_alias The alias in use for the bot that contains the session data. | string | Yes | — | — | — |
user_id The ID of the client application user. Amazon Lex uses this to identify a user's conversat | string | Yes | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
recentIntentSummaryView | array | — |
sessionAttributes | object | — |
sessionId | string | — |
dialogAction | object | — |
{
"dialogAction": {},
"recentIntentSummaryView": [],
"sessionAttributes": {},
"sessionId": ""
}Related Amazon Lex Runtime Service nodes
See Get Session run in a workflow.
In a technical demo we add the Amazon Lex Runtime Service connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.