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
-
arn
optional computed - string -
checksum
optional computed - string -
create_version
optional - bool -
created_date
optional computed - string -
description
optional - string -
id
optional computed - string -
last_updated_date
optional computed - string -
name
required - string -
parent_intent_signature
optional - string -
sample_utterances
optional - set of string -
version
optional computed - string -
conclusion_statement
list block-
response_card
optional - string -
message
set block-
content
required - string -
content_type
required - string -
group_number
optional - number
-
-
-
confirmation_prompt
list block-
max_attempts
required - number -
response_card
optional - string -
message
set block-
content
required - string -
content_type
required - string -
group_number
optional - number
-
-
-
dialog_code_hook
list block-
message_version
required - string -
uri
required - string
-
-
follow_up_prompt
list block-
prompt
list block-
max_attempts
required - number -
response_card
optional - string -
message
set block-
content
required - string -
content_type
required - string -
group_number
optional - number
-
-
-
rejection_statement
list block-
response_card
optional - string -
message
set block-
content
required - string -
content_type
required - string -
group_number
optional - number
-
-
-
-
fulfillment_activity
list block-
type
required - string -
code_hook
list block-
message_version
required - string -
uri
required - string
-
-
-
rejection_statement
list block-
response_card
optional - string -
message
set block-
content
required - string -
content_type
required - string -
group_number
optional - number
-
-
-
slot
set block-
description
optional - string -
name
required - string -
priority
optional - number -
response_card
optional - string -
sample_utterances
optional - list of string -
slot_constraint
required - string -
slot_type
required - string -
slot_type_version
optional - string -
value_elicitation_prompt
list block-
max_attempts
required - number -
response_card
optional - string -
message
set block-
content
required - string -
content_type
required - string -
group_number
optional - number
-
-
-
-
timeouts
single 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.