LexModelsV2 / Client / start_bot_resource_generation

start_bot_resource_generation#

LexModelsV2.Client.start_bot_resource_generation(**kwargs)#

Starts a request for the descriptive bot builder to generate a bot locale configuration based on the prompt you provide it. After you make this call, use the DescribeBotResourceGeneration operation to check on the status of the generation and for the generatedBotLocaleUrl when the generation is complete. Use that value to retrieve the Amazon S3 object containing the bot locale configuration. You can then modify and import this configuration.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The prompt to generate intents and slot types for the bot locale. Your description should be both detailed and precise to help generate appropriate and sufficient intents for your bot. Include a list of actions to improve the intent creation process.

  • botId (string) –

    [REQUIRED]

    The unique identifier of the bot for which to generate intents and slot types.

  • botVersion (string) –

    [REQUIRED]

    The version of the bot for which to generate intents and slot types.

  • localeId (string) –

    [REQUIRED]

    The locale of the bot for which to generate intents and slot types.

Return type:

dict

Returns:

Response Syntax

{
    'generationInputPrompt': 'string',
    'generationId': 'string',
    'botId': 'string',
    'botVersion': 'string',
    'localeId': 'string',
    'generationStatus': 'Failed'|'Complete'|'InProgress',
    'creationDateTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • generationInputPrompt (string) –

      The prompt that was used generate intents and slot types for the bot locale.

    • generationId (string) –

      The unique identifier of the generation request.

    • botId (string) –

      The unique identifier of the bot for which the generation request was made.

    • botVersion (string) –

      The version of the bot for which the generation request was made.

    • localeId (string) –

      The locale of the bot for which the generation request was made.

    • generationStatus (string) –

      The status of the generation request.

    • creationDateTime (datetime) –

      The date and time at which the generation request was made.

Exceptions