lexruntimev2_put_session: Creates a new session or modifies an existing session with an...

View source: R/lexruntimev2_operations.R

lexruntimev2_put_sessionR Documentation

Creates a new session or modifies an existing session with an Amazon Lex V2 bot

Description

Creates a new session or modifies an existing session with an Amazon Lex V2 bot. Use this operation to enable your application to set the state of the bot.

See https://www.paws-r-sdk.com/docs/lexruntimev2_put_session/ for full documentation.

Usage

lexruntimev2_put_session(
  botId,
  botAliasId,
  localeId,
  sessionId,
  messages = NULL,
  sessionState,
  requestAttributes = NULL,
  responseContentType = NULL
)

Arguments

botId

[required] The identifier of the bot that receives the session data.

botAliasId

[required] The alias identifier of the bot that receives the session data.

localeId

[required] The locale where the session is in use.

sessionId

[required] The identifier of the session that receives the session data.

messages

A list of messages to send to the user. Messages are sent in the order that they are defined in the list.

sessionState

[required] Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation with the user.

requestAttributes

Request-specific information passed between Amazon Lex V2 and the client application.

The namespace ⁠x-amz-lex:⁠ is reserved for special attributes. Don't create any request attributes with the prefix ⁠x-amz-lex:⁠.

responseContentType

The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of this parameter.

  • If the value is ⁠text/plain; charset=utf-8⁠, Amazon Lex V2 returns text in the response.


paws.machine.learning documentation built on Sept. 12, 2024, 6:23 a.m.