Automated Customer Support Bots with LangGraph on AWS

This ad is not shown to multipass and full ticket holders
React Summit US
React Summit US 2026
November 17 - 20, 2026
New York, US & Online
Upcoming event
React Summit US 2026
React Summit US 2026
November 17 - 20, 2026. New York, US & Online
Bookmark
Rate this content
Sentry
Promoted
Code breaks, fix it faster

Crashes, slowdowns, regressions in prod. Seer by Sentry unifies traces, replays, errors, profiles to find root causes fast.

Get started

Anyone can spin up an AI agent in five lines. Would you give that agent a refund button? In this demo-driven talk I build a customer support bot with LangGraph, the framework behind agents at Klarna, Uber, and J.P. Morgan, to show why control matters in production. Instead of letting the model improvise, I lay the bot out as a graph: it answers the easy questions on its own, pauses for human approval before anything irreversible like a refund, and resumes where it stopped after a crash. Then I ship it to AWS. Claude on Amazon Bedrock runs the model, Amazon Bedrock AgentCore hosts the bot, and the Agent Toolkit for AWS handles model access, IAM, and deployment from inside the coding agent. You'll leave knowing how to start with LangGraph, how to run it on AWS without a platform team, and when a graph beats a free-roaming bot.

This talk has been presented at AI Coding Summit London, check out the latest edition of this Tech Conference.

Saurabh Dahal
Saurabh Dahal
29 min
06 Jul, 2026

Comments

Sign in or register to post your comment.
Video Summary and Transcription
Presentation on building a customer support bot with Langraff, Amazon Bedrock as base. LangChain Python library for LLMs. RAG - Retrieval Augmented Generation for accessing current information. LangChain using Bedrock and Amazon Knowledge Base. LangRaph classifies queries intelligently. Using LandGraph on top of LangChain for multiple scenarios with human intervention. Connected to Amazon Bedrock for knowledge base. No guessing with large language models; rely on a connected knowledge base for accurate responses. Chat GPT creation involves memory for context; tools like Land Graph aid in this process. Land Graph usage for flow creation; Demo with Kiro agent ID and new file uploads. Setting up AWS MCP server with agent skills; Using AWS agent toolkit for best practices in service setup; Flow for intent routing and order refund eligibility. Handling Order Refund Requests Using Agent Tools and Lookup; Case Sensitivity in Order Number Search; Validating Order Eligibility for Refund. Uploading Knowledge Base to AWS MCP Server; Verification of Email Address for Refund; Human in the Loop for Refund Approval. Human in the Loop Feature of LaneGraph; Uploading Documents to Bedrock; Utilizing Vectors for Knowledgebase Queries. Utilizing AWS Agent Toolkit for Workflow Best Practices; Connecting to KnowledgeBases for Querying; Building App with Mastering LaneGraph. Generating Design and Requirements for App Development; Utilizing Agent Skills in Spec-Driven Workflow; Ensuring Accuracy with Mastering Langraff Skill. Detailing Setup for Coding Assistant with AWS Agent Toolkit; Requesting Feedback and Interaction; Importance of Langraff in Graph-based Solutions. Enhancing Chatbot Prompt Suggestions Dynamically based on Conversation Context; Utilizing In-Memory Thread for Follow-up Questions in Langraff; Swapping Question Prompts with Tags for User-friendly Experience. Utilizing Different Models for Chatbot Tasks; Implementing Security Measures; Continuous Knowledge Base Updates for Accuracy.

1. Presentation on Langraff and LangChain

Short description:

Presentation on building a customer support bot with Langraff, Amazon Bedrock as base. LangChain Python library for LLMs.

Hey, everybody. So in this presentation, we are going to be talking about Langraff and how to build a customer support bot with Langraff and the concepts involved for why we're going to be using Langraff, what kind of capabilities Langraff provides for our agentic support bot so that we can accurately and effectively help customers with various different questions and insights. Various different questions and inquiries. And we will also talk about Amazon Bedrock as our base for our rag and knowledge base for the customer support bot to be grounded in its answers when it comes to product support. My name is Saurabh Dahal. I'm a developer advocate here at AWS, and I'll be taking you through this presentation in this talk.

