ConnectParticipantWithLexBot - Amazon Connect

ConnectParticipantWithLexBot

Connects the participant with the specified Amazon Lex bot. When the interaction is over, the Intent and Slots of the bot are available to the flow during its run.

Parameter object

Provide either LexBot or LexV2Bot object depending on the Amazon Lex version in thr following format.

Amazon Lex
{ "PromptId": [Optional] A prompt ID or prompt ARN to play to the participant along with gathering input. May not be specified if Text or SSML is also specified. Must be specified either statically or as a single valid JSONPath identifier. "Text": An optional string that defines text to send to the participant along with gathering input. May not be specified if PromptId or SSML is also specified. May be specified statically or dynamically. "SSML": An optional string that defines SSML to send to the participant along with gathering input. May not be specified if Text or PromptId is also specified May be specified statically or dynamically. "LexV2Bot": { The details of the LexV2 bot to invoke "AliasArn": The alias ARN of the LexV2 bot to invoke. May be specified statically or dynamically. }, "LexSessionAttributes: { A map of session attributes to pass to the Amazon LexV2 bot when it is invoked. The keys and values may be static or dynamic. } }
Amazon Lex (Classic)
{ "PromptId": [Optional] A prompt ID or prompt ARN to play to the participant along with gathering input. May not be specified if Text or SSML is also specified. Must be specified either statically or as a single valid JSONPath identifier. "Text": An optional string that defines text to send to the participant along with gathering input. May not be specified if PromptId or SSML is also specified. May be specified statically or dynamically. "SSML": An optional string that defines SSML to send to the participant along with gathering input. May not be specified if Text or PromptId is also specified May be specified statically or dynamically. "LexBot": { The details of the Lex bot to invoke "Name": The name of the Lex bot. May be specified statically or dynamically. "Region": The region in which this Lex bot exists. May be specified statically or dynamically. "Alias": The specific alias of the Lex bot to invoke. May be specified statically or dynamically. }, "LexSessionAttributes: { A map of session attributes to pass to the Amazon Lex bot when it is invoked. The keys and values may be static or dynamic. } }

Results and conditions

If the Amazon Lex interaction succeeds, the result is the Intent of the bot. Conditions are supported, but only the Equals operator is supported within these conditions.

Errors

  • NoMatchingCondition - If no specified condition evaluated to True.

  • NoMatchingError - If an error occurred and no other error matched.

Restrictions

This action is supported by all channels.

This action is available only in contact flows, transfer flows, and customer queue flows. It is not available in whisper flows or hold flows.

Corresponding block in the UI

Get customer input