View source: R/lexmodelbuildingservice_operations.R
lexmodelbuildingservice_put_intent | R Documentation |
Creates an intent or replaces an existing intent.
See https://www.paws-r-sdk.com/docs/lexmodelbuildingservice_put_intent/ for full documentation.
lexmodelbuildingservice_put_intent(
name,
description = NULL,
slots = NULL,
sampleUtterances = NULL,
confirmationPrompt = NULL,
rejectionStatement = NULL,
followUpPrompt = NULL,
conclusionStatement = NULL,
dialogCodeHook = NULL,
fulfillmentActivity = NULL,
parentIntentSignature = NULL,
checksum = NULL,
createVersion = NULL,
kendraConfiguration = NULL,
inputContexts = NULL,
outputContexts = NULL
)
name |
[required] The name of the intent. The name is not case sensitive. The name can't match a built-in intent name, or a built-in intent name
with "AMAZON." removed. For example, because there is a built-in intent
called For a list of built-in intents, see Standard Built-in Intents in the Alexa Skills Kit. |
description |
A description of the intent. |
slots |
An array of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. For more information, see how-it-works. |
sampleUtterances |
An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas". In each utterance, a slot name is enclosed in curly braces. |
confirmationPrompt |
Prompts the user to confirm the intent. This question should have a yes or no answer. Amazon Lex uses this prompt to ensure that the user acknowledges that
the intent is ready for fulfillment. For example, with the You you must provide both the |
rejectionStatement |
When the user answers "no" to the question defined in
You must provide both the |
followUpPrompt |
Amazon Lex uses this prompt to solicit additional activity after
fulfilling an intent. For example, after the The action that Amazon Lex takes depends on the user's response, as follows:
The |
conclusionStatement |
The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function. This element is relevant only if you provide a Lambda function in the
The |
dialogCodeHook |
Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction. For example, suppose your bot determines that the user is John. Your
Lambda function might retrieve John's information from a backend
database and prepopulate some of the values. For example, if you find
that John is gluten intolerant, you might set the corresponding intent
slot, |
fulfillmentActivity |
Required. Describes how the intent is fulfilled. For example, after a
user provides all of the information for a pizza order,
You might configure Amazon Lex to return all of the intent information to the client application, or direct it to invoke a Lambda function that can process the intent (for example, place an order with a pizzeria). |
parentIntentSignature |
A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit. |
checksum |
Identifies a specific revision of the When you create a new intent, leave the When you want to update a intent, set the |
createVersion |
When set to |
kendraConfiguration |
Configuration information required to use the
|
inputContexts |
An array of |
outputContexts |
An array of |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.