Skip to content

PRO TIP Block youtube.com at the DNS level โ€” Pi-hole, NextDNS or your hosts file โ€” but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

#33 Deploy Your AI Agent with FastAPI + LangSmith Studio + LangServe (Full Tutorial) #langchain

1.7K views on YouTube

You built an AI agent. Great. But how do you actually deploy it so others can use it? In this video I show you exactly how to take any AI agent and deploy it on a FastAPI server plus connect it to LangSmith Studio for monitoring and testing.

We build a Google Search AI Agent using LangChain and Groq, then deploy it in two different ways. First we connect it to LangSmith Studio where you get a full chat UI, graph visualization, node-by-node tracking, and even human-in-the-loop interrupt support out of the box. Second we convert the same agent into a proper REST API using FastAPI and LangServe so any frontend application can call it.

What we cover in this video:

– Building a Google Search Agent (LangChain + Groq + SerpAPI)
– Setting up tool with docstring and decorator
– Creating the agent with system prompt and memory
– Local testing the agent
– Setting up LangSmith API key
– Creating langgraph.json config file
– Deploying to LangSmith Studio using langgraph dev command
– Chat mode testing in LangSmith Studio
– Graph mode with node-by-node execution tracking
– Adding interrupt (human-in-the-loop) in LangSmith Studio
– Installing FastAPI and LangServe
– Creating FastAPI app with add_routes from LangServe
– Auto-generated invoke and stream API endpoints
– Testing APIs from Swagger UI docs
– Adding multiple agents to the same FastAPI server
– Running agent APIs alongside regular FastAPI endpoints

IMPORTANT RESOURCES:
๐Ÿ“‚ GitHub Repository: https://github.com/techsimpluslearning/Complete-GenAI-Course-Python-Langchain
๐Ÿ’ฌ Discord Community: https://discord.gg/Y5gASsas9j
Telegram Group: https://t.me/+ZILeEp0hvjVmNmE9

If you have any questions or doubts, feel free to reach out to me.
๐Ÿ“ž Schedule 1-to-1 Call: https://topmate.io/techsimplus_learnings

Enjoying the content? LIKE ๐Ÿ‘ this Video, SUBSCRIBE ๐Ÿ”” for Data Science, Machine Learning, Deep Learning and Generative AI tutorials, and COMMENT below if you have any questions, doubts or Suggestions! ๐Ÿš€

Let’s master GenAI together! ๐Ÿš€๐Ÿ”ฅ

#generativeai #langchain #python #ai #machinelearning #aiprojects #langgraph #rag #aiagents #openai #gemini #awsbedrock #fastapi #modelcontextprotocol #streamlit #aitutorial #learnai #coding #programming #indianyoutuber #hinditutorial #techeducation #aicourses #portfolio #careergrowth #vectordatabases #aideployment #2026 #deeplearning #nlp #chatgpt #gemini #genai #techsimplus #ollama #groq #grok #aiagents #ai #gpt