This is the code repository for AI Networking Cookbook, First Edition, published by Packt.
Eric Chou
Transform your approach to network automation with the power of AI LLM assistants guided by hands-on recipes for building custom automation solutions quickly using artificial intelligence. You’ll learn tools and techniques such as Vibe coding for conversational development, OpenAI API scripts, prompt engineering for better outputs, local LLM fine-tuning, combining models with LangChain, and Streamlit-based frontends development. The book progresses from simple Python scripts to advanced AI-assisted automation techniques, including multi-vendor API integration, showing you how AI can enhance network configuration, monitoring, security, and troubleshooting. Each recipe presents realistic mock data, complete code examples, and step-by-step guidance, creating a safe environment for experimentation while building a solid foundation for future production use. Whether you want to automate routine configuration, implement AI-driven troubleshooting, or build compliance monitoring systems, this cookbook helps you connect your networking expertise with the capabilities of modern AI.
- Understand the AI LLM landscape and key parameters for networking tasks
- Create OpenAI-enabled scripts for daily network engineering workflows
- Master prompt engineering techniques for improved AI outputs
- Build local LLMs using Ollama for network applications
- Chain language models with LangChain for complex network solutions
- Develop AI application frontends using the Streamlit framework
- Design robust backends for network AI applications
- Build an end-to-end network copilot by integrating all the techniques you've learned
- The AI LLM Landscape and Key Parameters
- OpenAI Recipes for Network Engineers
- Prompt Engineering for Reliable Outputs
- Local AI LLM Playground in Network Engineering
- LangChain for Networking Tasks
- Building an AI LLM Network Application Frontend with Streamlit
- Building AI LLM Application Backends
- Building a Network Co-Pilot
- Network Monitoring and Performance Use Cases with MCP
- Network Security through Vibe Coding
Eric Chou Eric Chou is a seasoned technologist with over 20 years of experience. He has worked on some of the largest networks in the industry while working at Amazon, Microsoft, and other Fortune 500 companies. Eric is passionate about network engineering, AI, Python, and helping companies build better automation culture. Eric is the host of the popular Network Automation Nerds podcast, author of top-selling books, and a community builder. He shares his deep interest in technology through his books, online classes, speaking engagements, and contributions to the open source community.
