AWS Chatbot Intent
This page shows how to write Terraform for Chatbot Intent and write them securely.
aws_lex_intent (Terraform)
The Intent in Chatbot can be configured in Terraform with the resource name aws_lex_intent. The following sections describe 5 examples of how to use the resource and its parameters.
Example Usage from GitHub
lex_intents.tf#L1
resource "aws_lex_intent" "accept_offer_intent" {
name = "accept"
fulfillment_activity {
type = "ReturnIntent"
}
intents.tf#L1
resource "aws_lex_intent" "get_food_order_intent" {
depends_on = [
aws_lex_slot_type.pizza_toppings, aws_lex_slot_type.pizza_size
]
name = "GetFoodOrder"
sample_utterances = [
lex-intent.tf#L1
resource "aws_lex_intent" "find_doctor" {
name = "FindDoctor"
description = "Intent to find a Doctor"
fulfillment_activity {
intents.tf#L1
resource "aws_lex_intent" "check_weather" {
description = "Intent to check the weather in some (European) city"
fulfillment_activity {
type = "ReturnIntent"
}
4-intents.tf#L1
resource "aws_lex_intent" "LATIS_greetingUser" {
confirmation_prompt {
max_attempts = 2
message {
content = "Sorry, I could not understand. Please type Help"
content_type = "PlainText"
Parameters
-
arnoptional computed - string -
checksumoptional computed - string -
create_versionoptional - bool -
created_dateoptional computed - string -
descriptionoptional - string -
idoptional computed - string -
last_updated_dateoptional computed - string -
namerequired - string -
parent_intent_signatureoptional - string -
sample_utterancesoptional - set of string -
versionoptional computed - string -
conclusion_statementlist block-
response_cardoptional - string -
messageset block-
contentrequired - string -
content_typerequired - string -
group_numberoptional - number
-
-
-
confirmation_promptlist block-
max_attemptsrequired - number -
response_cardoptional - string -
messageset block-
contentrequired - string -
content_typerequired - string -
group_numberoptional - number
-
-
-
dialog_code_hooklist block-
message_versionrequired - string -
urirequired - string
-
-
follow_up_promptlist block-
promptlist block-
max_attemptsrequired - number -
response_cardoptional - string -
messageset block-
contentrequired - string -
content_typerequired - string -
group_numberoptional - number
-
-
-
rejection_statementlist block-
response_cardoptional - string -
messageset block-
contentrequired - string -
content_typerequired - string -
group_numberoptional - number
-
-
-
-
fulfillment_activitylist block-
typerequired - string -
code_hooklist block-
message_versionrequired - string -
urirequired - string
-
-
-
rejection_statementlist block-
response_cardoptional - string -
messageset block-
contentrequired - string -
content_typerequired - string -
group_numberoptional - number
-
-
-
slotset block-
descriptionoptional - string -
namerequired - string -
priorityoptional - number -
response_cardoptional - string -
sample_utterancesoptional - list of string -
slot_constraintrequired - string -
slot_typerequired - string -
slot_type_versionoptional - string -
value_elicitation_promptlist block-
max_attemptsrequired - number -
response_cardoptional - string -
messageset block-
contentrequired - string -
content_typerequired - string -
group_numberoptional - number
-
-
-
-
timeoutssingle block
Explanation in Terraform Registry
Provides an Amazon Lex Intent resource. For more information see Amazon Lex: How It Works
CloudFormation Example
CloudFormation code does not have the related resource.
Frequently asked questions
What is AWS Chatbot Intent?
AWS Chatbot Intent is a resource for Chatbot of Amazon Web Service. Settings can be wrote in Terraform.
Where can I find the example code for the AWS Chatbot Intent?
For Terraform, the raksit31667/learn-aws-voice-calling-chatbot, tpwidman-vf/restaurant-connect and mauricepruna/chatbot source code examples are useful. See the Terraform Example section for further details.