• Documentation
  • Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
Serverless, inc.

Bedrock AgentCore: LangGraph Agent with Memory (JavaScript)

by

LangGraph JS agent using AgentCore Memory to persist and recall conversation history.

  1. Bedrock AgentCore: LangGraph Agent with Memory (JavaScript)

LangGraph Memory Example

A LangGraph JavaScript agent with AgentCore Memory for conversation persistence.

Features

  • Conversation Memory: Persist and recall conversation history across invocations
  • Session Management: Track conversations by session ID
  • Memory Expiration: Configurable TTL (30 days in this example)
  • LangGraph JS: ReAct agent with memory-enhanced context

How It Works

  1. On each invocation, the agent retrieves previous conversation history from AgentCore Memory
  2. History is injected as system context for the LLM
  3. After generating a response, the conversation turn is stored in memory
  4. Subsequent invocations in the same session recall previous context

Quick Start

Deploy

npm install
sls deploy

Test

RUNTIME_ARN=<your-runtime-arn> node test-invoke.js

Remove

sls remove

Related Examples

  • ../python/langgraph-memory - Python version

Contents

  • LangGraph Memory Example
  • Features
  • How It Works
  • Quick Start
  • Deploy
  • Test
  • Remove
  • Related Examples

Related

GuidesPluginsExamplesSlack CommunitySupport