Skip to main content

Prerequisites

Before you begin, install the following:

Choose your path

Minimal LangGraph agent example

If you do not have an agent file yet, create agent.py alongside your config:
agent.py
from langgraph.graph import StateGraph, MessagesState

def chatbot(state: MessagesState):
    from langchain_openai import ChatOpenAI
    model = ChatOpenAI(model="gpt-4o-mini")
    return {"messages": [model.invoke(state["messages"])]}

graph = StateGraph(MessagesState)
graph.add_node("chatbot", chatbot)
graph.set_entry_point("chatbot")
graph.set_finish_point("chatbot")
This example requires the OPENAI_API_KEY environment variable. Export it in your shell or add it to your .env file before starting the agent.

Next steps

Frameworks

Configure LangGraph or Google ADK agents in detail

Guardrails

Add PII detection, jailbreak prevention, and content filters

Observability

Connect Langfuse, Phoenix, LangSmith, or GCP Trace

Memory

Set up SQLite or PostgreSQL checkpointing

Templates

Clone a runnable agent template to start faster

Manager tutorial

Full walkthrough of the Manager UI
Last modified on March 31, 2026