Build Your First AI Agent in Go (Complete Tutorial)

In this tutorial, I'll show you how to build an AI agent in Go using my Fleet framework. We'll create an intelligent system that can decide whether to answer questions directly or fetch data from external APIs. I'll walk you through the node-based architecture, shared store pattern, and how to connect everything together into a working AI agent. Checkout Flyt the workflow "framework" used in this video https://github.com/mark3labs/flyt Timestamps 00:00 - Introduction & What We'll Build 00:17 - What is an AI Agent? (Definition & Approach) 01:17 - System Architecture Overview 01:23 - Understanding Node-Based Workflows 02:23 - Introducing the Fleet Framework 04:25 - Node Phases: Prep, Exec, and Post 05:04 - Understanding Shared Store Concept 05:54 - Setting Up the Go Project 06:46 - Creating the Main Function & Command Line Interface 07:02 - Building the Decision Node 07:58 - Implementing the LLM Integration 09:00 - Creating Node Phases (Prep, Exec, Post) 11:21 - Implementing OpenAI API Client 12:42 - Handling LLM Responses & Actions 13:53 - Setting Up Flow and Shared Store 14:55 - Testing Basic Functionality 15:41 - Building the Ethereum Price Node 17:22 - Connecting Nodes in Fleet Framework 18:28 - Testing Ethereum Price Functionality 18:53 - Creating the Weather Node 20:43 - Final Testing & Multi-Node Workflows 21:41 - Conclusion & Next Steps 👋 About Me Hey! I'm Ed Zynda, software engineer with 20+ years of experience and founder of Mark III Labs. On this channel, I break down complex topics in blockchain, AI, and Go development into practical, hands-on tutorials. I'm also the creator of mcp-go, one of the most popular Go SDKs for the Model Context Protocol. Whether you're building smart contracts, AI agents, or developer tools — I've got you covered! ► WORK WITH ME ◄ https://mark3labs.com ► SUBSCRIBE TO THIS CHANNEL ◄ For more videos on building cool things for the web, AI, and blockchain:    / whatthefunc   ► JOIN THE COMMUNITY ◄   / discord   🌐 Website: https://what-the-func.com 🐦 Follow me on X (@what_the_func):   / what_the_func   📬 Email: [email protected]