Uploaded August 2026 | Updated September 2026, 2 weeks ago
π The LangChain 10 Days FREE Bootcamp is live: 10 lessons, free AI models only, from your first API call to a production grade RAG agent. Start with Day 0 for the roadmap and setup.
πΊ Full playlist: youtube.com/watch?v=KJ3_NExk7-Q&list=PLW4pPr9JCovI&index=1
----------
Day 3 of the free LangChain 10 Days Bootcamp. This lesson covers ChatPromptTemplate: how to stop rewriting the same prompt over and over, fill placeholders at runtime, and pass previous conversation history into a new chat.
We start with why prompt templates exist, using a customer support tool as the example (same boilerplate instructions, different email and tone every time). Then we build a template from scratch, fill it with a dictionary, add a second placeholder, and handle the missing-variable error the way you would in production. We also hit the curly braces trap that breaks templates containing real JSON, and fix it. The lesson ends with .partial() for filling placeholders in stages, and MessagesPlaceholder for carrying chat history across threads. Everything runs on a free API, so you can follow along without paying anything.
πΊ Full playlist (LangChain 10 Days Bootcamp): youtube.com/playlist?list=PLW4pPr9JCovI
β± Chapters:
0:00 Intro and Recap of Day 1 and Day 2
1:15 Why You Need a Prompt Template
2:40 Real Use Case: Support Reply Tone Dropdown
3:56 How System, Human and AI Messages Flow
6:09 What Happens If a Placeholder Is Missing
7:39 MessagesPlaceholder for Chat History
9:41 Recap: Free OpenRouter API Setup
10:34 Day 3 Notebook and LangSmith Tracing
12:23 Summarizing an Email the Brute Force Way
14:26 Building Your First ChatPromptTemplate
15:45 Filling the Email Placeholder at Runtime
17:35 Passing Filled Messages Straight to the Model
19:30 Checking input_variables on a Template
20:02 Adding a Second Placeholder for Tone
23:44 Switching the Tone from Warm to Formal
24:06 The Missing Placeholder Error in Practice
25:04 Handling Errors Cleanly with try/except
25:44 The Curly Braces Trap with JSON Data
27:25 The Fix: Double Curly Braces
28:38 Partial Fill with .partial()
30:40 MessagesPlaceholder in Code
33:48 Building the Prompt with Chat History
34:53 Testing History Against the Model
36:32 from_template vs from_messages
37:55 Wrap-Up and What's Next
π Resources:
Code + slides (GitHub): github.com/laxmimerit/Langchain-10-Days-Bootcamp
Browse free models on OpenRouter: openrouter.ai/models
LangSmith (free signup): smith.langchain.com
LangChain install docs: docs.langchain.com/oss/python/langchain/install
πΊ Watch first:
Day 1: LangChain Tutorial for Beginners: Free AI API Setup with OpenRouter
youtu.be/EMRRGr-uYkU
Day 2: LangChain Tutorial for Beginners: Messages, Roles and LangSmith Setup
youtu.be/T-J__9CS4jo
π Level up with my Udemy course:
Master LangChain v1 and Ollama - Chatbot, RAG and AI Agents: kgptalkie.com/langchain
If this made prompt templates click, leave a like and tell me in the comments which part tripped you up. Subscribe so you catch Day 4, where we chain the template, model, and parser into one line.
#LangChain #PromptEngineering #GenerativeAI #Python #LLM
π The LangChain 10 Days FREE Bootcamp is live: 10 lessons, free AI models only, from your first API call to a production grade RAG agent. Start with Day 0 for the roadmap and setup.
πΊ Full playlist: youtube.com/watch?v=KJ3_NExk7-Q&list=PLW4pPr9JCovI&index=1
----------
Day 3 of the free LangChain 10 Days Bootcamp. This lesson covers ChatPromptTemplate: how to stop rewriting the same prompt over and over, fill placeholders at runtime, and pass previous conversation history into a new chat.
We start with why prompt templates exist, using a customer support tool as the example (same boilerplate instructions, different email and tone every time). Then we build a template from scratch, fill it with a dictionary, add a second placeholder, and handle the missing-variable error the way you would in production. We also hit the curly braces trap that breaks templates containing real JSON, and fix it. The lesson ends with .partial() for filling placeholders in stages, and MessagesPlaceholder for carrying chat history across threads. Everything runs on a free API, so you can follow along without paying anything.
πΊ Full playlist (LangChain 10 Days Bootcamp): youtube.com/playlist?list=PLW4pPr9JCovI
β± Chapters:
0:00 Intro and Recap of Day 1 and Day 2
1:15 Why You Need a Prompt Template
2:40 Real Use Case: Support Reply Tone Dropdown
3:56 How System, Human and AI Messages Flow
6:09 What Happens If a Placeholder Is Missing
7:39 MessagesPlaceholder for Chat History
9:41 Recap: Free OpenRouter API Setup
10:34 Day 3 Notebook and LangSmith Tracing
12:23 Summarizing an Email the Brute Force Way
14:26 Building Your First ChatPromptTemplate
15:45 Filling the Email Placeholder at Runtime
17:35 Passing Filled Messages Straight to the Model
19:30 Checking input_variables on a Template
20:02 Adding a Second Placeholder for Tone
23:44 Switching the Tone from Warm to Formal
24:06 The Missing Placeholder Error in Practice
25:04 Handling Errors Cleanly with try/except
25:44 The Curly Braces Trap with JSON Data
27:25 The Fix: Double Curly Braces
28:38 Partial Fill with .partial()
30:40 MessagesPlaceholder in Code
33:48 Building the Prompt with Chat History
34:53 Testing History Against the Model
36:32 from_template vs from_messages
37:55 Wrap-Up and What's Next
π Resources:
Code + slides (GitHub): github.com/laxmimerit/Langchain-10-Days-Bootcamp
Browse free models on OpenRouter: openrouter.ai/models
LangSmith (free signup): smith.langchain.com
LangChain install docs: docs.langchain.com/oss/python/langchain/install
πΊ Watch first:
Day 1: LangChain Tutorial for Beginners: Free AI API Setup with OpenRouter
youtu.be/EMRRGr-uYkU
Day 2: LangChain Tutorial for Beginners: Messages, Roles and LangSmith Setup
youtu.be/T-J__9CS4jo
π Level up with my Udemy course:
Master LangChain v1 and Ollama - Chatbot, RAG and AI Agents: kgptalkie.com/langchain
If this made prompt templates click, leave a like and tell me in the comments which part tripped you up. Subscribe so you catch Day 4, where we chain the template, model, and parser into one line.
#LangChain #PromptEngineering #GenerativeAI #Python #LLM








