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

resource "aws_lex_intent" "accept_offer_intent" {
  name = "accept"

  fulfillment_activity {
    type = "ReturnIntent"
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 = [
resource "aws_lex_intent" "find_doctor" {

  name        = "FindDoctor"
  description = "Intent to find a Doctor"

  fulfillment_activity {
resource "aws_lex_intent" "check_weather" {
  description = "Intent to check the weather in some (European) city"

  fulfillment_activity {
    type = "ReturnIntent"
resource "aws_lex_intent" "LATIS_greetingUser" {
  confirmation_prompt {
    max_attempts = 2
    message {
      content      = "Sorry, I could not understand. Please type Help"
      content_type = "PlainText"


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.


Scan your IaC problem in 3 minutes for free

You can keep your IaC security for free. No credit card required.