Watch Me Build an AI Chat Agent Solution for a Real Client

AI FOR DEVS · Intermediate ·🤖 AI Agents & Automation ·1y ago

Key Takeaways

This video teaches how to build an AI chat agent solution for a real client using AI agents and coding techniques

Full Transcript

in this video you'll watch me build an AI chat agent for a client the client is an ebike rental business in Berlin they want a chat feature on their website capable of answering all customer questions for example how much an ebike costs which models are available and if there's a nearby location they provided files containing all the necessary information in the next few minutes I'll demonstrate how you could handle similar situations and build the same chatbot yourself I'll show you a straightforward method using n8n a no code tool that allows us to create the necessary workflows later I'll demonstrate how to use it to easily populate your own Vector store with the required data and build a chat that accesses this data I'll also provide example code for accessing a provided chat endpoint to integrate the chat into your web applications the complete process consists of three steps prepare the data given by the client build a workflow that inserts the data into a vector store build a chat agent that can access the vector store to instantly answer based on this data this video will equip you with all the knowledge needed to build these types of chat Bots for yourself or to offer as a service to clients if you're considering starting your own AI side hustle whether through AI SAS applications or freelancing visit AI for dev.com without further Ado let's dive in and build this solution together after completing the free registration we arrive at the main interface where we can immediately begin creating a workspace our initial step is to add a manual trigger next we'll establish a connection to Google Drive we search for Google Drive and click on the first result in this step we want to search files within the drive we first need to establish a connection to the Google Drive API to create this connection we need a client ID and a client secret we'll obtain these from the Google Cloud console first ensure the Google Drive API is activated indicated by a check mark if not activate it by clicking the appropriate button our next step is to create the client ID and client secret navigate to credentials select create credentials and choose o or client ID select web application assign a name and input the URL from n8n after creation you'll receive a client ID and client secret enter these in n8n and save test The Connection by clicking sign in with Google and confirming the dialogue a successful connection will be indicated now let's add a filter to select only files from the Berlin bike folder test this step to confirm it recognizes all relevant text files now that we have access to the files we need to download them to the workspace before adding them to the vector store for file downloading search for Google Drive again and select download file choose the credentials we just created we'll use the ID from the current step for each file and replace the file name with the actual name test this step to ensure proper file downloading and it looks good we see that the files have been downloaded accordingly we can now take care of the integration within pine cone for this we search for pine cone and select the pine cone Vector store we see that an API key is needed to connect to access our pine cone instance we go to the pine cone page and create a so-called Index this corresponds to a database in a relational database we select text embedding three small as the embedding and since we want to create a free index we use Amazon as a provider we see that an empty index is now being created and we can use it right away we then click on API keys and create a new API key we copy this and can now enter it here this worked well too we can save the files in the new index bike Berlin now we have to tell it how the embeddings should be created and here we select the same embedding again but in order to make it possible we first have to connect it to open AI That's why I copy my open AI key and now select the same embedding model again text embedding three small we now have to adjust at the vector store that we want to add data for this we click on Pine Cone Vector store and select insert documents as operation mode when we have done that we see a new plus symbol and here we can then select how the data is loaded we select binary and leave all other options exactly as before we have to tell it how large texts should be split and for this we take the simplest the token splitter which should split the texts all 5,000 tokens and there should be an overlap of 1,000 tokens good then we can execute it for this we just click on the small play button okay that looks very good and we can now look in Pine Cone whether the data has been correctly entered in our index we see several entries and if we go to the clear text view then we see the content of the different text files with information such as the locations or the bike types perfect in the next step we will now take care of building a chat that can respond to this data we start here with a trigger that starts when a chat message is received and we add an AI agent node in the next step we choose the option conversational agent and give him a system message that fits his task better we tell him you're a helpful AI assistant that helps bikes Berlin to provide useful answers to customers questions you're humorous and you don't make things up if you don't find the answer ask the customer to call the hotline now we have to assign a language model to the agent we use GPT 4 for this as memory we use a simple window buffer memory which keeps the last five messages local like a kind of short-term memory we tell him that he can call a vector store via the vector store tool and as a description of this tool we say that he should call this tool if he wants to give relevant and useful answers to the customer all right let's tidy up a bit to keep everything organized now we have to select that the database under the tool is our pine cone database and we enter the corresponding index now we need to tell him which embedding was used initially we can do this by clicking on the small plus icon labeled embedding and to correctly interpret the embedding we select text embedding three small again then we have to determine a language model that interprets the results of pine cone here we use again gp40 I think our Masterpiece is complete and we have a great first version we have an agent that is triggered whenever a new message is received the chat has short-term memory and can access a tool connected to the pine cone database where our documents are already embedded now we can try out our chat how much does an ebike cost for one hour the calculation looks good it says that an ebike costs €1 based on the data in the text document I ask again if he has bikes near Alexander Plotz this question is also correctly answered from the information from the text documents now we have a question that is a bit more complex and he says he can't answer it but he correctly refers to the hotline perfect now I want to show you how to install this chat on a real website with custom code we see here that we have a chat URL that can be reached from outside we can use this URL in our code to address the chat I have here a small example script built which uses this URL and a small web UI you can find a link to the code in the description it's a very basic JavaScript node project that gives you a starting point to integrate these chats in your websites

