AWS Chatbot Bot
This page shows how to write Terraform for Chatbot Bot and write them securely.
aws_lex_bot (Terraform)
The Bot in Chatbot can be configured in Terraform with the resource name aws_lex_bot
. The following sections describe 5 examples of how to use the resource and its parameters.
Example Usage from GitHub
lex.tf#L3
resource "aws_lex_bot" "bge_lex_help_bot" {
name = "bge_lex_help_bot"
locale = "en-GB"
create_version = "true"
child_directed = false
enable_model_improvements = true
bot.tf#L1
resource "aws_lex_bot" "order_food_bot" {
depends_on = [
aws_lex_intent.get_food_order_intent
]
child_directed = false
create_version = false
lex_bot.tf#L1
resource "aws_lex_bot" "order_flowers_bot" {
abort_statement {
message {
content = "Sorry, I am not able to assist at this time"
content_type = "PlainText"
}
lex-bot.tf#L1
resource "aws_lex_bot" "medical_help" {
abort_statement {
message {
content = "Sorry, I am not able to assist at this timez"
content_type = "PlainText"
bot.tf#L1
resource "aws_lex_bot" "multi_demo" {
abort_statement {
message {
content_type = "PlainText"
content = "Sorry, I am not able to assist at this time"
}
Parameters
-
arn
optional computed - string -
checksum
optional computed - string -
child_directed
required - bool -
create_version
optional - bool -
created_date
optional computed - string -
description
optional - string -
detect_sentiment
optional - bool -
enable_model_improvements
optional - bool -
failure_reason
optional computed - string -
id
optional computed - string -
idle_session_ttl_in_seconds
optional - number -
last_updated_date
optional computed - string -
locale
optional - string -
name
required - string -
nlu_intent_confidence_threshold
optional - number -
process_behavior
optional - string -
status
optional computed - string -
version
optional computed - string -
voice_id
optional computed - string -
abort_statement
list block-
response_card
optional - string -
message
set block-
content
required - string -
content_type
required - string -
group_number
optional - number
-
-
-
clarification_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
-
-
-
intent
set block-
intent_name
required - string -
intent_version
required - string
-
-
timeouts
single block
Explanation in Terraform Registry
Provides an Amazon Lex Bot 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 Bot?
AWS Chatbot Bot 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 Bot?
For Terraform, the DarekB-repos/example-lexbot, tpwidman-vf/restaurant-connect and pjangam/SongsSearch source code examples are useful. See the Terraform Example section for further details.