Amazon Lex Bots API

Lex bot management

GitHub OpenAPI
Business capability
Artificial Intelligence Management BC-610.60

Operations 89

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

PUT /bots Create a bot with name, role and privacy settings · Create Bot #
Ask an LLM
“How do I create a new Lex bot with an IAM role and an idle session timeout?”
“What do I have to set for data privacy when I create a bot?”
Tell an agent
Create a bot named {botName} using IAM role {roleArn} with a {idleSessionTTLInSeconds}-second idle session timeout and privacy setting {dataPrivacy}.
Create a bot network called {botName} with member bots {botMembers}, using role {roleArn}, privacy {dataPrivacy} and a {idleSessionTTLInSeconds}s timeout.
POST /bots Create a bot via the POST /bots endpoint · List Bots #
Ask an LLM
“Is there a POST /bots variant for creating a Lex bot with no request fields?”
“What does the bare POST create-bot call on /bots do?”
Tell an agent
Call the POST /bots create-bot endpoint to make a new bot.
Use the parameterless POST variant of create bot.
GET /bots List my conversational bots · Get Bots #
Ask an LLM
“Which Lex bots do I have in this account?”
“Can I see every conversational bot I've built in Amazon Lex?”
Tell an agent
List all of my Lex bots.
Show me every conversational bot available in this account.
DELETE /bots/{botId} Delete a bot and all its versions · Delete Bot #
Ask an LLM
“How do I delete a Lex bot entirely, including its Draft version?”
“Does deleting a bot remove every version of it?”
Tell an agent destructive · confirm first
Delete bot {botId} and all of its versions.
Permanently remove the whole bot {botId}, Draft included.
GET /bots/{botId} Get a bot's details · Describe Bot #
Ask an LLM
“What's the configuration and status of one of my bots?”
“Can I look up the role and idle timeout set on a particular bot?”
Tell an agent
Describe bot {botId}.
Show me the metadata for bot {botId}.
PUT /bots/{botId} Update a bot's configuration · Update Bot #
Ask an LLM
“How do I change the configuration of a bot that already exists?”
“Can I edit an existing bot's settings after creating it?”
Tell an agent
Update the configuration of bot {botId}.
Apply new settings to my existing bot {botId}.
DELETE /bots/{name} Delete Bot #
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchcreate Add custom vocabulary items in bulk · Batch Create Custom Vocabulary Item #
Ask an LLM
“How do I teach my bot product names and jargon it keeps mishearing?”
“Can I add many custom vocabulary phrases to a locale in one call?”
Tell an agent
Add vocabulary items {customVocabularyItemList} to locale {localeId} of bot {botId} version {botVersion}.
Create these custom vocabulary entries for bot {botId} ({botVersion}, {localeId}): {customVocabularyItemList}.
POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchdelete Delete custom vocabulary items in bulk · Batch Delete Custom Vocabulary Item #
Ask an LLM
“Can I remove several specific words from my bot's custom vocabulary at once?”
“How do I delete selected custom vocabulary items without dropping the whole vocabulary?”
Tell an agent destructive · confirm first
Delete vocabulary items {customVocabularyItemList} from locale {localeId} of bot {botId} version {botVersion}.
Remove these custom vocabulary entries from bot {botId} ({botVersion}, {localeId}): {customVocabularyItemList}.
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/batchupdate Update custom vocabulary items in bulk · Batch Update Custom Vocabulary Item #
Ask an LLM
“How do I change the weight or display form of existing custom vocabulary items?”
“Can I edit several vocabulary entries already in a locale in one request?”
Tell an agent
Update vocabulary items {customVocabularyItemList} in locale {localeId} of bot {botId} version {botVersion}.
Modify these existing custom vocabulary entries on bot {botId} ({botVersion}, {localeId}): {customVocabularyItemList}.
DELETE /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary Remove a locale's custom vocabulary · Delete Custom Vocabulary #
Ask an LLM
“How do I delete the entire custom vocabulary from a bot locale?”
“Can I drop all custom vocabulary for one language of my bot at once?”
Tell an agent destructive · confirm first
Delete the custom vocabulary from locale {localeId} of bot {botId} version {botVersion}.
Remove the whole custom vocabulary on bot {botId} ({botVersion}) for {localeId}.
GET /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/metadata Get custom vocabulary metadata · Describe Custom Vocabulary Metadata #
Ask an LLM
“What's the status of the custom vocabulary on my bot locale?”
“When was a locale's custom vocabulary created or last updated?”
Tell an agent
Describe the custom vocabulary metadata for locale {localeId} of bot {botId} version {botVersion}.
Show the vocabulary status for bot {botId} ({botVersion}) in {localeId}.
POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/list List a locale's custom vocabulary items · List Custom Vocabulary Items #
Ask an LLM
“What words are in my bot locale's custom vocabulary right now?”
“Can I page through all the custom vocabulary items for a language?”
Tell an agent
List custom vocabulary items for locale {localeId} of bot {botId} version {botVersion}.
Show the first {maxResults} vocabulary entries on bot {botId} ({botVersion}, {localeId}).
POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId} Build a bot for a locale · Build Bot Locale #
Ask an LLM
“How do I build my bot's intents and slot types so a locale is ready to test?”
“Do I need to rebuild a locale after changing its intents?”
Tell an agent
Build locale {localeId} of bot {botId} version {botVersion}.
Compile bot {botId} version {botVersion} into the {localeId} locale.
DELETE /bots/{botId}/botversions/{botVersion}/botlocales/{localeId} Remove a locale from a bot · Delete Bot Locale #
Ask an LLM
“How do I remove a language from my bot?”
“Does deleting a locale also delete its intents and slot types?”
Tell an agent destructive · confirm first
Delete locale {localeId} from bot {botId} version {botVersion}.
Remove the {localeId} language and everything in it from bot {botId}, version {botVersion}.
GET /bots/{botId}/botversions/{botVersion}/botlocales/{localeId} Get a bot locale's settings · Describe Bot Locale #
Ask an LLM
“What confidence threshold and voice are configured for one of my bot's locales?”
“Has a particular bot locale been built yet?”
Tell an agent
Describe locale {localeId} of bot {botId} version {botVersion}.
Show the build status and settings for {localeId} on bot {botId}, version {botVersion}.
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId} Change a bot locale's settings · Update Bot Locale #
Ask an LLM
“How do I raise the intent confidence threshold on an existing locale?”
“Can I change the voice or speech detection sensitivity for a locale I already added?”
Tell an agent
Set the confidence threshold for locale {localeId} of bot {botId} version {botVersion} to {nluIntentConfidenceThreshold}.
Update locale {localeId} on bot {botId} version {botVersion}: threshold {nluIntentConfidenceThreshold}, speech sensitivity {speechDetectionSensitivity}.
PUT /bots/{botId}/botversions/{botVersion}/botlocales Add a language locale to a bot · Create Bot Locale #
Ask an LLM
“How do I add Spanish or another language to my bot?”
“What confidence threshold must I set when adding a locale?”
Tell an agent
Add locale {localeId} to bot {botId} version {botVersion} with an intent confidence threshold of {nluIntentConfidenceThreshold}.
Create locale {localeId} on bot {botId} version {botVersion} with threshold {nluIntentConfidenceThreshold} and voice {voiceSettings}.
POST /bots/{botId}/botversions/{botVersion}/botlocales List the locales in a bot version · List Bot Locales #
Ask an LLM
“Which languages does my bot support?”
“Can I list the locales configured on a given bot version?”
Tell an agent
List the locales in bot {botId} version {botVersion}.
Show which languages bot {botId} version {botVersion} has, filtered by {filters}.
PUT /bots/{botId}/botaliases Create an alias pointing to a bot version · Create Bot Alias #
Ask an LLM
“How do I create a production alias so apps don't need to change when I ship a new bot version?”
“Can a new alias turn on conversation logs and sentiment analysis?”
Tell an agent
Create alias {botAliasName} on bot {botId} pointing to version {botVersion}.
Add a new alias named {botAliasName} to bot {botId}.
POST /bots/{botId}/botaliases List a bot's aliases · List Bot Aliases #
Ask an LLM
“What aliases exist for my bot?”
“Which aliases have I set up on a particular bot?”
Tell an agent
List the aliases for bot {botId}.
Show up to {maxResults} aliases of bot {botId}.
DELETE /bots/{botId}/botaliases/{botAliasId} Delete a bot alias · Delete Bot Alias #
Ask an LLM
“How do I remove an alias from my bot?”
“Can I delete an alias even if it's still in use by something?”
Tell an agent destructive · confirm first
Delete alias {botAliasId} from bot {botId}.
Delete alias {botAliasId} of bot {botId}, skipping the in-use check ({skipResourceInUseCheck}).
GET /bots/{botId}/botaliases/{botAliasId} Get details of a bot alias · Describe Bot Alias #
Ask an LLM
“Which bot version is a specific alias currently pointing to?”
“Can I check the log and sentiment settings on one alias?”
Tell an agent
Describe alias {botAliasId} of bot {botId}.
Show the configuration of bot alias {botAliasId} on bot {botId}.
PUT /bots/{botId}/botaliases/{botAliasId} Repoint or reconfigure a bot alias · Update Bot Alias #
Ask an LLM
“How do I switch an existing alias to a newer bot version?”
“Can I change conversation log settings on an alias I already have?”
Tell an agent
Point alias {botAliasId} ({botAliasName}) of bot {botId} at version {botVersion}.
Rename alias {botAliasId} on bot {botId} to {botAliasName}.
POST /bots/{botId}/replicas/{replicaRegion}/botaliases List replicated aliases in a region · List Bot Alias Replicas #
Ask an LLM
“Which of my bot's aliases have been replicated to a secondary region?”
“Can I check alias replication status in the replica region?”
Tell an agent
List replicated aliases for bot {botId} in {replicaRegion}.
Show alias replicas of bot {botId} in region {replicaRegion}.
PUT /bots/{botId}/replicas Replicate a bot to a secondary region · Create Bot Replica #
Ask an LLM
“How do I replicate my bot into another AWS region for resiliency?”
“Can I set up a copy of a bot in a secondary region?”
Tell an agent
Replicate bot {botId} to region {replicaRegion}.
Create a replica of bot {botId} in {replicaRegion} for Global Resiliency.
POST /bots/{botId}/replicas List a bot's regional replicas · List Bot Replicas #
Ask an LLM
“Which regions has my bot been replicated to?”
“Can I see all the replicas of a source bot?”
Tell an agent
List the replicas of bot {botId}.
Show every region where bot {botId} is replicated.
DELETE /bots/{botId}/replicas/{replicaRegion} Delete a bot's replica in a region · Delete Bot Replica #
Ask an LLM
“How do I stop replicating my bot to a secondary region and remove the copy?”
“Can I delete the replicated bot in one region only?”
Tell an agent destructive · confirm first
Delete the replica of bot {botId} in {replicaRegion}.
Remove bot {botId}'s replicated copy from region {replicaRegion}.
GET /bots/{botId}/replicas/{replicaRegion} Check a bot replica's status · Describe Bot Replica #
Ask an LLM
“Is my bot's replication to a secondary region complete?”
“What's the replication status of a bot in one particular region?”
Tell an agent
Describe the replica of bot {botId} in {replicaRegion}.
Check replication status for bot {botId} in region {replicaRegion}.
PUT /bots/{botId}/botversions Publish an immutable bot version · Create Bot Version #
Ask an LLM
“How do I snapshot my Draft bot into a numbered, immutable version?”
“Are deleted bot version numbers ever reused?”
Tell an agent
Create a new version of bot {botId} from locales {botVersionLocaleSpecification}.
Publish a numbered version of bot {botId} described as {description} using {botVersionLocaleSpecification}.
POST /bots/{botId}/botversions List a bot's versions · List Bot Versions #
Ask an LLM
“What numbered versions of my bot exist?”
“Can I sort the list of a bot's versions?”
Tell an agent
List all versions of bot {botId}.
Show the versions of bot {botId} sorted by {sortBy}.
DELETE /bots/{botId}/botversions/{botVersion} Delete one version of a bot · Delete Bot Version #
Ask an LLM
“How do I delete just one old version of a bot without removing the bot?”
“Can I force-delete a bot version that an alias still uses?”
Tell an agent destructive · confirm first
Delete version {botVersion} of bot {botId}.
Remove bot {botId} version {botVersion} with skipResourceInUseCheck set to {skipResourceInUseCheck}.
GET /bots/{botId}/botversions/{botVersion} Get details of one bot version · Describe Bot Version #
Ask an LLM
“What's the status and metadata of a specific version of my bot?”
“Can I inspect one numbered bot version on its own?”
Tell an agent
Describe version {botVersion} of bot {botId}.
Show metadata for bot {botId} at version {botVersion}.
POST /bots/{botId}/replicas/{replicaRegion}/botversions List replicated bot versions in a region · List Bot Version Replicas #
Ask an LLM
“Which versions of my bot have replicated to the secondary region?”
“What's the replication status of each bot version for Global Resiliency?”
Tell an agent
List replicated versions of bot {botId} in {replicaRegion}.
Show version replication statuses for bot {botId} in region {replicaRegion}, sorted by {sortBy}.
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents Create an intent with utterances and hooks · Create Intent #
Ask an LLM
“How do I add a new intent like OrderPizza with sample utterances to my bot?”
“Can I base a new intent on a built-in intent signature?”
Tell an agent
Create intent {intentName} in bot {botId} version {botVersion}, locale {localeId}.
Add intent {intentName} with sample utterances {sampleUtterances} to the {localeId} locale of bot {botId} version {botVersion}.
POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents Create an intent via the POST endpoint · List Intents #
Ask an LLM
“Is there a POST variant of create intent that takes no intent fields in the body?”
“What does the bare POST create-intent call on a bot locale do?”
Tell an agent
Use the POST create-intent endpoint on bot {botId} version {botVersion}, locale {localeId}.
Call the parameterless POST intent-creation variant for locale {localeId} of bot {botId} version {botVersion}.
DELETE /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId} Delete an intent · Delete Intent #
Ask an LLM
“How do I remove an intent from my bot?”
“Does deleting an intent also delete its slots?”
Tell an agent destructive · confirm first
Delete intent {intentId} from bot {botId} version {botVersion}, locale {localeId}.
Remove intent {intentId} and its slots on bot {botId} ({botVersion}, {localeId}).
GET /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId} Get an intent's details · Describe Intent #
Ask an LLM
“What sample utterances and hooks does a particular intent have?”
“Can I look at one intent's full configuration?”
Tell an agent
Describe intent {intentId} in bot {botId} version {botVersion}, locale {localeId}.
Show the settings of intent {intentId} on bot {botId} ({botVersion}, {localeId}).
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId} Update an existing intent · Update Intent #
Ask an LLM
“How do I add more sample utterances to an intent I already built?”
“Can I change the order slots are prompted in for an existing intent?”
Tell an agent
Update intent {intentId} ({intentName}) in bot {botId} version {botVersion}, locale {localeId}, with utterances {sampleUtterances}.
Set slot priorities {slotPriorities} on existing intent {intentId} named {intentName} of bot {botId} ({botVersion}, {localeId}).
POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/intents List intents recommended from transcripts · List Recommended Intents #
Ask an LLM
“What intents did the transcript analysis suggest I add to my bot?”
“Are recommended intents ranked by relevance?”
Tell an agent
List recommended intents from recommendation {botRecommendationId} for bot {botId} version {botVersion}, locale {localeId}.
Show the suggested intents produced by job {botRecommendationId} on bot {botId} ({botVersion}, {localeId}).
DELETE /intents/{name} Delete Intent #
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots Add a slot to an intent · Create Slot #
Ask an LLM
“How do I make my intent collect a value like pizza size or crust?”
“Can a new slot accept multiple values or be obfuscated in logs?”
Tell an agent
Create slot {slotName} of type {slotTypeId} on intent {intentId}, bot {botId} ({botVersion}, {localeId}), prompting via {valueElicitationSetting}.
Add slot {slotName} to intent {intentId} of bot {botId} ({botVersion}, {localeId}) using prompt settings {valueElicitationSetting}.
POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots List the slots in an intent · List Slots #
Ask an LLM
“Which slots does one of my intents collect?”
“Can I filter or sort the slots belonging to an intent?”
Tell an agent
List the slots in intent {intentId} of bot {botId} version {botVersion}, locale {localeId}.
Show slots on intent {intentId} for bot {botId} ({botVersion}, {localeId}) sorted by {sortBy}.
DELETE /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId} Delete a slot from an intent · Delete Slot #
Ask an LLM
“How do I remove a slot my intent no longer needs?”
“Can I delete a single slot without touching the rest of the intent?”
Tell an agent destructive · confirm first
Delete slot {slotId} from intent {intentId} in bot {botId} version {botVersion}, locale {localeId}.
Remove slot {slotId} on intent {intentId} of bot {botId} ({botVersion}, {localeId}).
GET /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId} Get a slot's details · Describe Slot #
Ask an LLM
“What prompts and slot type does a particular slot use?”
“Can I inspect the configuration of one slot in an intent?”
Tell an agent
Describe slot {slotId} in intent {intentId} of bot {botId} version {botVersion}, locale {localeId}.
Show how slot {slotId} is prompted and typed within intent {intentId}, bot {botId} ({botVersion}, {localeId}).
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/{slotId} Update an existing slot · Update Slot #
Ask an LLM
“How do I change the prompt or slot type of an existing slot?”
“Can I turn on obfuscation for a slot that's already defined?”
Tell an agent
Update slot {slotId} ({slotName}) on intent {intentId} of bot {botId} version {botVersion}, locale {localeId}, with elicitation {valueElicitationSetting}.
Obfuscate slot {slotId} ({slotName}) with {obfuscationSetting}, intent {intentId}, bot {botId} ({botVersion}, {localeId}), prompts {valueElicitationSetting}.
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes Create a custom slot type · Create Slot Type #
Ask an LLM
“How do I define a custom list of allowed values, like crust types, for a slot?”
“Can a custom slot type extend a built-in type or pull values from an external grammar?”
Tell an agent
Create slot type {slotTypeName} with values {slotTypeValues} in bot {botId} version {botVersion}, locale {localeId}.
Add a custom slot type {slotTypeName} based on {parentSlotTypeSignature} to bot {botId} ({botVersion}, {localeId}).
POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes List a bot locale's slot types · List Slot Types #
Ask an LLM
“What custom slot types have I defined for a bot locale?”
“Can I filter the slot types in my bot by name?”
Tell an agent
List slot types in bot {botId} version {botVersion}, locale {localeId}.
Show slot types on bot {botId} ({botVersion}, {localeId}) matching {filters}.
DELETE /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId} Delete a slot type · Delete Slot Type #
Ask an LLM
“How do I delete a custom slot type from a bot locale?”
“What happens if I try to delete a slot type that slots still use?”
Tell an agent destructive · confirm first
Delete slot type {slotTypeId} from bot {botId} version {botVersion}, locale {localeId}.
Force-delete slot type {slotTypeId} on bot {botId} ({botVersion}, {localeId}) with skipResourceInUseCheck {skipResourceInUseCheck}.
GET /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId} Get a slot type's details · Describe Slot Type #
Ask an LLM
“What values and resolution strategy does a custom slot type have?”
“Can I look up one slot type's configuration?”
Tell an agent
Describe slot type {slotTypeId} in bot {botId} version {botVersion}, locale {localeId}.
Show the values defined for slot type {slotTypeId} on bot {botId} ({botVersion}, {localeId}).
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId} Update a custom slot type · Update Slot Type #
Ask an LLM
“How do I add new allowed values to a slot type I already created?”
“Can I change how an existing slot type resolves synonyms?”
Tell an agent
Update slot type {slotTypeId} ({slotTypeName}) in bot {botId} version {botVersion}, locale {localeId}, with values {slotTypeValues}.
Set value selection {valueSelectionSetting} on existing slot type {slotTypeId} named {slotTypeName}, bot {botId} ({botVersion}, {localeId}).
DELETE /slottypes/{name} Delete Slot Type #
DELETE /bots/{botId}/botanalyzer/{botAnalyzerRequestId} Permanently delete a bot analysis's results · Delete Bot Analyzer Recommendation #
Ask an LLM
“How do I permanently erase analyzer recommendations for GDPR purposes?”
“Can deleted bot analysis results be recovered afterwards?”
Tell an agent destructive · confirm first
Delete the analysis results for request {botAnalyzerRequestId} on bot {botId}.
Permanently erase the analyzer recommendations {botAnalyzerRequestId} from bot {botId}.
POST /bots/{botId}/botanalyzer/describe/{botAnalyzerRequestId} Get a bot analysis's recommendations · Describe Bot Analyzer Recommendation #
Ask an LLM
“What did the bot analyzer recommend I fix once the analysis finished?”
“Can I page through the recommendations from a completed bot analysis?”
Tell an agent
Show the recommendations from bot analysis {botAnalyzerRequestId} on bot {botId}.
Get the analyzer results for request {botAnalyzerRequestId} of bot {botId}.
POST /bots/{botId}/botanalyzer/history List past bot analysis runs · List Bot Analyzer History #
Ask an LLM
“Which analyzer runs have been executed against my bot before?”
“Can I filter a bot's analysis history by locale and version?”
Tell an agent
List the analysis history for bot {botId}.
Show past analyzer runs on bot {botId} for version {botVersion} in locale {localeId}.
POST /bots/{botId}/botanalyzer Run an AI analysis of a bot's configuration · Start Bot Analyzer #
Ask an LLM
“Can Lex analyze my bot's design and recommend improvements based on best practices?”
“How do I kick off an automated review of my bot to find configuration issues?”
Tell an agent
Start a bot analyzer run on bot {botId} with scope {analysisScope}.
Analyze bot {botId} version {botVersion} in locale {localeId} with scope {analysisScope} for improvement recommendations.
DELETE /bots/{botId}/utterances Delete stored user utterances · Delete Utterances #
Ask an LLM
“How do I delete the utterances Lex stored from a user's conversation?”
“Can I erase stored utterances for just one session or one locale?”
Tell an agent destructive · confirm first
Delete stored utterances for bot {botId}.
Erase the utterances stored from session {sessionId} in locale {localeId} of bot {botId}.
DELETE /bots/{botName}/utterances/{userId} Delete Utterances #
GET /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId} Get status of a bot recommendation job · Describe Bot Recommendation #
Ask an LLM
“Is my transcript-based bot recommendation finished processing?”
“Where can I download the transcripts associated with a recommendation?”
Tell an agent
Describe bot recommendation {botRecommendationId} for bot {botId} version {botVersion}, locale {localeId}.
Check the status of recommendation job {botRecommendationId} on bot {botId} ({botVersion}, {localeId}).
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId} Change encryption on a bot recommendation · Update Bot Recommendation #
Ask an LLM
“Can I change the encryption settings of a bot recommendation request I already started?”
“How do I update the KMS encryption on an existing recommendation job?”
Tell an agent
Update the encryption of recommendation {botRecommendationId} on bot {botId} version {botVersion}, locale {localeId}, to {encryptionSetting}.
Set encryption {encryptionSetting} on existing bot recommendation {botRecommendationId} for bot {botId} ({botVersion}, {localeId}).
POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations List transcript-based bot recommendations · List Bot Recommendations #
Ask an LLM
“Which bot recommendation requests have I run for a locale?”
“Can I see all transcript analysis jobs for my bot's locale?”
Tell an agent
List bot recommendations for bot {botId} version {botVersion}, locale {localeId}.
Show the transcript recommendation jobs on the {localeId} locale of bot {botId} version {botVersion}.
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations Start intent recommendations from transcripts · Start Bot Recommendation #
Ask an LLM
“Can Lex suggest intents for my bot from existing call or chat transcripts?”
“How do I feed conversation transcripts in to get bot design recommendations?”
Tell an agent
Start a bot recommendation for bot {botId} version {botVersion}, locale {localeId}, using transcripts from {transcriptSourceSetting}.
Analyze transcripts at {transcriptSourceSetting} for locale {localeId} of bot {botId} version {botVersion}, encrypted with {encryptionSetting}.
GET /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations/{generationId} Get a descriptive bot builder generation result · Describe Bot Resource Generation #
Ask an LLM
“Is the bot my natural-language description generated ready yet?”
“Where do I get the S3 link to the generated bot locale configuration?”
Tell an agent
Describe generation {generationId} for bot {botId} version {botVersion}, locale {localeId}.
Get the status and output location of bot generation {generationId} on bot {botId} ({botVersion}, {localeId}).
POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generations List descriptive bot builder generation requests · List Bot Resource Generations #
Ask an LLM
“Which generate-from-description requests have been made for my bot locale?”
“Can I sort the descriptive bot builder generation history?”
Tell an agent
List generation requests for bot {botId} version {botVersion}, locale {localeId}.
Show the descriptive bot builder runs on {localeId} of bot {botId} ({botVersion}) sorted by {sortBy}.
POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/generate Generate sample utterances for an intent · Generate Bot Element #
Ask an LLM
“Can Lex write sample utterances for one of my intents automatically?”
“How do I get generated example phrases for an intent I already created?”
Tell an agent
Generate sample utterances for intent {intentId} in bot {botId} version {botVersion}, locale {localeId}.
Suggest example phrases for intent {intentId} on bot {botId} ({botVersion}, {localeId}).
POST /bots/{botId}/aggregatedutterances See what users actually said to a bot · List Aggregated Utterances #
Ask an LLM
“What phrases are customers typing or saying to my bot, grouped by text?”
“Can I see how often users said the same utterance over the last day or week?”
Tell an agent
List aggregated user utterances for bot {botId} in locale {localeId} over {aggregationDuration}.
Show what users said to alias {botAliasId} of bot {botId} in {localeId} during {aggregationDuration}.
POST /bots/{botId}/analytics/intentmetrics Get summary metrics for a bot's intents · List Intent Metrics #
Ask an LLM
“How many times was each intent in my bot matched or failed last month?”
“Can I get intent success and failure counts binned by day?”
Tell an agent
Get intent metrics {metrics} for bot {botId} from {startDateTime} to {endDateTime}.
Report intent metrics {metrics} for bot {botId} between {startDateTime} and {endDateTime}, grouped by {groupBy}.
POST /bots/{botId}/analytics/intentpaths Analyze the paths of intents users take · List Intent Paths #
Ask an LLM
“What sequence of intents do users go through in sessions with my bot?”
“Which intents do people hit after a given intent path in a conversation?”
Tell an agent
Show intent path statistics for {intentPath} on bot {botId} from {startDateTime} to {endDateTime}.
Trace where sessions go after intent path {intentPath} in bot {botId}, {startDateTime} through {endDateTime}.
POST /bots/{botId}/analytics/intentstagemetrics Get metrics for stages within intents · List Intent Stage Metrics #
Ask an LLM
“Where inside an intent do conversations stall, stage by stage?”
“Can I see metrics for each stage of my bot's intents, like slot elicitation?”
Tell an agent
Pull per-stage metrics {metrics} inside the intents of bot {botId}, {startDateTime} through {endDateTime}.
Break down stage-level metrics {metrics} for bot {botId} between {startDateTime} and {endDateTime} by {binBy}.
POST /bots/{botId}/analytics/sessions List metadata for individual bot sessions · List Session Analytics Data #
Ask an LLM
“Can I pull a list of individual conversations users had with my bot?”
“Which specific sessions happened on my bot during a given time window?”
Tell an agent
List individual session records for bot {botId} from {startDateTime} to {endDateTime}.
Show each user session on bot {botId} between {startDateTime} and {endDateTime}, sorted by {sortBy}.
POST /bots/{botId}/analytics/sessionmetrics Get summary metrics for bot user sessions · List Session Metrics #
Ask an LLM
“How many user sessions did my bot have, and how long did they last?”
“Can I get session count and duration metrics summarized over a date range?”
Tell an agent
Get session metrics {metrics} for bot {botId} from {startDateTime} to {endDateTime}.
Summarize session totals for bot {botId} between {startDateTime} and {endDateTime}.
POST /bots/{botId}/analytics/utterances List individual utterance records for a bot · List Utterance Analytics Data #
Ask an LLM
“Can I get the individual utterances users sent my bot, one record each?”
“Where do I find per-utterance analytics data for a date range?”
Tell an agent
List individual utterance records for bot {botId} from {startDateTime} to {endDateTime}.
Pull each utterance record from bot {botId} between {startDateTime} and {endDateTime}, filtered by {filters}.
POST /bots/{botId}/analytics/utterancemetrics Get summary metrics for bot utterances · List Utterance Metrics #
Ask an LLM
“How many utterances did my bot detect versus miss over a period?”
“What IAM permission do I need to read utterance metrics for my bot?”
Tell an agent
Get utterance metrics {metrics} for bot {botId} from {startDateTime} to {endDateTime}.
Summarize utterance counts for bot {botId} between {startDateTime} and {endDateTime} with attributes {attributes}.
POST /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/associatedtranscripts Search transcripts tied to a bot recommendation · Search Associated Transcripts #
Ask an LLM
“Can I search the transcripts that were used for a bot recommendation?”
“Which transcripts associated with a recommendation match my filter?”
Tell an agent
Search transcripts for recommendation {botRecommendationId} on bot {botId} version {botVersion}, locale {localeId}, with filters {filters}.
Find associated transcripts matching {filters} in recommendation {botRecommendationId} of bot {botId} ({botVersion}, {localeId}), ordered {searchOrder}.
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/startgeneration Generate a bot locale from a text description · Start Bot Resource Generation #
Ask an LLM
“Can I describe my bot in plain English and have Lex generate the intents and slots?”
“How do I use the descriptive bot builder to draft a locale configuration?”
Tell an agent
Generate a bot configuration for locale {localeId} of bot {botId} version {botVersion} from the prompt {generationInputPrompt}.
Build intents and slots for bot {botId} ({botVersion}, {localeId}) from this description: {generationInputPrompt}.
PUT /bots/{botId}/botanalyzer/{botAnalyzerRequestId}/stop Cancel a running bot analysis · Stop Bot Analyzer #
Ask an LLM
“How do I stop a bot analysis that's still in progress?”
“Can a cancelled bot analysis be resumed later?”
Tell an agent destructive · confirm first
Stop bot analysis {botAnalyzerRequestId} on bot {botId}.
Cancel the running analyzer job {botAnalyzerRequestId} for bot {botId}.
PUT /bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/botrecommendations/{botRecommendationId}/stopbotrecommendation Stop a running bot recommendation job · Stop Bot Recommendation #
Ask an LLM
“How do I halt a transcript recommendation job that's still running?”
“Can I cancel an in-progress bot recommendation request?”
Tell an agent destructive · confirm first
Stop bot recommendation {botRecommendationId} on bot {botId} version {botVersion}, locale {localeId}.
Cancel the running recommendation job {botRecommendationId} for bot {botId} ({botVersion}, {localeId}).
DELETE /bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId} Reset a user's conversation session · Delete Session #
Ask an LLM
“How do I restart a conversation with my bot by clearing the session?”
“Does removing a session wipe its whole history?”
Tell an agent destructive · confirm first
Delete session {sessionId} on bot {botId}, alias {botAliasId}, locale {localeId}.
Clear user session {sessionId} for bot {botId} ({botAliasId}, {localeId}) so the conversation starts over.
GET /bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId} Get a user's conversation session state · Get Session #
Ask an LLM
“Can I see where a user left off in a long-running conversation with my bot?”
“What intent and slot values are in a user's current session?”
Tell an agent
Get session {sessionId} for bot {botId}, alias {botAliasId}, locale {localeId}.
Show the current state of user session {sessionId} on bot {botId} ({botAliasId}, {localeId}).
POST /bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId} Create or set a conversation session's state · Put Session #
Ask an LLM
“How do I set the dialog state of a user's session from my application?”
“Can my app start a session with the bot already in a particular intent?”
Tell an agent
Set session {sessionId} on bot {botId}, alias {botAliasId}, locale {localeId} to state {sessionState}.
Create session {sessionId} for bot {botId} ({botAliasId}, {localeId}) with state {sessionState} and messages {messages}.
POST /bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/text Send a text message to a bot · Recognize Text #
Ask an LLM
“How do I send a user's typed message to my bot and get its reply?”
“Can I pass session attributes along with a text message to the bot?”
Tell an agent
Send the text {text} to bot {botId}, alias {botAliasId}, locale {localeId}, in session {sessionId}.
Ask bot {botId} ({botAliasId}, {localeId}) "{text}" as session {sessionId} and return its interpretation.
POST /bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/utterance Send speech or text as a single utterance · Recognize Utterance #
Ask an LLM
“How do I send a recorded audio clip to my bot and get a spoken response back?”
“Which fields have to be gzipped and base64 encoded when sending an utterance?”
Tell an agent
Send an audio utterance of type {contentType} to bot {botId}, alias {botAliasId}, locale {localeId}, session {sessionId}.
Submit a {contentType} utterance to bot {botId} ({botAliasId}, {localeId}) for session {sessionId} and return audio as {responseContentType}.
POST /bots/{botId}/botAliases/{botAliasId}/botLocales/{localeId}/sessions/{sessionId}/conversation Stream a real-time audio or text conversation · Start Conversation #
Ask an LLM
“Can I stream live audio or DTMF keypresses to my bot over a bidirectional connection?”
“What audio format does a streaming conversation with the bot expect?”
Tell an agent
Start a streaming conversation for session {sessionId} with bot {botId}, alias {botAliasId}, locale {localeId}.
Open an HTTP/2 event stream to bot {botId} ({botAliasId}, {localeId}) for session {sessionId} in {conversationMode} mode.
POST /bots/{name}/versions Create Bot Version #
DELETE /bots/{name}/versions/{version} Delete Bot Version #
DELETE /bots/{botName}/aliases/{name} Delete Bot Alias #
DELETE /bot/{botName}/alias/{botAlias}/user/{userId}/session Delete Session #
GET /bot/{botName}/alias/{botAlias}/user/{userId}/session Get Session #
POST /bot/{botName}/alias/{botAlias}/user/{userId}/session Put Session #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-lex:amazon-lex-bots-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-lex-bots-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Lex Model Building V2 Bots API
  version: '2020-08-07'
  description: Generated from AWS's published Smithy model for Amazon Lex Model Building V2. 89 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://models-v2-lex.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:


# --- truncated at 32 KB (539 KB total) ---
# Full source: https://artifacts.apis.io/amazon-lex/openapi/amazon-lex-bots-api-openapi.yml