> Discover all available pages from the documentation index: https://mastra.zisheng.pro/en/llms.txt # Build Your First Agent in TypeScript This course is your roadmap to becoming an AI Engineer. In 90 minutes, you'll build and deploy your first agent in TypeScript with Mastra. Along the way, you'll learn how the agent loop works under the hood, how tools let an agent reach into other systems, how MCP opens the door to external resources, and how context engineering and memory shape behavior across a conversation. By the end, you'll have shipped your first agent - and more importantly, you'll know how to build the next one on your own. The patterns you implement here carry directly into whatever you choose to build next. AI agents are the next platform shift. Understanding how to build them is now a core skill for engineers, and there's real opportunity for those who get there early. If you're excited about what's possible and want a clear, practical path to get there, this course is for you. [Head to the first lesson](https://mastra.zisheng.pro/en/learn/what-is-an-agent) to start building with Guil. ### Agents [What is an Agent?5 min](https://mastra.zisheng.pro/en/learn/what-is-an-agent)[Run Your First Agent5 min](https://mastra.zisheng.pro/en/learn/run-your-first-agent)[Project Structure4 min](https://mastra.zisheng.pro/en/learn/project-structure)[Create an Agent5 min](https://mastra.zisheng.pro/en/learn/create-an-agent) ### Tools [Create a Tool7 min](https://mastra.zisheng.pro/en/learn/create-a-tool)[Build with AI3 min](https://mastra.zisheng.pro/en/learn/build-with-ai)[Fetch Live Data7 min](https://mastra.zisheng.pro/en/learn/fetch-live-data)[Connect to MCP7 min](https://mastra.zisheng.pro/en/learn/connect-to-mcp) ### Workflows [Build a Workflow7.5 min](https://mastra.zisheng.pro/en/learn/build-a-workflow)[Agents vs. Workflows3 min](https://mastra.zisheng.pro/en/learn/agents-vs-workflows)[Agents in Workflows9 min](https://mastra.zisheng.pro/en/learn/agents-in-workflows) ### Memory [How Memory Works5.5 min](https://mastra.zisheng.pro/en/learn/how-memory-works)[Observational Memory5 min](https://mastra.zisheng.pro/en/learn/observational-memory)[Guardrails with Processors5 min](https://mastra.zisheng.pro/en/learn/guardrails-with-processors) ### Production [Deploy to Mastra platform4 min](https://mastra.zisheng.pro/en/learn/deploy-to-mastra-platform)[Chat With Agent in Slack9 min](https://mastra.zisheng.pro/en/learn/chat-with-agent-in-slack)