generate_bot_element
¶
generate_bot_element(
intent_id: Id,
bot_id: Id,
bot_version: BotVersion,
locale_id: LocaleId,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = None,
) -> GenerateBotElementResponse
Generates sample utterances for an intent.
Parameters:
-
intent_id(Id) –The intent unique Id for the bot request to generate utterances.
-
bot_id(Id) –The bot unique Id for the bot request to generate utterances.
-
bot_version(BotVersion) –The bot version for the bot request to generate utterances.
-
locale_id(LocaleId) –The unique locale Id for the bot request to generate utterances.
Raises:
-
ConflictException–The action that you tried to perform couldn't be completed because the resource is in a conflicting state. For example, deleting a bot that is in the CREATING state. Try your request again.
-
InternalServerException–The service encountered an unexpected condition. Try your request again.
-
PreconditionFailedException–Your request couldn't be completed because one or more request fields aren't valid. Check the fields in your request and try again.
-
ResourceNotFoundException–You asked to describe a resource that doesn't exist. Check the resource that you are requesting and try again.
-
ServiceQuotaExceededException–You have reached a quota for your bot.
-
ThrottlingException–Your request rate is too high. Reduce the frequency of requests.
-
ValidationException–One of the input parameters in your request isn't valid. Check the parameters and try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.