Skip to content

Azure-Samples/app-service-agentic-langgraph-foundry-node

Agentic Azure App Service app with LangGraph and Foundry agent Service

This repository demonstrates how to build a modern Node.js web application that integrates with both Foundry agents and LangGraph Agents. It provides a simple CRUD task list and two interactive chat agents.

Getting Started

See Tutorial: Build an agentic web app in Azure App Service with LangGraph or Foundry agent Service (Node.js).

Features

  • Task List: Simple CRUD web app application.
  • LangGraph Agent: Chat with an agent powered by LangGraph.
  • Foundry agent: Chat with an agent powered by Foundry agent Service.
  • OpenAPI Schema: Enables integration with Foundry agents.

Project Structure

  • src/app.ts — Main Express.js application entry point with middleware and route setup.
  • src/routes/api.ts — API router with task CRUD endpoints and chat agent routes.
  • src/agents/LangGraphTaskAgent.ts — LangGraph-based agent for task management chat.
  • src/agents/FoundryTaskAgent.ts — Foundry agent for task management chat.
  • src/services/TaskService.ts — Service class for task CRUD operations with SQLite.
  • src/types/index.ts — TypeScript interfaces for tasks, chat messages, and requests.
  • public/index.html — Single-page React frontend with task list and dual agent chat UI.
  • infra/ — Bicep and parameter files for Azure deployment.

About

Demonstrates how to build a modern Node.js web application that integrates with both Azure AI Foundry Agents and LangGraph Agents.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors