Video23 min watch

FREE n8n RAG AI Agent Executive Assistant!🤖 (Template) Pinecone Vector Store Telegram Email Calendar

In this video

  1. 00:00Introduction to Building AI Agents with N8N
  2. 00:32Overview of the Telegram RAG Orchestration Agent
  3. 01:04Modular AI Agent Setup and LLM Integration Options
  4. 01:37Free JSON Template for AI Agent Setup
  5. 02:05Basic Requirements: Pinecone Vector Store & Telegram Setup
  6. 02:27Setting Up Telegram Bot and Connection to N8N
  7. 03:06Handling Voice Messages with OpenAI Whisper
  8. 03:29Creating a Telegram Bot with BotFather
  9. 03:58Voice vs. Text Processing with Switch Node
  10. 04:33Join Stride AI Academy for Free Resources
  11. 05:03System Message and Agent Capabilities Overview
  12. 05:40Expanding Agent Capabilities with CRM & Spreadsheets
  13. 06:11AI Agent Operating Principles & Tool Selection
  14. 06:52Sponsored Segment: Stride Agents AI Appointment Setters
  15. 07:34AI Agent Context Window and Memory Handling
  16. 08:02Vector Store Integration with Pinecone
  17. 08:49Email AI Agent Workflow & Execution
  18. 09:16Live Test: Sending an Email and Calendar Invite
  19. 09:43Reviewing Execution Logs for AI Agent Actions
  20. 10:11Breakdown of Calendar and Email Task Agents
  21. 10:43Features of the Calendar Task Agent
  22. 11:13Comparison to Previous Stride AI Agent Version
  23. 11:45Vector Database Integration with Google Drive
  24. 12:09Uploading Documents to Pinecone Vector Store
  25. 12:34Free 79-Page RAG AI Agent Guide & Course
  26. 13:06Live Test: RAG AI Agent Query on Sales Letter
  27. 13:36Processing a Voice Query with Pinecone Vector Store
  28. 13:59AI Response Breakdown for Business Strategy Query
  29. 14:57Accessing the Free JSON File in Stride AI Academy
  30. 15:33Community Building & Future AI Agent Content
  31. 16:17AI Agent Consultancy & Business Automation Services

Links from the video

Transcript

3,487 words

What's going on guys Josh pook here now on this channel we've been covering how to build different AI agents and a lot of you guys already know I personally love building AI agents in a tool called n8n and I've done many different videos on n8n and showing you guys how to build practical AI agents with no code at all which I would suggest you check some of them out I'll leave a link in the description down below to a few of

These like my in-depth Na and course now in today's video I'm going to be showing you exactly how to build a t rag orchestration agent now this agent will automatically capture a telegram message whether that's via text or via voice and transcribe it it has access to tools like a vector store database within pine cone calculator Wikipedia it has window buffer memory with a whole entire section on inserting data into the pine cone Vector store via Google Drive and it will

Have access to other subordinate agents like the email agent which can get all emails send emails as well as the calendar agent agent which can create different events as well as get different events for you now the beauty about this entire agent setup is you can plug it into any llm of your choice such as open AI anthropic and you'll even be able to expand upon this add your own subordinate agents for different tasks you may want and the possibilities are

Really endless this is a foundational agent setup that you're definitely going to want a part of your AI agent stack now get ready because in this video I'm going to show you exactly how to add this new team member to your AI agent Army and not only am I going to show you exactly how this AI agent is set up show you what exact prompts it's using and exactly how to build it yourself you will also be able to get free

Access to this Json template so you can simply just copy and paste it over into your na flow and get this AI agent working for you right away 100% for free many YouTubers May charge you for different templates like this so let's not waste any more time let's dive right into it all right guys so before I actually dive into the nitty-gritty on how this AI agent has actually buil out I want to walk through some of the basics of what

You're going to need now keep in mind guys this agent is very modular so once you actually get this set up you can add replace different things with different tools so for example right now we're using pine cone so this is going to be your vector database if you don't have pine cone just go sign up for the free plan I'm not going to spend a whole bunch of time in this video setting up the vector database and going over all

That stuff just make sure you create an index if you don't have one already and then grab your API key so you can make that pine cone Connection in n8n okay also too we're going to be using telegram now you could use something like slack I'm using telegram because it's the easiest connection to make for a chat that I found and I just like telegram now you'll notice here with the telegram chat we're not going straight to the AI agent reason

Being is because sometimes we may send text messages via telegram but but also we may want to send voice notes okay if we send voice notes we have a switch node right here so for voice it's going to go up here get the file download the file to transcribe it with opening eyes whisper and then pass along that transcript into the AI agent so you can see here we have the telegram trigger for our telegram bot now if you don't know

How to set up a telegram bot simply click on add a new connection and then click on this right here to open up the docks now you'll see here here you want to Simply download Telegram and then start a chat with the bot father so if you click on this link right here it's going to take you to the bot father where you can open up telegram here once you do that you're going to message botf Father slne bot he's going

