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"

Review your Terraform file for AWS best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).


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.


Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.