LexModelsV2 / Client / generate_bot_element

generate_bot_element#

LexModelsV2.Client.generate_bot_element(**kwargs)#

Generates sample utterances for an intent.

See also: AWS API Documentation

Request Syntax

response = client.generate_bot_element(
    intentId='string',
    botId='string',
    botVersion='string',
    localeId='string'
)
Parameters:
  • intentId (string) –

    [REQUIRED]

    The intent unique Id for the bot request to generate utterances.

  • botId (string) –

    [REQUIRED]

    The bot unique Id for the bot request to generate utterances.

  • botVersion (string) –

    [REQUIRED]

    The bot version for the bot request to generate utterances.

  • localeId (string) –

    [REQUIRED]

    The unique locale Id for the bot request to generate utterances.

Return type:

dict

Returns:

Response Syntax

{
    'botId': 'string',
    'botVersion': 'string',
    'localeId': 'string',
    'intentId': 'string',
    'sampleUtterances': [
        {
            'utterance': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • botId (string) –

      The unique bot Id for the bot which received the response.

    • botVersion (string) –

      The unique bot version for the bot which received the response.

    • localeId (string) –

      The unique locale Id for the bot which received the response.

    • intentId (string) –

      The unique intent Id for the bot which received the response.

    • sampleUtterances (list) –

      The sample utterances for the bot which received the response.

      • (dict) –

        A sample utterance that invokes an intent or respond to a slot elicitation prompt.

        • utterance (string) –

          The sample utterance that Amazon Lex uses to build its machine-learning model to recognize intents.

Exceptions