Skip to main content
Vizra ADK is in maintenance mode. It continues to work and receives compatibility fixes, but no new features are planned. For evaluating AI agents — now built on the official Laravel AI SDK — check out Vizra Evals, its successor for the evaluation use-case. Coming from ADK? See the migration guide.
Building AI agents has never been easier! In just a few steps, you’ll have your own intelligent agent up and running.

Installation via Composer

Let’s kick things off! First, we’ll add Vizra ADK to your Laravel project:
Terminal

Running the Install Command

Now let’s set everything up with our magical installation command:
Terminal
This command publishes config, runs migrations, sets up the web interface, and creates example agents to get you started!

Setting Up Your AI Provider

Before your agents can start thinking, they need access to an AI provider. Add your preferred AI provider’s API key to your .env file:
.env

OpenAI

GPT-4, GPT-3.5 TurboGet API Key

Anthropic

Claude 3 ModelsGet API Key

Google

Gemini Pro ModelsGet API Key

Which Provider Should I Choose?

  • OpenAI: Great all-around choice, GPT-4 for complex tasks, GPT-3.5 for speed
  • Anthropic: Claude excels at analysis, writing, and following instructions
  • Google: Gemini offers great performance and generous free tier
Don’t worry - you can switch providers anytime or use different ones for different agents!
Vizra ADK supports 10+ AI providers through Prism PHP, including DeepSeek, Mistral, Groq, and more. See all providers

5-Minute Quick Start: Build a Smart Assistant

Let’s build something real! In just 5 minutes, you’ll create an intelligent FAQ assistant that can answer questions about your product.

Step 1: Create the Agent

Terminal
Agent created at app/Agents/ProductAssistant.php

Step 2: Configure Your Agent

Open the agent file and give it some personality and knowledge:
app/Agents/ProductAssistant.php

Step 3: Test Your Agent

You have three ways to test your new agent:
Terminal
The web interface is perfect for development - you can see traces, debug tool calls, and test conversations visually!

Step 4: Use in Your Application

Use your assistant within Laravel:
routes/web.php
Your agent automatically maintains conversation history per user!

Congratulations! You Did It!

In just 5 minutes, you’ve created an AI assistant that can answer questions about your product. But this is just the beginning! Your agent can do so much more:
  • Add custom tools to let it search databases, send emails, or call APIs
  • Delegate tasks to sub agents
  • Enable vector memory to give it knowledge from your documentation
  • Create workflows to handle complex multi-step processes
  • Run evaluations to ensure quality at scale

Common Issues & Quick Fixes

”Invalid API Key” or “Unauthorized” Errors

This is the most common issue! Here’s how to fix it:
  1. Check your .env file has the correct API key (no extra spaces!)
  2. Clear config cache: php artisan config:clear
  3. Verify the API key is active in your provider’s dashboard
  4. For OpenAI: Ensure you have billing set up (even for free tier)

“Agent Not Found” Errors

  • Make sure your agent class extends BaseLlmAgent
  • Agent file must be in app/Agents/ directory
  • Class name must match filename (PSR-4 autoloading)
  • Run composer dump-autoload if needed

Database/Migration Issues

If you see database errors:
Terminal
This will reset your database! Use with caution in production.

Next Steps

Configuration

Fine-tune Vizra ADK to match your project’s needs perfectly

Understanding Agents

Master the art of building intelligent AI agents