Available Examples
Customer Support Agent
Build a customer support agent with knowledge base search and order management tools
Code Assistant
Create a coding assistant with file operations and code analysis capabilities
Data Analysis Agent
Build a data analysis agent with conditional logic and role-based access control
Multi-Tool Agent
Create agents with multiple tools using both AI SDK and Mastra frameworks
What You’ll Learn
These examples demonstrate:- Prompt Building - Structured approach to creating agent prompts with identity, capabilities, and constraints
- Tool Integration - Adding tools with Zod schemas for real-time data access
- Framework Compatibility - Using PromptSmith with Vercel AI SDK and Mastra
- Advanced Features - Validation, conditional logic, and production patterns
- Best Practices - Real-world patterns for building reliable AI agents
Prerequisites
All examples require:For AI SDK Examples
For Mastra Examples
Quick Start
Each example is self-contained and can be run independently:Example Structure
Each example follows a consistent pattern:- Overview - What the example demonstrates
- Prerequisites - Required packages and setup
- Complete Code - Full, runnable implementation
- Step-by-Step Walkthrough - Detailed explanation of each part
- Expected Output - What you’ll see when running the example
- Key Concepts - Important takeaways and best practices
Next Steps
Core Concepts
Learn the fundamentals of the PromptSmith builder pattern
API Reference
Explore the complete API documentation