Blog: Examples
19 posts on Examples from the Mastra blog.
Build a RAG agent with Mastra and Elasticsearch
How Elastic's reference build wires Mastra's agent, tool, and memory primitives onto Elasticsearch's vector store to answer questions over a corpus of 500 sci-fi movies.
Building a voice research agent with Mastra, Render, and AssemblyAI
How ravendr — Render and AssemblyAI's reference voice research agent — combines the AssemblyAI Voice Agent API, Render Workflows, and per-stage Mastra agents to answer in under 60 seconds without dead air.
Build Agents with Retrieval and Long-Term Memory Using Mastra and MongoDB
A tutorial on building a movie recommendation agent with vector search and Observational Memory — all on a single MongoDB Atlas cluster.
Migration Guide: VNext to Standard APIs
Learn how to migrate from Mastra’s VNext streaming methods to the new standard APIs, with details on renaming, compatibility, and key differences between AI SDK v4 and v5.
Building low-latency guardrails to secure your agents
How we built a suite of out-of-the-box input processors and optimized them from 5000ms to under 500ms per request.
Building an AI Research Assistant with vNext Workflows
A deep dive into building MastraManus, an AI research assistant powered by Mastra's vNext workflows.
Full-Stack TypeScript Agents with Mastra and Copilot Kit
Build a full-stack TypeScript agent with Mastra and Copilot Kit.
Building an Interactive Detective Game with Multi-Agent AI
How we built an interactive detective game using Mastra's agent system and Next.js.
FlashGenius: instantly generate flashcards on any topic
How we vibecoded Flash Genius, an instant flashcard generator, in 1 hour
Building a Web Browsing Agent with Mastra and Stagehand
See how we built a web browsing agent using Mastra and Stagehand. Learn about the tools needed to allow your agents to control a browser.
Dynamic Agents: Inserting Runtime Context in Mastra
Mastra's dynamic agents provide a powerful way to handle context in AI applications, without exposing sensitive information to the LLM or relying on globals.
Building a Personal Assistant with Mastra and MCP
How we built a personal assistant that can manage emails, monitor GitHub activity, schedule social media posts, and more - all through a Telegram interface.
PDF-to-Blog: Giving documents a second life with Mastra and Mistral OCR
A technical guide showing how to build a PDF-to-blog converter using Mastra and Mistral OCR
Mastra Text-to-SQL: from natural language to database queries
Use Mastra's Text-to-SQL system to convert natural language to database queries
Integrating Mastra with Next.js: Two Approaches for AI-Powered Apps
A comprehensive guide to adding Mastra's agent capabilities to your Next.js applications, with flexible integration options for projects of any size
Building a Code Assistant with Large Context Windows
How we used Mastra and Gemini Flash 2.0 to build a natural language interface for code repositories
From Whiteboard to Excalidraw: Building a Multi-Agent Workflow
How we built a whiteboard image to Excalidraw converter using Mastra's multi-agent workflows, and what we learned about breaking down complex AI tasks into deterministic steps with validation loops.
Multi-Agent AI Travel Planning with Mastra
A demo using Mastra to show how multiple AI agents can work together to plan travel itineraries.
Building a NotebookLM clone with an agent orchestrator
A technical guide showing how to build a NotebookLM clone that transforms documents into AI-generated podcasts using Mastra's agent orchestration, Pgvector vector storage, and LlamaIndex for content processing.