lexruntimev2_start_conversation: Starts an HTTP/2 bidirectional event stream that enables you...

View source: R/lexruntimev2_operations.R

lexruntimev2_start_conversationR Documentation

Starts an HTTP/2 bidirectional event stream that enables you to send audio, text, or DTMF input in real time

Description

Starts an HTTP/2 bidirectional event stream that enables you to send audio, text, or DTMF input in real time. After your application starts a conversation, users send input to Amazon Lex V2 as a stream of events. Amazon Lex V2 processes the incoming events and responds with streaming text or audio events.

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

Usage

lexruntimev2_start_conversation(
  botId,
  botAliasId,
  localeId,
  sessionId,
  conversationMode = NULL,
  requestEventStream
)

Arguments

botId

[required] The identifier of the bot to process the request.

botAliasId

[required] The alias identifier in use for the bot that processes the request.

localeId

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

sessionId

[required] The identifier of the user session that is having the conversation.

conversationMode

The conversation type that you are using the Amazon Lex V2. If the conversation mode is AUDIO you can send both audio and DTMF information. If the mode is TEXT you can only send text.

requestEventStream

[required] Represents the stream of events to Amazon Lex V2 from your application. The events are encoded as HTTP/2 data frames.


paws.machine.learning documentation built on April 3, 2025, 8:41 p.m.