World's Fair 2025
[Workshop] AI Pipelines and Agents in Pure TypeScript with Mastra.ai — Nick Nisi, Zack Proser
Overview
This workshop introduces Mastra.ai, a framework for building AI applications in TypeScript. It demonstrates how to create agentic workflows, focusing on composable pipelines, tools, and agents. The session highlights using TypeScript for production-ready AI applications, emphasizing patterns applicable to deploying AI solutions.
Who should watch
- AI Engineers
- Product Managers
- Developers building AI applications
- Those interested in agentic workflows and TypeScript for AI
- Individuals looking to streamline AI development with robust frameworks
Key takeaways
- Mastra.ai provides a framework for building production AI applications using TypeScript, enabling agentic workflows.
- Workflows are defined as composable, typed pipelines of discrete steps that can pass data between them.
- Tools are functions that agents can call to perform actions like file system access, API calls, or custom business logic.
- Agents serve as ideal human interfaces, allowing natural language interaction to trigger complex workflows or tools.
- The Mastra framework includes built-in features for debugging, persistence, memory, observability, and evaluation, crucial for production deployment.
- MCP (Model-Context Protocol) is an open standard for bringing universal plugins or tools to AI agents, supported by various platforms.
- The workshop uses a practical example of building an AI meme generator to illustrate these concepts, from defining workflows to interacting with agents.
- The Mastra local playground offers a robust environment for testing and debugging workflows and agents iteratively.
Notable quotes
*Mastra is a framework for building, you know, production AI applications in an agentic manner.*
*Workflows are composable pipelines. So, the way that I think about this is I map it in my head mentally to if a co-orker says, I just keep on having to go scrape the site and download people that look interesting and look up their info and then take an image and then write an email.*
*Agents are like the interfaces that we're chatting with. Um, they're the ideal interface for humans to work with.*
Unofficial community note. Prefer the recording for nuance.