To ask you a couple questions like your bot name and username and then after that he's going to give you a bot token and you're simply going to paste that into the access token area right here and then connect to telegram all right next you can see we have a switch node right here so we're just checking to see if a voice file ID exists if it does then we're going to go down the voice path but if a text message

Exists then we're going to go down the text message path if the voice note exists we're simply just going to get the file right here with the file ID then we're going to use opening eyes whisper right here to to transcribe the audio right here which is the input from the data okay if it's a message we're going to just use a set node right here to set it as text and this is just the text from Telegram and then we're

Passing that information over to our AI agent now guys as I'm going through this AI agent I want you to know if you want to download the full entire Json workflow of all the different agents and sub agents that I'm showing you in today's video then join our stride AI Academy because I'm posting the free Json in the community so make sure to check the description for the stride AI Academy it's our exclusive Community it is free right now and you

Can get behind the scenes resources templates trainings and tools courses that we're putting in this community this will also make it a lot easier to follow along with this video okay now within our main agent you can see here that we have a system message okay so this system message I'm not going to read through it all but you can see here that we're using um you know giving it a role and purpose so you are an AI agent here's your

Core capabilities so we're highlighting the different tools right here so email task agent we're telling it the agent's purpose the function different important things to know like hey make sure to ask for the recipient email before using the AI agent if the user doesn't give this to you and one thing I do want to say here is that you could also add a tool to say like a CRM or a spreadsheet or an air table to actually allow the agent to

Go in and pull contacts information like emails names Etc if you want to have your agent to do that you would simply just change this prompting at a tool as well now you'll see we have our calendar task agent right here going over all the different capabilities and then we have our Vector store knowledge base right here pine cone the purpose um how to actually use it so that's highlighting our tools and then we have our operating principles so we have

Our principles right here for Tool selection information retrieval protocol execution protocol communication guidelines quality standards right here so different standards are you tired of pouring thousands of dollars into appointment setters only to watch leads slip away imagine having a team of elite sales agents booking qualified appointments for you around the clock no more wasted time on training no more frustration with performance and no more draining your budget on inconsistent and expensive call centers introducing stride agents AI powered appointment cers that

Work 24/7 never get tired and book appointments while you sleep trained on thousands of successful conversations our AI agents outperform human teams at just one tenth of the cost join the ranks of businesses that doubled their appointments and booking rates in just a matter of weeks don't get left behind in the AI Revolution visit stride agents.com now and transform your entire sales process with cuttingedge AI technology it's time to accelerate your stride with AI agents you have time awareness Vector store

Usage guidelines right here so querying information integration quality control so pretty in-depth Master prompt right here you can of course go ahead and change this around and then you'll see for the m mod right now we're just going to be using gp40 you could use GPT 40 mini and then here we have a window buffer right here we're just grabbing the telegram message ID for the key right here and we're giving it a context window of five messages so this will

Essentially have a little bit of memory for the messages that you're sending to this bot so let's say you say hey book a meeting with Josh and it says hey I'm going to need your email for that well then it will actually you can just send the email and it's going to still know that it should book a uh calendar event with with that email so it's going to remember that next we have the vector store tool right here so we

Just have a basic description right here we have a limit of four and we highlight more about how to call this in our Master description right here then we're connecting to our pine cone Vector store right here so I'm selecting our pine cone index you can enter your pine cone name space right here this is very just simple for testing purposes I have documents and then we're using an open AI embedding model right here so where I'm just using test embedding

3 small and then our chat model right here is the same just gp40 or GPT 40 mini okay next we have a calculator tool right here we have Wikipedia right here and then we have our email AI agent so if I go here we can see our name is email tool call this task for any request that requires email and we're selecting our workflow of email task agent next we have our calendar tool right here so this is the same thing

For any calendar task and we're calling the calendar task agent and then once that's all done we're just sending a message to Telegram so this is just the response right here so I'm just going to run a couple tests right here with the agent just so you can see it actually function all right so just to show you for testing purposes I'm going to say hey please send an email to Josh executives.com and ask him if he's going to bring me

Some food to our meeting tomorrow at 4p.m. also send them a calendar invite for that time slot please immediately we're going to send this right here we go to our executions we should see that this is running and if it works well we should see a success in just a second and boom now let's take a look at our telegram so we can see here I've sent an email to Josh asking if we will bring food for the meeting tomorrow at

400 p.m. additionally I've scheduled the calendar event for the meeting tomorrow with Josh if you need anything else feel free to let me know now let's load up the email here so you can see here we got a meeting with Josh on Monday 10th at 4: to 5:00 p.m. I didn't really specify the end time so I just put an hour there and as you can see we got our email sent right here now if we look in the execution logs

Here we'll see that it used the email tool right here and the calendar tool and then just sent the message it didn't use anything like the rag or anything like that it was knowledgeable enough to know what tools it needed to use I'm going to show you how to use the rag in just a second now before we get into the rag I just want to quickly go over the calendar tool and the email task agent tool so what we're using

