/AWS1/IF_LXB=>PUTINTENT()¶
About PutIntent¶
Creates an intent or replaces an existing intent.
To define the interaction between the user and your bot, you use
one or more intents. For a pizza ordering bot, for example, you would
create an OrderPizza intent.
To create an intent or replace an existing intent, you must provide the following:
-
Intent name. For example,
OrderPizza. -
Sample utterances. For example, "Can I order a pizza, please." and "I want to order a pizza."
-
Information to be gathered. You specify slot types for the information that your bot will request from the user. You can specify standard slot types, such as a date or a time, or custom slot types such as the size and crust of a pizza.
-
How the intent will be fulfilled. You can provide a Lambda function or configure the intent to return the intent information to the client application. If you use a Lambda function, when all of the intent information is available, Amazon Lex invokes your Lambda function. If you configure your intent to return the intent information to the client application.
You can specify other optional information in the request, such as:
-
A confirmation prompt to ask the user to confirm an intent. For example, "Shall I order your pizza?"
-
A conclusion statement to send to the user after the intent has been fulfilled. For example, "I placed your pizza order."
-
A follow-up prompt that asks the user for additional activity. For example, asking "Do you want to order a drink with your pizza?"
If you specify an existing intent name to update the intent, Amazon Lex
replaces the values in the $LATEST version of the intent with
the values in the request. Amazon Lex removes fields that you don't provide in
the request. If you don't specify the required fields, Amazon Lex throws an
exception. When you update the $LATEST version of an intent,
the status field of any bot that uses the
$LATEST version of the intent is set to
NOT_BUILT.
For more information, see how-it-works.
This operation requires permissions for the
lex:PutIntent action.
Method Signature¶
METHODS /AWS1/IF_LXB~PUTINTENT
IMPORTING
!IV_NAME TYPE /AWS1/LXBINTENTNAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/LXBDESCRIPTION OPTIONAL
!IT_SLOTS TYPE /AWS1/CL_LXBSLOT=>TT_SLOTLIST OPTIONAL
!IT_SAMPLEUTTERANCES TYPE /AWS1/CL_LXBINTENTUTTERANCEL00=>TT_INTENTUTTERANCELIST OPTIONAL
!IO_CONFIRMATIONPROMPT TYPE REF TO /AWS1/CL_LXBPROMPT OPTIONAL
!IO_REJECTIONSTATEMENT TYPE REF TO /AWS1/CL_LXBSTATEMENT OPTIONAL
!IO_FOLLOWUPPROMPT TYPE REF TO /AWS1/CL_LXBFOLLOWUPPROMPT OPTIONAL
!IO_CONCLUSIONSTATEMENT TYPE REF TO /AWS1/CL_LXBSTATEMENT OPTIONAL
!IO_DIALOGCODEHOOK TYPE REF TO /AWS1/CL_LXBCODEHOOK OPTIONAL
!IO_FULFILLMENTACTIVITY TYPE REF TO /AWS1/CL_LXBFULFILLMENTACTIV00 OPTIONAL
!IV_PARENTINTENTSIGNATURE TYPE /AWS1/LXBBUILTININTENTSIG OPTIONAL
!IV_CHECKSUM TYPE /AWS1/LXBSTRING OPTIONAL
!IV_CREATEVERSION TYPE /AWS1/LXBBOOLEAN OPTIONAL
!IO_KENDRACONFIGURATION TYPE REF TO /AWS1/CL_LXBKENDRACONF OPTIONAL
!IT_INPUTCONTEXTS TYPE /AWS1/CL_LXBINPUTCONTEXT=>TT_INPUTCONTEXTLIST OPTIONAL
!IT_OUTPUTCONTEXTS TYPE /AWS1/CL_LXBOUTPUTCONTEXT=>TT_OUTPUTCONTEXTLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lxbputintentresponse
RAISING
/AWS1/CX_LXBBADREQUESTEX
/AWS1/CX_LXBCONFLICTEXCEPTION
/AWS1/CX_LXBINTERNALFAILUREEX
/AWS1/CX_LXBLIMITEXCEEDEDEX
/AWS1/CX_LXBPRECONDFAILEDEX
/AWS1/CX_LXBCLIENTEXC
/AWS1/CX_LXBSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_name TYPE /AWS1/LXBINTENTNAME /AWS1/LXBINTENTNAME¶
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
AMAZON.HelpIntent, you can't create a custom intent calledHelpIntent.For a list of built-in intents, see Standard Built-in Intents in the Alexa Skills Kit.
Optional arguments:¶
iv_description TYPE /AWS1/LXBDESCRIPTION /AWS1/LXBDESCRIPTION¶
A description of the intent.
it_slots TYPE /AWS1/CL_LXBSLOT=>TT_SLOTLIST TT_SLOTLIST¶
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.
it_sampleutterances TYPE /AWS1/CL_LXBINTENTUTTERANCEL00=>TT_INTENTUTTERANCELIST TT_INTENTUTTERANCELIST¶
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.
io_confirmationprompt TYPE REF TO /AWS1/CL_LXBPROMPT /AWS1/CL_LXBPROMPT¶
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
OrderPizzaintent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information.You you must provide both the
rejectionStatementand theconfirmationPrompt, or neither.
io_rejectionstatement TYPE REF TO /AWS1/CL_LXBSTATEMENT /AWS1/CL_LXBSTATEMENT¶
When the user answers "no" to the question defined in
confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.You must provide both the
rejectionStatementand theconfirmationPrompt, or neither.
io_followupprompt TYPE REF TO /AWS1/CL_LXBFOLLOWUPPROMPT /AWS1/CL_LXBFOLLOWUPPROMPT¶
Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the
OrderPizzaintent is fulfilled, you might prompt the user to order a drink.The action that Amazon Lex takes depends on the user's response, as follows:
If the user says "Yes" it responds with the clarification prompt that is configured for the bot.
if the user says "Yes" and continues with an utterance that triggers an intent it starts a conversation for the intent.
If the user says "No" it responds with the rejection statement configured for the the follow-up prompt.
If it doesn't recognize the utterance it repeats the follow-up prompt again.
The
followUpPromptfield and theconclusionStatementfield are mutually exclusive. You can specify only one.
io_conclusionstatement TYPE REF TO /AWS1/CL_LXBSTATEMENT /AWS1/CL_LXBSTATEMENT¶
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
fulfillmentActivity. If you return the intent to the client application, you can't specify this element.The
followUpPromptandconclusionStatementare mutually exclusive. You can specify only one.
io_dialogcodehook TYPE REF TO /AWS1/CL_LXBCODEHOOK /AWS1/CL_LXBCODEHOOK¶
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,
GlutenIntolerant, to true. You might find John's phone number and set the corresponding session attribute.
io_fulfillmentactivity TYPE REF TO /AWS1/CL_LXBFULFILLMENTACTIV00 /AWS1/CL_LXBFULFILLMENTACTIV00¶
Required. Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order,
fulfillmentActivitydefines how the bot places an order with a local pizza store.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).
iv_parentintentsignature TYPE /AWS1/LXBBUILTININTENTSIG /AWS1/LXBBUILTININTENTSIG¶
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.
iv_checksum TYPE /AWS1/LXBSTRING /AWS1/LXBSTRING¶
Identifies a specific revision of the
$LATESTversion.When you create a new intent, leave the
checksumfield blank. If you specify a checksum you get aBadRequestExceptionexception.When you want to update a intent, set the
checksumfield to the checksum of the most recent revision of the$LATESTversion. If you don't specify thechecksumfield, or if the checksum does not match the$LATESTversion, you get aPreconditionFailedExceptionexception.
iv_createversion TYPE /AWS1/LXBBOOLEAN /AWS1/LXBBOOLEAN¶
When set to
truea new numbered version of the intent is created. This is the same as calling theCreateIntentVersionoperation. If you do not specifycreateVersion, the default isfalse.
io_kendraconfiguration TYPE REF TO /AWS1/CL_LXBKENDRACONF /AWS1/CL_LXBKENDRACONF¶
Configuration information required to use the
AMAZON.KendraSearchIntentintent to connect to an Amazon Kendra index. For more information, see AMAZON.KendraSearchIntent.
it_inputcontexts TYPE /AWS1/CL_LXBINPUTCONTEXT=>TT_INPUTCONTEXTLIST TT_INPUTCONTEXTLIST¶
An array of
InputContextobjects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.
it_outputcontexts TYPE /AWS1/CL_LXBOUTPUTCONTEXT=>TT_OUTPUTCONTEXTLIST TT_OUTPUTCONTEXTLIST¶
An array of
OutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lxbputintentresponse /AWS1/CL_LXBPUTINTENTRESPONSE¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->putintent(
io_conclusionstatement = new /aws1/cl_lxbstatement(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |string|
iv_contenttype = |string|
iv_groupnumber = 123
)
)
)
iv_responsecard = |string|
)
io_confirmationprompt = new /aws1/cl_lxbprompt(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |string|
iv_contenttype = |string|
iv_groupnumber = 123
)
)
)
iv_maxattempts = 123
iv_responsecard = |string|
)
io_dialogcodehook = new /aws1/cl_lxbcodehook(
iv_messageversion = |string|
iv_uri = |string|
)
io_followupprompt = new /aws1/cl_lxbfollowupprompt(
io_prompt = new /aws1/cl_lxbprompt(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |string|
iv_contenttype = |string|
iv_groupnumber = 123
)
)
)
iv_maxattempts = 123
iv_responsecard = |string|
)
io_rejectionstatement = new /aws1/cl_lxbstatement(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |string|
iv_contenttype = |string|
iv_groupnumber = 123
)
)
)
iv_responsecard = |string|
)
)
io_fulfillmentactivity = new /aws1/cl_lxbfulfillmentactiv00(
io_codehook = new /aws1/cl_lxbcodehook(
iv_messageversion = |string|
iv_uri = |string|
)
iv_type = |string|
)
io_kendraconfiguration = new /aws1/cl_lxbkendraconf(
iv_kendraindex = |string|
iv_queryfilterstring = |string|
iv_role = |string|
)
io_rejectionstatement = new /aws1/cl_lxbstatement(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |string|
iv_contenttype = |string|
iv_groupnumber = 123
)
)
)
iv_responsecard = |string|
)
it_inputcontexts = VALUE /aws1/cl_lxbinputcontext=>tt_inputcontextlist(
( new /aws1/cl_lxbinputcontext( |string| ) )
)
it_outputcontexts = VALUE /aws1/cl_lxboutputcontext=>tt_outputcontextlist(
(
new /aws1/cl_lxboutputcontext(
iv_name = |string|
iv_timetoliveinseconds = 123
iv_turnstolive = 123
)
)
)
it_sampleutterances = VALUE /aws1/cl_lxbintentutterancel00=>tt_intentutterancelist(
( new /aws1/cl_lxbintentutterancel00( |string| ) )
)
it_slots = VALUE /aws1/cl_lxbslot=>tt_slotlist(
(
new /aws1/cl_lxbslot(
io_defaultvaluespec = new /aws1/cl_lxbslotdefvaluespec(
it_defaultvaluelist = VALUE /aws1/cl_lxbslotdefaultvalue=>tt_slotdefaultvaluelist(
( new /aws1/cl_lxbslotdefaultvalue( |string| ) )
)
)
io_valueelicitationprompt = new /aws1/cl_lxbprompt(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |string|
iv_contenttype = |string|
iv_groupnumber = 123
)
)
)
iv_maxattempts = 123
iv_responsecard = |string|
)
it_sampleutterances = VALUE /aws1/cl_lxbslotutterancelst_w=>tt_slotutterancelist(
( new /aws1/cl_lxbslotutterancelst_w( |string| ) )
)
iv_description = |string|
iv_name = |string|
iv_obfuscationsetting = |string|
iv_priority = 123
iv_responsecard = |string|
iv_slotconstraint = |string|
iv_slottype = |string|
iv_slottypeversion = |string|
)
)
)
iv_checksum = |string|
iv_createversion = ABAP_TRUE
iv_description = |string|
iv_name = |string|
iv_parentintentsignature = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_intentname = lo_result->get_name( ).
lv_description = lo_result->get_description( ).
LOOP AT lo_result->get_slots( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_slotname = lo_row_1->get_name( ).
lv_description = lo_row_1->get_description( ).
lv_slotconstraint = lo_row_1->get_slotconstraint( ).
lv_customorbuiltinslottype = lo_row_1->get_slottype( ).
lv_version = lo_row_1->get_slottypeversion( ).
lo_prompt = lo_row_1->get_valueelicitationprompt( ).
IF lo_prompt IS NOT INITIAL.
LOOP AT lo_prompt->get_messages( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_contenttype = lo_row_3->get_contenttype( ).
lv_contentstring = lo_row_3->get_content( ).
lv_groupnumber = lo_row_3->get_groupnumber( ).
ENDIF.
ENDLOOP.
lv_promptmaxattempts = lo_prompt->get_maxattempts( ).
lv_responsecard = lo_prompt->get_responsecard( ).
ENDIF.
lv_priority = lo_row_1->get_priority( ).
LOOP AT lo_row_1->get_sampleutterances( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_utterance = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lv_responsecard = lo_row_1->get_responsecard( ).
lv_obfuscationsetting = lo_row_1->get_obfuscationsetting( ).
lo_slotdefaultvaluespec = lo_row_1->get_defaultvaluespec( ).
IF lo_slotdefaultvaluespec IS NOT INITIAL.
LOOP AT lo_slotdefaultvaluespec->get_defaultvaluelist( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_slotdefaultvaluestring = lo_row_7->get_defaultvalue( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_sampleutterances( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_utterance = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
lo_prompt = lo_result->get_confirmationprompt( ).
IF lo_prompt IS NOT INITIAL.
LOOP AT lo_prompt->get_messages( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_contenttype = lo_row_3->get_contenttype( ).
lv_contentstring = lo_row_3->get_content( ).
lv_groupnumber = lo_row_3->get_groupnumber( ).
ENDIF.
ENDLOOP.
lv_promptmaxattempts = lo_prompt->get_maxattempts( ).
lv_responsecard = lo_prompt->get_responsecard( ).
ENDIF.
lo_statement = lo_result->get_rejectionstatement( ).
IF lo_statement IS NOT INITIAL.
LOOP AT lo_statement->get_messages( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_contenttype = lo_row_3->get_contenttype( ).
lv_contentstring = lo_row_3->get_content( ).
lv_groupnumber = lo_row_3->get_groupnumber( ).
ENDIF.
ENDLOOP.
lv_responsecard = lo_statement->get_responsecard( ).
ENDIF.
lo_followupprompt = lo_result->get_followupprompt( ).
IF lo_followupprompt IS NOT INITIAL.
lo_prompt = lo_followupprompt->get_prompt( ).
IF lo_prompt IS NOT INITIAL.
LOOP AT lo_prompt->get_messages( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_contenttype = lo_row_3->get_contenttype( ).
lv_contentstring = lo_row_3->get_content( ).
lv_groupnumber = lo_row_3->get_groupnumber( ).
ENDIF.
ENDLOOP.
lv_promptmaxattempts = lo_prompt->get_maxattempts( ).
lv_responsecard = lo_prompt->get_responsecard( ).
ENDIF.
lo_statement = lo_followupprompt->get_rejectionstatement( ).
IF lo_statement IS NOT INITIAL.
LOOP AT lo_statement->get_messages( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_contenttype = lo_row_3->get_contenttype( ).
lv_contentstring = lo_row_3->get_content( ).
lv_groupnumber = lo_row_3->get_groupnumber( ).
ENDIF.
ENDLOOP.
lv_responsecard = lo_statement->get_responsecard( ).
ENDIF.
ENDIF.
lo_statement = lo_result->get_conclusionstatement( ).
IF lo_statement IS NOT INITIAL.
LOOP AT lo_statement->get_messages( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_contenttype = lo_row_3->get_contenttype( ).
lv_contentstring = lo_row_3->get_content( ).
lv_groupnumber = lo_row_3->get_groupnumber( ).
ENDIF.
ENDLOOP.
lv_responsecard = lo_statement->get_responsecard( ).
ENDIF.
lo_codehook = lo_result->get_dialogcodehook( ).
IF lo_codehook IS NOT INITIAL.
lv_lambdaarn = lo_codehook->get_uri( ).
lv_messageversion = lo_codehook->get_messageversion( ).
ENDIF.
lo_fulfillmentactivity = lo_result->get_fulfillmentactivity( ).
IF lo_fulfillmentactivity IS NOT INITIAL.
lv_fulfillmentactivitytype = lo_fulfillmentactivity->get_type( ).
lo_codehook = lo_fulfillmentactivity->get_codehook( ).
IF lo_codehook IS NOT INITIAL.
lv_lambdaarn = lo_codehook->get_uri( ).
lv_messageversion = lo_codehook->get_messageversion( ).
ENDIF.
ENDIF.
lv_builtinintentsignature = lo_result->get_parentintentsignature( ).
lv_timestamp = lo_result->get_lastupdateddate( ).
lv_timestamp = lo_result->get_createddate( ).
lv_version = lo_result->get_version( ).
lv_string = lo_result->get_checksum( ).
lv_boolean = lo_result->get_createversion( ).
lo_kendraconfiguration = lo_result->get_kendraconfiguration( ).
IF lo_kendraconfiguration IS NOT INITIAL.
lv_kendraindexarn = lo_kendraconfiguration->get_kendraindex( ).
lv_queryfilterstring = lo_kendraconfiguration->get_queryfilterstring( ).
lv_rolearn = lo_kendraconfiguration->get_role( ).
ENDIF.
LOOP AT lo_result->get_inputcontexts( ) into lo_row_10.
lo_row_11 = lo_row_10.
IF lo_row_11 IS NOT INITIAL.
lv_inputcontextname = lo_row_11->get_name( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_outputcontexts( ) into lo_row_12.
lo_row_13 = lo_row_12.
IF lo_row_13 IS NOT INITIAL.
lv_outputcontextname = lo_row_13->get_name( ).
lv_contexttimetoliveinseco = lo_row_13->get_timetoliveinseconds( ).
lv_contextturnstolive = lo_row_13->get_turnstolive( ).
ENDIF.
ENDLOOP.
ENDIF.
To create an intent¶
This example shows how to create an intent for ordering pizzas.
DATA(lo_result) = lo_client->putintent(
io_conclusionstatement = new /aws1/cl_lxbstatement(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |All right, I ordered you a {Crust} crust {Type} pizza with {Sauce} sauce.|
iv_contenttype = |PlainText|
)
)
(
new /aws1/cl_lxbmessage(
iv_content = |OK, your {Crust} crust {Type} pizza with {Sauce} sauce is on the way.|
iv_contenttype = |PlainText|
)
)
)
iv_responsecard = |foo|
)
io_confirmationprompt = new /aws1/cl_lxbprompt(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |Should I order your {Crust} crust {Type} pizza with {Sauce} sauce?|
iv_contenttype = |PlainText|
)
)
)
iv_maxattempts = 1
)
io_fulfillmentactivity = new /aws1/cl_lxbfulfillmentactiv00( iv_type = |ReturnIntent| )
io_rejectionstatement = new /aws1/cl_lxbstatement(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |Ok, I'll cancel your order.|
iv_contenttype = |PlainText|
)
)
(
new /aws1/cl_lxbmessage(
iv_content = |I cancelled your order.|
iv_contenttype = |PlainText|
)
)
)
)
it_sampleutterances = VALUE /aws1/cl_lxbintentutterancel00=>tt_intentutterancelist(
( new /aws1/cl_lxbintentutterancel00( |Order me a pizza.| ) )
( new /aws1/cl_lxbintentutterancel00( |Order me a {Type} pizza.| ) )
( new /aws1/cl_lxbintentutterancel00( |I want a {Crust} crust {Type} pizza| ) )
( new /aws1/cl_lxbintentutterancel00( |I want a {Crust} crust {Type} pizza with {Sauce} sauce.| ) )
)
it_slots = VALUE /aws1/cl_lxbslot=>tt_slotlist(
(
new /aws1/cl_lxbslot(
io_valueelicitationprompt = new /aws1/cl_lxbprompt(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |What type of pizza would you like?|
iv_contenttype = |PlainText|
)
)
(
new /aws1/cl_lxbmessage(
iv_content = |Vegie or cheese pizza?|
iv_contenttype = |PlainText|
)
)
(
new /aws1/cl_lxbmessage(
iv_content = |I can get you a vegie or a cheese pizza.|
iv_contenttype = |PlainText|
)
)
)
iv_maxattempts = 1
)
it_sampleutterances = VALUE /aws1/cl_lxbslotutterancelst_w=>tt_slotutterancelist(
( new /aws1/cl_lxbslotutterancelst_w( |Get me a {Type} pizza.| ) )
( new /aws1/cl_lxbslotutterancelst_w( |A {Type} pizza please.| ) )
( new /aws1/cl_lxbslotutterancelst_w( |I'd like a {Type} pizza.| ) )
)
iv_description = |The type of pizza to order.|
iv_name = |Type|
iv_priority = 1
iv_slotconstraint = |Required|
iv_slottype = |DocPizzaType|
iv_slottypeversion = |$LATEST|
)
)
(
new /aws1/cl_lxbslot(
io_valueelicitationprompt = new /aws1/cl_lxbprompt(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |What type of crust would you like?|
iv_contenttype = |PlainText|
)
)
(
new /aws1/cl_lxbmessage(
iv_content = |Thick or thin crust?|
iv_contenttype = |PlainText|
)
)
)
iv_maxattempts = 1
)
it_sampleutterances = VALUE /aws1/cl_lxbslotutterancelst_w=>tt_slotutterancelist(
( new /aws1/cl_lxbslotutterancelst_w( |Make it a {Crust} crust.| ) )
( new /aws1/cl_lxbslotutterancelst_w( |I'd like a {Crust} crust.| ) )
)
iv_description = |The type of pizza crust to order.|
iv_name = |Crust|
iv_priority = 2
iv_slotconstraint = |Required|
iv_slottype = |DocPizzaCrustType|
iv_slottypeversion = |$LATEST|
)
)
(
new /aws1/cl_lxbslot(
io_valueelicitationprompt = new /aws1/cl_lxbprompt(
it_messages = VALUE /aws1/cl_lxbmessage=>tt_messagelist(
(
new /aws1/cl_lxbmessage(
iv_content = |White or red sauce?|
iv_contenttype = |PlainText|
)
)
(
new /aws1/cl_lxbmessage(
iv_content = |Garlic or tomato sauce?|
iv_contenttype = |PlainText|
)
)
)
iv_maxattempts = 1
)
it_sampleutterances = VALUE /aws1/cl_lxbslotutterancelst_w=>tt_slotutterancelist(
( new /aws1/cl_lxbslotutterancelst_w( |Make it {Sauce} sauce.| ) )
( new /aws1/cl_lxbslotutterancelst_w( |I'd like {Sauce} sauce.| ) )
)
iv_description = |The type of sauce to use on the pizza.|
iv_name = |Sauce|
iv_priority = 3
iv_slotconstraint = |Required|
iv_slottype = |DocPizzaSauceType|
iv_slottypeversion = |$LATEST|
)
)
)
iv_description = |Order a pizza from a local pizzeria.|
iv_name = |DocOrderPizza|
).