![Hermes Agent Setup with Free AI API - Full Tutorial (2026)
π The LangChain 10 Days FREE Bootcamp is live: 10 lessons, free AI models only, from your first API call to a production grade RAG agent. Start with Day 0 for the roadmap and setup.
πΊ Full playlist: https://www.youtube.com/watch?v=KJ3_NExk7-Q&list=PLW4pPr9JCovI&index=1
Set up Hermes Agent on your desktop and run it completely free using OpenRouter β no paid API needed.
In this video, youll install Hermes Agent on Windows, walk through its full UI, connect a free AI API via OpenRouter, pick free models like Llama M.1 and Nemotron, test computer-control tasks, and fire two parallel sub-agents for real research. This lesson covers the complete setup from scratch β Telegram/Discord integrations, advanced tools, and deeper workflows are in the next lessons of this series.
β± Chapters:
0:00 Intro β Sub-Agents Researching Anthropic IPO in Real Time
1:06 What You Will Learn
1:15 Install Hermes Agent on Windows
1:58 Launch Hermes Agent
2:09 Hermes UI Walkthrough (Sessions, Skills, Tools, Messaging)
3:01 Settings β Models, Chat, Appearance, Workspace, Safety Controls
4:13 Persistent Memory β Agent That Learns From You
4:40 Voice Chat Setup (STT / TTS)
4:53 Free AI API Setup with OpenRouter
5:39 Get Your OpenRouter API Key
6:05 Connect OpenRouter to Hermes Agent
6:22 Browse and Select Free Models
7:10 Test the Free Model
7:25 Computer Control Demo β Organize ChatGPT Images
9:15 Multi-Agent Research Demo β Anthropic IPO
10:09 Sub-Agents Running in Parallel
10:48 Supervisor Agent Final Recommendation
11:44 Outro
π Resources:
Hermes Agent download: [see video description β link below]
OpenRouter: https://openrouter.ai
OpenRouter API Keys: https://openrouter.ai/keys
πΊ Watch next:
Qwen 3.6 + Hermes Agent β Powerful Local AI Beast: https://www.youtube.com/watch?v=f8akrfxrJWg
OpenClaw Self Improving Agent β Full Tutorial: https://www.youtube.com/watch?v=zBqbodcj8Rc
Free OpenClaw Tutorials playlist: https://www.youtube.com/playlist?list=PLc2rvfiptPSQMZf3rlYZZ8vwUBcm6jv4d
π Go deeper β my Udemy course:
Master LangChain v1 and Ollama β Chatbot, RAG and AI Agents β https://kgptalkie.com/langchain
If this helped, hit like and subscribe β the full Hermes Agent series is coming. Comment below where you get stuck and I will cover it in the next lesson.
#HermesAgent #FreeAI #OpenRouter Hermes Agent Setup with Free AI API - Full Tutorial (2026)](https://i.ytimg.com/vi/PweUF4T9FSU/mqdefault.jpg)

