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.

May 26, 2026
Ashwin Mudaliar
# examples

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.

May 8, 2026
Ashwin Mudaliar
# examples

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.

Apr 23, 2026
Ashwin Mudaliar
# examples

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.

Oct 6, 2025
Sam Bhagwat
# examples

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.

Jul 30, 2025
Daniel Lew
# examples

Building an AI Research Assistant with vNext Workflows

A deep dive into building MastraManus, an AI research assistant powered by Mastra's vNext workflows.

Jun 6, 2025
Sam Bhagwat
# examples

Full-Stack TypeScript Agents with Mastra and Copilot Kit

Build a full-stack TypeScript agent with Mastra and Copilot Kit.

May 23, 2025
Shane Thomas
# examples

Building an Interactive Detective Game with Multi-Agent AI

How we built an interactive detective game using Mastra's agent system and Next.js.

May 10, 2025
Shane Thomas
# examples

FlashGenius: instantly generate flashcards on any topic

How we vibecoded Flash Genius, an instant flashcard generator, in 1 hour

May 8, 2025
Sam Bhagwat
# examples

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.

Apr 23, 2025
Shane Thomas
# examples

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.

Apr 22, 2025
Sam Bhagwat
# examples

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.

Apr 18, 2025
Shane Thomas
# examples

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

Apr 11, 2025
Shane Thomas
# examples

Mastra Text-to-SQL: from natural language to database queries

Use Mastra's Text-to-SQL system to convert natural language to database queries

Apr 4, 2025
Shane Thomas
# examples

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

Mar 6, 2025
Ehindero Israel
# examples

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

Mar 5, 2025
Sam Bhagwat
# examples

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.

Feb 28, 2025
Shane Thomas
# examples

Multi-Agent AI Travel Planning with Mastra

A demo using Mastra to show how multiple AI agents can work together to plan travel itineraries.

Jan 28, 2025
Sam Bhagwat
# examples

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.

Jan 16, 2025
Sam Bhagwat
# examples

Ship better agents