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.

FieldTypeRequiredDefaultConstraintsExample
region
AWS region (overrides the connection).
stringNo———
bot_id
The identifier of the bot that contains the session data.
stringYes———
bot_alias_id
The alias identifier in use for the bot that contains the session data.
stringYes———
locale_id
The locale where the session is in use.
stringYes———
session_id
The identifier of the session to return.
stringYes———
request
Extra request members as JSON; GetSession is addressed by the four ids above and needs no body.
objectNo———

Output

One shape.

result

FieldTypeExample
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.