So I just wanted to make sure we're aligned on some of the fundamental terms and concepts that we're going to need to know about so that we can understand why we're even using Langraff and what Langraff is. So a large language model, as you know, we've all been using large language models. It can make up things. So if a customer support bot is only attached to a large language model without things like RAG or Langraff, then it might just hallucinate. For example, I have this website here that has various different products, right? You have the Define Curl Cream. These are hair care products. There's prices listed here, ingredients, and how to use it, when it's best to use these particular hair care products.

Let's talk about LangChain now. So what is LangChain? LangChain is a Python library that allows us to make the LLMs, large language models, use tools that connect to data.

2. Utilizing RAG, LangChain, and LangRaph

Short description:

RAG - Retrieval Augmented Generation for accessing current information. LangChain using Bedrock and Amazon Knowledge Base. LangRaph classifies queries intelligently.

It doesn't really have memory either of the last message if we were to just attach this to a large language model. So RAG, that's one way to help make this better. RAG stands for Retrieval Augmented Generation. And what this allows us to do is it allows us to attach this source of knowledge, our company information in terms of the products, frequently asked questions, policies, if we have any special promotions that are currently limited time. Here in the United States right now, we have July 4th coming up. So many companies are doing special discounts for products for July 4th promotion. So maybe we have temporary promotions that are going on. Maybe we have certain refund policies going on. Maybe we have product recalls for certain products. We want the large language model to know about all that. And RAG is a way for us to allow our large language model to essentially have access to current information that is relevant that the large language model otherwise would not know about. Because the large language model, as you know, it just knows about information that is trained on. And maybe the training cutoff date for the large language model was several months ago, and it would have no idea about the latest information about our products in our store.

So we're going to talk about how that happens. But essentially, when I ask a large language model a question, instead of it just responding to its pre-trained data, we can use Python to program it. So that the large language model will be classifying our prompt based on what are we asking and what kind of tools does it need to use in order to answer our question properly? And what kind of data sources would this large language model can be attached to so that it can also get the latest information that is current related to maybe our products or our discounts or refund policies? In this app, we're going to be using Bedrock model. So LangChain is going to use Bedrock model. It's going to be connected to Bedrock to connect to certain models. And also, it's going to use the Amazon Knowledge Base Retriever to retrieve from our Bedrock Knowledge Base where we're going to have a bunch of company product specific data, frequently asked questions, refund policies, things like that.

LangRaph allows us to build agents as a graph. So think about like a flow chart. Maybe there's conditions, right? So if I ask it a certain question, it might classify it as, is this question related to products or is this question related to like order, specific order information? So if I ask it, hey, what's going on with the curl cream for their hair care products? How do I use it? It's going to classify that message as, is it related? Should the large language model look at the tool related to searching up information about the products in our RAG system on Bedrock? Or should it, is this question related to an order that we need to help process a return for a customer? Well, for that type of question about a curl hair care product, and how do I use this curl cream? It'll classify that as intelligently as it can and it'll classify it as a product related question. And it'll use the tools relevant to searching for products and reply accordingly. Or if I ask it, hey, I need to return this shampoo. Well, it'll classify that message as, well, it's not really related to searching for products. It's related to handling the return. So instead, it'll use a different tool related to return policy so that it can search up return policy related information and maybe even involve a human in the loop to approve the refund based on certain criteria if it's eligible for refund. So you can think of each of these boxes as a node, right, where it's going to, it has one job.

