promptsdrop
← drops
code· #003 · May 7, 2026

Multi-Agent Bank Support (Python + LangGraph)

A supervisor agent that routes each question to specialist agents, with a real tool call to check account balances.

pythonlanggraphgemini⧉ 19 uses
// bank-support-agents.zip · 3 files
bank-support-agents/
.env.example35 B
main.py6 KB
requirements.txt62 B

Run it

01Download and unzip. You get main.py, requirements.txt and a .env example.
02Add your key. Rename .env.example to .env and add a free Gemini API key from aistudio.google.com.
03Run it. Install and start it with the command below, then ask "What's the balance of account 123456789?"
$ pip install -r requirements.txt && python main.py
main.py
1import os
2import warnings
3
4# 1. SUPPRESS WARNINGS (Must be done before other imports)
5warnings.filterwarnings("ignore")
6os.environ["PYTHONWARNINGS"] = "ignore"
7os.environ["GRPC_VERBOSITY"] = "NONE"
8
9from typing import TypedDict
10from dotenv import load_dotenv
11from langchain_google_genai import ChatGoogleGenerativeAI
12from langchain_core.prompts import ChatPromptTemplate
13from langchain_core.tools import tool
14from langgraph.graph import StateGraph, END
15from langgraph.prebuilt import create_react_agent
16
17# 2. LOAD ENVIRONMENT VARIABLES
18load_dotenv()
19api_key = os.getenv("GOOGLE_API_KEY")
20
21if not api_key:
22 print("ERROR: GOOGLE_API_KEY not found in .env file.")
23 exit()
24

Related drops