View source: R/lexruntimev2_operations.R
lexruntimev2_put_session | R Documentation |
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.
lexruntimev2_put_session(
botId,
botAliasId,
localeId,
sessionId,
messages = NULL,
sessionState,
requestAttributes = NULL,
responseContentType = NULL
)
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 |
responseContentType |
The message that Amazon Lex V2 returns in the response can be either text or speech depending on the value of this parameter.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.