Skip to main content

Basic Tutorial

The Basic tutorial guides you from zero to a production-ready agent in progressive steps. Each step builds on the previous one, and every step works on the same agent: a chatbot you scaffold in step 1, which gains configuration, policies, an HTTP tool and MCP tools along the way, and is finally built into an image.

Framework Note

This tutorial uses LangGraph, the recommended framework for building stateful agents. AgentVisor™ also supports interactive exec mode for running shells and AI coding tools. See Supported Frameworks for details.

Learning Path​

StepTitleWhat You'll Learn
1Your First AgentCreate the chatbot-agent project, run it, understand the code
2Configuring Your AgentEnvironment variables with .env files
3Debugging Your AgentLogging, log levels, access logs
4Configuring AgentVisorRuntime config file, environment variables, precedence
5Adding PoliciesGive the agent an HTTP tool; allow and deny hosts with MPE policies
6Securing Your Agent's APITLS encryption, identity, OIDC (OpenID Connect)
7Connecting External ToolsGive the agent MCP tools, discovered and policy-checked
8Deploying Your AgentBuild the agent into an image, deploy to production

Prerequisites​

Before starting, ensure you have:

  • Docker installed and running
  • AgentVisor CLI installed (see Getting Started)
  • An AgentVisor license key (see Get a License Key)
  • jq installed (used throughout to pretty-print API responses in curl examples)

Skipping Ahead​

Want the finished agent without the walk-through? agentvisor template create langgraph/tutorial-agent scaffolds the project as it stands at the end of step 7: the chatbot, the fetch_url tool, the filesystem MCP server, and the policies that govern them.

Next Steps​

Start with Your First Agent to create and run an AI chatbot, then continue through the learning path to understand configuration, debugging, policies, and production deployment.