Original Description

💡 Liked this video? This was just the surface. Get the full code, deep-dive lessons, and premium projects here → https://ai-for-devs.com/youtube
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Playlist UUL_DTHlvMUDGnBV0_B7NTyQ · AI FOR DEVS · 17 of 46

1 Build LLama 3 Chatbot on Groq Cloud with INSANE 800 TOKENS per second!
Build LLama 3 Chatbot on Groq Cloud with INSANE 800 TOKENS per second!
AI FOR DEVS
2 Build a Terminator Vision and Voice System with GPT-4V & ElevenLabs
Build a Terminator Vision and Voice System with GPT-4V & ElevenLabs
AI FOR DEVS
3 GPT-4o API: Create Your Own Talking and Listening AI Girlfriend
GPT-4o API: Create Your Own Talking and Listening AI Girlfriend
AI FOR DEVS
4 Vision-based Web Scraping with the New GPT-4o model
Vision-based Web Scraping with the New GPT-4o model
AI FOR DEVS
5 Course Preview: Real-Time AI Mastery: Voice & Smart Assistants
Course Preview: Real-Time AI Mastery: Voice & Smart Assistants
AI FOR DEVS
6 Course Preview: AI Fundamentals
Course Preview: AI Fundamentals
AI FOR DEVS
7 GPT-4o API: Create Your Own Talking and Listening AI Girlfriend #gpt4o #ai  #chatgpt
GPT-4o API: Create Your Own Talking and Listening AI Girlfriend #gpt4o #ai #chatgpt
AI FOR DEVS
8 Preview: Build your own YODA with MemGPT & Elevenlabs
Preview: Build your own YODA with MemGPT & Elevenlabs
AI FOR DEVS
9 Creating an Illustrated Book with GPT-4o Autogen Studio
Creating an Illustrated Book with GPT-4o Autogen Studio
AI FOR DEVS
10 NEW Claude 3.5 Sonnet API: Build a Handwriting Analyzer Web App from Scratch
NEW Claude 3.5 Sonnet API: Build a Handwriting Analyzer Web App from Scratch
AI FOR DEVS
11 Groq API: Real-Time Chatting with All Your Podcasts & MP3s
Groq API: Real-Time Chatting with All Your Podcasts & MP3s
AI FOR DEVS
12 NEW Claude 3.5 Sonnet API: Create Your Own AI Book Author & Illustrator App
NEW Claude 3.5 Sonnet API: Create Your Own AI Book Author & Illustrator App
AI FOR DEVS
13 Build A Talking AI Agent with Claude 3.5 Sonnet - Python Tutorial
Build A Talking AI Agent with Claude 3.5 Sonnet - Python Tutorial
AI FOR DEVS
14 NEW GPT-4o Mini API - First Impressions: Real-World Use Cases … and Why It Beats GPT-4o
NEW GPT-4o Mini API - First Impressions: Real-World Use Cases … and Why It Beats GPT-4o
AI FOR DEVS
15 Building A LinkedIn Outreach AutoGen Workforce
Building A LinkedIn Outreach AutoGen Workforce
AI FOR DEVS
16 ClaudeDev: This Mind-Blowing Coding Agent Can Build SaaS Apps in Minutes!
ClaudeDev: This Mind-Blowing Coding Agent Can Build SaaS Apps in Minutes!
AI FOR DEVS
Watch Me Build an AI Chat Agent Solution for a Real Client
Watch Me Build an AI Chat Agent Solution for a Real Client
AI FOR DEVS
18 Build an Insane Realistic Uncensored Image Generator App with Cursor
Build an Insane Realistic Uncensored Image Generator App with Cursor
AI FOR DEVS
19 3 Cursor Hacks to Boost Your Development Speed
3 Cursor Hacks to Boost Your Development Speed
AI FOR DEVS
20 LLAMA 3.2 Just Dropped! Let's Build a Full-Stack App with Incredible VISION
LLAMA 3.2 Just Dropped! Let's Build a Full-Stack App with Incredible VISION
AI FOR DEVS
21 Run LLAMA 3.2 Models Locally with Ollama and Open WebUI
Run LLAMA 3.2 Models Locally with Ollama and Open WebUI
AI FOR DEVS
22 OpenAI Swarm - The New Groundbreaking AI Agent Framework
OpenAI Swarm - The New Groundbreaking AI Agent Framework
AI FOR DEVS
23 Enhancing OpenAI Swarm Agents with Real Business Data and Email Integration
Enhancing OpenAI Swarm Agents with Real Business Data and Email Integration
AI FOR DEVS
24 Building an OpenAI o1 Clone with Nemotron
Building an OpenAI o1 Clone with Nemotron
AI FOR DEVS
25 Building an OpenAI o1 Clone with Nemotron, RunPod, and Open WebUI
Building an OpenAI o1 Clone with Nemotron, RunPod, and Open WebUI
AI FOR DEVS
26 GROK 2: The Power—and Danger—of Uncensored AI
GROK 2: The Power—and Danger—of Uncensored AI
AI FOR DEVS
27 Magentic One: Microsoft’s Revolutionary Multi-Agent AI System
Magentic One: Microsoft’s Revolutionary Multi-Agent AI System
AI FOR DEVS
28 Building and Tracking AI Agents with LangChain and LangSmith
Building and Tracking AI Agents with LangChain and LangSmith
AI FOR DEVS
29 NEW Model Context Protocol Revolutionizes AI Database Access
NEW Model Context Protocol Revolutionizes AI Database Access
AI FOR DEVS
30 Claude MCP Step-by-Step: AI + Files + Search + Databases = Magic!
Claude MCP Step-by-Step: AI + Files + Search + Databases = Magic!
AI FOR DEVS
31 Claude MCP Step-by-Step: AI + Files + Search + Databases = Magic!
Claude MCP Step-by-Step: AI + Files + Search + Databases = Magic!
AI FOR DEVS
32 Magentic One: Microsoft’s Revolutionary Multi-Agent AI System
Magentic One: Microsoft’s Revolutionary Multi-Agent AI System
AI FOR DEVS
33 Turn Claude Into Your Ultimate AI Hub – Connect Anything with Custom MCP Servers!
Turn Claude Into Your Ultimate AI Hub – Connect Anything with Custom MCP Servers!
AI FOR DEVS
34 Build A Human-Like AI Agent That Feels Shockingly Real with Gemini 2.0 Flash API
Build A Human-Like AI Agent That Feels Shockingly Real with Gemini 2.0 Flash API
AI FOR DEVS
35 Build Real-World Apps with DeepSeek V3: 98% Cheaper & Better Than GPT
Build Real-World Apps with DeepSeek V3: 98% Cheaper & Better Than GPT
AI FOR DEVS
36 Build a Talking Smarter-Than-You AI Girlfriend (DeepSeek R1 Tutorial)
Build a Talking Smarter-Than-You AI Girlfriend (DeepSeek R1 Tutorial)
AI FOR DEVS
37 This AI Girlfriend is Smarter Than You (And She’s Not Nice) - DeepSeek R1 Tutorial
This AI Girlfriend is Smarter Than You (And She’s Not Nice) - DeepSeek R1 Tutorial
AI FOR DEVS
38 NEW Gemini 2.0 EXP is MIND-BLOWING: Create Children's Stories with YOUR CHARACTERS (API Tutorial)
NEW Gemini 2.0 EXP is MIND-BLOWING: Create Children's Stories with YOUR CHARACTERS (API Tutorial)
AI FOR DEVS
39 Gemini 2.5 Pro + Cursor + Custom MCP Server: The ULTIMATE AI Powerhouse!
Gemini 2.5 Pro + Cursor + Custom MCP Server: The ULTIMATE AI Powerhouse!
AI FOR DEVS
40 Manus AI: Building a Profitable AI Business from Scratch in 45 Min
Manus AI: Building a Profitable AI Business from Scratch in 45 Min
AI FOR DEVS
41 Run LLaMA 4 at Lightning Speed (Almost Free!)
Run LLaMA 4 at Lightning Speed (Almost Free!)
AI FOR DEVS
42 Coding Showdown: Building A Learning App - GPT-4.1 vs Sonnet 3.7
Coding Showdown: Building A Learning App - GPT-4.1 vs Sonnet 3.7
AI FOR DEVS
43 Is GPT 4.1 in Cursor the NEW KING? 👑 Coding Challenge vs Claude 3.7 Sonnet
Is GPT 4.1 in Cursor the NEW KING? 👑 Coding Challenge vs Claude 3.7 Sonnet
AI FOR DEVS
44 Build Your Own Video SaaS in Minutes with OpenAI Codex
Build Your Own Video SaaS in Minutes with OpenAI Codex
AI FOR DEVS
45 Build an AI Skin Improver SaaS with Cursor & MCP
Build an AI Skin Improver SaaS with Cursor & MCP
AI FOR DEVS
46 Einführung in LLMOps - Best Practices für Betrieb von LLMs
Einführung in LLMOps - Best Practices für Betrieb von LLMs
AI FOR DEVS

Related Reads

📰
GPT-5.6 Just Dropped: Why 90% of Freelance Designers Will Be Out of Business by December (And it’s…
GPT-5.6's release may replace 90% of freelance designers by December, making design execution a commodity
Medium · ChatGPT
📰
A differential oracle: making agentic code prove its own correctness
Learn how to create a differential oracle for agentic code to prove its own correctness, a crucial step in developing reliable AI systems
Dev.to · Erik Hill
📰
A Law Aimed at AI Girlfriends Just Wiped 8 Million Agents From China's Biggest AI App
China's biggest AI app lost 8 million agents due to a new law targeting AI girlfriends, learn how regulations impact AI development
Medium · Programming
📰
AI pilots do not die at the demo. They die at the handover.
AI systems often fail after passing evaluation, highlighting the importance of handover and post-deployment monitoring
Medium · AI
Up next
How To Build Your Own RAG AI System - Better Results Than Claude
Web Dev Simplified
Watch →