Member-only story

Connect a Chatbot with Lambda

Evan Selunani
4 min readNov 15, 2024

--

Bonjour! Running is a beautiful way to start or end your day. Disagree if you must, but I find it’s a great way to clear your mind and focus. Just like running, today’s guide will take us on a straightforward journey — connecting a chatbot to AWS Lambda.

In this guide, we’ll cover:

  1. Setting up an Amazon Lex chatbot
  2. Creating an AWS Lambda function
  3. Connecting Lambda with Amazon Lex
  4. Linking your chatbot’s “CheckBalance” intent to Lambda

The New Terms we will definately encounter are as follows:

  1. AWS Lambda: A service that lets you run code without managing servers. Lambda handles the infrastructure.
  2. Alias: A pointer to a specific version of your bot.
  3. TestBotAlias: A default version of your bot for testing or development.
  4. Fulfillment: In Amazon Lex, this means completing the intent’s purpose.
  5. Codehooks: Code that links your chatbot to custom Lambda functions for specific actions in conversations.
Photo by Todd Quackenbush on Unsplash

Step 1: Set up Lex Chatbot

To get started, refer to our first two chatbot projects:

  1. Build a Chatbot with Amazon Lex
  2. Build a Chatbot with Custom Slots

--

--

Evan Selunani
Evan Selunani

Written by Evan Selunani

Transforming the world, one keystroke at a time.| Certified AWS Cloud Practitioner.

No responses yet