QnA

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Building a Voice-Enabled AI Assistant With Javascript
JSNation 2023JSNation 2023
21 min
Building a Voice-Enabled AI Assistant With Javascript
Top Content
This Talk discusses building a voice-activated AI assistant using web APIs and JavaScript. It covers using the Web Speech API for speech recognition and the speech synthesis API for text to speech. The speaker demonstrates how to communicate with the Open AI API and handle the response. The Talk also explores enabling speech recognition and addressing the user. The speaker concludes by mentioning the possibility of creating a product out of the project and using Tauri for native desktop-like experiences.
The Ai-Assisted Developer Workflow: Build Faster and Smarter Today
JSNation US 2024JSNation US 2024
31 min
The Ai-Assisted Developer Workflow: Build Faster and Smarter Today
Top Content
AI is transforming software engineering by using agents to help with coding. Agents can autonomously complete tasks and make decisions based on data. Collaborative AI and automation are opening new possibilities in code generation. Bolt is a powerful tool for troubleshooting, bug fixing, and authentication. Code generation tools like Copilot and Cursor provide support for selecting models and codebase awareness. Cline is a useful extension for website inspection and testing. Guidelines for coding with agents include defining requirements, choosing the right model, and frequent testing. Clear and concise instructions are crucial in AI-generated code. Experienced engineers are still necessary in understanding architecture and problem-solving. Energy consumption insights and sustainability are discussed in the Talk.
The Rise of the AI Engineer
React Summit US 2023React Summit US 2023
30 min
The Rise of the AI Engineer
Top Content
The rise of AI engineers is driven by the demand for AI and the emergence of ML research and engineering organizations. Start-ups are leveraging AI through APIs, resulting in a time-to-market advantage. The future of AI engineering holds promising results, with a focus on AI UX and the role of AI agents. Equity in AI and the central problems of AI engineering require collective efforts to address. The day-to-day life of an AI engineer involves working on products or infrastructure and dealing with specialties and tools specific to the field.
The AI-Native Software Engineer
JSNation US 2025JSNation US 2025
35 min
The AI-Native Software Engineer
Top Content
Software engineering is evolving with AI and VIBE coding reshaping work, emphasizing collaboration and embracing AI. The future roadmap includes transitioning from augmented to AI-first and eventually AI-native developer experiences. AI integration in coding practices shapes a collaborative future, with tools evolving for startups and enterprises. AI tools aid in design, coding, and testing, offering varied assistance. Context relevance, spec-driven development, human review, and AI implementation challenges are key focus areas. AI boosts productivity but faces verification challenges, necessitating human oversight. The impact of AI on code reviews, talent development, and problem-solving evolution in coding practices is significant.
AI and Web Development: Hype or Reality
JSNation 2023JSNation 2023
24 min
AI and Web Development: Hype or Reality
Top Content
This talk explores the use of AI in web development, including tools like GitHub Copilot and Fig for CLI commands. AI can generate boilerplate code, provide context-aware solutions, and generate dummy data. It can also assist with CSS selectors and regexes, and be integrated into applications. AI is used to enhance the podcast experience by transcribing episodes and providing JSON data. The talk also discusses formatting AI output, crafting requests, and analyzing embeddings for similarity.
Web Apps of the Future With Web AI
JSNation 2024JSNation 2024
32 min
Web Apps of the Future With Web AI
Web AI in JavaScript allows for running machine learning models client-side in a web browser, offering advantages such as privacy, offline capabilities, low latency, and cost savings. Various AI models can be used for tasks like background blur, text toxicity detection, 3D data extraction, face mesh recognition, hand tracking, pose detection, and body segmentation. JavaScript libraries like MediaPipe LLM inference API and Visual Blocks facilitate the use of AI models. Web AI is in its early stages but has the potential to revolutionize web experiences and improve accessibility.

Workshops on related topic