Here is a execute workflow trigger and then we're going straight into our email tools agent right here now you can see here we have our system message right here I'm not going to go through it right right here but it has key protocols Etc we're using a chat model right here so we're just using gpg 40 mini and then we give it access to two different tools but you could actually give it access to a lot more there's a lot of

Different email actions that you can give it and here this is just a get all emails option so this will be able to check your emails okay and for the variables here we're just using the from AI variables right here to actually pull the information from our email agent and then we're using the send email action right here which is just going to send a email to the recipient that the email agent gets the email address from and then if there's

An error we're just going to Output an error right here so our AI agent knows and if it's complete we're just going to Output the completion right here and very similar for the calendar task agent if we click through here we can see that we have an in-depth prompt for our calendar task agent we have a create event create event with endee and then get all calendar events so if you ask your agent hey what's on the calendar for tomorrow tomor

It will be able to tell you that information now just as a side note some of you guys may recognize this agent this is actually a new and improved version of the agent that I covered in our stride AI agents repo right here which was in this video course right here on insane AI agents but this one definitely is new and improved and has a lot of cool features that that one actually didn't now I'm going to show you the voice

Method in Telegram in just a second but before I do I quickly want to go over the vector database so if a new file is either created or updated in our Google drive right here we're just going to grab that file ID then we're going to download that file and then we're going to extract the text from that file and then we're just going to insert it into our pine cone Vector store right here using our open AI embedding our default

Loader data and a recursive character text splitter with a chunk size of 3,000 and a chunk overlap of 200 you could of course change these settings now if all this is new to you or maybe it doesn't make sense I would definitely recommend checking out my 49 minute in-depth na rag agent course I also give you guys a free 79 page document going over rag AI agents what Vector stores are and breaking it down for you a little bit more in

Depth in case you are a beginner now here is our test Google Drive location so I'm actually going to go ahead and upload one of our sales letters right here on a specific product a specific offer called ghost stride level so this is a very specific sales letter around one of our offers that we made and this is the only place where our agent would actually be able to get some of the information I'm going to ask it so as you

Can see this has been uploaded now so if we go to our executions right here we should be able to see that boom it has been successfully inserted into our pine cone Vector store all right so now I'm going to go on my phone right here and actually ask our rag agent something specific about ghost stride level hey please tell me a little bit about ghost stride level break down the whole entire offer the value proposition and also give me some

Unique insights on how I could actually take this to Market and make a good profit as you can see that voice message has sent it was 13 seconds and now if we go to our executions right here we should see that it is running and boom it's already done as you can see it went down this route right here so it transcribed the audio went through here and as you can see it used our pine cone Vector store now let's actually

Take a look and see if it got the correct information and wow look at this response that we got right here this is actually really good and really high quality we can see the ghost ride level suite is designed to help businesses optimize their operation using go high level focusing on Automation and growth here's a detailed breakdown of the offer core breakdown uh features bonuses game plan call with Josh value proposition marketing strategies for profit so target audience emphasis values leverage

Social proof content marketing partners ships and collaborations clear communication I think you guys got the point this thing is freaking awesome and I'm really excited to see you guys actually use it and implement it but one thing I want to say guys is use this as a stepping stone customize it to your specific use case I just wanted to give you guys here a very solid foundational agent that you can start using right now to get your feet wet or even

If you have been using AI agents and building different cool things I'm sure you can get a lot of value from this and from this video now I do want to say one more time guys if if you're wondering where the heck do I get this Json file where do I get this AI agent like I said it is going to be for free in the stride AI Academy I just want to make that 100% clear and a link for that

Will be in the description and I'll also comment it at the first pin comment so you guys can join right now now guys if you got any sort of value from this video from this free template I would really appreciate if you like the video comment down below and subscribe to stay up to date with the uploads we upload videos all the time on AI agents rag AI agents NAD Marketing sales business rol so if you like that type of content

Then this is the channel for you I'm really excited because I'm going to be providing you guys with a lot more value like this I got some even more valuable stuff on the way I really want to build a good Community here of like-minded entrepreneurs AI automation agency owners Consultants whatever the case may be so definitely stay tuned for what's on the way so that's pretty much it for this video guys let me know what your thoughts are in the comments

Down below and also too if you want me to build a specific rag AI agent or just a AI agent in general and showcase it to you guys give you guys the free templates the Json and let me know what you want me to build in the comments down below also too guys if you run a business and you need help implementing AI agents into your business to automate different tasks automate different processes in your business then book a call down

Below at executive st.com slapp or if you're someone that actually wants to sell AI agents to other business owners or entrepreneurs and make 2 to 10K plus then book a call down below at that link speak to my team and we can see if it's a potential fit or not to help you scale your AI agent consultancy in 2025 other than that guys I will see you in the next video keep hustling keep grinding and of course guys accelerate your stride

Take care

Latest from the blog

View all