AI on Demand: Serverless AI
DevOps.js Conf 2024DevOps.js Conf 2024
163 min
AI on Demand: Serverless AI
Top Content
Featured WorkshopFree
Nathan Disidore
Nathan Disidore
In this workshop, we discuss the merits of serverless architecture and how it can be applied to the AI space. We'll explore options around building serverless RAG applications for a more lambda-esque approach to AI. Next, we'll get hands on and build a sample CRUD app that allows you to store information and query it using an LLM with Workers AI, Vectorize, D1, and Cloudflare Workers.
AI for React Developers
React Advanced 2024React Advanced 2024
142 min
AI for React Developers
Top Content
Featured Workshop
Eve Porcello
Eve Porcello
Knowledge of AI tooling is critical for future-proofing the careers of React developers, and the Vercel suite of AI tools is an approachable on-ramp. In this course, we’ll take a closer look at the Vercel AI SDK and how this can help React developers build streaming interfaces with JavaScript and Next.js. We’ll also incorporate additional 3rd party APIs to build and deploy a music visualization app.
Topics:- Creating a React Project with Next.js- Choosing a LLM- Customizing Streaming Interfaces- Building Routes- Creating and Generating Components - Using Hooks (useChat, useCompletion, useActions, etc)
Building Full Stack Apps With Cursor
JSNation 2025JSNation 2025
46 min
Building Full Stack Apps With Cursor
Featured Workshop
Mike Mikula
Mike Mikula
In this workshop I’ll cover a repeatable process on how to spin up full stack apps in Cursor.  Expect to understand techniques such as using GPT to create product requirements, database schemas, roadmaps and using those in notes to generate checklists to guide app development.  We will dive further in on how to fix hallucinations/ errors that occur, useful prompts to make your app look and feel modern, approaches to get every layer wired up and more!  By the end expect to be able to run your own AI generated full stack app on your machine!
Please, find the FAQ here
Vibe coding with Cline
JSNation 2025JSNation 2025
64 min
Vibe coding with Cline
Featured Workshop
Nik Pash
Nik Pash
The way we write code is fundamentally changing. Instead of getting stuck in nested loops and implementation details, imagine focusing purely on architecture and creative problem-solving while your AI pair programmer handles the execution. In this hands-on workshop, I'll show you how to leverage Cline (an autonomous coding agent that recently hit 1M VS Code downloads) to dramatically accelerate your development workflow through a practice we call "vibe coding" - where humans focus on high-level thinking and AI handles the implementation.You'll discover:The fundamental principles of "vibe coding" and how it differs from traditional developmentHow to architect solutions at a high level and have AI implement them accuratelyLive demo: Building a production-grade caching system in Go that saved us $500/weekTechniques for using AI to understand complex codebases in minutes instead of hoursBest practices for prompting AI agents to get exactly the code you wantCommon pitfalls to avoid when working with AI coding assistantsStrategies for using AI to accelerate learning and reduce dependency on senior engineersHow to effectively combine human creativity with AI implementation capabilitiesWhether you're a junior developer looking to accelerate your learning or a senior engineer wanting to optimize your workflow, you'll leave this workshop with practical experience in AI-assisted development that you can immediately apply to your projects. Through live coding demos and hands-on exercises, you'll learn how to leverage Cline to write better code faster while focusing on what matters - solving real problems.
The React Developer's Guide to AI Engineering
React Summit US 2025React Summit US 2025
96 min
The React Developer's Guide to AI Engineering
Featured WorkshopFree
Niall Maher
Niall Maher
A comprehensive workshop designed specifically for React developers ready to become AI engineers. Learn how your existing React skills—component thinking, state management, effect handling, and performance optimization—directly translate to building sophisticated AI applications. We'll cover the full stack: AI API integration, streaming responses, error handling, state persistence with Supabase, and deployment with Vercel.Skills Translation:- Component lifecycle → AI conversation lifecycle- State management → AI context and memory management- Effect handling → AI response streaming and side effects- Performance optimization → AI caching and request optimization- Testing patterns → AI interaction testing strategiesWhat you'll build: A complete AI-powered project management tool showcasing enterprise-level AI integration patterns.
Build LLM agents in TypeScript with Mastra and Vercel AI SDK
React Advanced 2025React Advanced 2025
145 min
Build LLM agents in TypeScript with Mastra and Vercel AI SDK
Featured WorkshopFree
Eric Burel
Eric Burel
LLMs are not just fancy search engines: they lay the ground for building autonomous and intelligent pieces of software, aka agents.
Companies are investing massively in generative AI infrastructures. To get their money's worth, they need developers that can make the best out of an LLM, and that could be you.
Discover the TypeScript stack for LLM-based development in this 3 hours workshop. Connect to your favorite model with the Vercel AI SDK and turn lines of code into AI agents with Mastra.ai.