Ultimate n8n Course: Beginner to Pro in 17 Hours (2026) — Transcript
Full transcript
- 0:00I taught a room full of business
- 0:02professionals nan for just six hours at
- 0:05a company hackathon. By the end of that
- 0:07day, they built a fully automated
- 0:09driver's license validation system
- 0:10that's now running in production for
- 0:12their underwriting decisions. No coding
- 0:15experience required. That's the power of
- 0:17any end when you actually know what you
- 0:20are doing. Hey, I'm Ryan, a full-time
- 0:22data scientist at a payments company.
- 0:24And over the last year, I've created
- 0:26over 70 plus videos on workflow
- 0:28automations as well as AI. I help
- 0:30businesses and freelancers save hundreds
- 0:32of hours every month. Whether you're a
- 0:34business owner drowning in repetitive
- 0:36tasks, a freelancer looking to scale
- 0:38your services, or someone who just wants
- 0:40to build out powerful automations
- 0:41without writing code. This course is
- 0:43designed to take you from a complete
- 0:45beginner to building productionready AI
- 0:47workflows in any end. Here's what makes
- 0:49this course completely different. Most
- 0:52any end tutorials will show you one
- 0:53workflow and call it a day. This course
- 0:56contains over 15 hours of content broken
- 0:58into 30 strategically designed sections
- 1:01that build up on top of each other.
- 1:03You'll start with the basic fundamentals
- 1:05and progressively tackle more complex
- 1:08real world scenarios. I work with
- 1:10clients every single month building
- 1:11automation solutions across healthcare,
- 1:13real estate, finance, and more. And
- 1:16every workflow that you see in this
- 1:17course is going to be based off of
- 1:19actual client work, not theoretical
- 1:21examples. So what are you going to learn
- 1:23in this course? Well, you're going to
- 1:24learn the N fundamentals that 90% of
- 1:26users get wrong. You're going to learn
- 1:28how to connect to any API from the
- 1:30Google Suite to custom HTTP requests.
- 1:33You're going to learn advanced
- 1:34pageination techniques that most courses
- 1:36don't even mention. We're going to be
- 1:38building out AI agents that actually
- 1:39work in production. We're going to cover
- 1:41the basics of rag, which is retrieval
- 1:43augmented generation. essentially
- 1:45feeding your own internal data into AI
- 1:48agents. And I'm going to show you how to
- 1:50turn these skills into income. Every
- 1:52single workflow and template is
- 1:54available for free in our school
- 1:56community so you can download,
- 1:57customize, and deploy. This is the
- 1:59course I wish existed when I started
- 2:02with any. So, make sure to bookmark this
- 2:04video because you're going to come back
- 2:05to this multiple times for specific
- 2:07sections. And please do not watch all of
- 2:09this in one day. Save some time and
- 2:11spread it across at least a week or two.
- 2:14Anyways, good luck with this course and
- 2:16I'll see you in lecture number one
- 2:18shortly. All right, so our first part of
- 2:20the course is going to break down the
- 2:21differences between cloud and
- 2:23self-hosted. You'll often hear people
- 2:24saying, "Oh, I'm using self-hosted nan
- 2:27or I'm using cloud." And you might be a
- 2:29little bit confused. So, let me simplify
- 2:31that for you. If you are signed up on
- 2:33the website nan.io
- 2:36and have a subscription plan of some
- 2:38sort, chances are you're going to be on
- 2:40cloud. pricing is going to be based
- 2:43around executions. And I'm going to show
- 2:45you this in a minute. Uh, nan.io does
- 2:47offer a few self-hosted uh,
- 2:50subscriptions, but 95% of the stuff that
- 2:53you can purchase on there is going to be
- 2:54specifically for cloud. If you host any
- 2:58end on your own infrastructure, so this
- 2:59could be anything from a computer, this
- 3:01could be a VPS or a cloud server, this
- 3:05is going to be considered self-hosting.
- 3:08And there's a misconception out there
- 3:09that hey, self-hosting is always
- 3:11cheaper. And that's just incorrect as
- 3:14some businesses want to self-host on
- 3:16their own servers. There's people that
- 3:18are going to have to manage that
- 3:19specifically. And also on the
- 3:22self-hosting side of things, you're
- 3:23going to have to sometimes get a
- 3:24business license if you have a larger
- 3:27company. And these licenses can start at
- 3:29$10,000 a month and get more expensive.
- 3:32So, while self-hosting may be a little
- 3:34bit cheaper if you're a solo
- 3:36entrepreneur or you have a very small
- 3:39team, it can get pricey uh really
- 3:41quickly, especially if you are going to
- 3:42be running on your own servers. I
- 3:45quickly also wanted to talk about the
- 3:46differences between both of these. I'm
- 3:48going to put up a table on the screen
- 3:50right now so that way we can do the
- 3:52comparison. So, first let's talk about
- 3:54the cost. Self-hosted is free to get
- 3:58started and is usually cheaper
- 3:59initially. Uh cloud is obviously more
- 4:02expensive out of the gate. You're going
- 4:03to be spending at least $20 a month for
- 4:05a cloud license. However, there is a
- 4:0814-day free trial. Now, on the setup
- 4:11side of things, self-hosted, you manage
- 4:13everything. So, you manage if your stuff
- 4:16is down, you have to manage all these
- 4:18updates and there's a lot of work
- 4:19associated with it. Which is why when I
- 4:21say on the business side of things,
- 4:23businesses will have to employ a
- 4:25specific person that helps focus on that
- 4:27as part of their day-to-day routine.
- 4:29However, on the cloud side of things,
- 4:31this is all managed by NAN and there's a
- 4:3399% uptime. On the control side of
- 4:36things, with self-hosted, you have full
- 4:38control and you have a lot more options
- 4:40and capabilities. Whereas cloud, you're
- 4:42going to be a little bit more limited.
- 4:44Maintenance, again, with self-hosted,
- 4:47you have to handle all the different
- 4:49updates. You're going to be in charge of
- 4:50maintenance, whereas cloud, yes, you do
- 4:53have to make some updates, but they're
- 4:54honestly like two clicks away, and it's
- 4:56super fast. data for self-hosted. This
- 4:59stays on your server. However, on the
- 5:01cloud side of things, this is going to
- 5:02be stored on the NAN server. Let's talk
- 5:05about community nodes. So, community
- 5:06nodes are different nodes that companies
- 5:08will create on the self-hosted version.
- 5:12All of them are going to be available
- 5:13for you on cloud. They're limited. The N
- 5:16team has to go through the node and also
- 5:18approve it. So, there's a little bit of
- 5:20a lag between when a company pushes out
- 5:22a community node and when it's available
- 5:24on any end cloud. One other drawback is
- 5:26the MCP connections. With the
- 5:28self-hosted side of things, you have a
- 5:30lot more advanced options due to
- 5:31community nodes and different things
- 5:33like that. Whereas on cloud, it is
- 5:35limited. However, I do believe that this
- 5:37is going to be changing in 2026. All
- 5:40right, so who are these best for? Well,
- 5:42if you're going to go the self-hosted
- 5:43routes, this is better for power users
- 5:46or people that just want to get started
- 5:48in Nan for free. cloud. It's much better
- 5:51for people who want a quick start and
- 5:53then really focus on convenience. I
- 5:55don't know the exact data point, but I
- 5:57would assume a lot more people are going
- 5:58to be on cloud versus self-hosted. So,
- 6:02I'm going to be building out this course
- 6:03based around any cloud. However,
- 6:06everything that's going to be taught in
- 6:08cloud should be applicable into
- 6:10self-hosted minus showing you really
- 6:12quick how to update your specific
- 6:14instance. So, let's jump into part one,
- 6:17which takes a look at any cloud. All
- 6:19right. So, I'm on the N cloud website
- 6:22and you'll see it like this. Um, they've
- 6:24had this site for a while. So, I do see
- 6:26it changing here in the future. So, if
- 6:28it does change a little bit, um, I
- 6:30apologize. It's nothing I can control
- 6:32about that. So, if you want to see your
- 6:34pricing, you just go into the pricing
- 6:35options over here. And you can see that
- 6:38there's two different ways to price. You
- 6:40have monthly or you could go annual. So,
- 6:42I am personally paying for this starter
- 6:44over here at $24 a month. However, if
- 6:47you go to annual, it is $20. So over
- 6:50here, you'll see what is included. So
- 6:53starter is hosted by N. So you have
- 6:56cloud hosting over there. And what you
- 6:58have next is pro hosted by N. But then
- 7:01you go into the business side of things.
- 7:03This is self-hosted, which I again I
- 7:05mentioned like there is some things on
- 7:08nan.io that are self-hosted. And then if
- 7:10you go to enterprise, it's either hosted
- 7:12by nan or self-hosted. um business as I
- 7:15mentioned is $10,000 because you can see
- 7:17$800 per month built annually. If not,
- 7:20you're going to $960
- 7:22per month. So, most of us aren't going
- 7:25to need business right away. What I
- 7:27started with is starter, and I still
- 7:28have this on my specific plan. There are
- 7:31some limitations with this as well, and
- 7:34you'll see this through the course. I
- 7:35talk about some of the limitations
- 7:37associated with it, but you also start
- 7:39with 2500 workflow executions, which is
- 7:42pretty nice. this will get you really,
- 7:43really far. And honestly, unless you
- 7:46have a ton that you're already trying to
- 7:47automate, I think this is going to be
- 7:49the route that you specifically start
- 7:52with. So, I would start with your free
- 7:53trial, which I believe the trial is 14
- 7:55days. Once you have this going and let's
- 7:58say you're need more executions, then
- 8:00you could upgrade into Pro. So, with
- 8:03Pro, you have multiple shared projects.
- 8:05You can have 20 concurrent executions at
- 8:07a specific time. You have 7 days of
- 8:09insight. You have workflow builder
- 8:12credits, which we'll show you a little
- 8:13bit later. This is a really cool way to
- 8:15save some time. You have more admirals.
- 8:17You only have one admin over here. You
- 8:19have multiple here. Variables, workflow
- 8:21history, and execution search. A lot
- 8:23more available on that side of things.
- 8:25And you can also change the amount of
- 8:27executions. So over here, you're stuck
- 8:29at 2500. However, on the pro side, you
- 8:31can go up to 50k executions and you're
- 8:34paying 144 a month. You could also use a
- 8:36custom plan. Um, but you have to I
- 8:39believe you have to mention or talk to
- 8:40the team on that side of things. Again,
- 8:42I'm on starter. So, until you really
- 8:44start getting over that 2500 threshold,
- 8:47you don't have to worry about pro
- 8:48business. As you can see over here,
- 8:50there's a lot of different plans
- 8:51associated with it. Like, if you're 500k
- 8:53executions, you're spending almost
- 8:55$6,300 a month. And enterprise is even
- 8:58more expensive than that. Um, so just to
- 9:01keep that in mind. I believe they also
- 9:03have an other plans too. So you can see
- 9:06startup plan under 20 employees, check
- 9:07if you qualify for a startup plan and
- 9:09get 50% off business. So on the business
- 9:12side, if you have under 20 employees,
- 9:14you could be paying $480 a month, which
- 9:17is a better deal. There's also the
- 9:19community edition. So self-hosted
- 9:20version is available on GitHub. So if
- 9:23you're going self-hosted, that's what
- 9:24you're going to be specifically using.
- 9:26Here's even more breakdown of what
- 9:28features are available in each plan. So
- 9:31you can see max days on the workflow
- 9:32history is one, pro is five, enterprise
- 9:35is 365.
- 9:36I do wish this 365 number went down into
- 9:40pro and maybe the starter was five. I do
- 9:42find this to be quite limited on the
- 9:44workflow history which is a little bit
- 9:46unfortunate. I think this is very
- 9:47generous for the workflow credits 50 and
- 9:51also 1,00. You can see a lot of these
- 9:53developer tools are available except for
- 9:55global variables. So unfortunately I
- 9:56will not be teaching you guys global
- 9:57variables and nan because I don't have a
- 10:00pro account. Maybe one day when I do you
- 10:02can see different environments stuff
- 10:04like that not available in either
- 10:06starter or pro. These are just
- 10:07enterprise available only. So again
- 10:10something I just can't show you guys
- 10:11because I'm not going to be showing
- 10:12out,000 $2,000 a month on any end. My
- 10:15YouTube channel doesn't even bring in
- 10:16close to that even in ad revenue. Um
- 10:19going into the workflow executions you
- 10:21have max active workflows. All of these
- 10:23are going to be unlimited across the
- 10:25board. You have automatic retries, max
- 10:27saved execution. So you can see some of
- 10:29the other different data points if you
- 10:30specifically require about it. Execution
- 10:33logging uh AI assistant only available
- 10:35upon requests. Uh other information over
- 10:38here. And by the way, if you do go with
- 10:41like the business or enterprise route,
- 10:42there are other features I believe that
- 10:44are not under uh this page. So like
- 10:47SLAs's and things like that. So you'll
- 10:48have to reach out to the N team, I
- 10:50believe. Um, you can see filtering date
- 10:52range. There's a lot more other things.
- 10:54Maybe the support, you can see, yeah,
- 10:56email support, dedicated support with
- 10:58SLAs. So, to get the really more
- 10:59granular insight, you're going to have
- 11:00to contact them, go through their sales
- 11:02rep for enterprise. Um, you can see pay
- 11:04by invoice, sales assisted. So, there's
- 11:07a lot of other questions, Q&A on there,
- 11:09but all you're going to have to do is
- 11:11click on one of these plans. I would
- 11:14really recommend you go starter. You can
- 11:16start with the free trial. And I believe
- 11:17the free trial, like I said, is 14 days.
- 11:19So get going with that and uh yeah that
- 11:23is going to be cloud. The other two are
- 11:25going to be uh using docker to get
- 11:28started and then we also have an option
- 11:30to specifically use self-hosted with a
- 11:33VPS provider and I'm going to show you
- 11:35how to use both of these here in a
- 11:37second. I already have videos on the
- 11:38channel just walking through the process
- 11:40of these. So I'm just going to play
- 11:42those right now. These are going to be
- 11:44essentially the only videos that I reuse
- 11:46for my main channel. Everything else is
- 11:47going to be original content throughout
- 11:49this course. However, since self-hosted
- 11:52on hosting here does cost money, I don't
- 11:53want to repeat that process and there is
- 11:56a few steps in there. And then Docker,
- 11:58it just takes a little bit of time to
- 11:59download everything and get it going for
- 12:01the first time. So, we'll just repeat
- 12:03those. I'll put them on the screen right
- 12:05now. And make sure to choose your own
- 12:08path. Again, my personal opinion is if
- 12:10you want to get started the fastest, you
- 12:12go with any cloud over here. If you want
- 12:15to have more control over yourself but a
- 12:17little bit more maintenance, I would go
- 12:19with self-hosted on Hostinger. If you're
- 12:21going to go self-hosted Docker, it is
- 12:22free, but there's going to be
- 12:24limitations. So, let's take a look at
- 12:26those right now. We'll start with
- 12:27self-hosted Docker. All right, guys.
- 12:29Let's get started. So, what we're going
- 12:31to do first is download Docker. So, you
- 12:34can do this by searching Google and look
- 12:37for Docker download and you'll get put
- 12:39to this get started Docker page. I'll
- 12:41put the link also down below in the
- 12:43description. Then you have these two
- 12:45icons over here. Learn how to install
- 12:47Docker or download Docker Desktop. Now,
- 12:51um, what we're going to be doing is
- 12:52clicking download Docker Desktop is I'll
- 12:54be showing you how to do that. Now,
- 12:55there's a few different options, right?
- 12:57You have Apple computers, you have
- 12:58Windows, as well as Linux down there.
- 13:01Now, personally, I have Windows, so I'll
- 13:03be showing you how to set that up
- 13:04specifically. And one caveat is that you
- 13:07need to have Windows 10 or newer. So you
- 13:11have an older version of Windows, you
- 13:13know, this is not going to work for you.
- 13:15So make sure you have Windows 10 on that
- 13:16side of things. I'm going to be choosing
- 13:18AMD 64. So once you click that, you're
- 13:21going to get a download on your
- 13:23computer. It might take you a minute or
- 13:27so uh to have that fully downloaded, but
- 13:30uh I'm going to pause the video right
- 13:31here until that is downloaded, and we'll
- 13:34be right back once it's ready to go.
- 13:39All right. So, double click on the
- 13:41Docker icon if it's downloaded to your
- 13:43desktop or wherever it's downloaded if
- 13:44it's in folders, whatnot,
- 13:47and then it'll open up a popup.
- 13:52Inside this popup is the service
- 13:54agreement. Now, obviously, I'm not going
- 13:56to tell you if you're breaking the terms
- 13:58of service or not. You can view full
- 14:00terms if you want. Um, but it mentions,
- 14:02you know, if you have overturn 50
- 14:04employees or more than $10 million in
- 14:06annual revenue, you have to have a pro
- 14:08subscription, right?
- 14:10So, you're learning this, testing it
- 14:12out. You should be okay on that side of
- 14:15things. So, if you agree, click accept.
- 14:19And then you get this screen over here.
- 14:21Welcome to Docker. Now, you can set up
- 14:24an account if you would like to, right?
- 14:26Whether you want to use work or personal
- 14:28or you can even skip this screen, right?
- 14:31So, I'm not going to set up account
- 14:33here. I'm just going to skip and we're
- 14:34going to go right into it. Now, what I
- 14:37get over here is it says WSL needs
- 14:39updating. So, what we're going to do is
- 14:41go into the command line and update this
- 14:44really quick. It's actually going to be
- 14:45quite easy. I know for some people the
- 14:47command line can seem scary, but all we
- 14:50have to do is just copy this over here.
- 14:53And we'll do that here shortly.
- 14:58All right. So, what I'm going to do is
- 14:59just copy this. So, click copy on that
- 15:02side of things.
- 15:04And then we're going to go to our
- 15:05command line. So, cmd on that side of
- 15:08things. And look up your command prompt.
- 15:10What I'm going to do is paste in that
- 15:12update.
- 15:17And then you can see it starts updating
- 15:19on this side of things.
- 15:21And I'll go through on that side and get
- 15:24everything ready for us.
- 15:27So I'll skip ahead when this is ready to
- 15:29go.
- 15:30All right. So update is now complete. So
- 15:34that's the only thing we're going to
- 15:35need for our command prompt here in uh
- 15:39this install. So feel free to close that
- 15:41out and then it's going to restart on
- 15:44this side of things. So just click
- 15:46restart. You're going to get this icon
- 15:48over here
- 15:50and then we're going to be good to go
- 15:51here pretty soon. So this is a pretty
- 15:54fast restart.
- 15:57but I will skip it to when it's ready.
- 16:01All right. So, this should be your
- 16:02Docker page now. Um, if you didn't have
- 16:06to do the update like I did, you'll
- 16:08probably get put right into here.
- 16:10[clears throat]
- 16:10But now, what we need to do is go onto
- 16:14the images tab over here to the left.
- 16:16You can find it right under containers.
- 16:19So, go to images. And then what we're
- 16:21going to do is we're going to search
- 16:23images to run. And this is where we can
- 16:26find NE. So click on that and then
- 16:28inside over here we're going to search
- 16:30NAN
- 16:31and it's going to be your top result
- 16:33most likely. Right? So 100 in 100
- 16:35million downloads on that side of
- 16:38things. So the first thing we're going
- 16:39to do is pull the latest version of
- 16:41that. Right? And see there's a lot of
- 16:44reviews on that too. So just click pull.
- 16:46And then you'll see again this loading
- 16:48icon over here. It'll take a little bit
- 16:50to get this ready. And I'm going to skip
- 16:53to when it's done.
- 16:56All right. So, it's going to stop here
- 16:58in a second. And perfect. We have that
- 17:01working.
- 17:02So, you can see status downloaded new
- 17:04image. It's the latest version. And
- 17:06we're almost ready to get this going.
- 17:09Okay.
- 17:11So, the next thing what we're going to
- 17:12want to do on this side of things is
- 17:15click on run. And then you're going to
- 17:17see optional settings. So, we're going
- 17:20to want to fill out our host port. Now,
- 17:23by default, it says 5678.
- 17:26So, that's what I did on this side of
- 17:29things, but from looking online, some
- 17:32people do have issues with 5678. So,
- 17:36feel free to change that. Or one that I
- 17:38saw that people used was 5680.
- 17:41And then it's going to say, do you want
- 17:42to allow public and private networks to
- 17:44access this app? Click allow on this
- 17:47side of things. And then you can close
- 17:49out. And then what you'll see is we have
- 17:51this going over here. And then at the
- 17:53very bottom it says localhost 5678. So
- 17:56click on that over here and then you get
- 18:00this page over here which is set up an
- 18:02owner account. Now if you already have
- 18:05credentials elsewhere um this is not
- 18:07going to work right. This is the
- 18:08credentials for your local version. So
- 18:11just set up computer first name, last
- 18:12name, email and then also a password.
- 18:15And then if you want to receive updates
- 18:17or not click that check box.
- 18:20And then what you want to do is click
- 18:22next. Now some people are going to get a
- 18:24524 error, but uh nothing will happen on
- 18:27that side of things. You still should be
- 18:29good to go. Then you get this survey
- 18:30over here. Fill it out. Right? So I'm
- 18:34just going to click on I'm not using any
- 18:36N for work just so I don't have to fill
- 18:38it out. And I'm going to put over
- 18:39YouTube on this side of things. And then
- 18:41get started.
- 18:43And then what I would recommend is you
- 18:45already set this up. So it says get paid
- 18:47features for free. It'll send you a key
- 18:49to your email. Now, personally, like I'm
- 18:52not going to be using this version after
- 18:54this tutorial, but if you do want to use
- 18:57it, right, uh, put in your email over
- 18:59there. It will send you a key. And then
- 19:01you want to sign up for on that side of
- 19:03things. Again, it's free, but I'm just
- 19:06going to skip because I don't really
- 19:08need it for this tutorial. So, what you
- 19:10can do is now start building. And what
- 19:13I'd recommend is just make sure to test
- 19:15one basic workflow to see if this is
- 19:18working properly. So, I'm just going to
- 19:19create a workflow.
- 19:21All right. So, click the plus icon in
- 19:22the top right. We're going to do a
- 19:24manual trigger. Um, so just go up here
- 19:26to the top. Trigger manually
- 19:29on that side of things. Yep. So, we have
- 19:32that over here, right?
- 19:34And then we're just going to go and add
- 19:36a few other nodes. So, what we're going
- 19:38to do now is do an edit set node.
- 19:42And inside over here, we're going to
- 19:44double click in there. We're just going
- 19:46to map a manual field. We're going to go
- 19:48over here and set an array. And then
- 19:50we're just going to essentially put a
- 19:52few different pieces of automation
- 19:54software in over here.
- 19:57And then what I'm going to put over here
- 20:01and then inside the array I'm going to
- 20:03put in nan. I'm going to put in make and
- 20:06then I'm also going to put in zap year.
- 20:09Right? Probably the three most common
- 20:10ones right now. Then you can see that is
- 20:14working over here on the output side of
- 20:16things.
- 20:18And then after that, what we're going to
- 20:20do is go over here and do a data
- 20:22transformation. And we're going to use a
- 20:24split out node. We're just going to drag
- 20:26and drop this over here, which is going
- 20:28to split out our array. Right? Very,
- 20:30very basic on this side of things, but
- 20:33just want to make sure that these nodes
- 20:34are working and it looks good to go on
- 20:37that side of things. And again, right,
- 20:40you're going to have issues if you set
- 20:41up a web hook in over here. So, you can
- 20:43mock that data up. Um, but if you want
- 20:46to get web hooks working, that is a
- 20:47whole different process on that side of
- 20:50things, right? Um, and outside the scope
- 20:53of this particular video. Lastly, I want
- 20:56to show you how to start and stop this.
- 20:57So, just load up Docker Desktop again,
- 21:00right? And by default, if you refresh
- 21:02it, right, nothing's going to happen.
- 21:04You're fine
- 21:06over there. So, let's go to our Docker
- 21:08Desktop on the side of things, right?
- 21:10So, click that icon and we're going to
- 21:12click stop, right? So then you can see
- 21:14it says stopping any n
- 21:17and we can go back to any n and then we
- 21:19refresh this and now it's not going to
- 21:22work and it says this site cannot be
- 21:24reached local host refused to connect we
- 21:26have issues over there. So then just
- 21:28click this start icon over here and then
- 21:31um it's going to restart it. So you'll
- 21:33see that happen here in a second and you
- 21:35can see we have all this information
- 21:36populating once again
- 21:39and just click on the URL
- 21:42and take a look. We have our workflow
- 21:44that we started building out right over
- 21:46here and we are good to go. Using any
- 21:50end cloud it's going to cost you over
- 21:52$20 every single month. But what if I
- 21:55told you that you can self-host N for
- 21:57just about $5 opportunity to save well
- 22:00over $100 a year. Not only are you going
- 22:03to be able to save this money, but you
- 22:05can also unlock a larger selection of
- 22:07community nodes and get even more
- 22:09control over your workflows. Now, I know
- 22:11what you're thinking, right?
- 22:12Self-hosting? This sounds pretty
- 22:13complicated, but don't worry. In this
- 22:15video, I'll be taking you step by step
- 22:16throughout the entire process. So, at
- 22:18the very end, you'll have nan running on
- 22:20your own server. Also, big shout out to
- 22:23Hostinger. They reached out and were
- 22:24able to give me free hosting for this
- 22:26full walkthrough. And for viewers of
- 22:28this channel, they're offering an extra
- 22:3010% off any of their subscriptions with
- 22:32code data science. Show you exactly
- 22:34where you can apply that discount code
- 22:35in throughout this video as we build
- 22:37this setup. So your different plans
- 22:39below over here. Uh KVM1, which is $4.99
- 22:43a month. KVM2, which is $6.99 a month,
- 22:45$9.99 for KVM4. Then KVM8 is $19.99.
- 22:49They have different specs for every
- 22:51plan, right? 4 GB of RAM 8632
- 22:55and you know feel free to choose which
- 22:57one that you would like to start. Now
- 22:59also if you use my code right you're
- 23:01going to get additional 10% off over
- 23:03here. So you're technically not paying
- 23:05the screen price you're actually paying
- 23:0710% less. And to be full fully
- 23:09transparent right like most things with
- 23:11hosting online the renewal rate is going
- 23:13to be a little bit different. And you
- 23:15can see over here it says renews at $10
- 23:18a month for two years right cancel
- 23:19anytime. So there is going to be that
- 23:23information, right? And I can tell you
- 23:25like I own a few different websites out
- 23:27there. Usually, you know, the get in
- 23:29price is going to be a little cheaper
- 23:31and then they increase it over time.
- 23:33That's just how it is anywhere that you
- 23:35go. So let's say you want to start this
- 23:37off, right? And let's say choose plan
- 23:39for KVM1. So then you choose plan over
- 23:41here and it goes into your cart. We're
- 23:45going to walk through this here in a
- 23:46second with you guys.
- 23:49Okay. So you can see you can choose your
- 23:52period. So again you can choose 24
- 23:55months, right? You can go here to 12
- 23:58months,
- 23:59right? It's going to be a little bit
- 24:00more expensive. If you choose one month,
- 24:02a little bit more expensive. I wouldn't
- 24:04recommend that you just do a one month.
- 24:05Like look at 12 or 24 months. Even at 12
- 24:08months, right, you're at 5.99. Um but
- 24:11lock in that rate at 24. Now also to
- 24:14show you where you want to put in your
- 24:15coupon code. If you go over here, right,
- 24:17put in data science. So data science,
- 24:22you click apply over here.
- 24:27You'll see saved you a little bit of
- 24:29money, right? So you saved actually 12
- 24:31bucks if you're doing the cheapest plan.
- 24:33So highly recommend you choose that code
- 24:34if you want. Uh regardless, right? Next
- 24:37thing you want to do is choose your
- 24:38server location. So choose the server
- 24:40that's closest to you, right? Um you can
- 24:43see United States over here. If you're
- 24:45in Europe, choose that side of things.
- 24:46South America or Asia, right? I'm
- 24:48obviously in the states, so I would want
- 24:49to choose that. And then also just make
- 24:52sure that you click Nan on the side of
- 24:55things, right? There's two N's. Just
- 24:57click the one that is here by default,
- 24:59right, with the thumbs up. Okay. Then
- 25:02what you're going to do is go over here
- 25:03and click continue. All right. Then
- 25:05you're going to jump into this screen,
- 25:06right? So you can do Google, you can do
- 25:08GitHub, or sign this. Let me just do a
- 25:10Google one for example.
- 25:12Continue. And then you're going to get
- 25:14to this screen with your billing address
- 25:16and stuff like that. So, I've already
- 25:18have my account, so I'm not going to go
- 25:20through this, but just fill out your
- 25:22information, right? Address, city,
- 25:24state, zip code, and then your payment
- 25:26details down below. Just make sure data
- 25:28science is over here to save you a
- 25:29little bit of money, and then you're
- 25:31going to be good to go. So, once you
- 25:33have that, we'll move on to the next
- 25:35step, and I'll show you where that goes.
- 25:38All right. So now we have our H panel
- 25:42within Hostinger. And what we're going
- 25:44to want to do is it says your KVM2 setup
- 25:47isn't finished yet. Set up your service
- 25:49to start using it. So we're going to go
- 25:51over here and click setup. Okay. So
- 25:53first we're going to do is set up a
- 25:55server location. Now you want to choose
- 25:58the location closest to you. So I'm
- 26:00going to go into North America over
- 26:02here.
- 26:04Yep. Click next. Okay. And then on this
- 26:08side of things, what it's going to ask
- 26:09you for is choose an operating system.
- 26:11So I'm just going to go over here and
- 26:12type in nan. I'm just going to go over
- 26:15this over here. So build 2404. Okay. And
- 26:20select that. And then it's going to say
- 26:22choose a root password. You'll use the
- 26:25root password to log into your VPS. So
- 26:28make sure to choose a password over
- 26:30here. And make sure it fits all these
- 26:32criteria. One number, one lowercase, 12
- 26:34to 50 characters, etc. Right. You can
- 26:37also set up an SSH key. Probably outside
- 26:40the scope a little bit on this video.
- 26:41Okay. Save the password over here. They
- 26:44have a malware scanner for free. So, you
- 26:46might as well just select that. And then
- 26:49it says setting up your VPS. This will
- 26:51take about 5 minutes. Feel free to leave
- 26:52this page. You'll get an email once your
- 26:54VPS is ready to go. So, we're going to
- 26:56do I'm going to save this recording real
- 26:59quick and I will be back when this is
- 27:00ready to go. All right. So, we're in
- 27:03now. Let's go over here to manage VPS.
- 27:07Sweet. And then we get this little
- 27:10survey. I'm just going to say personal
- 27:12reason on here. I'm going to say AI and
- 27:14machine learning. Save that. Awesome.
- 27:17And then you can see all of our
- 27:18information here on this side of things.
- 27:21And I'm just going to click over here to
- 27:22manage app. And then what you'll see is
- 27:24it says setup owner account. So what
- 27:27we're going to do is set this up all
- 27:29over again on this side of things,
- 27:31right?
- 27:33And what I'm going to do on this side is
- 27:35grab my email. So, and Nolan data. Okay.
- 27:38So, now we're going to want to do is set
- 27:40up our owner account. So, again, set up
- 27:42email, first name, last name, and a
- 27:44password. I want to receive security and
- 27:47product updates. I'm going to click next
- 27:49over here. And it says customize N for
- 27:52you, right? Best describe your company.
- 27:56I don't know. We'll just click over
- 27:57here. I'm going say YouTube. Yeah, it
- 28:00doesn't really matter too much. Data
- 28:03science. There we go.
- 28:06Myself,
- 28:07less than 20 people.
- 28:10How do I find out? Let's say YouTube
- 28:12also. Okay. And it says get paid
- 28:15features for free forever. So, receive a
- 28:18free activation key for more advanced
- 28:19features below. Lifetime access, right?
- 28:22Workflow history, advanced debugging,
- 28:23execution, tagging, folders. Sure, we'll
- 28:26send that over here. Why not? and take a
- 28:30look. We are now officially in Nan. So,
- 28:33this is really awesome, right?
- 28:36So, it says your license key is on the
- 28:38way. We have that over here and we
- 28:40should be good to go. All right. So, and
- 28:42to activate this, all I did is get this
- 28:44email over here. It says please find
- 28:45your license key to unlock select paid
- 28:48features. Right, click activated over
- 28:51here. And it says you have 14 days to
- 28:53activate it. Just activate it right now.
- 28:55And there's a little notification over
- 28:57here that's been activated. So awesome.
- 28:59And it says you're on the community
- 29:00edition registered and we are good to
- 29:02go. So just go back over here and let's
- 29:05create our first workflow. All right.
- 29:07And then we get taken into this screen
- 29:10over here. So we're going to keep this
- 29:12super simple for the video. What I'm
- 29:14going to do over here is click first
- 29:17step. I'm just going to do a chat
- 29:18trigger. We can say chat trigger over
- 29:21here. Okay. And then what we're going to
- 29:23do next is set up an AI agent. So, we'll
- 29:26say AI agent over here. Awesome. And
- 29:30then this is just going to be based off
- 29:31of the chat input. Now, we're going to
- 29:33have to set up our credentials. I'll
- 29:34show you really quick how we could do
- 29:36that. Uh chat model, right? This is
- 29:38where we're going to be setting up our
- 29:39credentials at. So, I'm going to say
- 29:40open AI. And you'll see that says select
- 29:44credentials. So, we're going to have to
- 29:44create credentials. And I have a few
- 29:46videos here on the channel talking about
- 29:47how to create credentials and such. I'm
- 29:49just going to create a new credential.
- 29:51It's super easy to get your credential
- 29:53on OpenAI. So just go to OpenAI like
- 29:55this, right? Log in. Then once we're in,
- 29:58we're just going to go over and get an
- 30:00API key. So we're just go over here,
- 30:02settings, API keys, create new key,
- 30:08test, nan cloud,
- 30:12set a project,
- 30:14and you can also set permissions like
- 30:16how much you want to spend your on your
- 30:17G. I'm just going to go over here and do
- 30:19that. So
- 30:22save that over here.
- 30:25Sweet. And it's been saved. Okay, great.
- 30:29Okay, great. And then just to stay up to
- 30:32date, our model is not GPT41. We
- 30:35actually want to set this up into GPT5.
- 30:39So make sure we save that over here.
- 30:42And also, what I want to do really quick
- 30:44is just say memory. I'm going to do a
- 30:45simple memory, right? We'll say context
- 30:485. So, we just want to open up our chat
- 30:51and just make sure this works. So, I'm
- 30:52going to click open up chat and I'm
- 30:54going to say,
- 30:55what is the alltime strikeout leader?
- 31:01And this should be pitcher-wise should
- 31:04be Nolan Ryan. Super easy question. You
- 31:07can see our workflow is running over
- 31:09here.
- 31:11And Nolan Ryan with 5,714 career
- 31:14strikeouts MLB. Sweet. So that is
- 31:17working on that side of things. So I
- 31:19also want to show you really quick a few
- 31:21other things. Number one, I want to show
- 31:23you community nodes as well as um how
- 31:26you can update this because there are
- 31:28going to be updates and this is a little
- 31:30bit different than when you work on any
- 31:31end cloud. All right. So I I closed out
- 31:34over here and what I'm going to do to
- 31:36update is we're going to go over here to
- 31:37browse terminal.
- 31:40You'll see this over here. Now, what I'd
- 31:42recommend is just click clear so that
- 31:45you have all this space now. And you're
- 31:47just going to follow these commands. And
- 31:48there's actually article on the website.
- 31:50Super super easy. So, all we're going to
- 31:52do is pull the latest version with
- 31:55Docker. So, we're going to go over here
- 31:56and say docker compose pull. So, go over
- 31:59here and say docker space compose space
- 32:03pull.
- 32:05Okay. Then we're going to say docker
- 32:09space compose down.
- 32:13And then lastly, what we're going to do
- 32:15once this is running, go to two.
- 32:23Okay. Lastly, we're going to say docker
- 32:26compose up dash d. Right. Three lines
- 32:31like that. I'll probably put in the
- 32:34description. But yeah, that's
- 32:36essentially it. Now you have all this
- 32:38updated on N and you can close this out,
- 32:41right? Let's close that out. And I'm
- 32:43here back in my terminal. All right. So
- 32:46now let me show you how to work with
- 32:47community nodes. So click these three
- 32:49dots over here and then go into
- 32:50settings.
- 32:53And then what we're going to go and go
- 32:55over here and say community nodes. So it
- 32:57says supercharge your workflows with
- 32:59community nodes. Install node packages
- 33:01contributed by your community. install a
- 33:02community node. So, find community nodes
- 33:05to add on the npm public registry. So,
- 33:08let's look on this side of things. So,
- 33:11here you can see there's over 1,000
- 33:13different community nodes that you could
- 33:15work with on this side of things. Now, I
- 33:17know Tavi is really, really popular. So,
- 33:20maybe we'll do a video like that here on
- 33:23the channel,
- 33:24but you can just keep going over here
- 33:26and see. Now, I know also MCP is really
- 33:29popular as well. So maybe we want to go
- 33:31on that side of things. We'll use this
- 33:33one. So then what we're going to do is
- 33:34just copy this name over here. So it
- 33:36says copy to clipboard over here. And
- 33:39then I'm just going to paste in the
- 33:40package name over here. I understand the
- 33:42risk of installing unverified code from
- 33:44public sources. So then just going to
- 33:47click install.
- 33:49And then you can see I have this
- 33:50community node. Now another way to
- 33:52install it, let me just show you that
- 33:54and go into this workflow. And one of
- 33:56the community nodes that has been out
- 33:58now is Appify. And you can see it's over
- 34:01here. And we want to just click install
- 34:03node. So two different ways on that side
- 34:06of things.
- 34:08And uh yeah, now you says package
- 34:10installed. And now we have amplify in
- 34:12here, right? And let's say I wanted to
- 34:14set up something with ampify, right? I
- 34:16just go over here to ampify.
- 34:18You can see we have all these different
- 34:20actor actions. And I've already covered
- 34:22this here in the channel. So make sure
- 34:24um to check that out. One thing's nice
- 34:26is this run task and get data set. when
- 34:29amplify community node was available in
- 34:31cloud it did not have that but now it
- 34:33does so it's super super nice but yeah
- 34:36that is essentially it with community
- 34:37nodes really quick before we jump into
- 34:39lecture too I quickly wanted to share
- 34:41with you guys where you can find all of
- 34:43the resources for this course for free
- 34:45that includes JSON files that includes
- 34:47notes for each lecture as well as a
- 34:50community so if you have any questions
- 34:51you could ask them and help you out with
- 34:54those uh I'm super active in here and I
- 34:56try to help out as many people as
- 34:57possible Again, this is all for free.
- 34:59You can join our school group. Let me
- 35:01show you this really quick. So, here is
- 35:04our school group. I'm recording this on
- 35:06New Year's. So, just made a post on
- 35:09that. We also have Hangouts as the
- 35:11group. So, I've been a little bit busy
- 35:13this week and last week recording this
- 35:15course, but you can see like whenever we
- 35:16have a hangout, we'll post it in over
- 35:18here. And uh a nice little shout out on
- 35:21that side of things. So to get all the
- 35:24resources for this course, and by the
- 35:25way, they'll all be added in over here
- 35:27once I finish the course. I just put a
- 35:29few over here for demo purposes. What
- 35:32we're going to do is go over to this NV2
- 35:34course. So click on that and then you'll
- 35:37see we're going to have a start here
- 35:39section which will the video talk about
- 35:41the best way to approach the course and
- 35:43then each of these lectures and there's
- 35:45going to be probably well over 30
- 35:46lectures all compiled together in the
- 35:49course. So for example, I just put this
- 35:50together really quickly. Lecture three c
- 35:52four concepts just a note every nan
- 35:55workflow is built with the same
- 35:56fundamental pieces understanding
- 35:57triggers nodes and data flow unlock
- 35:59everything else in this course and then
- 36:01uh just some notes like trigger starts a
- 36:03workflow nodes are the components of a
- 36:05workflow how to pin data modify and pin
- 36:07data like these are just my notes for
- 36:09the course and I'll throw these in over
- 36:11here and I'll expand this over time as
- 36:13well if people are enjoying this and
- 36:15have other feedback associated with it
- 36:18in addition we have our resources down
- 36:19here so you can just click on this and
- 36:21this is our JSON file. So every lecture,
- 36:23well, I'd say probably 95% of the
- 36:25lectures are going to have a JSON file.
- 36:27Some things won't. For example, lecture
- 36:28one where we just talk about the
- 36:30different types of NAN. So if I go over
- 36:33here and download this, you'll see we
- 36:34have section three core concepts. Let me
- 36:36show you really quick how we could
- 36:37upload this into NAN. So all you need to
- 36:40do is go over here and create a
- 36:43workflow. And we're going to go and
- 36:45click these three dots on the side of
- 36:48things. And I know you don't know the
- 36:49whole user interface. We're going to
- 36:50talk about that in lecture two. Um, but
- 36:52all you're going to do is click import
- 36:54from file and then go to your downloads.
- 36:57So, let me find our downloads on here.
- 37:00So, this is our downloads and it says
- 37:01section 3 core concepts. So, you click
- 37:03on this and this is the exact workflows
- 37:06that I used when I was teaching lecture
- 37:093. So, as soon as I finished recording,
- 37:11all I did is I saved this workflow and
- 37:13then I essentially had this ready to go
- 37:16to publish in the course. So, we'll talk
- 37:18about edit fields. We'll talk about an
- 37:20AI agent. Well, this over here would
- 37:23build your first workflow, which was
- 37:25kind of one of the homework assignments
- 37:26directly in the video. And then I showed
- 37:28you how to do this as well. So, all of
- 37:30my notes as I was going through live and
- 37:32teaching are in over here. And in
- 37:35addition, in the future, uh, each of
- 37:37these sections will have a bonus
- 37:39homework section that is not available
- 37:41in this video. So, um, if you want to
- 37:43have extra credit and really learn the
- 37:46concepts, there's going to be a bonus in
- 37:48here. Uh, just also quickly show you
- 37:50there is other additions in our
- 37:52classroom section. So, we have discounts
- 37:54and links for some of the different
- 37:56things that we reference here in the
- 37:57video. We also have an N road map if you
- 38:00want to learn different concepts over
- 38:02time. And we have a lot of the N
- 38:03workflows and JSON files from our other
- 38:05YouTube videos. This is still being
- 38:07built out. So, um, by the time that
- 38:09you're watching this, it might be a
- 38:11little bit fuller. And then we have
- 38:12member created workflows. So, if people
- 38:14want to submit a workflow on here, uh,
- 38:16they can. And we'll give a shout out to
- 38:18that specific member. So, all this is
- 38:20available in our school community. It is
- 38:22100% free to join. It's not $100 a
- 38:24month, $200 a month. This is our free
- 38:26group. Giving as much value back to you
- 38:28guys as possible, and I'd love to have
- 38:30you be part of it. Join our calls. uh
- 38:33post over here and uh learn to grow your
- 38:35skill set whether it's an N data or AI.
- 38:38A lot of us are just trying to improve
- 38:40our skills and upskill in life. Anyways,
- 38:43back into this course. I know we have a
- 38:45long way to go. I just really quickly
- 38:46wanted to share with you how you could
- 38:48access everything. So, don't don't worry
- 38:50too much about keeping very particular
- 38:53notes on each section. Don't about
- 38:55having to replicate everything because
- 38:57it's all available for you in this free
- 38:59group. All right. See you.
- 39:02Okay, so hopefully that you have either
- 39:05cloud or self-hosted right now. No
- 39:07excuses. There's some free options,
- 39:09trial options, and paid options. What I
- 39:12want to do now is kind of walk you
- 39:13through where everything lives in any.
- 39:16Now, I'm going to be using cloud. So, if
- 39:18you do have self-hosted, there's going
- 39:20to be some slight variations, but
- 39:22probably about 95% of what I show you
- 39:24over here is going to be applicable. So,
- 39:27I find it really helpful understanding
- 39:29where everything lives within a piece of
- 39:31software before I really dive into it
- 39:34just because if I have an error or need
- 39:36to find something, I typically spend a
- 39:38lot of time trying to find it. So, I
- 39:39want to clear up any confusion with
- 39:41that. Next lecture, we're going to
- 39:42actually start jumping into some of the
- 39:44triggers and nodes and build your first
- 39:46workflow. But with that out of the way,
- 39:48let's take a look at this. Now, when you
- 39:50log in, you're typically going to go
- 39:51into this screen right over here. We
- 39:53probably don't have any workflows as of
- 39:55yet unless you've really started with
- 39:57the program. So, let me show you a few
- 39:59of the different sides. First thing what
- 40:01we have is all of our flows and these
- 40:04are essentially the automations that you
- 40:06are creating. What's great is you can
- 40:08see if it is a personal workflow over
- 40:11here and then you can see if you've
- 40:12shared it with anyone else and you can
- 40:14see that there's a plus one. Up next
- 40:16over here you have this icon right here.
- 40:18So all these negative signs means it is
- 40:20not published and I should have some
- 40:23green check marks and these means that
- 40:25they are published in general. You can
- 40:28also sort this. So you have sort by last
- 40:31updated, sort by last created, sort by
- 40:33name, uh a toz or za. You can also add
- 40:37in some additional filter criterias if
- 40:39you want to. Uh so you can filter by
- 40:41tags, by status, which is published or
- 40:44unpublished, archived workflows as well
- 40:47as the particular owner and go over here
- 40:49and search as well. And you can see the
- 40:52name of the workflow, when it was last
- 40:54updated, and when it was officially
- 40:56created. In addition, what you have over
- 40:59here are different tabs. So you'll be
- 41:01using workflows the most. Uh the second
- 41:03one that you'll use quite a bit is going
- 41:05to be credentials. And what credentials
- 41:07is are your login to different services.
- 41:10So you can see I have my Google Drive
- 41:12credentials over here with OOTH. I have
- 41:14HubSpot which is OOTH. Uh I have
- 41:16anthropic over here. I have my Gmail
- 41:18account. I have some header offs that I
- 41:21have over here. I have Cloudflare. So
- 41:22different options over here. You can see
- 41:24if it's a personal one or if it's
- 41:25someone on your particular team. Next is
- 41:28going to be your executions. So this
- 41:30tells you if there uh execution was
- 41:33successful or not. And you can see we
- 41:35have our specific workflow. And this is
- 41:37going to be a probably a little bit out
- 41:38of scope right now and you're going to
- 41:40be confused about it. But we're going to
- 41:42cover this a little bit later on in the
- 41:44course. So if you have an error of some
- 41:46capacity, it's going to populate over
- 41:47here. If everything worked in
- 41:49particular, you'll see this green check
- 41:51mark. You can see when the workflow
- 41:53specifically is started, how long it
- 41:55took for that specific workflow, and
- 41:58then also the execution ID. Next, we
- 42:00have variables. I don't have this on my
- 42:03plan and we're not going to be covering
- 42:04this in the course today, but I may make
- 42:08a another video in the future on this is
- 42:11only available for pro and I'm not going
- 42:13to pay for that. Lastly, we have data
- 42:16tables and we are going to be covering
- 42:18data tables. I want to say it's
- 42:19somewhere from like lecture 8 to 10
- 42:21somewhere around in that particular area
- 42:23and it's going to be very helpful. You
- 42:24can think of data tables like a Google
- 42:27sheet but it's native directly into NEN.
- 42:30And why this is amazing is you don't
- 42:33have to worry about API calls. So you
- 42:34don't need to worry about sending data
- 42:36to Google Sheets. You don't have to
- 42:37worry about sending data to Air Table.
- 42:39And uh this is a really great way just
- 42:42to store internal data. You pull data,
- 42:44do some testing. We'll cover this in a
- 42:47lot of detail, probably 20 to 30 minutes
- 42:49alone a little bit later on in this
- 42:51course, but that is going to be one of
- 42:52the tabs that you could click over. In
- 42:55addition, what you have over here is
- 42:56your executions. Uh you have how many
- 42:59failed executions. Obviously, this is my
- 43:01kind of testing account for YouTube, the
- 43:03failure rate, the time saved associated
- 43:06with it, uh, which is calculations, and
- 43:08maybe we'll cover that as well in the
- 43:09course, and also the run time on
- 43:12average. So, I'm going to just jump back
- 43:14into workflows. I'm going to show you a
- 43:16few other settings here before we move
- 43:17on. You can also change the number of
- 43:19workflows you show per page. So, by
- 43:21default, it is 50, but you can change
- 43:23this to 10, 25, or 100. You have also
- 43:25multiple pages on that side of things.
- 43:28If you go to the top right, you have a
- 43:30few different options as well. So you
- 43:32can create a workflow which is going to
- 43:33be the automations that we're going to
- 43:35be covering. You can create a credential
- 43:37which is going to be your login to a
- 43:38particular website like API. And then we
- 43:41also have our create the data table. And
- 43:44I just find it very helpful. I'm always
- 43:46over here just creating workflow. And
- 43:48you can see that we're in the workflow
- 43:49tab. It says create workflow. We're in
- 43:50the credential tab. It creates
- 43:52credential. Then we go to data tab. It
- 43:54goes to create data table. So, it's not
- 43:57always going to say create workflow. And
- 43:58I do like that component because the
- 44:00NAND team made it really nice. Like if
- 44:02I'm going to data tables and I don't
- 44:03want to just click down and find data
- 44:05table. Like it's already right over
- 44:07here. And I just think that was a really
- 44:08great design. Okay. So now what we have
- 44:12is a lot of different settings over here
- 44:13to the right. Microphone's actually a
- 44:15little bit in the way. So might move a
- 44:17little bit out of screen over here just
- 44:19to see them. But the first one is to
- 44:21expand the sidebar. So maybe out of the
- 44:23gate you have a sidebar that looks like
- 44:25this. Personally, I just hide it for
- 44:27these YouTube videos to give you guys a
- 44:28little bit more space. But you'll see we
- 44:30have overview, personal, shared with
- 44:32you, chat, admin panel, templates,
- 44:36insights, help, as well as settings. So,
- 44:39everything I've showed you so far is on
- 44:41our overview side of things. What I want
- 44:44to show you next is personal. So, this
- 44:45is just what you personally have. And
- 44:48you can see this has changed slightly.
- 44:50So, this has workflows, credentials,
- 44:52executions, and data tables. You can see
- 44:54variables is not available on that
- 44:56personal section. So that is gone as
- 44:59well as this particular header. And you
- 45:02know maybe in the future I see the any
- 45:03end team kind of merging these together.
- 45:06I don't know for sure but you have that
- 45:09very very similar. Next what you have is
- 45:11shared with you. So any workflows that
- 45:13someone shared. Uh so this was one for a
- 45:16particular YouTube video uh my editor
- 45:18was helping me with. We haven't even
- 45:20published a filter node video as of yet.
- 45:22This was shared over here. Next, what we
- 45:24have is our chat hub. And we're going to
- 45:26talk about this entirely in a lecture
- 45:29within this course. And this is
- 45:31relatively new like within the last two
- 45:33weeks or so. But I really like chatub
- 45:35because essentially what chat hub is is
- 45:37this is your internal essentially chat
- 45:39GPT for nan. And the best part about
- 45:42chatub is you can actually talk directly
- 45:45into your workflows which is great. In
- 45:49addition, what you can do is build out
- 45:51personal agents. So you can have an
- 45:53agent for a particular task and then you
- 45:56can see the workflow agents. So this is
- 45:58a personal agent. I have one that's
- 46:01built out just for SQL debugging. And
- 46:03then we have workflow agents over here.
- 46:06And why these are helpful is you can use
- 46:07these to talk to your particular
- 46:10workflows if you have a chat trigger.
- 46:12And a lot of this might not make sense
- 46:14right now, but later on the course you
- 46:16will uh use it and you're going to be
- 46:17like, man, this is a awesome feature.
- 46:20But again, think of this as like chat
- 46:22GPT. You can just ask questions. You can
- 46:24do whatever you want. And what's great
- 46:26about this as well is you can go over
- 46:28here and you can choose whatever model
- 46:30you want as long as you've set up the
- 46:32particular credential. So you can see
- 46:33GPT uh all these over here. If we go to
- 46:36anthropic, all that. So instead of
- 46:38having like one tab open for anthropic,
- 46:40one tab open for chat GPT, you can do
- 46:43everything all over here in addition to
- 46:45working with your workflows and asking
- 46:47questions. Again, very very nice. And
- 46:50just to show you what this looks like as
- 46:51well. So, I just have some older stuff
- 46:54over here. And you can see these were
- 46:57examples just talking to workflows,
- 47:00which is why these are workflow agents.
- 47:02This over here was just another
- 47:04question. I'm asking GBT5 Mini and I was
- 47:07also asking about the personal agent a
- 47:09little bit earlier and then I was
- 47:11testing uh building out a UGC creator
- 47:14over here. One limitation and I do think
- 47:16the any end team will eventually solve
- 47:18this is this does not work right now
- 47:21with images or videos. In fact any end
- 47:23team does know about that because a few
- 47:25of our creators talked to them about
- 47:27that in a call. So you know in the
- 47:29future I can see this being changed but
- 47:32again I just wanted to show you what is
- 47:34available in chatub as of now and you
- 47:36can see it is in beta version. All right
- 47:38so you just click into any logo and
- 47:40we're going to be back over here to the
- 47:42homepage. So that's overview, that's
- 47:44personal, shared with you. Now you have
- 47:46a lot of other sections which is our
- 47:47admin panel, templates, insights, help
- 47:50as well as settings. So let's go into
- 47:52our admin panel first. And we'll click
- 47:55this. And here you see this option. It
- 47:58says N. You have your dashboard manage.
- 48:00You have your help setter. You have your
- 48:02open your instance. It tells you that
- 48:04the instance is currently online. that
- 48:06tells you what version of Nan that you
- 48:09are currently running which is important
- 48:10because what ends up happening is Nan
- 48:13team drops a ton of new features
- 48:15literally weekly and it's super
- 48:17important that you stay up to date on
- 48:18that side of things if you want to
- 48:20access new features. So you might be
- 48:21going like, "Oh, how do I actually the
- 48:24N?" And let me show you. So you click
- 48:26over here into this gear icon and you
- 48:28can see it says N version and I'm on the
- 48:31latest stable version, but you'll find
- 48:33that they often have a better release as
- 48:34well as a stable version. So just go
- 48:36over here and choose whatever one you
- 48:39personally want. Since I'm making a lot
- 48:40of videos on YouTube, I use this for
- 48:42better releases just so that way I have
- 48:44the newest nodes and newest settings
- 48:46available. But uh if you want to just go
- 48:49stable, you have that option as well.
- 48:51You have your time zone over here,
- 48:54executions to save. You have community
- 48:57nodes, which we're going to talk a lot
- 48:58more about. Know a little bit about
- 49:00community nodes uh within the previous
- 49:02lecture, but uh community nodes are
- 49:05pretty important. Obviously, they are
- 49:06limited on cloud versus self-hosted, but
- 49:09if you want to access community nodes,
- 49:11you have to go over here. You want to
- 49:13disable them as well, you can choose uh
- 49:15to to that option. Again, it really
- 49:17depends on your data governance at your
- 49:19job and what you want the particular
- 49:22use. I can see some companies disabling
- 49:24all community nodes. I can see some only
- 49:26allowing verified. Um, okay. You can
- 49:29also change your plan over here as well.
- 49:31I'm just on starter for this particular
- 49:33account. Next, you have the billing side
- 49:35of it. You can see when payments were
- 49:37coming through and things like that.
- 49:39Just going to blur my payment method
- 49:41down below so you guys do not see that.
- 49:43But yeah, I am paying the $24 a month
- 49:45for this account. And then you also have
- 49:47an export. So click here to download a
- 49:49copy of your workflows from the latest N
- 49:51cloud backup, which is nice. So you
- 49:53should probably download a copy of your
- 49:55workflows occasionally just to save them
- 49:57if you particular need that. So I'm
- 49:59going to go back over here and go to
- 50:01this dashboard on that side of things.
- 50:04And we're going to go and click open
- 50:07instance. And what you'll see if we
- 50:09click open instance, take a look. We are
- 50:11back on the overview side of things. So,
- 50:14that is going to be the admin panel.
- 50:17Next thing we're going to do is go into
- 50:19templates. And honestly, I don't really
- 50:21use templates that often, but if you
- 50:24want to download a template specifically
- 50:26from NAN's website, you can just click
- 50:28on that. Here are some featured
- 50:30templates. So, you can see for example,
- 50:32create daily newsletter digest from
- 50:33Gmail using GPT41 mini research
- 50:36assistant for WhatsApp using Twilio
- 50:38Flexity and Claude. analyze website
- 50:40backlinks with top backlink checker and
- 50:42API Google Sheets logging. So if you
- 50:44have a particular use case and you don't
- 50:46know where to start, sometimes templates
- 50:48can be pretty helpful on that side of
- 50:50things. And you know, honestly, I should
- 50:51be using templates a lot more than I do.
- 50:54Again, I don't really use templates that
- 50:56often because I kind of stubborn and I
- 50:57want to build everything myself, but
- 50:59they could be a great starting point.
- 51:01And if you click over to see more
- 51:02templates, you can actually see 7,536
- 51:05workflow automation templates over here.
- 51:08You can see who wrote or who built a
- 51:11specific template. They have a verified
- 51:13graders and whatnot. And actually, I do
- 51:16have a template on the website. In fact,
- 51:18I plan on putting a lot more over here
- 51:21in the future. I'm curious if I type my
- 51:23name if we uh have it over here. No, I
- 51:27don't. Believe I I put binary data on
- 51:30here. So, let me see.
- 51:32Oh, here we go. And I I haven't even
- 51:34updated my image. This is some very poor
- 51:38text and copywriting, but you can see I
- 51:40I just wanted to test one out here on
- 51:43the forums and we could also cover how
- 51:45to publish a template as well on the
- 51:48side of things. And I actually think
- 51:49this would be a pretty cool uh video to
- 51:51talk about or not video but a section in
- 51:53the course because I do think there's
- 51:54value in sharing some particular
- 51:56templates whether you want to share it
- 51:57for free or paid because both of them
- 51:59are available over here. But yeah, this
- 52:01is just an example. And when you take a
- 52:03look at templates on the N forms, what
- 52:06you can see is you can actually zoom in,
- 52:08you can grab different sections. We'll
- 52:10be covering a lot more here in the
- 52:12future. I just talked about this was on
- 52:14the YouTube channel. I embedded a
- 52:15YouTube video over here. You can see the
- 52:18different examples I put through over
- 52:20here as well as some text. But you can
- 52:22go back into templates if you want to
- 52:24click on another one. Let's say generate
- 52:25AI videos with Bolato.
- 52:30And actually I just listened to a
- 52:31podcast I believe by the creator of that
- 52:33on and they publish a podcast but you
- 52:36can see I'm going over here this person
- 52:38over here uploaded a video as well
- 52:41there's documentation so documentation
- 52:44on notion requirement doc and then you
- 52:46can see there's different steps over
- 52:48here select idea step two image video ad
- 52:52script posts automations and some really
- 52:56cool stuff going on over here I still
- 52:57like I said I still got to check out
- 52:58that note I've heard some great things
- 53:00about it. It's on my tutorial backlog.
- 53:01Maybe we'll throw it in this course as
- 53:03well. But yeah, so that's an option over
- 53:06here. And if you actually click use for
- 53:07free, this will populate directly within
- 53:10your n instance. So you can see import
- 53:13template to rhinol and data cloud
- 53:15workspace, copy template to clipboard as
- 53:17JSON, open self-hosting, installation
- 53:20docs. We're going to cover this more in
- 53:21the future, I promise you on that side
- 53:23of things. I don't want to take away
- 53:24from the UI side of it for this part of
- 53:27the video. But yeah, that's what
- 53:29templates essentially allows you to do.
- 53:30Sorry if I spent a little too long over
- 53:32there. Okay, next we have insights. And
- 53:35I just don't have insights because I'm
- 53:37not on the pro plan. This is more of an
- 53:40impact if you have a a plan for a
- 53:43particular business. You can see a lot
- 53:45of stuff is just it's not filled out.
- 53:48Again, I want to look at more time saved
- 53:49here in the future, but you can see I
- 53:51don't even really get that breakdown on
- 53:54that side of things. So, I just haven't
- 53:57really filled that out. Okay. So, next
- 53:59you have your help section. So, there's
- 54:01quite a few things over here. So, it
- 54:02says, "Share your workflow with others,
- 54:04unlock perks, and become a featured
- 54:05template creator. Become a creator."
- 54:07Again, we're going to cover that a
- 54:08little bit for the future. You have a
- 54:10quick start guide, which honestly, if
- 54:11you guys are watching this video, you
- 54:12probably won't need to use that. You
- 54:14have documentation, which I use actually
- 54:16quite a bit. I think some people think
- 54:18they're too good for the documentation,
- 54:19like, "Oh, I can figure things out." But
- 54:21the N team does a really great job when
- 54:23it comes to documenting how nodes work.
- 54:26And u I would re really recommend if you
- 54:28if you don't understand how a node works
- 54:30or if you want to get some clarity,
- 54:32check out the documentation. We're going
- 54:34to open up that here in a second. Next,
- 54:35you have NAN community forums. So we'll
- 54:38go over there. You have a report of bugs
- 54:39section about NE. Uh, next over here is
- 54:42your change log like what is new, what
- 54:44is NAM bringing in instance level MCP
- 54:47guardrail nodes, new ways to
- 54:49authenticate MCP client tool. All these
- 54:51we're going to cover here in the course.
- 54:52You can see the full change log and then
- 54:54if you're behind on a version which you
- 54:55guys saw I'm on the latest version. Uh,
- 54:57you would want to click over here and
- 54:59it'll go back into your admin panel. So
- 55:01just to show you the any end docs really
- 55:03fast. So where you go over here you can
- 55:06look for a specific node and just try to
- 55:08find it. So you could go and search
- 55:11something. For example, let's say nan
- 55:14loop over items
- 55:18documentation.
- 55:20So I'm just going to go over here and
- 55:22you can see loop over items. It says
- 55:24when to use it, node parameters and what
- 55:27they have is templates and examples on
- 55:29this side of things. Read RSS feed from
- 55:32two different sources. There's an
- 55:33example over here. View workflow file.
- 55:36Again, more JSON on that side of things.
- 55:38get the current running index of this
- 55:40node. So like a lot of really great
- 55:43documentation in my personal opinion all
- 55:45on one side of things and you can see
- 55:46built-in nodes you have cluster nodes
- 55:48credentials community nodes again very
- 55:51great documentation feel free to read
- 55:52into it see cluster nodes talk a lot
- 55:55more about that but uh one other thing
- 55:57we'll cover this once we get into the UI
- 55:59is actually if you click into a node
- 56:01they'll often have a say a section that
- 56:03says either look at a template or read
- 56:05into the documentation so that is all
- 56:07there here's the n community so this is
- 56:10another great spot to kind of just
- 56:11network with people, uh, see what people
- 56:13are building and things like that. I
- 56:15don't use the community as much as I
- 56:17really should, but one of the best
- 56:19aspects of NAN is kind of the community
- 56:21that they've fostered. Like it's a very
- 56:23great community. You can see we need
- 56:24your help. There's 28 replies, 50,000
- 56:26views. Welcome to N community, 16,000
- 56:29views. So like a lot of people are
- 56:31pretty active on here. OOTH issues. You
- 56:33can see people put questions that aren't
- 56:34working or they share things as well.
- 56:37There's a lot of different topics,
- 56:38announcements, questions, tutorials
- 56:40built with N and you can see the people
- 56:43that are responding or whatnot. Lastly,
- 56:45our release notes. So, just based off of
- 56:47here like what is going on with N. So,
- 56:50you can see like when there's a new
- 56:51version, they talk about what is being
- 56:53changed. I use release notes just to
- 56:55kind of know what's happening with N and
- 56:57kind of helps me make some YouTube
- 56:58videos like, oh, they just put this in
- 57:00N. I should probably cover this on a a
- 57:03video on the channel. So, you know,
- 57:05maybe it's not as important for you, but
- 57:07if you want to take a look at release
- 57:09notes before you update, or if you just
- 57:10want to see what's new to the software,
- 57:12you know, you can see what's new over
- 57:14here. Or you can just like really go
- 57:16into the release notes and press that
- 57:17used to release notes a little bit more.
- 57:19All right, so that covers essentially
- 57:21that side of it, which is insights.
- 57:23Sorry, that covers also the helps
- 57:25section. That wasn't insights. Lastly,
- 57:27you have settings, which is quite a few
- 57:29different settings over here. Uh, if we
- 57:31click on one, it'll go to everything. So
- 57:33we'll just go over here and go to
- 57:34settings. So you have the personal side
- 57:37of things. Then you have your users that
- 57:39are in your instance. You have different
- 57:41roles uh for projects, but that's only
- 57:43available on enterprise plans. I'm not
- 57:45going to click on that because
- 57:46enterprise is really really expensive.
- 57:48You have the N API, which I haven't used
- 57:51as of yet. Maybe I'll take a look at
- 57:53this here in the future. You have
- 57:55external secrets. Again, available
- 57:56enterprise plan. So I don't have that.
- 57:58You have environments enterprise plan.
- 58:00Don't have access to that. If you have
- 58:02SSO again enterprise plan, I do not have
- 58:05that. LDAP do not have that as well.
- 58:10Loging uh is a paid feature. So don't
- 58:13have available on that. You have
- 58:14community notes that is something I do
- 58:17have. So as I mentioned, you know,
- 58:19community nodes are things that
- 58:20companies will build and they want to
- 58:22put this in directly into N because a
- 58:24lot of people use their software. For
- 58:26example, there's firecrawl over here.
- 58:28There's ampify that I've used. their SER
- 58:30API and you can see the versions of
- 58:31these and it says you're up to date, you
- 58:33up to date, you were up to date, but if
- 58:35you weren't in the most current version,
- 58:37it would tell you you could update it
- 58:38over there. You can take a look at the
- 58:40documentation and you can uninstall Ka
- 58:41nodes as well all in one particular
- 58:43place. You can also access all this on
- 58:45your particular canvas. Uh you have a
- 58:47migration report. Now why the migration
- 58:50import is important when people are
- 58:51moving from version one to version two
- 58:53of any n there are things that are going
- 58:56to break with the Python code node as
- 58:58well as the subworkflow node and yeah so
- 59:02this tells you what workflows are
- 59:03particular impacted with that I've
- 59:05actually covered this in a lot greater
- 59:06detail in our nan v2 stuff but if you're
- 59:09watching this video chances are you're
- 59:11probably brand new to any you don't
- 59:12really have to worry about this in
- 59:14particular the next is the instance
- 59:16level MCP so it says let mcp clients
- 59:18like flawed, lovable, and other AI
- 59:19tools. Discover and execute your NAN
- 59:21workflows. So, actually, we're going to
- 59:23be doing this a little bit later on in
- 59:25this course. I haven't actually recorded
- 59:28the particular YouTube video for this as
- 59:30of yet. It's in my backlog. But, uh, I
- 59:32guess we're going to put it in the
- 59:32course first and then I'll have the
- 59:34breakdown of a YouTube video on there.
- 59:36And then lastly, you have chat settings.
- 59:38So, we'll cover this a little bit more a
- 59:40little bit later on in the course when
- 59:41we cover into chat. But you can see we
- 59:44have a specific provider, what models
- 59:46are available and things like that. You
- 59:48can you can choose different options,
- 59:51whether you want to enable it in chat or
- 59:52not, limit the models. Again, we're
- 59:54going to talk about that later in the
- 59:55course. I don't want to spend all the
- 59:57time doing that. And then just clicking
- 59:59back, you are back into uh this
- 1:00:02homepage, which is going to be overview.
- 1:00:04A few other just quick minor things I
- 1:00:07want to cover really fast for you. So,
- 1:00:09first we already covered the sidebar. So
- 1:00:11you can see how that has next thing you
- 1:00:13can click this plus you can create a new
- 1:00:15workflow you can create a new credential
- 1:00:17or you can create a new project and then
- 1:00:19lastly what we have over here is a
- 1:00:21command bar and a lot of people like the
- 1:00:22command bar and I actually haven't seen
- 1:00:23a lot of people talk about it but this
- 1:00:25allows you to go into recent actions. So
- 1:00:27you can see like open RSS feed node
- 1:00:29which is a video I published open AI
- 1:00:31nodes another video I published open any
- 1:00:34chat you have workflows create a new
- 1:00:36workflow open a workflow projects create
- 1:00:38a project open a project uh credentials
- 1:00:41you have data tables over here execution
- 1:00:44you can go to navigation what's new chat
- 1:00:46templates variables so a lot of things I
- 1:00:48already showed you over here you have
- 1:00:49the help guide but this is just all
- 1:00:51available in uh this search rather than
- 1:00:53just going through all that over here
- 1:00:55which can save some time for some
- 1:00:57particular power users. What I want to
- 1:01:00do now is just go into create a workflow
- 1:01:02and show you a few other things really
- 1:01:04fast and then uh and we'll call this for
- 1:01:07lecture number two. So I'm just going to
- 1:01:09go over here into create workflow and
- 1:01:12let's cover some of these specific
- 1:01:14basics. So going into the canvas again,
- 1:01:17you'll see that we have the sidebar.
- 1:01:18Personally, I like having as much space
- 1:01:20as possible. So, all I'm going to do is
- 1:01:23just collapse this sidebar. And you can
- 1:01:25see you have a little bit more room. And
- 1:01:27the first thing you should notice is we
- 1:01:29have our sections over here, which is
- 1:01:31editor, executions, as well as
- 1:01:33evaluations. Again, we'll cover all
- 1:01:35these more in particular detail in the
- 1:01:37future. Executions is when you run your
- 1:01:39particular workflow. Obviously, we
- 1:01:41haven't even built out a workflow yet.
- 1:01:43So, this is going to be blank.
- 1:01:44Valuations help when you're building out
- 1:01:47AI workflows or AI orchestration. And
- 1:01:50there's a lot of nuances behind it. You
- 1:01:52can see you only have one uh for the
- 1:01:55individual side of things and I'll have
- 1:01:57to delete it for this course, but that's
- 1:01:59fine. And we're back into our particular
- 1:02:01editor. So those are your three options
- 1:02:03over here. When you want to save a
- 1:02:05workflow, what you want to do is click
- 1:02:06over here and mention that it is save.
- 1:02:09Uh so now you can see my workflow is
- 1:02:11saved. You can change the name really,
- 1:02:13really easily. So you can see how it
- 1:02:15says my workflow 12 over here. All I'm
- 1:02:17going to do over here is say section two
- 1:02:20interface tour. Interface tour. And
- 1:02:24boom, we have re saved our thing. And
- 1:02:27you can see it's saved. We have the new
- 1:02:29name as well. And if we go back into our
- 1:02:31overview, you can see at the very top it
- 1:02:33says section 2 interface store. And that
- 1:02:35is our workflow that we have for here.
- 1:02:37And it says last updated just now
- 1:02:39created December 26. So all of that is
- 1:02:43on that side of things. What's great is
- 1:02:45you could add a first step. You could
- 1:02:46start from a template which we've
- 1:02:48already covered the templates or you
- 1:02:49could build with AI as well. So just
- 1:02:52going over here you could essentially
- 1:02:54ask AI to start building out the
- 1:02:56framework of a workflow or you can start
- 1:02:59from a template or you could start from
- 1:03:01scratch. Now I'm going to really preach
- 1:03:02kind of learning the basics and building
- 1:03:04things out first before you ask AI. It
- 1:03:06kind of goes back into vibe coding. What
- 1:03:09happens with vibe coding is a lot of
- 1:03:10people just have no idea what is going
- 1:03:11on in the code and you have bigger
- 1:03:13issues later on. So it's super important
- 1:03:14to know the fundamentals of any end
- 1:03:16before you start using templates or
- 1:03:18building with AI in my personal opinion.
- 1:03:21All right, next side of it what you're
- 1:03:24going to see. So you have all these
- 1:03:25different things over here. Open nodes
- 1:03:27panel, you have the command bar, you
- 1:03:29have add a sticky note, you have the
- 1:03:31focus panel, and then you have any nai
- 1:03:33as well on that side of things. We're
- 1:03:35going to cover each of these here in a
- 1:03:37second. You have the three dots over
- 1:03:38here which is more setting options. Uh
- 1:03:40you can see edit description, duplicate,
- 1:03:42download, share, change owner, rename,
- 1:03:44import from URL or from file settings.
- 1:03:47You could archive it and then you have
- 1:03:49different things like it says zoom to
- 1:03:50fit, uh zoom in, zoom out, and then also
- 1:03:54tidy up. So let's walk through a few of
- 1:03:56these over here. First, we've already
- 1:03:58covered this command bar before, and you
- 1:04:00can see it just shows up. It is the same
- 1:04:02thing as over here, right? So two
- 1:04:04different options just for these power
- 1:04:06users that want to just go over here,
- 1:04:07grab it, or you can go over here. Okay,
- 1:04:09next thing. This is what you're going to
- 1:04:11use a lot, which is your nodes panel.
- 1:04:13So, you can click this plus icon. When
- 1:04:15you initially start your workflow, it's
- 1:04:17going to prompt you to use a trigger.
- 1:04:19We're going to cover triggers in greater
- 1:04:21detail, but let's go over here to the
- 1:04:23basic one and say trigger manually. And
- 1:04:26we'll just click that. And now, what
- 1:04:27you'll see is it ask for a specific
- 1:04:30node. You can use another trigger, which
- 1:04:31again we're going to cover. You have AI
- 1:04:33nodes. So you can click over here and
- 1:04:35you can see all of these different nodes
- 1:04:37as well as all these over here. Then you
- 1:04:40have an action in a particular app which
- 1:04:43you can see there's no way anyone's ever
- 1:04:44going to cover all of these. There's
- 1:04:46just so many and I'm and I keep
- 1:04:48scrolling and you can see there's more
- 1:04:49and more and more are going to be added
- 1:04:51over here. If you see this check mark
- 1:04:53over here, it says this is an official
- 1:04:55node maintained by that specific
- 1:04:57company. So these are going to be your
- 1:04:58community nodes whereas these are native
- 1:05:00nodes like the sticky notes on there.
- 1:05:03You have data transformations which
- 1:05:05again there's the popular section here
- 1:05:06at the top add or remove items combine
- 1:05:09items convert data and other. Then what
- 1:05:12you have next is flow. So essentially
- 1:05:14how you want to change the direction and
- 1:05:16you guys might think I'm going fast
- 1:05:17right now. Promise you we're going to
- 1:05:19learn about everything over here. We're
- 1:05:20just covering the interface right now.
- 1:05:22Uh we have our core side of it as well
- 1:05:26and given in the loop and again if you
- 1:05:29want to add another trigger you have
- 1:05:30that option. One thing as well is once
- 1:05:32you know essentially what node you want
- 1:05:35to use, you're going to be searching
- 1:05:37quite a bit. So like imagine if I just
- 1:05:38wanted a text classification node, uh
- 1:05:40you can just see I say text and I
- 1:05:42already know text classifiers here. So I
- 1:05:44don't really have to dive in and click
- 1:05:46AI and go say, "Hey, where's the text
- 1:05:49classifier? Oh, right over here." And I
- 1:05:51promise you like the more and more you
- 1:05:53use any N you'll have ideas in your mind
- 1:05:56like, "Oh, I need to use this type of
- 1:05:57node." you just search it and it really
- 1:05:59does save you quite a bit of time. I'm
- 1:06:01going to close these out really fast so
- 1:06:03we can just go back into this. Uh sticky
- 1:06:05notes are really important. We're going
- 1:06:07to talk about this on the documentation
- 1:06:08side of the course. Uh but there's quite
- 1:06:10a bit that you can do with sticky notes.
- 1:06:12You saw I added in a video over here. I
- 1:06:14add in text. You can do different
- 1:06:15headers. Uh you could also add in images
- 1:06:18over here. You can change the color of
- 1:06:19these. And sticky notes populate behind
- 1:06:22nodes which is really helpful. So let's
- 1:06:24say I have a schedule trigger and you
- 1:06:26can see the sticky note is behind it on
- 1:06:28there. I just again I find sticky notes
- 1:06:30very helpful on that side of things.
- 1:06:33Again, I just find sticky notes very
- 1:06:34helpful. One other thing that you have
- 1:06:36is this focus panel. So let me just show
- 1:06:38you when you're going to specifically
- 1:06:39use that. So let me put in a agent and
- 1:06:42we'll have a whole AI agent setting or
- 1:06:44section multiple sections on AI agents.
- 1:06:46So don't worry if you're a little
- 1:06:48confused over there. But if I want to
- 1:06:50click into the AI agent, I'm going to
- 1:06:52click over here to define below. You'll
- 1:06:54see that we have a prompt that we need
- 1:06:56to specifically write. And if you're not
- 1:06:58familiar with the prompt, don't worry.
- 1:07:00It's just essentially text that you want
- 1:07:02to tell an AI to do something. Well, you
- 1:07:05know, this is just one screen. What if I
- 1:07:06wanted to see the whole workflow while
- 1:07:08I'm writing this prompt? So, click your
- 1:07:10focus parameter. And you can see I'm
- 1:07:12going to say write a generic
- 1:07:16email. And I'm just going to say that
- 1:07:19over here. And you can see write a
- 1:07:21generic email is over here as well. And
- 1:07:23if I actually click this, it's going to
- 1:07:25start the workflow. And it says run the
- 1:07:27current node will also run previous
- 1:07:28nodes if they have not been run yet. So
- 1:07:30I'm not going to do that. But you could
- 1:07:32also just run this AI agent on this side
- 1:07:34of things right here. And if you haven't
- 1:07:36run the previous nodes, it'll run those
- 1:07:38up into that AI agent to perform that
- 1:07:40particular task. So something that's
- 1:07:42pretty helpful. Again, we'll cover that
- 1:07:44here in the future. Uh next with our our
- 1:07:48specific chat trigger node, one of the
- 1:07:50things you'll find if we actually open
- 1:07:51this up, you can actually have a chat
- 1:07:53with it and you'll see this down below.
- 1:07:55Again, we'll cover this in greater
- 1:07:56detail when we talk about the chat, but
- 1:07:59that is available over there. Okay, so
- 1:08:02now let's talk about these. So one of
- 1:08:04the things I find sometimes is, and this
- 1:08:07happens on my laptop more than my
- 1:08:09desktop, sometimes it'll zoom like way
- 1:08:11out. It's like these nodes just they
- 1:08:14turn out to be like this and you can see
- 1:08:17like I I don't know what's going on.
- 1:08:19Honestly, I wish the N any team would
- 1:08:20solve this because I just I can't see
- 1:08:22what's going on and you don't even know
- 1:08:23like there's a node like you can't see
- 1:08:25that. Well, the way that you fix this is
- 1:08:26you just say zoom in to fit and congrats
- 1:08:29you are back into that area. I think the
- 1:08:31N team shouldn't have it zoom out that
- 1:08:33far. Like I don't think there's any ever
- 1:08:35going to be a workflow that uh needs
- 1:08:37that much space. In fact, you can't even
- 1:08:39see the nodes. Uh so that should be
- 1:08:40limited but [snorts] that ever happens
- 1:08:42to you zoom to fit and that took me too
- 1:08:45much time to admit again you can zoom in
- 1:08:47you can zoom out over here uh you have
- 1:08:50an action to reset the zoom which is
- 1:08:52that over here which only populates when
- 1:08:54you change your zoom. So again like if
- 1:08:56you you go way out over here and you
- 1:08:58want to reset it done. Okay. And next
- 1:09:01thing is the tidy up. So again this is
- 1:09:04going to be kind of more of a section
- 1:09:06when we have a bunch of nodes going on.
- 1:09:08Let's just throw in some random stuff
- 1:09:10like not anything in too particular.
- 1:09:13We'll go over here. We'll do like an
- 1:09:14edit set. Do not do what I'm doing right
- 1:09:17now. I'm just kind of just showing you
- 1:09:19something really weird. And this means
- 1:09:22absolutely nothing. So nothing in here
- 1:09:25should be replicated with this workflow.
- 1:09:27So please don't do that. I mean if you
- 1:09:29want to you can but like really there's
- 1:09:31nothing. So like this looks like
- 1:09:33gibberish and you're like all right this
- 1:09:35not something that's worth presenting on
- 1:09:36YouTube. it's not worth something
- 1:09:38presenting to a client like you need to
- 1:09:40organize it and you know a lot of people
- 1:09:42just go okay let me organize it and put
- 1:09:45all this over here and this is simple
- 1:09:47right we have five total nodes one
- 1:09:49trigger and four nodes over here but it
- 1:09:51does take time if you have 20 or 30
- 1:09:53nodes so what can happen well if you
- 1:09:56just click this tidy up boom like two
- 1:09:59seconds like it doesn't matter how
- 1:10:01disgusting this is like please again do
- 1:10:04not make your workflows like this like I
- 1:10:05have I have legit Legitimately no idea
- 1:10:07what the order is. Taking a look at this
- 1:10:09and this is terrible. Done. Tidy up. So
- 1:10:12a very impactful setting. Lastly, you
- 1:10:15have any N AI over here. So it says like
- 1:10:18what would you like me to automate? You
- 1:10:19have monthly credits associated with
- 1:10:21this. So you can just ask it to help you
- 1:10:23with your particular workflow. I'm going
- 1:10:25to cover this later on in the course as
- 1:10:28well as a particular video on my YouTube
- 1:10:30channel. Uh and you can see that this is
- 1:10:32in beta. You could ask a question or you
- 1:10:34could also build and you have different
- 1:10:36credits based off of your plan.
- 1:10:40So that is essentially the interface. I
- 1:10:43think we covered everything. Oh, few
- 1:10:45things. So two things I forgot to show
- 1:10:48you guys. Uh first is your workflow
- 1:10:51history. So I'm just going to say leave
- 1:10:53without saying and you can see your
- 1:10:55versions over here. And it says version
- 1:10:58history is limited to one day upgrade
- 1:11:00plan to activate full history which I
- 1:11:02think is kind of a bummer on that side
- 1:11:04of things but you can see your version
- 1:11:05history there. Uh the other thing as
- 1:11:07well is you have these three dots and
- 1:11:10you can see there's quite a few things.
- 1:11:11So edit description clear descriptions
- 1:11:13help other users and MCP clients
- 1:11:14understand the purpose of your workflow.
- 1:11:16So as you build out a lot more workflows
- 1:11:18and you want to use your workflows
- 1:11:20within MCP or chat, you should write a
- 1:11:22description for that particular
- 1:11:24workflow. So that is that section. If
- 1:11:26you want to duplicate your workflow, so
- 1:11:28essentially if you want to create a
- 1:11:30second version of it, I do find this
- 1:11:32helpful for when you want to do some
- 1:11:33sort of evaluations, I just duplicate a
- 1:11:36workflow for there. If you want to
- 1:11:37download a workflow, so essentially how
- 1:11:39this works is a workflow is JSON and you
- 1:11:43download the JSON over here and you can
- 1:11:45send it to a customer or you can use it
- 1:11:48somewhere else. So that's where the
- 1:11:49download is. You you can share as well.
- 1:11:51So you just add in a particular user and
- 1:11:54you can share your workflow. You can
- 1:11:55change the owner of a workflow and
- 1:11:58really like sharing or changing owner
- 1:12:00helps if you have multiple people. If
- 1:12:01you're just a soloreneur and you're not
- 1:12:03doing workflows for other people, it's
- 1:12:04not really there. You could rename it,
- 1:12:06but it's like you could just go over
- 1:12:08here. I just wouldn't recommend clicking
- 1:12:10these three extra dots. Uh you could
- 1:12:12import from a particular URL. Sometimes
- 1:12:14you have a URL for a template. You can
- 1:12:16just click and import that over here. Uh
- 1:12:20you can import in from file. So this is
- 1:12:21a JSON file. You can push this over to
- 1:12:25git. Uh so let's say GitHub and then you
- 1:12:27have settings over here. So you have
- 1:12:29execution order there. You have error
- 1:12:31workflow. So if your workflow errors,
- 1:12:33you can send it to another workflow.
- 1:12:34We're going to cover that later on in
- 1:12:35the course. Uh this workflow can be
- 1:12:37called by and this allows you
- 1:12:40essentially for chat. So you can see no
- 1:12:42other workflows, workflows created,
- 1:12:43selected workflows or any workflows. Uh
- 1:12:45time zone as well. You have save failed
- 1:12:48production executions, save successful
- 1:12:50production, manual. Uh again just some
- 1:12:53other stuff over here. Timeout available
- 1:12:55in MCP which you need to publish your
- 1:12:57workflow. I'll show you how to do that
- 1:12:58here in a second. And estimated time is
- 1:13:01saved. So minutes per production
- 1:13:03execution if you want to save that
- 1:13:04there. Lastly, you might be wondering
- 1:13:06like how do I publish a workflow
- 1:13:09and should be a little bit later on. But
- 1:13:11let's imagine we just have the super
- 1:13:13basic workflow. We have a chat that goes
- 1:13:16into an AI agent and we have a chat
- 1:13:18model over here. We're just going to add
- 1:13:19an anthropic. We'll say set45 and we
- 1:13:23just open this up over here and say I
- 1:13:25don't know, we'll ask a question and uh
- 1:13:28open chat.
- 1:13:31What metal band has the most Spotify
- 1:13:36plays?
- 1:13:38Not that it matters in any case. And you
- 1:13:40can see our workflow is running. We
- 1:13:42received the chat message. It's going
- 1:13:43into our AI agent. Again, if you don't
- 1:13:45know what is going on, we're going to
- 1:13:47cover in greater details. But you can
- 1:13:49see have our output over here on this
- 1:13:50side of things. We have our input. It
- 1:13:52says human which is us. Uh then you can
- 1:13:54see the logs of what is going on. And
- 1:13:56then you can see our response over here
- 1:13:59on that side of things. So let's say hey
- 1:14:01this is great. I want to publish this.
- 1:14:03So how do you do that? First what you
- 1:14:04should do is save this and then click on
- 1:14:06publish. You just say version one. We'll
- 1:14:09say section two. Section two interface.
- 1:14:16Um and then we'll describe our changes
- 1:14:18added in chat trigger AI agent. Now why
- 1:14:22this is really important in software
- 1:14:24programming what you do is something
- 1:14:26called versioning. So essentially you
- 1:14:27just keep building different versions of
- 1:14:29your software. Sometimes things will
- 1:14:30break. So it's super important that you
- 1:14:32describe all of your changes in over
- 1:14:34here. So that way someone more senior
- 1:14:36within your company knows essentially
- 1:14:37what is going on. And then you also you
- 1:14:39set version naming as you can see like
- 1:14:41with any they set specific versions of
- 1:14:43their software. You can do the same
- 1:14:44thing with like versions of your
- 1:14:46particular workflows. So, I'll just
- 1:14:47click publish and you'll see it says
- 1:14:48workflow published. You can now make
- 1:14:50calls to your production chat URL. So,
- 1:14:53this is available in MCP as well as our
- 1:14:54chat. And you can see there's a
- 1:14:56production checklist over here as well.
- 1:14:58I'm just going to ignore this for now.
- 1:15:00We're going to probably cover this a
- 1:15:01little bit later on as a section in this
- 1:15:03course. And you like, okay, cool. Well,
- 1:15:05I can't unpublish this over here. How do
- 1:15:07I do that? Click these three dots. And
- 1:15:09then you just go over here to unpublish.
- 1:15:11We'll click unpublish. And the workflow
- 1:15:13has been unpublished. And again, if you
- 1:15:15want to hide the chat, just click that.
- 1:15:18So, we have covered a ton for just uh
- 1:15:22section two, which is our interface.
- 1:15:24Hopefully, this cleared up any type of
- 1:15:26confusion that you had. Our next
- 1:15:28section, we're going to start covering
- 1:15:29the core concepts of N. We're just going
- 1:15:31to honestly start from the workflow page
- 1:15:33over here. I'm going to create a brand
- 1:15:34new workflow for us to go through and
- 1:15:37keep up the great work. Uh we're about
- 1:15:39to jump into some awesome stuff and
- 1:15:41you're honestly just a few lectures away
- 1:15:43from learning how this AI agent works
- 1:15:45and building out your first AI
- 1:15:47automations. All right, I'll see you in
- 1:15:48lecture number three right now. So the
- 1:15:50last section we talked about where
- 1:15:52different components are within N. Now
- 1:15:55what I want to do is really dive into
- 1:15:57what makes up a workflow in Nan and talk
- 1:16:00a little bit more about triggers as well
- 1:16:02as nodes. We're going to actually build
- 1:16:04our first workflow in this section as
- 1:16:07well. So, some pretty exciting stuff
- 1:16:08over there. Your hello world essentially
- 1:16:10for Nan version two. So, let's jump
- 1:16:13right into it. All right. So, what I
- 1:16:17have is a another brand new section and
- 1:16:19we're going to start off with a trigger.
- 1:16:21Now, every workflow has to start with a
- 1:16:25trigger. Triggers will start those off.
- 1:16:27And as I showed you in the last section,
- 1:16:29you'll go over here and it says what
- 1:16:32triggers this workflow. You could start
- 1:16:33off with manually, which personally I
- 1:16:35use probably about 80% of the time
- 1:16:38within testing. You can have an app
- 1:16:41event. So imagine you have some sort of
- 1:16:44uh CRM, which is essentially a way to
- 1:16:47save data on customers and you just
- 1:16:50added a new customer into your CRM that
- 1:16:53could start a workflow. Or what happens
- 1:16:56if you get a particular email for a
- 1:16:58contract? Well, that could also start a
- 1:17:00workflow. So this is where an on app
- 1:17:02event looks like and just to show you
- 1:17:04like there is hundreds if not thousands
- 1:17:07in here in any end and what's really
- 1:17:09cool is when we talk a little bit later
- 1:17:11web hooks essentially are on app events
- 1:17:13but for things that are not here in any
- 1:17:16end and uh you can see I keep scrolling
- 1:17:18and there's more and more and more you
- 1:17:22can do a schedule so you can say hey I
- 1:17:25want this workflow to run 9:00 a.m. on
- 1:17:27business days and it will do that. Or
- 1:17:30hey, I want this workflow to run three
- 1:17:31times a day, 9:00 a.m., noon, as well as
- 1:17:345:00 p.m. Well, you can set up a
- 1:17:36schedule to do that as well. Here are
- 1:17:38web hooks, which I talked about on App
- 1:17:40Event. So, essentially, web hooks are
- 1:17:42for things uh outside of Nan or if the
- 1:17:44option is not available in Nan, they can
- 1:17:47be a little bit complicated to set up.
- 1:17:48So, web hooks is going to be a full
- 1:17:50section by itself. Here in this course,
- 1:17:53you'll have a specific form. So
- 1:17:56essentially what you have is just like a
- 1:17:58web form. Someone fills out some
- 1:17:59information, it starts a workflow. You
- 1:18:01can actually start a workflow from
- 1:18:03another workflow. The chat message which
- 1:18:05we covered a little bit earlier. Uh when
- 1:18:07running evaluations which is a little
- 1:18:09bit outside and then we have other ways
- 1:18:11over here you have an email trigger
- 1:18:14error triggers again outside MCP we'll
- 1:18:16have a full section over it. Nan handle
- 1:18:18events and perform actions on your nan
- 1:18:20instance and then your SSE triggers. So
- 1:18:23again, we'll just start something super
- 1:18:25basic and have a trigger manually. So
- 1:18:27again, we'll just start something basic
- 1:18:28and do a trigger manual over here. Next,
- 1:18:31you have nodes. And we already covered
- 1:18:34all the different parts of nodes in the
- 1:18:36previous section. So I'm not going to
- 1:18:38cover that in greater detail, but
- 1:18:40typically your workflow is going to be
- 1:18:41filled with different nodes. And you
- 1:18:43might be wondering like, oh, how like
- 1:18:45how do I know what node to use? I
- 1:18:47promise you, you'll pick up the skill
- 1:18:48really, really fast. And sometimes
- 1:18:50you'll want to build out diagrams
- 1:18:52essentially kind of like a flowchart
- 1:18:53like what's going to happen each step.
- 1:18:55We'll cover that as well a little bit
- 1:18:56later on in the course. And again we
- 1:18:59covered also community nodes. So if you
- 1:19:00want to look for a community node you
- 1:19:02can see over here we have this this is a
- 1:19:04node from our community. It's part of
- 1:19:06the ampify side of it over here. And
- 1:19:09then you can see this is official node
- 1:19:10maintained by the WhatsApp notifications
- 1:19:12by syncmate. Okay. So we have that over
- 1:19:15there. Let's talk about how data flows
- 1:19:18in NE. So what we're going to do is
- 1:19:20actually build out a edit set and this
- 1:19:23is going to be one of the most popular
- 1:19:24nodes that we're going to use here in
- 1:19:26NE. We'll actually cover this in greater
- 1:19:28detail a little bit later on. But we
- 1:19:31have our edit set and what we're going
- 1:19:34to do in this edit set is we're just
- 1:19:36going to go over here and write
- 1:19:38something here in a section. So we'll
- 1:19:41say put name and just put your name over
- 1:19:44here. We'll see Ryan's
- 1:19:49and what we'll do is have another edit
- 1:19:51set
- 1:19:53that's
- 1:19:54just want to do this to show you how our
- 1:19:56data flows. So essentially what you can
- 1:19:58see is we start our workflow and it goes
- 1:20:01over here and says one item and we go
- 1:20:03into our edit fields over here and you
- 1:20:06can see we have our input for the node.
- 1:20:08We have our node settings and different
- 1:20:11options and our parameters over here.
- 1:20:13And then we have our particular output
- 1:20:15on this side of things. And you can see
- 1:20:16it says name Ryan Nolan. This is our
- 1:20:18schema view. We have our table as well
- 1:20:21as our JSON view. And most of the time
- 1:20:23you'll see three different views over
- 1:20:24here. There's option with binary files.
- 1:20:27I don't even want you to worry about
- 1:20:29that as of yet. We're going to cover
- 1:20:30that later on. Um, but you can see
- 1:20:33anytime we click into a node, you'll
- 1:20:35have your input over here. You have the
- 1:20:37settings and your output. And you can
- 1:20:39see that there's no output over here
- 1:20:40because I never really filled out any
- 1:20:42settings. So that is why that is
- 1:20:43particularly correct over here. And you
- 1:20:46can see one item goes through each of
- 1:20:48these things. Now, one of the confusing
- 1:20:50points for people is like what happens
- 1:20:52if there's multiple items? Some people
- 1:20:54think, oh, each of these go one item at
- 1:20:57a time throughout a workflow. That is
- 1:20:59not the case. What I'm going to just
- 1:21:01show you, it's a little bit more
- 1:21:02advanced, but I think it's super
- 1:21:04important for me to cover this right
- 1:21:05now. So, I'm just going to go over here
- 1:21:08and we're going to go and add our second
- 1:21:10example. So, we're going to create a new
- 1:21:11edit set. So, edit set and I'm going to
- 1:21:14create something called an array. Now,
- 1:21:16we'll say example array. And again,
- 1:21:17don't worry too much about arrays. We're
- 1:21:19going to cover this in greater detail.
- 1:21:20I'm just going to go over here array and
- 1:21:22we're going to put two metal bands.
- 1:21:24We'll say Metallica and I'll put Mega
- 1:21:27Death over here.
- 1:21:31And this is an array. But why I want to
- 1:21:33show this to you is
- 1:21:36our array right now is one item. We're
- 1:21:38going to split this out. Split out.
- 1:21:41And with an array, when you split out an
- 1:21:44array, it turns into multiple items.
- 1:21:47And then what we're going to do is do an
- 1:21:49AI agent.
- 1:21:52What was the most popular album for?
- 1:21:59Just pass this in over here. Again, a
- 1:22:01lot of this is going to look foreign and
- 1:22:03uh forgot to put a chat model over here.
- 1:22:07It's fine. Don't worry about this for
- 1:22:10this example. All we're doing is talking
- 1:22:12about file data flows. So, I'm just
- 1:22:14going to find many. Great.
- 1:22:18Save that.
- 1:22:22And once this populates, show you. All
- 1:22:25right. So, this workflow ran. So let me
- 1:22:28explain how nan works with particular
- 1:22:31items. So what happens is we have one
- 1:22:33item that starts the workflow and it
- 1:22:35populates over here. Okay. Then we have
- 1:22:38one item from this edit fields which is
- 1:22:40just an array. Again we'll cover arrays
- 1:22:42a little bit later. So that's one item.
- 1:22:44It populates over here. We took each of
- 1:22:47these elements within an array and we
- 1:22:49split this out and turned it into two
- 1:22:51items. Now this is where the confusion
- 1:22:53happens for a lot of people. They think,
- 1:22:55"Oh, well, how any end works is again,
- 1:22:58maybe you start off with a trigger that
- 1:23:00has multiple items." Well, it just goes
- 1:23:02one item at a time for everything and
- 1:23:04then it restarts and goes one item at a
- 1:23:06time. That is not the case in nan
- 1:23:10all the items process through one node
- 1:23:12before it goes into the next node. So,
- 1:23:14you can see one item that's self one
- 1:23:16item and then it has two items. So, for
- 1:23:20example, if I have another node over
- 1:23:22here, right? And let's just say like I
- 1:23:24don't know, we'll do like Google Sheets
- 1:23:26or add it to a data table. Let's say we
- 1:23:27want to insert a row into a data table.
- 1:23:30Obviously, I'm not going to fill this
- 1:23:30out right now. Um the two items are
- 1:23:33going to process through the AI agent
- 1:23:35and then the two items are sent to
- 1:23:36insert row and these two items are going
- 1:23:38to be inserted into row. It's not hey,
- 1:23:40we're just going to go through one item
- 1:23:42for each of these nodes. Go back around
- 1:23:44and one item through each of these
- 1:23:45nodes. And I think there's a lot of
- 1:23:47confusion on that because what happens
- 1:23:48is I see people that have a loop over
- 1:23:51items and they think okay how and works
- 1:23:54is it just has one item at a time. That
- 1:23:56is not how it works. Again all items are
- 1:23:58going to be processed through a specific
- 1:24:00node. Once that is done it goes on to
- 1:24:03that next node. So it does not work one
- 1:24:07item at a time and goes through this.
- 1:24:08Every single item will be processed
- 1:24:10through a node and then it goes into the
- 1:24:12next node. Again, this is a little bit
- 1:24:14complicated right now and you'll see
- 1:24:16this over time, but I just want to
- 1:24:18preach this super early on because it
- 1:24:21does trip up quite a few people. Again,
- 1:24:23for a third time, every single item is
- 1:24:26processed through a node before the next
- 1:24:28node happens. So, when we have these two
- 1:24:30items, but both items are processed in
- 1:24:32our AI agent before we go into inserting
- 1:24:36a row within this data table. And
- 1:24:38obviously I didn't connect this up, but
- 1:24:40then I would insert these two rows based
- 1:24:43off of what's over here and then go on
- 1:24:44to the next node with those those items.
- 1:24:47All right, hopefully that makes sense.
- 1:24:50Another thing that's pretty impactful
- 1:24:52here in N is pinning items. And why this
- 1:24:56is really important, two reasons. Number
- 1:24:57one, when you use a service, let's say
- 1:25:00for example, uh, OpenAI or use some sort
- 1:25:03of API, there is a cost associated with
- 1:25:05it. And you know, if you're going to
- 1:25:07keep running the same data over and over
- 1:25:09again, it's just going to cost you for
- 1:25:11testing. So instead of constantly having
- 1:25:14to go to OpenAI and run uh their model,
- 1:25:18you can just pin their data. So you can
- 1:25:19see it says pin data. Node will always
- 1:25:20output the current data instead of
- 1:25:22executing. So now anytime we go to this
- 1:25:25node, the data is already saved over
- 1:25:28here. And this is also sometimes
- 1:25:31tripping up people because they forget
- 1:25:33they pinned the data and they're like
- 1:25:34why is my workflow not working? Well,
- 1:25:36that's because you have pinned the data
- 1:25:38and the data over here might be wrong or
- 1:25:39it might not be what you're testing. So,
- 1:25:42it's a double-edged sword. One side of
- 1:25:44it, it's great because you don't have to
- 1:25:46constantly call different APIs. You
- 1:25:48aren't have to have additional costs in
- 1:25:50here. You can save things for testing.
- 1:25:52And just to show you like we can pin all
- 1:25:54of these different items
- 1:25:56and you'll see that they have this icon
- 1:25:58over here for the pin. Again, super
- 1:26:01super helpful on that side of things.
- 1:26:03And when we run a workflow, it will
- 1:26:05automatically populate through these.
- 1:26:06Like this will take like a second and
- 1:26:07you can see done. Whereas in the past
- 1:26:10when you saw this screen, our AI agent
- 1:26:12took a little bit to run. Might have cut
- 1:26:14out how long it took for that AI agent.
- 1:26:16Regardless, this took like 30 seconds,
- 1:26:1860 seconds to get the answer for these
- 1:26:20two particular items. Now, that's
- 1:26:23pending. Literally takes a second, but
- 1:26:24it's always going to be the same exact
- 1:26:25data. So, it will save you a lot of
- 1:26:29money when you're testing with
- 1:26:30particular APIs and it can save you time
- 1:26:32if you have an elaborate workflow of 30
- 1:26:3440 nodes and uh you have to pin some of
- 1:26:36this data because it just takes forever.
- 1:26:38So, highly recommend learning about
- 1:26:40pinning data and you can pin it, you can
- 1:26:42unpin it. And just to show you when we
- 1:26:44unpin it, go like that and it is gone.
- 1:26:47Also to mention you can modify the data
- 1:26:49that is in over here. All you have to do
- 1:26:51is click the pencil icon and let's say I
- 1:26:53want to put in slayer instead of meade.
- 1:26:55You can just put slayer over here and
- 1:26:57you can save it. And this data has been
- 1:26:59modified in that particular. So we could
- 1:27:02send that over here as well. And you can
- 1:27:04see it's just saved. So just another
- 1:27:07thing that's a little bit helpful. You
- 1:27:08might see it in some YouTube videos and
- 1:27:10you're confused what they're doing.
- 1:27:11Well, they just updated that over there.
- 1:27:14Okay. So, we talked about pinning data.
- 1:27:16We talked about items. Uh we've already
- 1:27:18talked about as well as the input
- 1:27:20output, right? You can see input output
- 1:27:22as well. You can see again we have this
- 1:27:24data is pinned for test executions. You
- 1:27:27see that over there. Okay. We've talked
- 1:27:29about the different ways you could view
- 1:27:31it with the schema, the table as well as
- 1:27:34JSON. We'll cover that in greater detail
- 1:27:36in the future. One of the other things I
- 1:27:39want to talk about is passing data
- 1:27:41between nodes. So, we saw this a little
- 1:27:44bit here
- 1:27:47and uh let me show you how that
- 1:27:48particularly works. All right. So, what
- 1:27:51we're going to do is we're just going to
- 1:27:53grab our start over here and we're going
- 1:27:57to go and grab our edit set.
- 1:28:02So, edit set and we're going to just
- 1:28:05start this off and we're going to do
- 1:28:07another name side of it. So, you'll see
- 1:28:10on this I think I'll just put like last
- 1:28:12name
- 1:28:14and we're I'll just put my last name
- 1:28:15over here, Nolan.
- 1:28:18And then what I'll do next is we'll just
- 1:28:21uh we can use any node. Let's just use
- 1:28:23an AI agent for fun.
- 1:28:27And the only purpose of this, by the
- 1:28:29way, is just to show you something
- 1:28:31called an expression versus fix. So fix
- 1:28:35essentially all you do is write some
- 1:28:37text over here. And there's nothing
- 1:28:39dynamic about this. You could say like
- 1:28:41who won
- 1:28:43series
- 1:28:45in 2021 or 2022. It doesn't matter,
- 1:28:48right? Like this is fixed. It's always
- 1:28:50going to say the same exact message over
- 1:28:52and over again. But that doesn't really
- 1:28:54get the benefit of orchestration why
- 1:28:57we're using any end. So one of the
- 1:28:58things that's really cool is if we click
- 1:29:00over here and go into expressions, we
- 1:29:02can actually pass in dynamic data and we
- 1:29:04can say who is the most famous person
- 1:29:10with the name and you can just grab over
- 1:29:13here. You can see I have last name Nolan
- 1:29:16from the previous node and I can pass
- 1:29:18that in. Who is the most famous person
- 1:29:20with the name Nolan? Now, this probably
- 1:29:22is going to be either Nolan Ryan or the
- 1:29:26um film director. What is it?
- 1:29:27Christopher Nolan. So, one of those two
- 1:29:30will probably populate on that side of
- 1:29:31things. But what's really cool is
- 1:29:34because we're in this expression, we're
- 1:29:36able to pass over this from the previous
- 1:29:39node and it dynamically adds this in as
- 1:29:41JSON in over here to our prompt.
- 1:29:46Hopefully, a light bulb just clicked.
- 1:29:48And you might be wondering like, do I
- 1:29:49always have to click over here into
- 1:29:50expression? Well, yeah, because you can
- 1:29:52see if it's fixed, it just has this over
- 1:29:54here and it's not highlighted. So again,
- 1:29:56a source of debugging. If you see this,
- 1:29:58you're going to get a specific error.
- 1:30:00And one other thing to note is it
- 1:30:01automatically goes to expression if you
- 1:30:03drag this over here. Now, I find it a
- 1:30:04little bit buggy at times. So you can
- 1:30:06see what happens. I grab this last name,
- 1:30:08go over here, and it's like it's kind of
- 1:30:10forcing me to throw this here in the
- 1:30:11beginning. So
- 1:30:14sometimes it works and it populates in
- 1:30:15the correct spot. Sometimes it'll
- 1:30:17populate a little bit weird. I just find
- 1:30:19it easier. I click into expression and
- 1:30:21then drag and drop it because either way
- 1:30:23I have to adjust this in some capacity,
- 1:30:26but this will pass in that additional
- 1:30:28data from the previous note. Again,
- 1:30:30light bulbs should be clicking. You're
- 1:30:31like, "Wow, this is really, really
- 1:30:33cool." Um, okay. A few other things as
- 1:30:36well. As I mentioned about the
- 1:30:37documentation a little bit earlier, you
- 1:30:39can see in the AI agent says, "Tip get a
- 1:30:41feel for AI agents with our quick
- 1:30:42tutorial or see an example how this node
- 1:30:44works." You can actually click in over
- 1:30:46these and you'll see a tutorial build an
- 1:30:48AI agent with an N. So you have this
- 1:30:51YouTube video they embedded. They have
- 1:30:52all the information over here and lot of
- 1:30:55great examples in their documentation
- 1:30:56docs.n.io.
- 1:30:59You can continue to do that with all
- 1:31:01these particular nodes. If I go back
- 1:31:03over here, oh sorry, this is the example
- 1:31:05that they showed, right? I just
- 1:31:07populated a new workflow. I'm not going
- 1:31:09to save that. But if you go into our
- 1:31:11edit set, we'll see as well. They
- 1:31:14actually Oh, here's the docs on the side
- 1:31:15of things. So, you can see you click
- 1:31:17onto the docs and it says edit fields
- 1:31:19set. It's a core node and it has all the
- 1:31:22information on here. You can see also
- 1:31:24there's templates and examples and uh
- 1:31:27yeah, that's just built out directly on
- 1:31:29that side of things. So, you can just
- 1:31:31click onto those docs or if there's an
- 1:31:33option right over here, they give you
- 1:31:35both of those and go back into AI agent.
- 1:31:37You can see the docs of the AI agent is
- 1:31:39right over here. So, a lot of different
- 1:31:41options and you can close this out if
- 1:31:42you want. I'm just going to keep it uh
- 1:31:44for this particular tutorial. I just
- 1:31:46find it pretty helpful. All right. So,
- 1:31:48we covered triggers, we covered nodes,
- 1:31:51we covered how does the data flow.
- 1:31:53Remember, one item at a time. All we
- 1:31:55covered how data flows. Remember, all
- 1:31:58the items pass through each node at a
- 1:32:00time. It's not one item at a time like a
- 1:32:02lot of people assume. We showed you how
- 1:32:04to modify and pin data, the input and
- 1:32:07output, different ways to view the data,
- 1:32:09whether it's schema, table, or JSON. We
- 1:32:12talked about going in over here and you
- 1:32:15have the options for fix versus
- 1:32:16expression and you can see like this
- 1:32:18constantly is an option on these side of
- 1:32:20things. Let's talk about like what
- 1:32:22happens with an error now. So like how
- 1:32:25do you know something errored out? Well,
- 1:32:27I'm going to purposely error this AI
- 1:32:29agent out because I don't have a chat
- 1:32:30model associated with it. So you'll see
- 1:32:33if there's an error, you said it says
- 1:32:35problem with node. It says a chat sub
- 1:32:38node must be connected and enabled. And
- 1:32:40you'll see that this has a red X and it
- 1:32:42says issues a chat. And it actually
- 1:32:44tells you exactly what the error is. And
- 1:32:46you know, the more that you build out
- 1:32:48workflows and the more that you test,
- 1:32:49the more you'll understand why specific
- 1:32:52errors happen. And this one's a pretty
- 1:32:53easy one. But this also just tells us
- 1:32:56that there's an error. And it's easy
- 1:32:58alert. Also, you could see this in
- 1:33:00executions. I'm just going to save this
- 1:33:02over here. And I'll go into executions.
- 1:33:04And you'll see that there is an error.
- 1:33:06and it says error in 28 milliseconds in.
- 1:33:09What's really cool is we can actually
- 1:33:11debug in the editor and it copies
- 1:33:13exactly what you tested and it will go
- 1:33:15back into our editor and save the data
- 1:33:18that you tested with. And this is really
- 1:33:20really helpful if you have a lot of
- 1:33:21different items going on and like one
- 1:33:23particular item breaks the workflow like
- 1:33:25it's a weird edge case and I use that
- 1:33:27all the time. I just go to executions I
- 1:33:29debug an editor from that exact error.
- 1:33:32Uh so you can use that and there's other
- 1:33:35options as well if you want to restart
- 1:33:36your workflow and again we'll talk a lot
- 1:33:38more about this in error handling but
- 1:33:40you can retry with currently saved
- 1:33:41workflow or retry with the original
- 1:33:43workflow as well. Uh but that is errors
- 1:33:45just pretty important to cover this at
- 1:33:47least the basics right now early on in
- 1:33:50the course and yeah so what I want you
- 1:33:53to do now is let's build our first
- 1:33:55workflow together. So I have been
- 1:33:59essentially teaching you the guys things
- 1:34:02for the last what hour and a half and I
- 1:34:05think it's time to build your work first
- 1:34:06workflow. So I'm going to say build
- 1:34:10your work first workflow
- 1:34:13and essentially what we're going to do
- 1:34:14is we're going to build out the hello
- 1:34:16world hello world of any end. So how do
- 1:34:20I want this to start? Well what I want
- 1:34:23you to do is start with a manual
- 1:34:24trigger. So start with the manual
- 1:34:26trigger as I've showed you. Then what I
- 1:34:28want you to do is go into the set node.
- 1:34:30So we'll go to the set node and inside
- 1:34:33the set node, what I want you to do is
- 1:34:35literally just write
- 1:34:37hello world.
- 1:34:40I'm learning any [snorts]
- 1:34:45and yeah. So what I want you to do now
- 1:34:48is just pause the video and build this
- 1:34:51out. And one thing to note before we do
- 1:34:54that is this over here. This to start
- 1:34:57the workflow. You only can have one of
- 1:34:59these per uh workflow. So you're going
- 1:35:02to have to detach this and just bring
- 1:35:04that over here. Okay. Uh a little bit of
- 1:35:07nuance. And if you already paused and
- 1:35:09you're jumping into this, I am so sorry.
- 1:35:10And that's why I've been dragging this
- 1:35:12throughout the video. So pause the video
- 1:35:14now, attempt this, and I will show you
- 1:35:16the solution. Okay, guys. So hopefully
- 1:35:19you were able to solve this. All we're
- 1:35:22going to do is click this plus icon over
- 1:35:24here. We're going to search for edit
- 1:35:25set, edit field set, and you'll see we
- 1:35:29have this over here. We're going to keep
- 1:35:30the mode manual mapping. And we'll cover
- 1:35:32a lot more of the detail here in a
- 1:35:33second. And we're going to click add in
- 1:35:36field. And I didn't tell you
- 1:35:37specifically what to call this field,
- 1:35:40but just going over here, I'm going to
- 1:35:42call this hello world. So hello world.
- 1:35:46And then we need to pass in a value. By
- 1:35:48default, we're lucky this is strings and
- 1:35:50you probably don't know what all these
- 1:35:52are as of yet. It's tough to cover
- 1:35:54everything at once, but this is a future
- 1:35:55lecture. We're going to cover all of
- 1:35:57these. But all we're going to do is copy
- 1:35:59this. Hello
- 1:36:01world. I'm learning nan. So just grab
- 1:36:04all of that. Go in here and paste that.
- 1:36:07Hello world. I'm learning nan. I'm going
- 1:36:09to execute this step. And you can see we
- 1:36:11have this over here. Hello world
- 1:36:12learning nan. And let's run this and
- 1:36:16take a look. We have our input which is
- 1:36:18the manual trigger. We have our output.
- 1:36:20Hello world. Hello world. I'm learning
- 1:36:22n. And hopefully you're able to get that
- 1:36:24right. Obviously this is super basic but
- 1:36:26this is your uh first step in the right
- 1:36:30direction. I do want to note one other
- 1:36:33minor thing just about these workflows
- 1:36:36that I think is a little bit helpful for
- 1:36:38you guys. So, I didn't really cover this
- 1:36:40in detail, but if you take a look at
- 1:36:43these workflows, one things that any end
- 1:36:45team does have is first these dots that
- 1:36:49allow you to kind of drag and drop to go
- 1:36:52from node to node. And then you can also
- 1:36:54see uh these arrows. So, it tells you
- 1:36:57data is going from this node into this
- 1:37:00particular node. Another thing that's
- 1:37:03really helpful is with triggers. You'll
- 1:37:06notice that these are not squares. they
- 1:37:07actually have a rounded left edge like
- 1:37:10this. And obviously you might say, "Oh,
- 1:37:11that's just maybe the manual one." If I
- 1:37:13go to triggers and let's say on a
- 1:37:15schedule,
- 1:37:17same thing, right? And we're going to
- 1:37:19cover this greater detail for the
- 1:37:20trigger section. Um, but they're not
- 1:37:22squares. Like the nodes are going to be
- 1:37:23squares. The triggers are like that. And
- 1:37:25one other thing, notice there's an icon
- 1:37:27and there's something called execute
- 1:37:28workflow. You can see like there's
- 1:37:29lightning over here. So that also shows
- 1:37:32you how to start a workflow. Okay. One
- 1:37:37other thing and again there's there's so
- 1:37:39much with any n how do you re label
- 1:37:41these because it's just not helpful
- 1:37:43seeing edit fields for if you go over
- 1:37:45here and you click on this and you can
- 1:37:47say this is uh print hello world
- 1:37:53and it's super important within your
- 1:37:55workflows that you label your notes. You
- 1:37:57can see print hello world and you have
- 1:37:59other settings as well. You can put
- 1:38:00notes you can display the note in the
- 1:38:02world and it's and we can say print
- 1:38:06Hello world learning in AI
- 1:38:09and we're going to display this note
- 1:38:11inflow and you can see we have this down
- 1:38:14below in that description super super
- 1:38:16important again you can see the green
- 1:38:18check mark this worked properly and we
- 1:38:19have one item that is passed at the very
- 1:38:20end you have this plus icon to add in
- 1:38:22that next node and it populates this
- 1:38:25screen over there and guys that is going
- 1:38:29to be our section number three we've
- 1:38:32covered a lot we covered the basics of
- 1:38:34triggers We covered the basics of some
- 1:38:37of these different nodes. Showed you how
- 1:38:38to the data flows. I showed you how to
- 1:38:41pin data, modify the data as well. We
- 1:38:44talked about expressions. We talked
- 1:38:46about different types uh whether SCA
- 1:38:48table or JSON an error and we built our
- 1:38:51first workflow together. So really
- 1:38:54really happy about that. Uh next thing
- 1:38:56we're going to be covering is the most
- 1:38:58common ways to build out a workflow with
- 1:39:01uh triggers. So, we're going to cover a
- 1:39:03few different triggers like the manual
- 1:39:05schedule chat form and much more in that
- 1:39:09next video. Keep up the great work and I
- 1:39:10will see you in section four. Now, well,
- 1:39:13congrats on building out your first
- 1:39:15workflow. What we're going to do now is
- 1:39:16talk about other ways that you could
- 1:39:18start a workflow. There is well over 10
- 1:39:21different options, but we're going to
- 1:39:22break it down into some of the first
- 1:39:24ones that are easier for beginners to
- 1:39:27comprehend. And don't worry, we'll cover
- 1:39:29the other ones throughout this course.
- 1:39:31So that way you're familiar with all of
- 1:39:32those. We're going to start with a blank
- 1:39:34canvas. And let's get started. Okay. So
- 1:39:37the first one that we should talk about
- 1:39:38is our manual trigger. That is what used
- 1:39:42quite a lot already. And I can just go
- 1:39:44over here and search manual trigger.
- 1:39:45Again, we have this icon over here. And
- 1:39:48we have the rounded corner. It says the
- 1:39:50execute workflow. I use the manual
- 1:39:52trigger all the time for testing
- 1:39:54purposes. It's great because you can
- 1:39:56just click this and then everything else
- 1:39:58starts running. Um, not much honestly to
- 1:40:01it. So, we're going to just fly through
- 1:40:03it. The next one, which we're going to
- 1:40:05do, which I often pair with the manual
- 1:40:07trigger, is going to be a schedule. So,
- 1:40:10we can go over here, add another
- 1:40:11trigger, and then we can say on a
- 1:40:13schedule. And we're going to actually
- 1:40:14jump in a little bit more detail on the
- 1:40:17side of it. And why I use on a schedule
- 1:40:19with execute workflow. Well, in reality,
- 1:40:23sometimes you want to run a workflow
- 1:40:25once at any given time and sometimes you
- 1:40:27want to run it on a specific schedule.
- 1:40:30And what's nice is you can actually pair
- 1:40:32multiple triggers together. So imagine I
- 1:40:34have a workflow and our first node in it
- 1:40:37is the edit set fields. Now, it's not
- 1:40:39always the case. Either one of these can
- 1:40:42technically start the workflow, whether
- 1:40:44it's execution over here manually or if
- 1:40:47it's on a specific schedule. So like
- 1:40:50let's say every day at midnight, right?
- 1:40:51You can run this and every day at
- 1:40:53midnight it runs it. Or if you're
- 1:40:54testing there, you can run this over
- 1:40:56here or if you want to do whatever you
- 1:40:57want. So one of the things that people
- 1:40:59don't understand is you can have
- 1:41:00multiple triggers start a specific
- 1:41:03workflow. And that's just, you know, one
- 1:41:05of the different use cases over here. Uh
- 1:41:07jumping into the schedule trigger,
- 1:41:09you'll see we have different trigger
- 1:41:10intervals. You can go all the way to
- 1:41:12seconds, minutes, hours, days, weeks,
- 1:41:14months, or a custom cron job. And the
- 1:41:17thing with cron jobs, it's quite
- 1:41:19complicated. In fact, you can see it has
- 1:41:21this format over here. And I would
- 1:41:24recommend if you want to learn a little
- 1:41:25bit more about cron jobs, you check out
- 1:41:27our video that we have already based
- 1:41:28around it. Um, we have a full trigger
- 1:41:31video talking about that side of it. And
- 1:41:32honestly, it's a little bit outside the
- 1:41:34scope because I don't you you will need
- 1:41:36it in some sort of cases, but it's not
- 1:41:39used as often as you think. um just
- 1:41:41based off of what's already available
- 1:41:43here directly in any and if this wasn't
- 1:41:45a drop down and you just had cron jobs I
- 1:41:47would recommend learning about it but
- 1:41:49you can see minutes between triggers you
- 1:41:51can set this up as well so you can see
- 1:41:52like 5 minutes or you can go over here
- 1:41:55in hours 1 hour trigger at a minute days
- 1:41:58you have different options as well and
- 1:41:59you have other rules as well so um why I
- 1:42:02mentioned like the crown job is nice to
- 1:42:04have but like you can set up different
- 1:42:06rules over here and have multiple rules
- 1:42:08like maybe you have one on a specific
- 1:42:09day and you have one on a specific
- 1:42:11month. Um, so for example, let's say you
- 1:42:14have a report that needs to be sent out
- 1:42:16once a month, but then also every
- 1:42:18Friday. You can build that out off of
- 1:42:21these specific rules over here. But set
- 1:42:24them up. You can set up a specific time
- 1:42:27with the schedule trigger or you could
- 1:42:29set up something automatically. And both
- 1:42:31of these populate this over here. Okay,
- 1:42:34the next one is a chat trigger. So, I'm
- 1:42:37just going to delete this edit. And what
- 1:42:39we'll do is go into our chat. So,
- 1:42:43actually, you know what? I'll keep these
- 1:42:44here. We'll go into chat and we'll do
- 1:42:45something else. So, go into chat.
- 1:42:51And chat trigger is used a lot more than
- 1:42:54in the past because of chatub because
- 1:42:57ideally you can start your workflow from
- 1:42:59this in chatub. But this is kind of like
- 1:43:02a chatbot and you can open up the chat
- 1:43:04and you can send a message. You can say
- 1:43:06hi, right? And it starts this and the
- 1:43:09first item past it in here. And you can
- 1:43:11see action send message chat input is
- 1:43:14hi. And it's really common to have some
- 1:43:17sort of AI node directly after a chat
- 1:43:21message. And the most common one is
- 1:43:23going to be your AI agent. So if you go
- 1:43:25in your AI agent, and again, we're not
- 1:43:27covering AI agents in this section.
- 1:43:28We're actually going to cover it into
- 1:43:30the next one. Uh but you can see
- 1:43:32connected chat trigger node is the
- 1:43:33source for the prompt. You can either
- 1:43:35define it below or the chat trigger
- 1:43:36node. It's just so common to use it. And
- 1:43:39you can see prompt user message is
- 1:43:40JSON.put.
- 1:43:42Literally, this is one of the most
- 1:43:43common use cases for chat message
- 1:43:45received and any is used to it. And
- 1:43:48that's why they built this in. It's so
- 1:43:49nice. You don't have to paste in this
- 1:43:51chat input and it's just set by default.
- 1:43:54And you can see right over here,
- 1:43:56parameter text has expression. You can
- 1:43:58open this up and you can't update this
- 1:44:00because it automatically pulls whatever
- 1:44:02is in that chat into that specific AI
- 1:44:05agent. And you don't always have to go
- 1:44:07directly an AI agent. Again, you can use
- 1:44:09other approaches for your workflows, but
- 1:44:12it's just very very common uh to have
- 1:44:14that there. Okay. So, another thing with
- 1:44:16chat, you can see uh we have this over
- 1:44:19here. There's been no response from our
- 1:44:20AI agent. So, what I want to do is
- 1:44:23actually just add a chat model really
- 1:44:24quick. And we're just going to ask it a
- 1:44:26very basic question. So, I'm going to go
- 1:44:29over here.
- 1:44:31We'll go over in GPT5 Mini. I got to go
- 1:44:33to my other account. And don't worry,
- 1:44:35we're going to talk about credentials a
- 1:44:36bit. Uh we'll just go to GPT 5 minutes
- 1:44:39since it's cheap. And we'll ask the
- 1:44:42question,
- 1:44:44who won the World Series
- 1:44:47in 1972
- 1:44:50and it's going to go in our AI agent. It
- 1:44:52runs. And by the way, another thing you
- 1:44:54mentioned is you see how it added that
- 1:44:55animation that determines like, hey,
- 1:44:58this note is currently running. I don't
- 1:44:59think we covered that. Um but you can
- 1:45:00see the Oakland Athletics won 1972 World
- 1:45:02Series. given the Cincinnati Reds four
- 1:45:04games to three. MVP was Jean Tennis,
- 1:45:07which I don't know who Gene Tennis is,
- 1:45:09and I probably mispronounced it, but um
- 1:45:11yeah, that's the chat trigger. Very,
- 1:45:13very common to set this up with an AI
- 1:45:15agent. You can see we have our chat
- 1:45:17window over here, which again, we can
- 1:45:19expand. We can also expand it this way
- 1:45:23if we want. We have our logs over here.
- 1:45:26You can clear your logs. You have your
- 1:45:27model. It tells you how many tokens. You
- 1:45:28have your output. A lot more other kind
- 1:45:30of more advanced. And uh we're just
- 1:45:32gonna hide the chat and we're going to
- 1:45:33move on to our next one. So the next one
- 1:45:36we're going to specifically use is a
- 1:45:37form. And another one that I just use
- 1:45:40all the time. And you can go to the Nan
- 1:45:42form and you'll see trigger and it says
- 1:45:45on a new N form opinion. Now you have
- 1:45:47two different URLs for your form. We're
- 1:45:50not going to really talk too much about
- 1:45:51production as of yet. Uh but just
- 1:45:54jumping in over here, you'll see we have
- 1:45:56our test URL and we have our production
- 1:45:59URL. And you also have authentication
- 1:46:00with your form. We're going to cover
- 1:46:02authentication in a whole section, but
- 1:46:04you can set your title for the form. So
- 1:46:06feel free to set title as you want. I'm
- 1:46:08just going to say nan starter form.
- 1:46:12And then you can set a form description.
- 1:46:15So we'll say take user input. And what's
- 1:46:18really cool is there's a lot of
- 1:46:20different form elements. So if we go
- 1:46:22over here, you'll see we add a form
- 1:46:24element. And then first thing you do is
- 1:46:26set a field name. This could be fixed or
- 1:46:28an expression but you can say okay let's
- 1:46:31say person name person name
- 1:46:36and then you can say label what is your
- 1:46:39name next you have your element type so
- 1:46:42you could specify if hey is this a
- 1:46:44checkbox you can adding custom HTML is
- 1:46:47this a date is this a dropown email file
- 1:46:49a hidden field a number password radio
- 1:46:52buttons text or text area you know out
- 1:46:54of all these the most common ones you're
- 1:46:56going to use checkbox boxes quite a bit.
- 1:46:58You're going to use dates a lot, drop
- 1:47:00downs, super super popular, numbers,
- 1:47:02also very popular, radio buttons, text
- 1:47:04and text area. So, uh you can also put
- 1:47:07placeholder values and as well as a
- 1:47:09default value. Um again, depends on your
- 1:47:12use case, but your placeholder would
- 1:47:15just kind of show you what's there and
- 1:47:16what the default value if something
- 1:47:17isn't there. You also have your required
- 1:47:20field. So, sometimes people won't fill
- 1:47:21out a form and hey, I actually need this
- 1:47:24data point. So you can just turn this on
- 1:47:26or turn this off. And you have different
- 1:47:28options when uh the form is submitted or
- 1:47:30workflow finishes. Most of the time I
- 1:47:31just use form is submitted. In addition,
- 1:47:33you can add in multiple form elements.
- 1:47:35You can see how I'm just adding in all
- 1:47:37these,
- 1:47:39but we'll just go very basic and we'll
- 1:47:41use the person's name. In addition, you
- 1:47:44have other options down below. You can
- 1:47:45append any attribution labels, paths,
- 1:47:49you can ignore bots. This is helpful
- 1:47:50when you're in production. Uh you can
- 1:47:52use the time time zone of the workflow
- 1:47:55which we've already showed you set this
- 1:47:56up and you can do custom styling which
- 1:47:59is just over here and you can change
- 1:48:01different fonts. You can change all the
- 1:48:03colors associated with it. So if you
- 1:48:05want to change the design on the form I
- 1:48:07would just recommend you send it to an
- 1:48:09LLM. I'll show you how we can do this
- 1:48:11here in a second. But let's just execute
- 1:48:13step to show you what this form looks
- 1:48:15like. So I'll execute the step and you
- 1:48:18can see it says any n starter form take
- 1:48:20user input. I put my name over here.
- 1:48:22Let's say Ryan Nolan
- 1:48:25submit. And then you can see over here
- 1:48:26it says person name submitted at the
- 1:48:28exact time stamp and then form mode
- 1:48:30test. So you can see we're in our our
- 1:48:32test URL. So if I click the copy of this
- 1:48:34form URL and I put this over here,
- 1:48:44you can see that this says form trigger
- 1:48:46isn't listening yet. But if I go over
- 1:48:48here to execute step
- 1:48:51or if I go over here,
- 1:48:54refresh this,
- 1:48:55you'll see that this is available and it
- 1:48:57says this is a test version of your
- 1:48:58form. And uh again, be very careful with
- 1:49:01your form. I'm just going to stop the
- 1:49:03execution over here, which by the way, I
- 1:49:05didn't even really talk about this, but
- 1:49:07you can execute your workflow from down
- 1:49:08over here. You can see chat as an option
- 1:49:11here, too. But be very careful with that
- 1:49:13production URL. So that is an option
- 1:49:16over there. That was just text. We can
- 1:49:18go and take a look at a few other ones
- 1:49:20and do checkboxes. Let's do a drop down
- 1:49:23and we'll say instead of person name, oh
- 1:49:26actually let's go and do the name and
- 1:49:28what we'll do instead is we'll have
- 1:49:31another section and we'll say N
- 1:49:34skill level.
- 1:49:37We'll say what is your N skill level?
- 1:49:44And what we can do is go down over here.
- 1:49:46Let's do something like a dropown
- 1:49:48default value. We're going to say
- 1:49:49beginner.
- 1:49:51So option beginner
- 1:49:54their option over here. Advanced.
- 1:49:57Obviously like you could add in a lot of
- 1:49:59different things over here. But we'll
- 1:50:00just do this to save some time. And you
- 1:50:03can see this just as a drop down over
- 1:50:05there. We'll stop listening. And you can
- 1:50:08say
- 1:50:10I didn't want to add option but I want
- 1:50:11to add another form. Uh field name used
- 1:50:15N before.
- 1:50:20Have you used N before? And we can go
- 1:50:24over here. Element type. Let's use a
- 1:50:26checkbox. Default value. Let's say we're
- 1:50:30going to actually fill this out this
- 1:50:31time. We're going to say yes. Go over
- 1:50:33here and say yes as a label. Add a
- 1:50:36checkbox. And then, you know, then you
- 1:50:38can limit selection. Um, and you can set
- 1:50:41stuff like that, too. Anyways, we'll go
- 1:50:43execute step. I've used an end before.
- 1:50:46This allows both of these. Obviously,
- 1:50:48that's not correct. So, you could stop
- 1:50:50listening. You could set exact number.
- 1:50:53You could set one over here. And if you
- 1:50:56go to exact step this time, it says you
- 1:50:58must submit exactly one option. So, you
- 1:51:00can't choose both. And this is forcing
- 1:51:03you to choose one option. So you can go
- 1:51:05over here, put Ryan, and you can really
- 1:51:08see how we can build this out. So here's
- 1:51:10what I want you guys to do just get used
- 1:51:13to stuff. And obviously there's more
- 1:51:15triggers, but I want to give you guys an
- 1:51:17assignment again just to kind of build
- 1:51:20this out. I want you to take a form. So
- 1:51:23we're going to say
- 1:51:24step one,
- 1:51:26like we're going to build out an AN
- 1:51:28form. little anyn form
- 1:51:32that asks
- 1:51:33about
- 1:51:36job. So what this might have questions
- 1:51:39is like
- 1:51:41one is like job title,
- 1:51:44two is a job description,
- 1:51:49three
- 1:51:50join date or the job and I put data over
- 1:51:55here but let's say join date. Um, what
- 1:51:57else can we throw in over here really
- 1:51:59quick? And I want you to go over here
- 1:52:01and add in different form elements for
- 1:52:03these. So like try different form
- 1:52:07elements. What else can we just throw in
- 1:52:09over here really fast? So we put the
- 1:52:10title, description.
- 1:52:12I know there's other things that we
- 1:52:14could put over here as well, but I'm
- 1:52:16just going to go over here and take out
- 1:52:18how to form elements.
- 1:52:20We're not going to cover files. Oh, um,
- 1:52:24we could put over here. I'm just going
- 1:52:26to say four fake work email. Don't put
- 1:52:29in your exact email for this demo, but I
- 1:52:31think that'd be another good ad on here.
- 1:52:33I'm just trying to get you guys to use
- 1:52:34different things, right? Um, what else
- 1:52:37can we add in over here? Text, drop
- 1:52:41down, number, password.
- 1:52:43I have a number in here. Uh, might be
- 1:52:45the last thing.
- 1:52:48Title, description. Oh, yeah. Put
- 1:52:50salary.
- 1:52:51Salary. Cool. So, what I want you to do
- 1:52:54is pause this video, build out a form
- 1:52:57based around this, and uh yeah, we'll
- 1:53:01take a look at that output. We'll throw
- 1:53:03all this also into an edit set field
- 1:53:06right after. And let's put this over
- 1:53:08here. Add edit set field after this. And
- 1:53:14I know we haven't really talked about
- 1:53:15that in greater detail as of yet, but I
- 1:53:17want you to pause the video, do this,
- 1:53:20and I'll cover the solution, and then
- 1:53:22after what we'll do next is talk about
- 1:53:25the styling of the form. All right,
- 1:53:27ready? Pause the video. 3 2 1, try it
- 1:53:30out, and I will be right back.
- 1:53:32All right, I am back. Let's build out
- 1:53:34this form. So, we'll go and go and grab
- 1:53:38the form, the nan form, and we'll say on
- 1:53:41a new form event, and let's build this
- 1:53:44out. So, the first thing we want to do
- 1:53:46is grab our job title. So, this is
- 1:53:48pretty easy. We'll say job form
- 1:53:52um job form for nan video. I guess it's
- 1:53:56more of a course than that. We'll add an
- 1:53:58element field name. We'll say job name.
- 1:54:03What is your job title?
- 1:54:07No, it's just like we'll do job name
- 1:54:10like this. That's fine. This is text.
- 1:54:13Again, you can make things required or
- 1:54:15not, but I'm not going to do that. Next,
- 1:54:18we're going to go into our job
- 1:54:19description.
- 1:54:22We'll just call this job description
- 1:54:23label job description as well. We'll
- 1:54:26call this over here instead of text a
- 1:54:28text area. So that way someone can fill
- 1:54:29out a little bit more information. The
- 1:54:31next is join date for job or job start
- 1:54:34date. Again, I could really fix this and
- 1:54:37make it better, but I don't think it
- 1:54:38really matters too much for a tutorial.
- 1:54:40Obviously, if you're building things for
- 1:54:42customers, be as detailed as possible.
- 1:54:45Um, all right. So, this time we're going
- 1:54:46to grab a date over here. And it says
- 1:54:49the display date is formatted based on
- 1:54:51local of the user's browser. Right? Fake
- 1:54:54work email. Go over here and add in work
- 1:54:58email.
- 1:55:01And uh we'll just grab that. We'll go
- 1:55:04over here and grab email this time. And
- 1:55:06then lastly, let's grab our salary. So
- 1:55:08just going back in over here, add form
- 1:55:10element. Put in field name as a salary
- 1:55:13label. This time we're going to go into
- 1:55:15a number. And yeah, so we have
- 1:55:17everything over here. Obviously, I I've
- 1:55:19kind of rushed through this. Hopefully
- 1:55:21you take your time and you can execute
- 1:55:23the step. And you can see we have a full
- 1:55:24form now. We have this calendar. We have
- 1:55:27a work email that expects an email. So
- 1:55:30you can see it says enter a valid email
- 1:55:32address. I have a salary. So if I type
- 1:55:34in this like it's not letting me um but
- 1:55:37if I type in number that's fine over
- 1:55:38here. This expands out. So you can see
- 1:55:41that expanding out over here. Whereas
- 1:55:42this does not. And if I put this over
- 1:55:45here I'll say data scientist
- 1:55:49job description but underwriting and
- 1:55:51risk.
- 1:55:53It's my full-time job. Job doing date is
- 1:55:56way in the past. Work email, we're just
- 1:55:59going to say ryangoogle.com.
- 1:56:02Now, obviously, I don't work at Google,
- 1:56:04but I'm just going to put that over
- 1:56:05here. And salary, we're just going to
- 1:56:06add in this over here. I do make way
- 1:56:09more than that, but uh we'll click
- 1:56:10submit. And you'll see we have all this
- 1:56:12information over here. And what's great
- 1:56:14is we can pass all this data into our
- 1:56:17edit set field. And you can take a look
- 1:56:19at this. And we can actually just grab
- 1:56:23and drag and drop
- 1:56:25all of our data points directly into
- 1:56:27edit set and we're going to learn a lot
- 1:56:28more about this here in a second. Um you
- 1:56:31can even see we grab the submitted at
- 1:56:33which wasn't in the form. You can
- 1:56:35execute step and take a look. We have
- 1:56:37all that on that side of things. Great.
- 1:56:40Okay. One other thing I did promise you
- 1:56:41guys is just showing you how we can
- 1:56:44update this form. And let me just stop
- 1:56:47this really fast.
- 1:56:49This not run.
- 1:56:52I guess some weird stuff. Let me save
- 1:56:53this. I'll refresh it and uh we'll just
- 1:56:56change the formatting really quick
- 1:56:59of this form.
- 1:57:03I guess I never Oh, I never filled this
- 1:57:04out. That's why. It's like why did it
- 1:57:07not allow me to do that? That's all
- 1:57:09right. We'll save it and let's add in
- 1:57:11the colors now. So, just to grab this,
- 1:57:16I'm going to go and put Claude up. So,
- 1:57:19we're going to go Claude AI.
- 1:57:21throw this in over here. And what I'm
- 1:57:24going to do is just grab this form. We
- 1:57:27have this. And I'm going to grab all
- 1:57:30this code and then say,
- 1:57:33can you change this code?
- 1:57:37So the form is red and blue. Super
- 1:57:41simple.
- 1:57:43And I'm just going to throw this over
- 1:57:44here. Obviously, there's a lot of things
- 1:57:46that you could change,
- 1:57:50but it's going to go over here,
- 1:57:53make those changes for you.
- 1:57:56And you can see key changes applied.
- 1:57:58Just copy that. And this is something
- 1:58:00you'll learn over time is like you can
- 1:58:02prompt large language models to help you
- 1:58:06solve things faster because take a look
- 1:58:08at that form. We completely changed it.
- 1:58:10It took us two seconds. And in the past,
- 1:58:13historically, we would have to know our
- 1:58:14colors. We would have to change this up.
- 1:58:16I could have provided exact colors as
- 1:58:18well to our LM or ideas of a form like a
- 1:58:21design. But at the end of the day, this
- 1:58:24took two seconds for a YouTube video.
- 1:58:26And uh yeah, I'm pretty happy with it.
- 1:58:28I'm curious if I click submit. That's
- 1:58:30pretty cool. All right, so I'm going to
- 1:58:32close out of that. We're going to save
- 1:58:33this. And we're just going to recap this
- 1:58:36video before we move into our next
- 1:58:37section, which by the way, our next
- 1:58:39section we're actually going to learn
- 1:58:40about using an AI agent, which I'm super
- 1:58:43thrilled uh to get over there. I know
- 1:58:45obviously there's still so much to
- 1:58:46learn, but I want to get you using AI.
- 1:58:49Regardless, first you can use multiple
- 1:58:51triggers uh to start a workflow. Very
- 1:58:54common one is manual execution with a
- 1:58:56schedule trigger. Schedule trigger is
- 1:58:59for timing in real world, especially
- 1:59:01like for my job, I do data analysis. I
- 1:59:04have reports getting sent out every day,
- 1:59:06sometimes every week, sometimes every
- 1:59:07month. So, schedule trigger helps with
- 1:59:09your workflows on that side of things.
- 1:59:11You have a chat message received, very
- 1:59:13common to use with an AI agent. Also,
- 1:59:15using a chat message received, um you'll
- 1:59:17need that for specifically ChatHub to
- 1:59:20start a workflow. So, you'll see these
- 1:59:22being used way more in workflows just
- 1:59:24based off of ChatHub and how awesome it
- 1:59:26is. Uh, and form. I use forms a lot for
- 1:59:29when I want to process binary data or I
- 1:59:31want to grab a lot of different inputs
- 1:59:33from a specific user. And we covered a
- 1:59:35lot of different examples of what you
- 1:59:37could throw into a form. And uh, yeah,
- 1:59:40for testing, I'm just using the testing
- 1:59:42URL. I'm not even going to cover
- 1:59:43production URL until we're a little bit
- 1:59:45later in the video. Probably talking
- 1:59:46about web hooks when we talk about
- 1:59:48production URL. So, don't worry about
- 1:59:49that over now. Um, but one of the
- 1:59:51benefits of this form is we get in our
- 1:59:53data and then it already has one item
- 1:59:54and we can start passing it forward.
- 1:59:56Lastly, I showed you how we could change
- 1:59:58the colors on the form. And remember,
- 1:59:59there's other triggers out there. We're
- 2:00:01just covering the basics in this
- 2:00:03particular video. But now, we're going
- 2:00:05to cover AI agents, and I will see you
- 2:00:07shortly in section five. So, in this
- 2:00:10section, I want to get you guys some of
- 2:00:11your first wins using an AI agent.
- 2:00:14Obviously, there's a lot of details with
- 2:00:16AI agents, and we're going to go into a
- 2:00:17little bit more of an advanced section
- 2:00:19quite later in this course, but the goal
- 2:00:22and objective of this section is to
- 2:00:24learn how to set up a AI agent with LMS
- 2:00:27from a few different popular providers.
- 2:00:29I'm going to show you how to set up Open
- 2:00:31AI. I'm going to show you how to do
- 2:00:32Cloud Enthropic as well as Google. We're
- 2:00:35also going to go through two exercises
- 2:00:37together uh to get used to this as well.
- 2:00:40And yeah, let's jump right into it. So,
- 2:00:43the first thing we're going to do is go
- 2:00:45over and just set up a chat trigger.
- 2:00:47Now, you should be somewhat familiar
- 2:00:48with this based off of the last two
- 2:00:50videos. So, we're going to have a chat
- 2:00:52trigger over here. And then what we're
- 2:00:54going to do next is go and grab a AI
- 2:00:57agent. So, we'll go over here, have our
- 2:00:59AI agent, and by default, it'll have the
- 2:01:02chat trigger go into the AI agent.
- 2:01:04Again, we've covered this before where
- 2:01:06the prompt for the chat should say
- 2:01:08JSON.put.
- 2:01:09It already does. So, we're pretty good
- 2:01:11to go on that side of things. But now,
- 2:01:14what we need to do is fill out our
- 2:01:16property where it says chat model. And
- 2:01:19this is really important because this
- 2:01:21defines what model you're going to be
- 2:01:22working with. If you don't have this,
- 2:01:24nothing's going to happen. And just to
- 2:01:25show you, I'll put over here um I don't
- 2:01:29know, we'll say what is the most
- 2:01:33expensive
- 2:01:35Babe Ruth baseball card. And I I might
- 2:01:38be misspelling this over here. My
- 2:01:40microphone is in the way, but you'll see
- 2:01:43we'll get an error because it says a
- 2:01:45chat sub node must be connected enabled.
- 2:01:47And we just don't have our chat model.
- 2:01:49So it's super important to set this up.
- 2:01:52So let's click on this plus icon and
- 2:01:56you'll see over here we have all of our
- 2:01:57different language models we can work
- 2:01:58with. You have cloud andropic over here.
- 2:02:01You have Azure, AWS, go here, Deep Seek,
- 2:02:04Google Gemini, Vert.Ex, Grock, Mistral,
- 2:02:07Lemonade, Olama, Open Router, Grock,
- 2:02:10Open AI, and there's just so many and
- 2:02:12you're like, man, I I don't know what to
- 2:02:14use. So, a few notes like obviously the
- 2:02:17most popular one out there, and this may
- 2:02:20change in the future, but as of
- 2:02:22essentially 2026, I'm recording late
- 2:02:24December, OpenAI is probably used by the
- 2:02:27most amount of users. Okay? So you'll
- 2:02:30see a lot of different workflows that
- 2:02:31use OpenAI. It's pretty popular in
- 2:02:34corporate environments. But some of the
- 2:02:35other ones that are really really
- 2:02:37popular, you have Google Gemini, which
- 2:02:40uh Gemini 3 has really taken off and put
- 2:02:43Gemini a little bit higher up in the
- 2:02:45rankings. And then you also have Cloud
- 2:02:47Enthropic that a lot of people like as
- 2:02:49well. There is some local models over
- 2:02:52here which I'm not going to dive into.
- 2:02:54You also have specifically open router
- 2:02:57which allows you to choose between
- 2:02:59different models. And then in addition,
- 2:03:01you have things like grock um which may
- 2:03:04be helpful if you want to use specific
- 2:03:05Twitter data. You also have something
- 2:03:07over here called the model selector. And
- 2:03:09it says use this node to select one or
- 2:03:10more of the connected say node based on
- 2:03:12the workflow data. Outside the scope of
- 2:03:14today's video, but yeah, we're going to
- 2:03:17go through and set up multiple of these.
- 2:03:20Let's start off with OpenAI. So, I'll
- 2:03:22just go over here and click open AI chat
- 2:03:24model. And the first thing you want to
- 2:03:26do is set up an account. So, I'm going
- 2:03:28to show you how to create a new
- 2:03:29credential right now. We're going to
- 2:03:30click this. And you get this popup
- 2:03:33screen and it says, "Need help filling
- 2:03:35out these fields? Open Docs." Again, any
- 2:03:37is fantastic for documentation, but
- 2:03:39honestly, this is going to be pretty
- 2:03:40easy. All we need to do is get an API
- 2:03:42key. So, how do you get an API key?
- 2:03:44Well, you go to a website,
- 2:03:45openai.com/api,
- 2:03:48and we're just going to log in over
- 2:03:49here. If you don't have a account, make
- 2:03:52sure to set one up. But we're going to
- 2:03:53go login and we're going to go to API
- 2:03:55platform. I'm just going to log in with
- 2:03:57my Google account. Cool. And then we're
- 2:03:59right over here. We're going to click
- 2:04:01this settings icon. We're going to go
- 2:04:03into API keys. And then you're going to
- 2:04:06create a new secret key. So just click
- 2:04:09plus create new secret key. Whatever
- 2:04:12we're going to say. We're going to say N
- 2:04:14tutorial
- 2:04:17full course. I don't know. We're going
- 2:04:19to delete these shortly after. You can
- 2:04:22set a project if you want. You can set
- 2:04:24up specific permissions if you want. I'm
- 2:04:26just going to say a default project. I'm
- 2:04:28going to create the new secret key. And
- 2:04:29then you see I have a key over here. So
- 2:04:32it says save your key. Please save your
- 2:04:34secret key is safe. So we won't be able
- 2:04:35to view it again. Blah blah blah. Right?
- 2:04:38Best practices. Also to mention with API
- 2:04:40keys, you can set limits in a in a
- 2:04:43platform. So just in case it gets lost
- 2:04:45or anything like that, but you only can
- 2:04:48copy this once. So, copy that key and
- 2:04:50then go back into your API key over
- 2:04:51here. You'll see it's been pasted. If
- 2:04:53you click save, then it'll say
- 2:04:55credential created inside your own
- 2:04:56personal workspace. And what I would
- 2:04:58recommend is you actually label your
- 2:05:00credential over here. Uh because if you
- 2:05:03don't, you'll be confused like what's
- 2:05:05account one, what's account two, what's
- 2:05:06account three. I made that mistake a
- 2:05:08long time ago and I just never cleaned
- 2:05:10it up on here. So, just label this right
- 2:05:12away. If you want to delete your
- 2:05:13credential, you can go over here and
- 2:05:14delete it. I'm going to delete this one
- 2:05:16because I don't want to use it. So, I'm
- 2:05:17going to say delete. Obviously, you see
- 2:05:19what this credential is. It's going to
- 2:05:21be gone. And go over here, and I'm
- 2:05:25actually going to delete this one as
- 2:05:26well. So, I'm going to remove that key
- 2:05:28so that way you guys can't use it. And
- 2:05:30we are good to go. So, I'm going to go
- 2:05:32to my OpenAI account. And what you'll
- 2:05:34see next is we have different models
- 2:05:36over here. Now, I think one of the
- 2:05:38things that N should improve on is just
- 2:05:41changing out the recent model that
- 2:05:43populates here. It's 41. I'm not using
- 2:05:4541 at all. And by the time you watch
- 2:05:47this video, we might be on like GPT6 or
- 2:05:49GPT7. Um, but GPT52 is out, so you could
- 2:05:52use that. I tend to use just mini
- 2:05:55because it's a cheaper model in a lot of
- 2:05:56my videos. So, I'll say GPT5 mini. You
- 2:05:59also have the responses API, which has a
- 2:06:01lot of information outside the scope of
- 2:06:03this video. But just like that, like 5
- 2:06:07minutes, we were able to set up this
- 2:06:09OpenAI chat model. Now, I'm going to
- 2:06:11save this over here. And I'm also going
- 2:06:13to show you something pretty cool that
- 2:06:14we haven't covered yet in this course.
- 2:06:17And actually, it kind of escaped me when
- 2:06:19I was covering the nodes and stuff like
- 2:06:20that. One of the things that you should
- 2:06:22be able to do as well is turn on and off
- 2:06:24nodes. So, if you see this over here,
- 2:06:26I'm just going to deactivate it. And
- 2:06:28this is no longer being used. Now,
- 2:06:29obviously, this is a a chat model
- 2:06:32attached to an AI agent, but the same
- 2:06:33thing happens with nodes. So, you can
- 2:06:34see it's deactivated or not. Um, outside
- 2:06:38the scope of this particular lecture,
- 2:06:40but feel like that's important. So
- 2:06:42that's OpenAI. Next, what I want to have
- 2:06:45us to set up is going to be Cloud
- 2:06:47Enthropic. So again, we're going to just
- 2:06:49click this chat model and I'm going to
- 2:06:51go to anthropic chat model like this.
- 2:06:54What I'm going to do is click down over
- 2:06:55here and create new credential. So once
- 2:06:58again, we have to get an API key. So if
- 2:07:00we go to claude console, so
- 2:07:02platform.cloud.com,
- 2:07:04sign in with your Google account, which
- 2:07:05I'm going to do right now. Yep. Then you
- 2:07:07have this main screen over here. Make
- 2:07:09sure to get API key. We're going to
- 2:07:11create a key and then name your key.
- 2:07:14I'll say n live tutorial.
- 2:07:19I'll add this key. And again, you'll see
- 2:07:22our key right over here. Probably be
- 2:07:24blurred out for this video, but go over
- 2:07:27here to API key, paste that in, and
- 2:07:29you'll see save again. Rename your
- 2:07:31thing. And it says connection tested
- 2:07:33successfully if it works. I'm just going
- 2:07:35to delete this one because we don't need
- 2:07:36that. And I'm going to go back over here
- 2:07:39and this as well. So just going to go
- 2:07:43over here and delete this. Obviously you
- 2:07:45guys should not
- 2:07:47do that for your keys. I'm just doing
- 2:07:49this right now because it's for the
- 2:07:51video. So it's been disabled. And delete
- 2:07:53it.
- 2:07:55Great. So have both of those
- 2:07:57particularly in here. And again you have
- 2:08:00a lot of different models associated
- 2:08:02with Claude. You can go over here. You
- 2:08:04can see Sonnet 45 I use quite a bit.
- 2:08:06Opus 45 is a really expensive model. And
- 2:08:09maybe we'll have a section talking about
- 2:08:10like what model to use and what
- 2:08:12particular use cases, but again, I'm
- 2:08:14just trying to get you set up and going.
- 2:08:17So that's Enthropic. I'm going to just
- 2:08:19remove that over here and then
- 2:08:21deactivate it. Next, what we're going to
- 2:08:23work on is adding in Gemini. So click
- 2:08:26this plus icon. You'll notice Google has
- 2:08:28multiple models. I'm going to use Gemini
- 2:08:30over here. And uh again, we're going to
- 2:08:32just create a new account. So just click
- 2:08:34over here, create new credential. It's
- 2:08:36going to ask for an API key. So how you
- 2:08:39get this is you go to Google AI studio.
- 2:08:41So AI studio.google.com.
- 2:08:44And then uh we're going to just can go
- 2:08:45and get API key in the bottom left.
- 2:08:48Create new API key. I'm going to say
- 2:08:52n course like this. You choose a cloud
- 2:08:55project as well if you want. And uh you
- 2:08:58choose a cloud project as well. I'm just
- 2:09:00going to say any nut. We grab that.
- 2:09:04And then we have our key. And again, you
- 2:09:07can just copy over the key. You can see
- 2:09:09copy API key like this. And uh yeah,
- 2:09:13this one was here. So, copy that. Go
- 2:09:15back in over to Nan API key. You can
- 2:09:20save that. And if it works, connection
- 2:09:22tested successfully. One thing to
- 2:09:24mention as well, and again, I'm just
- 2:09:25going to delete this key because I don't
- 2:09:27need it.
- 2:09:31One thing to mention as well though is
- 2:09:33you need to fund all of your accounts
- 2:09:36because these are paid. Now it you do
- 2:09:39not use a lot of money with large
- 2:09:41language models if you're doing a small
- 2:09:44amount of testing. Like there's it's
- 2:09:46very rarely like I spend more than $50 a
- 2:09:48month on projects just for YouTube
- 2:09:51tutorials and things like that and
- 2:09:52testing and building out things.
- 2:09:54Obviously if you have a SAS product or
- 2:09:56you're selling services that's going to
- 2:09:57be a little bit different. Um, but just
- 2:10:00keep that in mind. These models tend to
- 2:10:02be pretty cheap. There is expensive
- 2:10:03models out there as well. Uh, for
- 2:10:05OpenAI, Anthropic, and Google Gemini. So
- 2:10:08like Gemini over here, we can go over
- 2:10:10and choose a specific model. I'm using
- 2:10:13Gemini 3 for a lot of stuff. So this pro
- 2:10:15preview over here. And yeah, we'll talk
- 2:10:18about cost of models and a lot more in
- 2:10:20our advanced section. This is just our
- 2:10:23basics. So what I want us to do now is
- 2:10:25build out a workflow. We're going to use
- 2:10:27our chat trigger. We're going to use our
- 2:10:28AI agent over here. And then um let's
- 2:10:32ask each of these over here a question.
- 2:10:34What we're going to ask is and I'll put
- 2:10:37this over here. What is the most
- 2:10:40important
- 2:10:42any end skill? So we're going to ask
- 2:10:43each model that.
- 2:10:46Let's jump through this. So first I'm
- 2:10:49going to unactivate these or make them
- 2:10:52live I should say and we'll test them
- 2:10:54one at a time.
- 2:10:56So, let's open up our chat. I'm going to
- 2:10:59clear the chat log. So, I just click
- 2:11:01reset chat session like that. And let's
- 2:11:04jump into it. So, our first one, what is
- 2:11:06the most important N skill? And I'm
- 2:11:08actually very curious what each of these
- 2:11:10say. So, our first one's going to be
- 2:11:11open AI.
- 2:11:14And I just want to document this, too.
- 2:11:16Uh, we're going to use Claude
- 2:11:19and then we're going to use
- 2:11:21All right.
- 2:11:23So short answer the single most
- 2:11:25important N skill is knowing how to work
- 2:11:26with data and APIs reading
- 2:11:29and transforming JSON HTTP between
- 2:11:31systems debug inflow again my mic is
- 2:11:34like right here and that's in the bottom
- 2:11:36left so it's kind of tough to read so
- 2:11:39we'll just copy this obviously they
- 2:11:41wrote a lot over here
- 2:11:43you can see that is our answer I don't
- 2:11:45know why I'm copying this here it
- 2:11:47doesn't matter so now what I'll do is
- 2:11:49I'll just deactivate this or move this
- 2:11:51out of the way and I will throw in
- 2:11:54anthropic.
- 2:11:55Cool. Let's run this again. So, I'm just
- 2:11:58going to go reset chat session. And uh
- 2:12:01we'll go through on this side of things.
- 2:12:05And what you'll notice as well, each of
- 2:12:07these models have their own personality.
- 2:12:08Like they respond short, fast,
- 2:12:11efficiently.
- 2:12:12And there's a there's a lot of nuances
- 2:12:14behind it, but you're getting the ground
- 2:12:16started. And you can see there's a ton.
- 2:12:19Understanding logic flow and conditional
- 2:12:21thinking is the most important N skill.
- 2:12:23Interesting.
- 2:12:26And then uh we'll go into Gemini next.
- 2:12:31Again, we'll just clear this out. Ask
- 2:12:34the same question.
- 2:12:36You'll see we get three different
- 2:12:38results.
- 2:12:41All right. And then it says, "If you had
- 2:12:42to pick just one skill that separates an
- 2:12:44average and end user from an expert, it
- 2:12:46is data transformations using
- 2:12:47JavaScript." I don't think that's the
- 2:12:50most important skill. Um,
- 2:12:53low code and etc. So, three different
- 2:12:56results, three different models. There
- 2:12:59you go. So, I'm just going to hide the
- 2:13:01chat right now. And what I want you guys
- 2:13:04to do is work on a mini project for this
- 2:13:07section. So, let's outline your small
- 2:13:09project. Again, we're keeping things
- 2:13:11simple. It's going to get a little bit
- 2:13:12more complicated towards the end, but
- 2:13:17let's jump into it. So, large language
- 2:13:20models are pretty good at researching.
- 2:13:22And one of the things I want you to do,
- 2:13:24see if you share a birthday with someone
- 2:13:26that is famous. So, how are we going to
- 2:13:28do this? Well, step one, what we need to
- 2:13:31do is have a form trigger. Form trigger.
- 2:13:35And what this does is this accepts
- 2:13:40a uh date
- 2:13:43or a birthday.
- 2:13:45Then step two is we're going to send
- 2:13:49the information
- 2:13:51into an AI agent.
- 2:13:54And then step three, we're going to ask
- 2:13:57the agent,
- 2:14:00do I share
- 2:14:02the same
- 2:14:04birthday? We'll say day and month
- 2:14:10as someone famous. And then part four,
- 2:14:16we're going to also expand on this and
- 2:14:18we're going to say this should be within
- 2:14:25I guess like industries or something
- 2:14:27like that. Um
- 2:14:30these let's say music genres. Sorry,
- 2:14:32this one makes more sense. these music
- 2:14:34genres
- 2:14:38or
- 2:14:40and we're gonna say sports.
- 2:14:43Okay, so let me explain what we're going
- 2:14:45to do on this one a little bit better.
- 2:14:48Famous birthday matcher.
- 2:14:52So here's how this works. We're going to
- 2:14:55set a form as a trigger. And this should
- 2:14:57accept the date for a birthday
- 2:15:01music
- 2:15:02genre like that as well as favorite
- 2:15:08sports. So it could be one or more for
- 2:15:10music genres, one or more for favorite
- 2:15:12sports
- 2:15:14a date as a birthday. Then what we're
- 2:15:16going to do is send that information
- 2:15:18into an AI agent like this. Then we're
- 2:15:21going to ask the agent. So, we're going
- 2:15:24to ask it. We're going to open this up
- 2:15:25over here. Instead of a chat trigger,
- 2:15:27we're going to define below. We're going
- 2:15:29to ask the agent, do I share the
- 2:15:30birthday with someone famous? And then
- 2:15:33this should be within these music genres
- 2:15:36or sports. Again, you could have one or
- 2:15:37more for each of these. So, lot going
- 2:15:40on, but I think you could do it based
- 2:15:42off of everything we've covered so far.
- 2:15:44Pause the video and uh attempt to do
- 2:15:47this. I'm going to pause it in three,
- 2:15:49two, one. Go for it. and uh come back
- 2:15:53once this is ready to go.
- 2:15:55All right, we are back. Let's try it.
- 2:15:57So, first thing we're going to do is set
- 2:15:59up our form trigger. So, you go to any
- 2:16:01end form and we're going to say on a new
- 2:16:03form event and this is our form. So,
- 2:16:06let's first ask our specific questions
- 2:16:09and we're going to say birthday matcher
- 2:16:11is the name. Again, you can use whatever
- 2:16:13you want. Matcher, we'll say matches
- 2:16:18famous birthdays.
- 2:16:20And let's we have to have three form
- 2:16:22elements. So the first one is going to
- 2:16:24say birthday
- 2:16:26and label. We're going to go over here
- 2:16:29and it say birthday
- 2:16:33or we should put like your birthday or
- 2:16:34something like that. Birthday.
- 2:16:38Then what we're going to specifically do
- 2:16:40is go over here and look for a date.
- 2:16:44That is a required field. Then we're
- 2:16:46going to have another form element.
- 2:16:48We're gonna say music genres,
- 2:16:55favorite styles
- 2:16:58of music. And you know, this could be
- 2:17:01multiple things if you want it to be.
- 2:17:03Um, you know, you could have kind of a
- 2:17:05drop down if you already have defined
- 2:17:07genres. You could also choose uh
- 2:17:11checkboxes. You could also technically
- 2:17:14go over here and choose radio buttons,
- 2:17:17but I'm just going to keep this as just
- 2:17:18simple text like that.
- 2:17:22Yep. And then we're going to do is have
- 2:17:25sports.
- 2:17:28Sports. And I'm just going to say um
- 2:17:32favorite sports.
- 2:17:34And a lot of options that you can choose
- 2:17:36if you want to customize this to your
- 2:17:38liking. We already covered this a little
- 2:17:39bit in the last video. Then what we're
- 2:17:41going to do is we're going to create an
- 2:17:42AI agent. So go over here to AI agents
- 2:17:46and we'll grab that and you'll see we
- 2:17:49have this over here. However, this won't
- 2:17:50work right away. So what we need to do
- 2:17:53is define below and we'll write this
- 2:17:55here in a second. But we need to add in
- 2:17:57our chat model. I'm going to be lazy and
- 2:17:59I'm just going to use Google Gemini. So
- 2:18:02just copy that and then paste it. Uh so
- 2:18:06crV works really well in nan. So, we
- 2:18:10already have this set up with my
- 2:18:12credentials.
- 2:18:13And what we're going to do now is test
- 2:18:17this form out. So, I'm actually going to
- 2:18:19disconnect this really fast and we're
- 2:18:22going to test the form out. So, execute
- 2:18:24step your birthday. So, put in your
- 2:18:28birth date over here. I'm just going to
- 2:18:31use today's date, but obviously uh way
- 2:18:35back. So, let's go.
- 2:18:39I'll say like 1990 December 26. Today is
- 2:18:43not my birthday, by the way. Favorite
- 2:18:45style of music. You know, I like rock,
- 2:18:50metal,
- 2:18:52some bluegrass. I like
- 2:18:55And favorite sports. We're going to say
- 2:18:57baseball,
- 2:18:59running, we'll put cricket in here. Um,
- 2:19:03I think that should be fine. So, we'll
- 2:19:04say submit. And you'll see we have our
- 2:19:07data that is over here. We can pin this
- 2:19:10if we want. We could change this data,
- 2:19:12but I'm just going to pin it for now.
- 2:19:14And then we're going to go and attach
- 2:19:16our AI agent. And we're going to say uh
- 2:19:20create a prompt. Now, I haven't taught
- 2:19:21you anything about writing good prompts,
- 2:19:24but that's okay. Uh, we're going to say
- 2:19:27what birthday what famous people have a
- 2:19:33birthday
- 2:19:36on this month
- 2:19:39and day. We're going to go over here and
- 2:19:42then pass in this birthday.
- 2:19:46So, you can see it turned into an
- 2:19:47expression. I'm also going to expand
- 2:19:49this out. So, if you click this bottom
- 2:19:51icon, it expands it out.
- 2:19:54And let's write this out.
- 2:19:57The famous person or famous people
- 2:20:03must play
- 2:20:06in this sport
- 2:20:09in these sports I should say and
- 2:20:12obviously my grammar is not perfect
- 2:20:13today but I'm writing this on the on the
- 2:20:16spot or
- 2:20:19they are a musician
- 2:20:23and
- 2:20:24and play this style of music.
- 2:20:31Production-wise prompts, there's a lot
- 2:20:33that I would change over here, but all
- 2:20:35we're asking the AI is what famous
- 2:20:39people what famous people have a
- 2:20:40birthday on this month and day. So, we
- 2:20:42pass in the birthday from the form. The
- 2:20:44famous people must play in these sports
- 2:20:48like that. And the musician play in this
- 2:20:51style in these
- 2:20:55styles
- 2:20:57of music and then you can pass in
- 2:20:58multiple genres. And you can see over
- 2:21:00here to the right the result the birth
- 2:21:02date baseball running cricket rock
- 2:21:04middle. So now save that and let's test
- 2:21:10out this workflow. Obviously I've pinned
- 2:21:11this data so I don't run the form again.
- 2:21:13And now I'm very curious what results
- 2:21:16we're going to get. We didn't even
- 2:21:17define what type of output we want from
- 2:21:20the AI agent. We can specify that in
- 2:21:22multiple ways, but we're just we're
- 2:21:25getting our feet wet right now. We're
- 2:21:27only on section five and there's a lot
- 2:21:30more to cover. And you'll see we have a
- 2:21:32results. So we can go over here based on
- 2:21:35the specific date of December 26, 1990
- 2:21:37and your required categories. There's
- 2:21:39one prominent famous person who fits at
- 2:21:42cretire
- 2:21:44criteria and I can't say it. Andy
- 2:21:46Biserk, founder and lead vocalist of the
- 2:21:49metal of the band Blackville Brides
- 2:21:52plays rock, metal. Well, there other
- 2:21:55famous people in this day such as soccer
- 2:21:56player Ramsey. They do not fit the sport
- 2:21:59or music genres you requested. That's
- 2:22:01pretty cool. Now, what we could do as
- 2:22:03well is let's change this up and I'll
- 2:22:06click this over here and let's make it
- 2:22:09tomorrow's date 1227. So, I'll save that
- 2:22:12and we will run this again and you'll
- 2:22:15see we're going to get different
- 2:22:16results. We're going to get probably
- 2:22:18different text as well from Gemini just
- 2:22:20because we didn't really define our
- 2:22:22prompt that well. This is like a very
- 2:22:24mediocre prompt. I would probably give
- 2:22:26it like a C minus, but you know, it is
- 2:22:29what it is. It's good for a tutorial.
- 2:22:32Now I'm curious like who did you guys
- 2:22:33share a birthday with? Put that below in
- 2:22:36the comments section. Obviously this is
- 2:22:38a very early project like a form
- 2:22:40submission AI agent and when you get
- 2:22:42further in the course you're like man
- 2:22:44this was so basic. I wish everything was
- 2:22:45this basic but it's good to get some
- 2:22:48wins.
- 2:22:50So we'll run this one more time and
- 2:22:53it'll take a little bit but that's fine.
- 2:22:55Also show you a few other quick wins in
- 2:22:57here. And you can see over here there's
- 2:22:59a lot more stuff. So based on the
- 2:23:00specific birth date and the strict
- 2:23:02categories provided there are no
- 2:23:03internationally renowned celebrities.
- 2:23:05However, there are professional athletes
- 2:23:07in cricket category fit the exact
- 2:23:09description. Horus Miller a Jamaican
- 2:23:12cricketer which I didn't even know they
- 2:23:13played uh cricket in Jamaica.
- 2:23:16All right. These are famous born on that
- 2:23:18exact day. Professional tennis player,
- 2:23:21ice hockey player.
- 2:23:24Yeah. So a lot more stuff going on on
- 2:23:26that side of things. So either way that
- 2:23:30is
- 2:23:32essentially
- 2:23:34how we built this out. So one other
- 2:23:37thing I really wanted to quickly show
- 2:23:38you is sometimes a large language model
- 2:23:42will fail like a company is down or like
- 2:23:45that. So how do you actually build a
- 2:23:47backup and let me just show you this
- 2:23:48over here because this takes like two
- 2:23:50seconds. You enable a fallback model. So
- 2:23:53imagine like
- 2:23:56OpenAI is down but that's your primary
- 2:23:58driver. You could have a fallback model
- 2:24:00and let's say you want to have your
- 2:24:01fallback model be Google Gemini. So this
- 2:24:04will get priority but if something's
- 2:24:06going on with OpenAI you have something
- 2:24:08as a fallback and this is something I
- 2:24:10highly recommend that you do if you
- 2:24:12build out some sort of production grade
- 2:24:14system or something that cannot fail. It
- 2:24:15literally takes two seconds to add a
- 2:24:17fallback model in over here and it's
- 2:24:19just a really good thing to do.
- 2:24:21Obviously, we are going to have a lot of
- 2:24:22other things we talk about later, but
- 2:24:25there is going to be that. So, hopefully
- 2:24:28you learned uh quite a bit in this
- 2:24:30section. Our next section we're going to
- 2:24:32do is we're going to cover a lot more
- 2:24:34about data types as well as JSON. But
- 2:24:37before we get into some technical stuff,
- 2:24:38I wanted to get you guys a win. We
- 2:24:41haven't even covered the the basic nodes
- 2:24:43yet really outside of edit set and some
- 2:24:45of these triggers. And that'll be coming
- 2:24:47up in section number seven. Uh thanks
- 2:24:50guys for watching so far and if you are
- 2:24:53getting a lot of value make sure to
- 2:24:55subscribe but yeah see you in section
- 2:24:57six. So this next section is going to be
- 2:24:59a little bit more complicated than the
- 2:25:01previous ones and we're be focusing on
- 2:25:03in particular is going to be data types.
- 2:25:06And data types is critical especially in
- 2:25:09like software engineering or data
- 2:25:10analytics or anytime you're going to be
- 2:25:12doing some sort of programming because
- 2:25:14if you don't have your correct data
- 2:25:16types you're going to have errors in
- 2:25:18your specific program. So we're going to
- 2:25:20cover what any has available today.
- 2:25:23We'll go through a lot of different
- 2:25:24examples and then we're going to also
- 2:25:26show you a little bit of insights as
- 2:25:27well as how JSON works with these
- 2:25:30particular data types. So let's jump
- 2:25:32right into NN. Uh we're going to be on
- 2:25:34our section number six. And we're going
- 2:25:38to keep this very basic. We'll have a
- 2:25:39manual trigger. And then what we're
- 2:25:41going to have next is just an edit set.
- 2:25:44And the reason why is if you go over
- 2:25:46into the edit set and we're just going
- 2:25:48to put like example one. You can see
- 2:25:52that we have different data in over
- 2:25:54here. We have something called a string.
- 2:25:56We have a number. We have a boolean
- 2:25:58array object as well as binary data. So
- 2:26:03we're going to go through each of these
- 2:26:04one at a time and kind of give you some
- 2:26:06examples with that. So what we're going
- 2:26:09to do is say this is example string
- 2:26:13and a string is pretty straightforward.
- 2:26:15All a string asks us to do is have text.
- 2:26:19So you could say for example um Trent
- 2:26:24Resner, the lead singer of 9inch nails.
- 2:26:27You can go over here and you can see
- 2:26:29example string and it says Trent Resnal
- 2:26:32which is pretty cool. And one of the
- 2:26:34other things with strings is you could
- 2:26:36technically have a number as a string as
- 2:26:38well. So if you type in 99999
- 2:26:42like this execute step and that is
- 2:26:45perfectly valid and you could mix both
- 2:26:49these together. So I'll go over further
- 2:26:50here like that and we'll run this
- 2:26:53example and you can see we have
- 2:26:55technically a number with a string but
- 2:26:57this is all together as a string. It
- 2:27:00really doesn't matter and you can put
- 2:27:01special characters in over here as well.
- 2:27:04I meant to press shift on my keyboard
- 2:27:07but this is totally valid as well. So
- 2:27:11our next data type is a little bit more
- 2:27:13restrictive and this is going to be a
- 2:27:15number. So we'll call this example
- 2:27:18number
- 2:27:19example number and you know it has zero
- 2:27:23by default. Let's keep it. And you'll
- 2:27:25see over here in the output we actually
- 2:27:27have a difference as well. So I'm just
- 2:27:29taking a look at the schema view. But
- 2:27:30you can see how this says T for like a
- 2:27:33string or text. Well, this one has a
- 2:27:35number icon which is really nice from
- 2:27:37the Nan team because you can just look
- 2:27:39over here really quick and tell the
- 2:27:40different data types. If you go over to
- 2:27:42your table, you you don't know for sure,
- 2:27:44but the schema will tell us that JSON,
- 2:27:47it does tell us that that as well
- 2:27:49because you can see the string has
- 2:27:51double quotes, whereas the example
- 2:27:53number, it does not. And again, just to
- 2:27:56show you the difference, if we remove
- 2:27:58all that and just keep it as 9999 and we
- 2:28:01use the same thing for our number,
- 2:28:05it does not have these double quotes,
- 2:28:07whereas the string does. So if you're in
- 2:28:08the JSON view and you see this
- 2:28:13right string number. So where people get
- 2:28:17tripped up is you cannot put a string as
- 2:28:22a number. So if I go over here and say
- 2:28:23print
- 2:28:25or I put anything in here. So you can
- 2:28:27see it says E4. And it's actually pretty
- 2:28:30restrictive because I'm trying to spam
- 2:28:31my keyboard. I believe in the past you
- 2:28:33could um but now they probably have some
- 2:28:35sort of logic based in there. Uh you can
- 2:28:38see example number is null. This just
- 2:28:40generally does not work. It actually did
- 2:28:42not take that as input. Also in the past
- 2:28:44this used to specifically crash and it
- 2:28:47would have an error. But it looks like
- 2:28:49now any end team just has this as
- 2:28:52particularly null which is I think a
- 2:28:54pretty good ad over here. But again you
- 2:28:57cannot include anything else over here
- 2:28:59minus a specific number. And uh yeah
- 2:29:03that's the difference. String you can
- 2:29:05have a number in there. Number you
- 2:29:06can't. All right. So, what we have next
- 2:29:10over here is going to be a boolean. And
- 2:29:13boolean is so simple. Either something
- 2:29:15is going to be true or it's going to be
- 2:29:17false. So, let's take a look at a true
- 2:29:19example. We'll go over here and call
- 2:29:21this example boolean. So, example
- 2:29:24boolean like that. Okay. Now, we're
- 2:29:27going to do example three and four. So,
- 2:29:30example three we're going to take a look
- 2:29:32at is our booleans in the array.
- 2:29:36So, we're going to make sure we click
- 2:29:38onto array. And in over here, it will
- 2:29:40say true and false,
- 2:29:43true and false.
- 2:29:46That you can see again, no double
- 2:29:50quotes, but it grabs our example from
- 2:29:52the boolean. And lastly, let's combine
- 2:29:54everything together. Let's have an array
- 2:29:56that has string, a boolean, and a
- 2:30:00number. So, go for that. We'll just copy
- 2:30:04each of our records. that we've had so
- 2:30:06far each of our items inside these
- 2:30:07arrays. So,
- 2:30:10pretty straightforward.
- 2:30:11So, if I say so myself
- 2:30:15and we'll just go down here and choose
- 2:30:18array.
- 2:30:19You can see we just have a lot of
- 2:30:21different data types inside of that
- 2:30:23particular array.
- 2:30:25Again, one thing to differentiate our
- 2:30:27array from everything else. You can see
- 2:30:29we have these brackets here at the very
- 2:30:31end. So brackets like that, brackets
- 2:30:34like that. And uh everything else
- 2:30:37doesn't, right? Our string doesn't have
- 2:30:38those brackets. Our number doesn't have
- 2:30:40those. We have true or false directly in
- 2:30:42here. But when you have a string inside
- 2:30:44of array, you have to make sure that you
- 2:30:46have these quotes. And I just put single
- 2:30:48quotes in over here. Numbers have none.
- 2:30:51And then true or false have none as
- 2:30:53well. Okay. So now what we're going to
- 2:30:55do is we're going to take a look at
- 2:30:57something called an object. And because
- 2:31:00I didn't want to make this pretty
- 2:31:01complicated, we're just going to say
- 2:31:03example object one. I actually had this
- 2:31:06generated by Claude
- 2:31:09because it's kind of a pain to create an
- 2:31:10object.
- 2:31:13Just grab an object over here for 9in
- 2:31:15nails. That's why I was given those
- 2:31:16examples. And uh I'll just paste this in
- 2:31:19over here. Obviously, again, you could
- 2:31:20just make this way larger, but still
- 2:31:23even there. And you can see I can make
- 2:31:24it like this. Feel like it's just easier
- 2:31:27explained.
- 2:31:29And if I execute the step, no issues.
- 2:31:31You can see all this is populated over
- 2:31:33there. To take a look at the schema for
- 2:31:35example once again, we have our text for
- 2:31:38string number. We have kind of a
- 2:31:41checkbox or boolean an array has these
- 2:31:43three lines. You can see that. And then
- 2:31:45our object kind of has that specific
- 2:31:48cube. And inside of that, you can see we
- 2:31:50have a 9-in nails release, an album, a
- 2:31:52track, production, and then additional
- 2:31:54metadata. This is quite complicated for
- 2:31:57you right now. But because we're showing
- 2:32:00these other data types over here, it was
- 2:32:02pretty important to do that. Uh so you
- 2:32:04can see Nails and we have other
- 2:32:07information inside of the album year
- 2:32:09label, the track, the production
- 2:32:11associated with it as well as the
- 2:32:13metadata. One other thing that you're
- 2:32:14going to see in this edit set is
- 2:32:17something called binary data. And what
- 2:32:19binary data is is any sort of file
- 2:32:22within the NAN and it is also outside of
- 2:32:26the scope. I'm not going to be covering
- 2:32:28binary data in this uh specific section.
- 2:32:30In fact, there's a full section we're
- 2:32:32going to dedicate towards binary data
- 2:32:34because binary data is weird in N and
- 2:32:37it's something that trips up a lot of
- 2:32:39beginners. So do not want to cover
- 2:32:41binary data within this JSON basic in
- 2:32:44data types. So the next thing I just
- 2:32:46want to quickly cover is like how do you
- 2:32:48access specific parts uh in particular
- 2:32:51like with an array or an object because
- 2:32:53you'll see this when you work with APIs
- 2:32:56or you're working with data. You might
- 2:32:57want to have a a specific section. So
- 2:33:00what we're going to do is have another
- 2:33:01edit set and I'm just going to show you
- 2:33:03the JSON associated behind it. So all
- 2:33:06you got to do and like obviously this is
- 2:33:09pretty easy is just grab a section. So
- 2:33:13for example, if I'm grabbing this
- 2:33:14example array 4 and
- 2:33:17why is this not running?
- 2:33:20Oh, you know why it's not running is I
- 2:33:22have this binary data that's complete
- 2:33:24garbage. All right, now now it's going
- 2:33:26to run. I'm like, why is this not
- 2:33:28running? All right, so you'll see that I
- 2:33:30was able to populate this example of it
- 2:33:34should be Trent, but it's tent. So I'm
- 2:33:36grabbing the array for and I'm grabbing
- 2:33:38the first element of it. And this also
- 2:33:40trips up a lot of people initially. A
- 2:33:42lot of times in programming, you're
- 2:33:44going to start from zero. So zero is
- 2:33:46going to be that first position. So the
- 2:33:49item over here within the array, the
- 2:33:51first one is zero, then goes one, two,
- 2:33:53and it ends with n minus one, which is
- 2:33:55the number of items minus one. So if you
- 2:33:58have an array of three length, you start
- 2:33:59with zero, you're then you have one and
- 2:34:01two, your last item will be the length
- 2:34:03minus one. Uh so just to go over here
- 2:34:06and grab another example, you can see if
- 2:34:09we want to grab 75 that's over there. Um
- 2:34:12again, you can just go here and take a
- 2:34:14look at the JSON as well for that
- 2:34:16specific object
- 2:34:18and you'll see JSON.ample object
- 2:34:21tracktitle. So it goes example object
- 2:34:23one, right, which is our JSON side of
- 2:34:26it. Then you dottrack, which is our next
- 2:34:29part of it. And you grab the title
- 2:34:31section. So, a little bit more
- 2:34:33complicated JSON, but honestly, it's a
- 2:34:35pretty easy because you can just drag
- 2:34:36and drop um based off of what
- 2:34:39expressions you have and everything like
- 2:34:41that over here to the side. So, I
- 2:34:43typically kind of use the the schema
- 2:34:45view for this most of the time. Could
- 2:34:47use the JSON view. I don't know why I've
- 2:34:49just kind of defaulted to schema over
- 2:34:51time. Each of these tell a different
- 2:34:52story. Schema will give you just one
- 2:34:54example and the different data types
- 2:34:55behind it. table is really good when
- 2:34:57you're working with particular tabular
- 2:34:59data which we haven't even really
- 2:35:00covered data tables and sheets and air
- 2:35:03table yet in this course but I use the
- 2:35:05table view for that and then JSON as
- 2:35:07well gives you a lot of different
- 2:35:08examples so it can be really helpful to
- 2:35:10see everything that is going on um again
- 2:35:13you can see data types JSON gives you
- 2:35:16multiple examples table is really good
- 2:35:18for tabular data um I'm trying to think
- 2:35:21anything else you can also grab like
- 2:35:23specific dates and times and things like
- 2:35:25that With JSON, there's a lot of
- 2:35:27different shortcuts and things that you
- 2:35:28can combine together. Um, maybe I'll
- 2:35:31show you this really quick. You can also
- 2:35:34have something, let's say we want to do
- 2:35:35full name. You can combine multiple
- 2:35:37together. So, what we might want to do
- 2:35:39for the string is have this over here.
- 2:35:43And uh, we'll grab next side.
- 2:35:50It's actually,
- 2:35:56you can see I'm just putting both of
- 2:35:58these example arrays over here for Trent
- 2:36:01Resner. And I just put a space in
- 2:36:03between that. You can also add with
- 2:36:06math. So,
- 2:36:08for example, I'm just going to go over
- 2:36:10here and choose this as a number. Oops,
- 2:36:12I accidentally deleted it. We'll do this
- 2:36:14as a number.
- 2:36:16So you can see it automatically changed
- 2:36:18that to the number side of things. But I
- 2:36:20can go over here and say plus and then
- 2:36:22over here just going to grab
- 2:36:28that and we'll put this over here. So
- 2:36:30when you're using strings and you want
- 2:36:32to combine them together, make sure that
- 2:36:33you have these like double curly
- 2:36:35brackets on the outside. Put a space and
- 2:36:37then put that. But when you're adding
- 2:36:38numbers together, you have to do this
- 2:36:40all with inside one curly bracket like
- 2:36:43this and just add them in between. And
- 2:36:46you'll see we get 150 because we have
- 2:36:49100 over here and then we're adding 50.
- 2:36:52Run this one over here. We're getting
- 2:36:53tent reser. Um so first part is the tren
- 2:36:56or tent in this example then reser. So
- 2:36:59space um you can also get now. So we'll
- 2:37:03say like time just go over here and say
- 2:37:08and this should be an expression by the
- 2:37:09way.
- 2:37:12now like this
- 2:37:15and you can see it gets the exact time
- 2:37:17stamp as a datetime right in over here.
- 2:37:20So you can see we have all this together
- 2:37:24and uh yeah so what I'd say for your
- 2:37:27example over here and we're not going to
- 2:37:29walk through it but really mess with
- 2:37:32these data types and uh put this over
- 2:37:34here example to try
- 2:37:37is like
- 2:37:39example
- 2:37:41create more data
- 2:37:45within edit set
- 2:37:48create an array
- 2:37:52I'll say create an advanced array
- 2:37:57with five elements
- 2:38:00and then
- 2:38:02grab specific pieces of information
- 2:38:06of information with an edit set.
- 2:38:11I think that's probably going to be a
- 2:38:12good example on the side of things. No
- 2:38:14need for me to kind of do this with you
- 2:38:17guys. I think it's pretty
- 2:38:18self-explanatory how to do it, but
- 2:38:21really get these data types down because
- 2:38:23it's going to help you a lot even
- 2:38:24outside of nan. All right, so now that's
- 2:38:28pretty much the end of this specific
- 2:38:30lecture. We're going to jump into some
- 2:38:33more of the basic nodes um kind of like
- 2:38:35added set things that you're going to
- 2:38:37use in almost every workflow or a good
- 2:38:40amount of those next. So we'll take a
- 2:38:41look at like if as well as filter,
- 2:38:43switch, merge, and much more. I I
- 2:38:46believe it's going to be a bit of a
- 2:38:47lengthier section. So before we jump in
- 2:38:48there, obviously make sure you're all
- 2:38:50set, you have some water, you have some
- 2:38:52snacks, and uh you're eager to learn
- 2:38:54because it's going to be quite a long
- 2:38:57section. So I will see you guys right
- 2:38:59there and keep up the awesome work.
- 2:39:01Okay, so we've covered a decent amount
- 2:39:03so far in this course and I think it's
- 2:39:05time to cover some of the most essential
- 2:39:07nodes that you need to know. We're going
- 2:39:09to cover things that split up your
- 2:39:12workflows. For example, an if else
- 2:39:13branch where if a condition is met, it
- 2:39:16goes in one direction or if a condition
- 2:39:18is not met, it goes into another
- 2:39:20direction. Uh things like filtering
- 2:39:22where we have x amount of items in a
- 2:39:24workflow hits that filter and it
- 2:39:26decreases it. And merges where you have
- 2:39:30multiple flows and they merge together
- 2:39:32into one direction. There's a ton of
- 2:39:35different nodes we're going to cover in
- 2:39:36this section. I think like 10 or so. And
- 2:39:39yeah, without wasting time, let's jump
- 2:39:41into it because we also have a few
- 2:39:43different example workflows we'll build
- 2:39:44here at the very end of it. All right,
- 2:39:46so the first one that we need to cover
- 2:39:48is our edit set node. And you might say,
- 2:39:51well, I've already learned a lot about
- 2:39:53this node. And that is 100% correct. But
- 2:39:57there is a few different use cases of
- 2:39:59why edit set is really impactful. And I
- 2:40:03just wanted to cover those first before
- 2:40:05we jump into these other notes. So why
- 2:40:07is edit set helpful? Well, the first
- 2:40:10thing that you can do with edit set is
- 2:40:12rename a field.
- 2:40:14So let's go over here and I'll show you
- 2:40:16this example. Let's say for example you
- 2:40:18had something as name and I'll just put
- 2:40:21name as Ryan over here. However, you
- 2:40:24decide at some point and maybe this is
- 2:40:26like an item a little bit earlier in we
- 2:40:28have this name but you say hey in the
- 2:40:31final output this name over here should
- 2:40:34actually just be first name. And guess
- 2:40:36what? We have officially
- 2:40:39cleaned this up. And you can see we have
- 2:40:41first name like that. I showed you in
- 2:40:44the last lecture, we could combine
- 2:40:46multiple inputs into one specific field.
- 2:40:50So that is another option that is quite
- 2:40:53popular. Another thing is just cleaning
- 2:40:56up your data. Sometimes you might have,
- 2:40:59you know, 10 or 15 different fields. So,
- 2:41:01say, imagine you have a spreadsheet and
- 2:41:03you don't care about having all the
- 2:41:05fields. Like, let's imagine you have a
- 2:41:06name. We'll have income. Let's say I
- 2:41:09make 5,000, which obviously I don't. Um,
- 2:41:12we'll put over here that is a number.
- 2:41:14And we'll add one more thing. Let's say
- 2:41:17we add in
- 2:41:19nan YouTube videos. Nan YouTube vids.
- 2:41:22And I have 75,
- 2:41:25which I believe this is video 75 if it's
- 2:41:27out in time. But really like I only care
- 2:41:31about name and income. I don't I don't
- 2:41:33care if someone made any on YouTube
- 2:41:34videos. Well, your edit set will allow
- 2:41:36you to do that because it only passes
- 2:41:38for the things that you clarify in over
- 2:41:40here. So you can see the option you have
- 2:41:42include other input fields if you create
- 2:41:44a field and this will put everything in
- 2:41:46over here, right? Including this one
- 2:41:49that's been relabeled. You can go over
- 2:41:51here and filter and choose selected
- 2:41:53fields all accept. So there's a lot of
- 2:41:55different options that you could
- 2:41:57specifically choose from over there. You
- 2:42:00could strip binary data as well, include
- 2:42:02type conversion or support dot notation.
- 2:42:05So reality what you want to use edit set
- 2:42:08first. You can re label data as I showed
- 2:42:11you over here. You can create new fields
- 2:42:13as I showed you as well. So like again
- 2:42:16I'll just do it one more time. We'll say
- 2:42:18income YouTube
- 2:42:21and let's just say for some reason we
- 2:42:23wanted to add our name and income. So
- 2:42:26you literally just can go over here.
- 2:42:28We'll do name and not name. Sorry. I
- 2:42:32meant to go over here and use a number
- 2:42:34and choose income and YouTube videos. So
- 2:42:37like for whatever reason you want to do
- 2:42:39that. Remember these need to be inside
- 2:42:41here as well. Um put that over here like
- 2:42:45that. There's other ways you could add
- 2:42:47too, but you can do some sort of
- 2:42:50modification to a field. You could put
- 2:42:51that over there. You can add in fields.
- 2:42:54You can exclude fields. Really helpful
- 2:42:56after a spreadsheet. I use this all the
- 2:42:58time. And you'll see a lot of people
- 2:43:00also use edit set for just testing
- 2:43:02purposes to create uh specific data. So
- 2:43:05that is our edit set. Next one we should
- 2:43:08talk about is our if node and if node is
- 2:43:12very very popular if you come from
- 2:43:14programming. If you are a programmer,
- 2:43:16you know about if else and that's
- 2:43:19essentially what we have in any end. So
- 2:43:21we have this if and you'll see we have a
- 2:43:24lot of different options. So we can go
- 2:43:26over here and have options for a string.
- 2:43:29So we have string variations. So we have
- 2:43:31number variations like if a number
- 2:43:33exists or not is equal to etc. We'll
- 2:43:36cover a lot more of these here in a
- 2:43:38second. We have date and time. We also
- 2:43:41have our booleans. Right? If you
- 2:43:43remember our true and false, well that's
- 2:43:45our booleans. We have array and we have
- 2:43:49object. Now object is quite simplified
- 2:43:51because it is a complex data type but
- 2:43:54array has a lot more interesting
- 2:43:56information such as the length of the
- 2:43:58array which is the number of items
- 2:43:59inside that specific array. So you can
- 2:44:02set specify that uh your boolean. So
- 2:44:04let's just cover some of these examples.
- 2:44:07We'll create an edit fields over here,
- 2:44:10an edit set, and we'll populate that
- 2:44:13into if. And let's take a look at this.
- 2:44:15This is the first time we've actually
- 2:44:17started uh adding in some cool logic
- 2:44:20into our workflows where our workflow
- 2:44:22will go in one direction or our workflow
- 2:44:24will go in other direction based off of
- 2:44:26the incoming item. So, let's take a look
- 2:44:29at it. First thing we should take a look
- 2:44:31at is let's do our string. And we'll set
- 2:44:35a string over here.
- 2:44:36We'll say this is a band and let's put
- 2:44:40in goose. Listen them a little bit
- 2:44:43earlier today. And we have our band
- 2:44:46being goose. So let's take a look at
- 2:44:48some of our stuff. First thing we're
- 2:44:50going to put our value one over here.
- 2:44:52And we'll put value two. And we'll say
- 2:44:54this is equal to goose. So if that is
- 2:44:57true, it goes into this branch. And then
- 2:44:59we could do some logic a little bit
- 2:45:01later on. And if it's false, it goes
- 2:45:04into this branch. So that is very
- 2:45:07simple, right? Like goose is equal to
- 2:45:08goose. Well, and what if it's not equal
- 2:45:11to? Well, goes into the false branch.
- 2:45:12And you can see in the output now we
- 2:45:14have two different sides. We have a true
- 2:45:16branch and we have a false branch. And
- 2:45:19one of the things that you'll find kind
- 2:45:20of interesting is when we start having
- 2:45:23control logic like an if statement, we
- 2:45:26can't pin our data. So you can see that
- 2:45:29pin icon is gone whereas it's available
- 2:45:32over here. So take a look at it once
- 2:45:35again. You do not have that particular
- 2:45:38option.
- 2:45:39All right. So going back into this over
- 2:45:42here, exists, does not exist, is empty,
- 2:45:44is not empty. So obviously we have
- 2:45:46values in this JSON.band. So these are
- 2:45:50going to exist and it's not empty. So
- 2:45:52you can see like for example is not
- 2:45:53empty. This helps depending on like when
- 2:45:56you have data coming through a workflow.
- 2:45:58In some weird cases, you're not going to
- 2:46:00have uh specific data and you would want
- 2:46:02to filter based around that. Very common
- 2:46:04if you're working with databases and
- 2:46:06things like that, but um you're quite
- 2:46:08early on in your NAN uh learnings. So I
- 2:46:11wouldn't focus primarily to about it,
- 2:46:13but something worth bringing up. Uh we
- 2:46:15already covered is equal to not equal to
- 2:46:17contains. So contains is interesting. So
- 2:46:20obviously goose is going to contain
- 2:46:22goose. But if we do contain all we have
- 2:46:26to do is look for something in it. So
- 2:46:28let's imagine we're looking for the
- 2:46:29string OS within goose. Well, it's true
- 2:46:32because OS is OS right over here. And
- 2:46:35that means goose contains OS. Uh if we
- 2:46:39keep going through does not contain well
- 2:46:41this will turn false because OS is
- 2:46:43available in there. Starts with is the
- 2:46:45beginning of a string. So this will turn
- 2:46:47false because uh goose does not start
- 2:46:50with OS. However, if you just start un
- 2:46:52with a G, it's going to be true because
- 2:46:54that is the first letter. But you can
- 2:46:56obviously add in others as well. Let's
- 2:46:58say goo like this. Obviously, it will
- 2:47:00still be true. The opposite does not
- 2:47:03start with ends with also kind of the
- 2:47:05opposite, right? And this is at the very
- 2:47:07end of our particular string. This is
- 2:47:10going to turn false. But if we go over
- 2:47:12here and say E, we know it's going to be
- 2:47:15true because it ends in O. And again, it
- 2:47:19could be any of these variations over
- 2:47:21there. does not end with you have that
- 2:47:24reg X I wouldn't really worry about reg
- 2:47:27X on the side of it reg X is pretty
- 2:47:30powerful and if you want to use reg X at
- 2:47:33this point I would probably just
- 2:47:35recommend prompting ALM but this is just
- 2:47:37from uh complicated ways of matching and
- 2:47:42regex is really popular within
- 2:47:43programming in fact when I did a Python
- 2:47:45video on regex it was like an hour and a
- 2:47:47half long I didn't even memorize all
- 2:47:49these regex codes I just literally
- 2:47:51looked them up So a lot of the things
- 2:47:53that you're particularly probably going
- 2:47:55to search for are going to be in most of
- 2:47:57these where it's like is empty all the
- 2:47:59way down to does not end with these are
- 2:48:01some rare obscure cases we're going to
- 2:48:03look at specific regex. So that is the
- 2:48:06string side of it. What I want to do now
- 2:48:08is cover integers. So I'm just going to
- 2:48:11go or sorry numbers and we'll put
- 2:48:13something called like Spotify plays
- 2:48:16and let's say Spotify plays is a
- 2:48:19million. So, we're at a thousand now.
- 2:48:22We're at a million over there. Pretty
- 2:48:24sure. Let me just double check. Yeah,
- 2:48:26we're good. Cool. So, we have Spotify
- 2:48:28plays and let's jump into our next one.
- 2:48:32So, this is number again. We talked
- 2:48:34about exist versus not empty. We can put
- 2:48:37our number over here.
- 2:48:40And
- 2:48:42yeah, so we'll go on that side of things
- 2:48:44and just take a look at Spotify plays.
- 2:48:46So, I'll drag and drop that over here.
- 2:48:49And uh looks like I have an issue. And
- 2:48:53you know what? I do have an issue
- 2:48:55because this is still a string. I should
- 2:48:56have checked that. You can see now it is
- 2:48:59fixed. And you know this is would be a
- 2:49:01common example. If you have a workflow,
- 2:49:02you get an error like what is going on?
- 2:49:05I I can't solve it. Well, it's because
- 2:49:06of the data type. So now we can see our
- 2:49:10true branch is as well as 1 million. So
- 2:49:14another interesting thing to add on when
- 2:49:16we're using if else everything gets
- 2:49:18dragged along with it. You can see over
- 2:49:21in our edit set we had both a band as
- 2:49:25well as Spotify plays and those are in
- 2:49:27our output. You can see that in the
- 2:49:28schema and well both of that is passed
- 2:49:31into our true branch. Just to skim
- 2:49:34through these you have equal to not
- 2:49:35equal to you have greater than or less
- 2:49:38than. So with the greater than side of
- 2:49:40things, this is actually going to turn
- 2:49:41false because they are actually equal.
- 2:49:44And it's specifically looking for a
- 2:49:46number that is greater than a million.
- 2:49:48And because a million is equal to it,
- 2:49:50that is not the case. Same with is less
- 2:49:52than. A million is not a less than
- 2:49:54million. It's equal. So that'll also
- 2:49:56turn false. However, if you want to have
- 2:49:58it where it's greater than or equal to
- 2:50:00or less than or equal to, you have those
- 2:50:02options in here. Again, something that's
- 2:50:04pretty popular with programming. And
- 2:50:06those will both return true over there
- 2:50:09for either of them. And then we'll just
- 2:50:10go over there and choose stats.
- 2:50:14Great. Now, let's add on another in
- 2:50:17here. And we'll say like live dates.
- 2:50:21We can put something over here. And
- 2:50:23we'll want to put this as a string as
- 2:50:26well. And let's say 01 01 2026.
- 2:50:34and we'll actually remove those single
- 2:50:35quotes and you'll see we have that. And
- 2:50:39let's take a look at changing that up.
- 2:50:41So our live date over here, we'll take a
- 2:50:44look at date and time. And we'll start
- 2:50:46off with is not empty just to show you
- 2:50:49that it's not empty. It's true. Great.
- 2:50:51Uh we'll say is equal to and we can put
- 2:50:55in our exact date. So we can go over
- 2:50:57here and choose this and we'll grab
- 2:51:00specifically this over here.
- 2:51:04And this actually shows as false. And
- 2:51:07that is because this date over here is
- 2:51:09formatted differently. You can see 0101
- 2:51:122026. Whereas this one over here, take a
- 2:51:15look at the date format. We actually
- 2:51:16have that timestamp over here like that.
- 2:51:19And by default, it has that. So this
- 2:51:21isn't the approach to write in specific
- 2:51:24dates. And I'll show you that a little
- 2:51:25bit later on how we could solve this
- 2:51:28particular date issue. So that does
- 2:51:31throw up or throw some confusion into
- 2:51:33people. And actually has a specific date
- 2:51:35node. So we'll cover that here in a
- 2:51:37little bit, but you can see we have is
- 2:51:39after, is before, is after equal to or
- 2:51:42is before, equal to. Again, we'll cover
- 2:51:44dates. I believe I actually have that in
- 2:51:45this section too. Yeah, that's one of my
- 2:51:48next nodes we're going to cover. So
- 2:51:50don't worry about that side of it. Okay.
- 2:51:52Uh we're going to cover really quick
- 2:51:54booleans. This is super easy. So we'll
- 2:51:57say
- 2:51:59I don't know still touring. We'll say
- 2:52:01like still
- 2:52:04touring. And obviously Goose is still
- 2:52:05touring as of now. We'll go over here
- 2:52:08and do boolean. And we'll say that is
- 2:52:11true.
- 2:52:13Great. We have that. And then we can
- 2:52:16just go over here and do still touring.
- 2:52:19We'll go into our boolean
- 2:52:22is true. And it goes to true branch.
- 2:52:25It's false.
- 2:52:27And honestly, like any ant team probably
- 2:52:30should have just kept it there because
- 2:52:31you have is equal to and is not equal
- 2:52:33to. But personally, I would just
- 2:52:35recommend staying that is true is false.
- 2:52:38Then we have our array side of it. And
- 2:52:40really array is just based off of the
- 2:52:42lengths. So you can just put array.
- 2:52:45We'll say like songs.
- 2:52:47It'll say songs.
- 2:52:50We could just fill this out over here.
- 2:52:52Here you can put like your direction
- 2:52:57site.
- 2:52:59Just put those two like that. Cool.
- 2:53:03And uh actually, you know, this is
- 2:53:05probably a string right now. I need to
- 2:53:07fix that.
- 2:53:08Good call out.
- 2:53:12And I need to put a comma.
- 2:53:15Whoops. I do have an error. And that's
- 2:53:17because the other single quote. Third
- 2:53:19times the charm, right? Boom. There we
- 2:53:21go. Great. So now we can just do some uh
- 2:53:25if else based off of our array. So you
- 2:53:28can see JSON songs array.
- 2:53:32So what we can do is if it contains a
- 2:53:34value,
- 2:53:36we'll say contains your direction.
- 2:53:41And you'll see it goes into the true
- 2:53:43branch. If I do your directions, it's
- 2:53:45going to be false. It's looking for that
- 2:53:47exact case.
- 2:53:49Then we can go back over here. We'll
- 2:53:51change this out and say is length is
- 2:53:53equal to and this time it's going to
- 2:53:55look for a length of two for it to be
- 2:53:57true. And it is because we have two
- 2:53:59songs in here and that's why it's true.
- 2:54:01So you can array interesting because you
- 2:54:03can look and filter based off of
- 2:54:05multiple things whether it is strings or
- 2:54:08numbers.
- 2:54:10Um you can go also over here length not
- 2:54:13equal to and it's the same as earlier
- 2:54:15the length greater than or less than. So
- 2:54:17this is looking just absolutely is this
- 2:54:19greater than something or less than
- 2:54:21whereas then or equal to if the values
- 2:54:22are equal or not. So when it's like less
- 2:54:25than or equal to two that'll be correct.
- 2:54:27However, if you go over here and say
- 2:54:29less than two or greater than two both
- 2:54:31those are going to go into that
- 2:54:33particular false branch. You'll see that
- 2:54:35there's other things for objects. It's
- 2:54:36literally just asking if it exists or
- 2:54:38not. Uh you can also convert types when
- 2:54:41it's required. You have this option over
- 2:54:43there. And you can ignore case. So, let
- 2:54:46me show you an example of ignore case.
- 2:54:47Let's go first and go into our array and
- 2:54:51we're going to do a contains and we're
- 2:54:52going to go your direction like this.
- 2:54:55And you'll see even though we have your
- 2:54:56direction here as well as right over
- 2:54:58here, it's going to show false. You'll
- 2:55:01see both populate as false. Why? This is
- 2:55:04your direction. So, if you think someone
- 2:55:06has some bad data in some sort of
- 2:55:08capacity,
- 2:55:10there you go. Your direction now is
- 2:55:13matching. It ignores the capitalization
- 2:55:16associated with it. This was like a
- 2:55:18super fast walkthrough of the if node.
- 2:55:22And like all the nodes I'm going to
- 2:55:24cover here, I have detailed videos,
- 2:55:26sometimes 20, 30, 40 minutes on each of
- 2:55:28these to be respectful for your guys
- 2:55:31time watching this course. I'm not going
- 2:55:33to go over every single example. But if
- 2:55:36you really want that detail of, hey, I
- 2:55:38want to know everything about the if
- 2:55:39node. I want to know everything about a
- 2:55:41filter note or a date and time.
- 2:55:43just watch the individual videos on the
- 2:55:45channel. I go into greater detail, but
- 2:55:47there's so much to cover in one video.
- 2:55:48Um, I'm not going to do 40 minutes of if
- 2:55:51within this course. So, the next one I
- 2:55:54wanted to do really fast is switch. So,
- 2:55:57switch is a little bit more of a leveled
- 2:56:00up if because essentially what you can
- 2:56:02do is you can create multiple branches
- 2:56:06whereas if is stuck with true or false.
- 2:56:09So if I go into switch, you'll notice I
- 2:56:12keep adding out routing rules and we
- 2:56:14have route one, we have route two, we
- 2:56:17have route three and you know 012 just
- 2:56:20doesn't doesn't hit it. So we can go
- 2:56:22over here and we can rename these
- 2:56:25outputs
- 2:56:26and let's go back to some of the music I
- 2:56:28listen to. We could say one of these
- 2:56:30outputs is rock or metal
- 2:56:34or
- 2:56:36bluegrass.
- 2:56:39miscellaneous.
- 2:56:45Okay. And now you can see these are
- 2:56:48relabeled. We have rock, metal,
- 2:56:49bluegrass. We can add in an edit set.
- 2:56:52And let me show you how this works. So
- 2:56:53we'll go over here. We'll just say a
- 2:56:56genre.
- 2:57:00Go over here. We'll say artists first.
- 2:57:03Throw in good old Billy Strings.
- 2:57:06And then we'll go in and say genre
- 2:57:11but bluegrass
- 2:57:13bats. So pretty basic two two strings
- 2:57:16over here artist and genre. We go into
- 2:57:19our switch and then we're going to look
- 2:57:21for this. We're going to say genre is
- 2:57:24equal to rock. So we'll say rock over
- 2:57:27here. Do the same thing over here. Is
- 2:57:30the genre equal to metal?
- 2:57:36And actually, we don't need this third
- 2:57:38one over here. Because what I like doing
- 2:57:40is if these conditions aren't met, we
- 2:57:43can actually go into an add option and
- 2:57:45create some sort of fallback output. So
- 2:57:49none, you can say extra output, output
- 2:57:51rock, output metal. I always call it an
- 2:57:53extra output over here. So items will be
- 2:57:55sent to the extra separate output. You
- 2:57:58can also rename that fallback output.
- 2:58:00And I can just rename it blue grass or
- 2:58:02miscellaneous. So you can see since we
- 2:58:05have over here bluegrass and that
- 2:58:08doesn't fit rock or metal, it goes into
- 2:58:10this additional one over here. So that's
- 2:58:13just kind of your fallback. Now if I
- 2:58:15just wanted to say, hey, you know,
- 2:58:16bluegrass really should be its own genre
- 2:58:19over here. And we'll just say the other
- 2:58:23one's miscellaneous. So bluegrass like
- 2:58:26this.
- 2:58:27And uh rename that. And hey, again, we
- 2:58:31just want to keep this as miscellaneous.
- 2:58:33So now you'll see it populates under
- 2:58:35bluegrass. And now we have a fourth one.
- 2:58:38So pretty important that you set a
- 2:58:40fallback of some capacity. Otherwise,
- 2:58:42you're going to lose some sort of data.
- 2:58:44So highly recommend that you build out
- 2:58:47that as we talked about in the previous
- 2:58:49node, convert types when required.
- 2:58:52Probably highly recommend you do that as
- 2:58:54well if you have some capitalization
- 2:58:55issues. As I showed in the the previous
- 2:58:57node, you have the option for ignore
- 2:59:00case as well as convert type. So if your
- 2:59:02capitalization is going to be messed up,
- 2:59:04ignore case. And one interesting thing
- 2:59:06is this send data to all matching
- 2:59:08outputs. So let's say you have some sort
- 2:59:11of switch statement where hey an item
- 2:59:13could fit in multiple buckets
- 2:59:16and you know in music side of it there's
- 2:59:18artists that you know play a mixture of
- 2:59:22rock and bluegrass or metal and
- 2:59:24bluegrass or whatever else the case may
- 2:59:25be.
- 2:59:27So they might want to populate in each
- 2:59:28of these over here. So that's where this
- 2:59:31option would be send data all matching
- 2:59:33outputs. So if they match and matches
- 2:59:35multiple it goes over there. And yeah,
- 2:59:37that's kind of the basics of our switch.
- 2:59:40Ideally, you can really build this out
- 2:59:42and add a lot of different uh conditions
- 2:59:45around that. Okay, so our next thing is
- 2:59:49going to be very similar to our switch
- 2:59:52and if and this is going to be our
- 2:59:54filter. And our filter essentially what
- 2:59:56it does is it removes items based off of
- 2:59:59a filter. So, and we've already talked
- 3:00:02about some of the different rules within
- 3:00:04our if, you can see we have things for
- 3:00:06our string. So, if a string is equal to
- 3:00:09something, you see all this over here.
- 3:00:12Number, date and time, boolean, array,
- 3:00:15object. You can see we can convert types
- 3:00:17as well. We also have the ignore case.
- 3:00:20And we can start off with just a very
- 3:00:22basic filter. And why this helps is
- 3:00:26let's imagine you have 100 items in your
- 3:00:28workflow and you want to filter some of
- 3:00:30these out uh just based off a condition
- 3:00:32and it'll go down to 25 items. So I'm
- 3:00:35not going to give you that direct
- 3:00:36example, but what we'll do is we'll
- 3:00:39create an edit fields of an array and
- 3:00:42we'll split this out. So we'll go over
- 3:00:45here and we'll start off with just some
- 3:00:48numbers in an array. So, we'll just say
- 3:00:51random numbers, which are not
- 3:00:52technically random, but for purposes of
- 3:00:56this video, they are random numbers.
- 3:00:59We're going to go into an array and
- 3:01:01we're going to put a bunch of different
- 3:01:03values. So, say 55, 21, 66, 77, 22, 11.
- 3:01:10Done. I'm not caring too much about
- 3:01:12these numbers, but what we'll do is turn
- 3:01:16each of those from an array into a
- 3:01:18specific item. I do that with split out.
- 3:01:21So, it says start a list inside items
- 3:01:23into separate items. Again, this is very
- 3:01:26popular with arrays. Should probably
- 3:01:28execute the previous node. Pass that in
- 3:01:31over here. And we'll cover this also in
- 3:01:33this section, but you'll see now we have
- 3:01:35six particular items. Schema view
- 3:01:38doesn't really show that that well.
- 3:01:39table view does as well as JSON. So, as
- 3:01:43I mentioned earlier in the course,
- 3:01:44schema just pretty much shows you what
- 3:01:46data types you have. A table is really
- 3:01:48good for CSV data and JSON shows you a
- 3:01:51lot as well. So, okay, great. We have
- 3:01:53six different numbers now we can pass
- 3:01:55into this filter. Let's take a look at a
- 3:01:57number value. So, we'll say random
- 3:01:59numbers. If random number over here is
- 3:02:02less than, we'll say 25, we're going to
- 3:02:05filter that out. And then we're going to
- 3:02:07look at random numbers. If this is less
- 3:02:08than 25, we're going to keep it.
- 3:02:10Otherwise, we're going to filter it out.
- 3:02:12So, it kept 21, it kept 22, it kept 11,
- 3:02:15and it filtered out 55, 66, and 77. And
- 3:02:19you can see that we only have three
- 3:02:21items afterwards
- 3:02:23when we're only going to have the items
- 3:02:24that are kept. So, if we flip it and say
- 3:02:27we're going to only keep numbers that
- 3:02:29are greater than 25, you can see 55, 66,
- 3:02:32and 77. So let's say we want to change
- 3:02:35this up and say greater than 55. We only
- 3:02:37keep 66 and 77 where we disregarded
- 3:02:40these four other items. Pretty powerful
- 3:02:43on that. And then we can also add in
- 3:02:45additional condition as well. So we can
- 3:02:48say it's greater than 55 and less than
- 3:02:5170. So we can use either an and or. So
- 3:02:55we're going to use and in this example.
- 3:02:57So, we're going to copy the same exact
- 3:02:59thing and we're going to say number is
- 3:03:02less than and we're going to say less
- 3:03:04than
- 3:03:0575.
- 3:03:08And you'll see we only have one.
- 3:03:10However, if we do or that means one of
- 3:03:13these conditions has to be true. So,
- 3:03:16technically the number has to be greater
- 3:03:18than 55 which will populate the 66 or it
- 3:03:22has to be less than 75. So, that's less
- 3:03:25than 75. it'll populate less than 75.
- 3:03:28This is false for both. So it'll still
- 3:03:30be disregarded. This hits the criteria
- 3:03:32as well. And this hits it. So you can
- 3:03:34see it kept all of these over here
- 3:03:37because all these numbers are either
- 3:03:39greater than 55 or less than 75. Uh we
- 3:03:43could change this up as well. I will say
- 3:03:46is greater than um we'll actually make
- 3:03:50this to 70.
- 3:03:53You can see it's all the same as well.
- 3:03:55Let me change this up. So, we're going
- 3:03:56to say it's greater than 55
- 3:03:59or is less than 20.
- 3:04:03So, this should get us a different
- 3:04:04number. So, 66, 77, and 11 because
- 3:04:08that's greater than 55, greater than 55.
- 3:04:11This is less than 20. You go to 55,
- 3:04:14right? It's not greater than 55 and it's
- 3:04:17not less than 20. Uh, this is not less
- 3:04:19than 20 over here, but it's greater than
- 3:04:21that. And 22 like that, too. So kept
- 3:04:24three of those disregarded and can or
- 3:04:27only one of these has to be true and
- 3:04:29every condition has to be true and you
- 3:04:30can see you can add more conditions as
- 3:04:32well depending on how complicated you
- 3:04:34want this filter to be and it's really
- 3:04:36great because you can limit the amount
- 3:04:38of results. Another thing that's kind of
- 3:04:39used within testing and we'll just
- 3:04:42briefly cover it is limit. So you can
- 3:04:44see it says restrict the number of items
- 3:04:47over here and you can see it says max
- 3:04:50items that you want to keep. So I am
- 3:04:53just going to remove this filter and
- 3:04:54we'll keep it in this workflow because
- 3:04:56you guys can download this workflow and
- 3:04:58I really don't want to ruin it for you
- 3:05:00guys. But we'll throw that over here.
- 3:05:02And actually you know what we are just
- 3:05:04going to copy that way you guys can
- 3:05:07follow along.
- 3:05:09And we'll just limit this. So this we
- 3:05:13can say limit items into three. And this
- 3:05:16escapes the first items over here. So
- 3:05:18you can see we have 55 216. It kept
- 3:05:21first three or we can keep the last
- 3:05:23items. So it'll keep the last three over
- 3:05:25here. We can change this number as well.
- 3:05:27Uh we can put this to five. Keeps five
- 3:05:30items. We can put this to two. If it's
- 3:05:32larger, it keeps everything. Let's say
- 3:05:33we keep 10. Can keep them all. So
- 3:05:36another way just to limit the amount of
- 3:05:38results that are passed through. I use
- 3:05:40limit a lot when it comes to testing. So
- 3:05:43if I don't want to send all my items
- 3:05:44throughout a workflow and I'm personally
- 3:05:46using testing in some sort of capacity,
- 3:05:48that's when I use uh limit. Okay. Next,
- 3:05:52I think what we should cover in a little
- 3:05:54bit greater detail is date and time. So
- 3:05:58going back into our date and time is I I
- 3:06:01did mention I was going to talk about
- 3:06:03this. You can also get a date pretty
- 3:06:06easily or format a date. So all you have
- 3:06:09to do on the side of things is use this
- 3:06:11node and you can see it says format a
- 3:06:14date. It does mention you could also do
- 3:06:17this over here with the schema. So your
- 3:06:19date.format.
- 3:06:20Uh so let me show you this example from
- 3:06:23earlier.
- 3:06:25We had this if I think this is it. Just
- 3:06:27double check. Yeah. So we'll grab that.
- 3:06:32We'll pass it over here. And let's say
- 3:06:34we want to pass in our dates. So I'm
- 3:06:37just going to execute the previous node
- 3:06:40and I will grab this live date. So now
- 3:06:43we can actually format this date and you
- 3:06:45can see we have 11 1 2026 but we have
- 3:06:48different formats and you can see
- 3:06:50depending where you're at people format
- 3:06:52dates differently. So this is month
- 3:06:54month day year year. You can change it
- 3:06:56where years are first. You can add in
- 3:06:58time stamps as well. So you can see that
- 3:07:01it's a specific time stamp. Uh you can
- 3:07:03go MS. It really obviously depends on
- 3:07:07what you particularly want to do. You
- 3:07:09have also custom formatting as well. And
- 3:07:12uh you can see we have more info over
- 3:07:14here. And this talks about all the
- 3:07:16different format options. And obviously
- 3:07:18I'm not going to cover that in today's
- 3:07:19video because that just crazy. But I
- 3:07:22have a full video talking about
- 3:07:23formatting and dates and things like
- 3:07:25that. You can also change the name of
- 3:07:28the date as well. You can include the
- 3:07:30input fields, which I would just
- 3:07:32recommend that you include this because
- 3:07:34it has everything else over here. You
- 3:07:36could literally just filter out in the
- 3:07:38future this specific live date. Um, what
- 3:07:42else? You could use the workflow time
- 3:07:43zone. I think that's pretty important.
- 3:07:47And you have opt other options too. So,
- 3:07:49this was just formatting. You could also
- 3:07:51extract part of a date, which I mean you
- 3:07:53could do that with JSON as well. You
- 3:07:55could add to a date. So you can have a
- 3:07:58date and say what's 180 days from now.
- 3:08:00So you can just say what's 180 days,
- 3:08:03right? Uh you can also get the current
- 3:08:06date which I would just use now anyways
- 3:08:08in JSON. Get the time between two
- 3:08:11particular dates. So if you want to find
- 3:08:14start date and end date, how many days
- 3:08:16are they between? You can grab that. You
- 3:08:18can round dates. And also the opposite
- 3:08:20of adding to a date, you could subtract
- 3:08:23from a date. also mentions this over
- 3:08:26here as the expression that you could
- 3:08:27utilize but you could also just throw
- 3:08:29this in the particular node. So if you
- 3:08:32are working with date and time which I
- 3:08:34think everyone does in some capacity I I
- 3:08:37don't really see this node talked about
- 3:08:39that often and obviously a lot of this
- 3:08:41could be just used with JSON you could
- 3:08:44just format your dates based around it
- 3:08:46but I kind of like having that
- 3:08:48particular node. All right. Uh, so we
- 3:08:51covered edit, we covered if, covered
- 3:08:53filter, date and time, we covered
- 3:08:55switch. So let's talk about another way
- 3:08:58that you guys could clean up your data.
- 3:09:01And what we have is a node for removing
- 3:09:04duplicates. So we'll see over here it
- 3:09:07says remove items repeated within
- 3:09:08current input. Remove items process in
- 3:09:10previous executions or clear
- 3:09:12dduplication history. For ease of use,
- 3:09:16what we're going to do is remove items
- 3:09:17repeated within a current input. We'll
- 3:09:19talk about the other one here in a
- 3:09:21second. So I want to go back over here
- 3:09:23and use this example. We're actually
- 3:09:25going to modify this a little bit. So in
- 3:09:28over here, what we're going to take a
- 3:09:30look at is pretend we have another
- 3:09:33duplicate. So let's say we have 11 and
- 3:09:36then we have 21. So a few duplication
- 3:09:4022. So few numbers that are duplicated.
- 3:09:42You can see we have nine total numbers.
- 3:09:46We split these out. So each of these
- 3:09:48numbers are an item. And then we're
- 3:09:50going to go into remove duplicates. And
- 3:09:53what we're going to do is compare
- 3:09:55selected fields. And I would just
- 3:09:57recommend that you choose a field. So
- 3:09:59I'm going to use random numbers over
- 3:10:01here. And this is only going to remove
- 3:10:03items repeated within the current input.
- 3:10:06And you can see this now goes down into
- 3:10:08six. We're at nine items now six. And
- 3:10:10the reason is the last three were
- 3:10:12duplicated. You can take a look at this
- 3:10:13table. 22, 21, and 11. So it removes
- 3:10:16that in here directly. Now this is where
- 3:10:19you need to be a little bit careful or
- 3:10:21uh this is kind of in your benefit as
- 3:10:23well. So if we actually choose remove
- 3:10:25items process in previous executions,
- 3:10:28imagine you have some sort of like a a
- 3:10:30unique identifier and you only want that
- 3:10:32identifier to go once through a
- 3:10:34workflow. Well, uh that is where this
- 3:10:37would take place. So remove items
- 3:10:40process and previous executions. If you
- 3:10:41don't want this item ever to be through
- 3:10:43this workflow again, which is rare that
- 3:10:45you choose that and then if you choose
- 3:10:48that, you'd want to have something uh
- 3:10:50for the clear the duty duplication
- 3:10:52history. So just one use case for
- 3:10:55example is let's say you want to I don't
- 3:10:58know reach out to people in your CRM
- 3:11:01once a month and you reach out to
- 3:11:04everyone and they have a unique
- 3:11:06identifier and well you want to reset
- 3:11:08that maybe one time a month you reset it
- 3:11:10automatically with this clear
- 3:11:11dduplication history. I don't know
- 3:11:13that's just something I thought of on
- 3:11:14top of my head. I don't use it that
- 3:11:16often but that is an option over there.
- 3:11:18And you can see disable dot notation or
- 3:11:21remove other fields if you want to use
- 3:11:22that. I just choose selected fields and
- 3:11:25go through there. Um, okay. So, we
- 3:11:28remove duplicates. Let's talk a little
- 3:11:30bit more about split out as well. I
- 3:11:33think it's time to talk about this. So,
- 3:11:35essentially what we're doing with split
- 3:11:37out is, and you hopefully you kind of
- 3:11:39figured this out by now. within an
- 3:11:42array. You have multiple items in over
- 3:11:44here like 55, 21, 66, 77, like discounts
- 3:11:48as one item currently, the array, but
- 3:11:50you could split this out and go from one
- 3:11:52item to many. And actually, if you take
- 3:11:54a look at the icon, that's literally
- 3:11:55what it's showing you. You have one item
- 3:11:57coming in and it builds out multiple.
- 3:11:59So, you just choose the field that you
- 3:12:01want to split out. You can also include
- 3:12:03other fields or selected other fields.
- 3:12:06So let's say for example I had I don't
- 3:12:09know what's going to be a good thing.
- 3:12:11We'll just say um
- 3:12:14I don't know random number ID. I don't
- 3:12:19know let's say like when you generate
- 3:12:22random numbers you have like an integer
- 3:12:24associated with it. So let's say the the
- 3:12:26repeat results in programming. I'll just
- 3:12:27say like 11 on the side of it. So we
- 3:12:30have this random number ID. It's kind of
- 3:12:32bizarre, but I think we can throw that
- 3:12:35in over here and we'll include all their
- 3:12:38fields. So now you can see 11 is
- 3:12:40associated with each of these where
- 3:12:43earlier we had 11 once and then this
- 3:12:45array. So hopefully that kind of makes
- 3:12:47sense as an example. Um 11's kind of
- 3:12:50attributed to each of these and we can
- 3:12:51just pass them like that. You could also
- 3:12:54choose selected other fields and choose
- 3:12:56one thing if you really want to. Um, so
- 3:12:58you can see if I want to grab that or
- 3:13:00that over here. This depends obviously
- 3:13:02if you have a lot of fields. So you can
- 3:13:04either choose all of them or select it
- 3:13:06as well. This will get the same exact
- 3:13:08results. Disable dot notations here.
- 3:13:10Again, destination field name. You can
- 3:13:12re label this and you say instead of
- 3:13:14random numbers, let's say randomly
- 3:13:17generated number.
- 3:13:21And uh yeah, that's essentially it. You
- 3:13:24have binary files, you can pass that
- 3:13:26through, too. But you can re label that
- 3:13:28and it's honestly a pretty easy node
- 3:13:31just to kind of walk through on that
- 3:13:33side of things. So I'm back another day
- 3:13:37recording. So if you see this shirt
- 3:13:39change that is why um we're going to
- 3:13:42continue to move forward with a few
- 3:13:44other nodes. I also made the choice to
- 3:13:48put some of the essential nodes in later
- 3:13:50parts of the course such as like when we
- 3:13:52start working with binary files because
- 3:13:54I think they'll make sense over there.
- 3:13:57Um but I still have three more to cover
- 3:14:00in this section and then also to
- 3:14:02workflows. So the next two nodes are
- 3:14:04going to be very similar. Uh they're
- 3:14:06going to be called agate as well as
- 3:14:08summarize and it's the opposite of split
- 3:14:10out. So if we go over here and we go to
- 3:14:13aggregate, you'll see it's combined a
- 3:14:15field from many items from a list into a
- 3:14:17single item. So I just want to populate
- 3:14:20this probably after split out just to
- 3:14:22show you how this works. So I'm just
- 3:14:24going to copy this over here and throw
- 3:14:26it in. And I'm just going to like that.
- 3:14:30And check this out. So in our edit
- 3:14:32fields, if you remember, we had this
- 3:14:34array on this random number ID. We
- 3:14:37actually split out the random numbers
- 3:14:39over here. And actually may execute this
- 3:14:41to refresh it. So you can see all these
- 3:14:43were split out over there. I'm not going
- 3:14:47to include this random number ID anymore
- 3:14:49as well. So I'm just going to remove
- 3:14:50this over here. I'm going to execute
- 3:14:52this step and
- 3:14:56hold on a second. Let's go over here.
- 3:14:59Okay. So we have our random numbers like
- 3:15:02that.
- 3:15:04And uh no other fields. That's why I
- 3:15:07have the error. And you can see in our
- 3:15:09table we have nine items over here. But
- 3:15:12when we go into aggregate we're going to
- 3:15:14do the opposite. So we're going to take
- 3:15:17those nine items and then populate a new
- 3:15:19field. So you can see we are back into
- 3:15:22one particular item essentially how we
- 3:15:24started. Right? If we go to our schema
- 3:15:26view, go to our schema view, these are
- 3:15:28nearly identical minus this random
- 3:15:30number ID which honestly we didn't
- 3:15:32really need for this example over here.
- 3:15:35Now there is a few other options that
- 3:15:37are worth mentioning. So first you can
- 3:15:39rename this field. A lot of the time I
- 3:15:41do find this helpful just keeping things
- 3:15:44clean. So you should be able to throw
- 3:15:46that in over here. Uh you can also merge
- 3:15:48lists include binary files as well. Keep
- 3:15:51missing and null values. So if your data
- 3:15:54is just gone and you want to still keep
- 3:15:57these uh you would put in this missing
- 3:16:00and no values field. So obviously I have
- 3:16:03all these numbers defined over here, but
- 3:16:05if that's the case that there's stuff
- 3:16:06that's missing, you would want to choose
- 3:16:08that. I find it helpful. So that is
- 3:16:11pretty easy. It's simple. You could also
- 3:16:15have all item data into a single list
- 3:16:18over there. But that's aggregate. And I
- 3:16:21don't use a aggregate actually as much
- 3:16:23as this other node. And uh why I use
- 3:16:26this other node, I just find there's a
- 3:16:27little bit more that you could do with
- 3:16:29it. And this is summarize over here. And
- 3:16:33with summarize essentially what we could
- 3:16:36do is you have different types of
- 3:16:38aggregations. So like this aggregate on
- 3:16:42steroids is essentially summarize.
- 3:16:46And you can see we have append average
- 3:16:48concatenate count count unique max min
- 3:16:51sum. So, we're going just going to
- 3:16:53literally copy what we have over here
- 3:16:55and we're going to walk through a few of
- 3:16:56these different examples and also kind
- 3:16:58of explain why this node should probably
- 3:17:01used a lot more than aggregate or an AN
- 3:17:04team could should probably combine these
- 3:17:06together. Um, I honestly think that's
- 3:17:08probably the best approach, but it's
- 3:17:09probably too late because of just how
- 3:17:11workflows are out there. All right, so
- 3:17:13we're just going to execute this step.
- 3:17:14Again, I'm just going to remove this
- 3:17:16random number ID just to keep things
- 3:17:17clean. And uh we'll split this out. And
- 3:17:22now we go to the summarize. And let's go
- 3:17:24through some of these aggregations. And
- 3:17:26you could think of this as like
- 3:17:28different tasks that a data analyst or a
- 3:17:31data scientist would perform on a data
- 3:17:33set. So you might say like, oh, how many
- 3:17:35items are in here? And well, there's
- 3:17:38nine. And you can see it automatically
- 3:17:40creates count random numbers. So we see
- 3:17:42account and then it populates in front
- 3:17:44of random numbers. So I think it's
- 3:17:45pretty helpful that we already rename
- 3:17:47it. We can also find the average. So you
- 3:17:50can see there's 34 over here. You can
- 3:17:53count unique. So how many of these
- 3:17:55numbers are truly unique or not? And you
- 3:17:58can see six. We have a few different
- 3:17:59duplicates. What's the maximum over
- 3:18:02here? What is the minimum?
- 3:18:05What is the sum? Again, just something
- 3:18:09really easy that you could populate in
- 3:18:11two seconds to find some statistics.
- 3:18:13Obviously, there's other data points I
- 3:18:15wish that were in here like median. Um,
- 3:18:17maybe that's helpful thinking, but
- 3:18:20really it's like, okay, why
- 3:18:23why does this matter? Like, you keep
- 3:18:26saying summarize is better than
- 3:18:28aggregate. Well, what happens sometimes
- 3:18:30I want to send all of my items to our AI
- 3:18:34agent. One of the ways that we could do
- 3:18:36this actually is go into concatenate.
- 3:18:39And what's really nice is we have
- 3:18:40different options on how to concatenate
- 3:18:42all these numbers. All right. So you can
- 3:18:44see there's different options to how we
- 3:18:46would want to concatenate. So by just
- 3:18:48putting a comma we put all this together
- 3:18:50like this. You can also put comma and a
- 3:18:53space. And you can see now we have a
- 3:18:54little bit more formatting associated
- 3:18:56with that. Then you can also put all
- 3:18:58these on new lines. You'll see slashn
- 3:19:00that stands for a specific new line.
- 3:19:04Then we have none. So this is just going
- 3:19:06to put everything all together. I don't
- 3:19:08really use this that often with none. We
- 3:19:10have space and you can see all these are
- 3:19:12space like that. And then we have other
- 3:19:14which you can define whatever separator
- 3:19:17you want. And you can see like for
- 3:19:19example I just put three dashes and then
- 3:19:21there's the dashes like that. So
- 3:19:22sometimes I have a bunch of different
- 3:19:24items and I want to populate these
- 3:19:26within let's say for an example an email
- 3:19:28newsletter. uh summarize will allow me
- 3:19:30to do that like really really easily and
- 3:19:32then apply the formatting where I want
- 3:19:34to where aggregate really doesn't give
- 3:19:36me that option to do that and uh again
- 3:19:39just look at concatenate where we're
- 3:19:41combining all these together concatenate
- 3:19:43them and we can just specify however
- 3:19:45format we want we also do have the
- 3:19:47option append over here and you can see
- 3:19:50all these are together like that um and
- 3:19:53you can take a look at the table view
- 3:19:55this is essentially what we've already
- 3:19:57had go back over here just to show you
- 3:20:00right 0 through eight this is an array
- 3:20:02we have all this over here again just
- 3:20:05going we have specific array
- 3:20:09cool so you can also include empty
- 3:20:11values if you want there's other options
- 3:20:13so disable nitation output format um so
- 3:20:16you can each split into separate item or
- 3:20:18all splits into a single item and you
- 3:20:21have ignore items with valid fields to
- 3:20:23group by um so you can also group by
- 3:20:26specific things as necessary But there's
- 3:20:28a lot more nuances associated with this.
- 3:20:30I just wanted to share this with you
- 3:20:32guys uh because it's really really
- 3:20:35impactful. All right, the last node and
- 3:20:38and actually with this node itself,
- 3:20:40we're going to have to grab our manual
- 3:20:42trigger just because it does bug out if
- 3:20:45you don't have this. And this is going
- 3:20:47to be the merge node. And merges are
- 3:20:51used all the time by people in data
- 3:20:54because what ends up happening is at
- 3:20:57least in a database you have data coming
- 3:20:59from multiple tables and you want to
- 3:21:01combine this together in some sort of
- 3:21:03report and obviously you're like well
- 3:21:05that doesn't matter for any end. Well
- 3:21:07kind of does because in any end often
- 3:21:10you're going to have multiple branches
- 3:21:12in a workflow and you're going to have
- 3:21:14to merge them together. So why this
- 3:21:17happens? So first off in nan itself
- 3:21:20sometimes you're going to have a
- 3:21:22decision logic like an if else and your
- 3:21:24workflow will split into multiple parts
- 3:21:27sometimes it can be really difficult to
- 3:21:29access data a little bit earlier on in
- 3:21:31the workflow. So what I tend to do is
- 3:21:34from I have a data point earlier in a
- 3:21:36workflow I'll create another line and
- 3:21:38then merge it post everything going on.
- 3:21:41I know that doesn't really make sense
- 3:21:43right now because we've gone through a
- 3:21:44lot of very basic examples, but I
- 3:21:46promise you like if you want to access
- 3:21:48data that's a little bit earlier in your
- 3:21:50workflow and sometimes you can't access
- 3:21:52it with JSON, merge is going to be your
- 3:21:54best friend. In addition, sometimes
- 3:21:56you're going to have to merge from
- 3:21:57different sources. Like merge is a very
- 3:22:00important skill to have if you want to
- 3:22:01build out um some great workflows. So
- 3:22:05obviously there's a lot going on with
- 3:22:07merge and I do want to also show you a
- 3:22:10small bug within merge 2 that I hope
- 3:22:12that any end team does eventually solve.
- 3:22:15I haven't flagged this to them but I
- 3:22:17will bring that up. So first let me show
- 3:22:20you how this is done properly. We're
- 3:22:22going to just create uh two different
- 3:22:24data points over here. We're going to
- 3:22:26say edit fields. We're going to do this
- 3:22:29twice and we're going to start off with
- 3:22:31the the most basics of merges and we're
- 3:22:34going to do something called append. And
- 3:22:36if you come from the data world, this is
- 3:22:37union. Essentially, what we're doing is
- 3:22:39stacking data on top of each other. So,
- 3:22:41let's go over here and we're going to
- 3:22:42create two long runs. So, one of my
- 3:22:46favorite sports is running. And uh when
- 3:22:48you're doing training, you're going to
- 3:22:49have to do long distance runs. Today,
- 3:22:51for recording this video, I did 30
- 3:22:53miles. Last weekend, my long run was 19
- 3:22:56miles. It's completely different long
- 3:22:58run. That one was 19 miles on the road.
- 3:23:01Today was on the trail. So we have both
- 3:23:04of our long runs over here. And you know
- 3:23:06what? Again, imagine like we have a lot
- 3:23:08more items of trail runs over here, a
- 3:23:10lot more items of road run. We actually
- 3:23:12want to merge these together. And real
- 3:23:16world, you can imagine maybe I have a
- 3:23:17spreadsheet with just trail runs, a
- 3:23:20spreadsheet with just road running. And
- 3:23:23now I want to combine this together over
- 3:23:24there. Again, you might say like, well,
- 3:23:26you could just have had that in general.
- 3:23:28Sure, but trying to just give you an
- 3:23:30idea. All right, so you can see and
- 3:23:33these pretty basic. We have long run 30,
- 3:23:36etc. Why we need this? Let me just
- 3:23:38populate this over here and execute
- 3:23:41this. You'll see that we have um and
- 3:23:44that's actually another good point. Make
- 3:23:46sure when you're using append, these are
- 3:23:49the exact same because you'll see I have
- 3:23:51long runs and then long run. And if
- 3:23:54these aren't the same exact value,
- 3:23:57you'll have undefined as the other one.
- 3:23:59So super important that you make sure
- 3:24:03are the same. Watch what happens now.
- 3:24:06Great. So we have a long run. We have 30
- 3:24:09and then 19. So these are stacked
- 3:24:10together. We have two items over here.
- 3:24:12So we have the item over here. We have
- 3:24:14the item over here. And we just stacked
- 3:24:16them. So they're individual items. But
- 3:24:17now we have two items with our specific
- 3:24:21append. And this is also kind of where a
- 3:24:24bug in Nan is. So let me show you this
- 3:24:27bug because I've encountered it a few
- 3:24:28different times. And I was really hoping
- 3:24:30this was something that would be solved
- 3:24:31in V2. So imagine we're doing some sort
- 3:24:34of testing. I'm not using a trigger over
- 3:24:36here. And I know some people are going
- 3:24:38to probably say like should always have
- 3:24:39a trigger even with testing purposes or
- 3:24:42making up videos. That's fine. So uh we
- 3:24:46go back into this merge over here. Try
- 3:24:48to execute this step. Now this doesn't
- 3:24:50the merge doesn't work. it only grabs
- 3:24:52the bottom section.
- 3:24:54You can see
- 3:24:57that doesn't work. So, if if we put our
- 3:25:00manual over here, now we get the two
- 3:25:03items. So, if you're doing some sort of
- 3:25:04testing and you're like, man, why is my
- 3:25:07merge not working? Um, make sure that
- 3:25:11you have a trigger over here. I learned
- 3:25:13this the hard way and it's it's
- 3:25:14embarrassing to say this. uh my
- 3:25:16full-time job, we had a hackathon with
- 3:25:18some of our customers and essentially
- 3:25:22and I I don't do AI consulting
- 3:25:24full-time. I work at a fintech as a data
- 3:25:26scientist, but ideally one of our
- 3:25:28customers was building out an AN
- 3:25:31workflow and we're trying to get a merge
- 3:25:33to work and I didn't have a trigger here
- 3:25:36and I was getting these results on the
- 3:25:38end. I'm like obviously the one item not
- 3:25:40too. I'm like what is going on? Why can
- 3:25:42I not get this to work? And I literally
- 3:25:44tried to spend like 15 minutes trying to
- 3:25:46solve the issue. I'm like, I know how
- 3:25:48bridge works, just couldn't get it to
- 3:25:50work. And then I threw on a manual
- 3:25:53trigger for testing and it worked. So, a
- 3:25:55very weird bug that's in any N. I need
- 3:25:58I'll bring it up to the team and see if
- 3:26:00they do anything about it. But if you do
- 3:26:02have that issue, just make sure in
- 3:26:04testing you have that. There's other
- 3:26:06options as well for the merge node, not
- 3:26:09just appending, which is like stacking
- 3:26:11our data together. Uh, so you could
- 3:26:12actually write a SQL query and this is
- 3:26:16for the people that may have a like data
- 3:26:18analytics background and I'm not going
- 3:26:20to cover all SQL in today's video. In
- 3:26:22fact, um, I have probably like 10 or 15
- 3:26:24different SQL videos here on the
- 3:26:26channel. If you honestly watch my 1 hour
- 3:26:28SQL course, plenty enough information to
- 3:26:31jump into this over here, but this is
- 3:26:33just kind of a little bit for more
- 3:26:34advanced joins of your data. So, we'll
- 3:26:37not cover that over here. You can choose
- 3:26:39a branch over here as well. Um, so a
- 3:26:42choosing branch will only grab data from
- 3:26:44one side. So you can see I chose this
- 3:26:47one. Use data of input one. It's long
- 3:26:49run 30. We choose this one over here.
- 3:26:51It's long run of 19. And then you have
- 3:26:54combine. So what combine allows you to
- 3:26:56do is merge data together. Uh there's a
- 3:26:59few different ways that you could
- 3:27:00combine it. You could combine by
- 3:27:02matching fields. So combine items with
- 3:27:03the same field values. You could combine
- 3:27:05by position. to combine items based off
- 3:27:08of their order or all possible
- 3:27:09combinations. Typically, I'll either use
- 3:27:12matching fields or specifically
- 3:27:15positions.
- 3:27:16And um again, just depending on what
- 3:27:19type of join you particular want, why I
- 3:27:21use position, just how I have a workflow
- 3:27:25populating and I just want to have
- 3:27:26everything together. Uh, so just to show
- 3:27:28you over here, this isn't really going
- 3:27:30to do much because our data over here
- 3:27:32doesn't really make that much sense um
- 3:27:34to combine by position and I didn't
- 3:27:37really prep for the merge. But if you
- 3:27:39watch our merge video on the channel,
- 3:27:40it's like well over an hour and actually
- 3:27:42maybe I'll give you an example right now
- 3:27:44of combine by position. It might be a
- 3:27:46little bit out of scope, but I'll just
- 3:27:48pause this fill this out really quick
- 3:27:50for you and we'll be right back. All
- 3:27:52right. So, I made the two other examples
- 3:27:54really quick just so that way you guys
- 3:27:56can kind of visualize what is going on.
- 3:27:58Otherwise, if I didn't, I feel like this
- 3:28:00course just wouldn't go in as much
- 3:28:02detail. So, the first one we're going to
- 3:28:05be taking a look at over here is combine
- 3:28:07by matching fields. You also notice that
- 3:28:10we have code nodes over here. And
- 3:28:11listen, we're going to have a code node
- 3:28:13section within this course. So, don't
- 3:28:16fret. All I'm using the code node over
- 3:28:18here just to show you is we're building
- 3:28:20out multiple items. So you can see that
- 3:28:22there's four items associated with it. I
- 3:28:25could still technically go over here and
- 3:28:28use an edit fields and split out to
- 3:28:29build out multiple items. I personally
- 3:28:32find the code node is a lot quicker to
- 3:28:35build out multiple items for testing.
- 3:28:37And I'll often do this all the time.
- 3:28:39Again, we'll cover it in more detail,
- 3:28:40but what I have going on over here is I
- 3:28:44have different products as well as their
- 3:28:46category over here. So, four products,
- 3:28:47laptop, desk, monitor, and chair
- 3:28:50category, electronics, furniture,
- 3:28:51electronics, and furniture. And then
- 3:28:54over here in our second one, what we
- 3:28:56have is a discount that the store is
- 3:28:58applying for specific categories. So,
- 3:29:00you can see 10%, 15, 5% electronics,
- 3:29:03furniture, and clothing. We can actually
- 3:29:05join both of these data points off of
- 3:29:08category, right? There's category in
- 3:29:11here. There is category in over here.
- 3:29:14And there's a lot of different ways that
- 3:29:15we could join. We'll quickly go through
- 3:29:17these. So, how we go over here, we go do
- 3:29:20combine by position. How we go over
- 3:29:22here, we do combine, merge matching
- 3:29:25items together, and then combine by
- 3:29:27matching fields. And
- 3:29:31these are the same in name. However, if
- 3:29:33they have different names, which is very
- 3:29:35common in the real world, you just click
- 3:29:37on this fields to match have different
- 3:29:39names. Obviously, I did not do that to
- 3:29:41make this more simple for you. Next,
- 3:29:43fields to match. They both have a
- 3:29:46category. So, we're going to choose
- 3:29:47category. And then you have different
- 3:29:49types of output. And I'm just saying
- 3:29:51over here to keep matches and output
- 3:29:54data from both inputs merged together.
- 3:29:56You can only choose input one and input
- 3:29:58two if you want, but most likely if
- 3:30:00you're going to be combining matching
- 3:30:01fields, you'll want to have both inputs
- 3:30:02merged together. And when I use a step,
- 3:30:05you can see our product category, and
- 3:30:07then you can see the discount all in one
- 3:30:09section. This is essentially what a data
- 3:30:11analyst does when they're combining
- 3:30:12tables. um very rarely you only need you
- 3:30:15combine two tables but uh in general
- 3:30:19this is just a very basic MVP. Now
- 3:30:22there's a lot of different ways that you
- 3:30:24could join data together. So over here
- 3:30:27it says output type keep matches and
- 3:30:29you'll notice it says an inner join.
- 3:30:31This is probably the most popular
- 3:30:32options over here. So only if there's a
- 3:30:35match it will join. One of the other
- 3:30:37common ones that you'll often see in the
- 3:30:40real world is a left join. And N is kind
- 3:30:43of interesting because um you have a
- 3:30:45left joint or a right joint over here.
- 3:30:47No one really uses right joints in the
- 3:30:49real world. Typically you'll use the
- 3:30:51main table as um your build out for your
- 3:30:54left join. However, based off of
- 3:30:56orchestration, sometimes you'll want to
- 3:30:58have the source of truth either input
- 3:31:00one or input two. That's kind of where
- 3:31:01you have your left join or right join.
- 3:31:03So if we do left join over here, you can
- 3:31:07see it doesn't really change much. Then
- 3:31:10you can see it's called enrich input
- 3:31:12one. And that's just because all four of
- 3:31:14these items have a category that's in
- 3:31:16here. However, if I change one of these
- 3:31:19and uh you can see it's electronic
- 3:31:20clothing furniture. Let's say I just
- 3:31:22call laptop consulting. Again, this
- 3:31:24makes no sense to do this. But we're
- 3:31:27going to do this on purpose just to show
- 3:31:29you what's going to happen. I rerun
- 3:31:33this.
- 3:31:36You'll see this is undefined. Whereas
- 3:31:38earlier if we did in join that laptop is
- 3:31:40going to be dropped. And you can see if
- 3:31:42I execute step that is no longer there.
- 3:31:45So inner join will only keep the
- 3:31:48matches. If you do this left join over
- 3:31:51here even if there's a null value in
- 3:31:53that first input
- 3:31:55it's okay. And the opposite for input
- 3:31:58two. So this time we start from the
- 3:32:01discount and you can see there was no
- 3:32:03clothing. So that's why that is
- 3:32:04undefined. So you have that. Uh the
- 3:32:06other things over here is non-matches.
- 3:32:09So just show things that don't match in
- 3:32:10general. This is kind of good for data
- 3:32:12cleanup in some capacity. So you can see
- 3:32:13our laptop which is consulting doesn't
- 3:32:15have a discount. And then you can see
- 3:32:17clothing which doesn't have an item that
- 3:32:18is missing over there. And then lastly,
- 3:32:21you have a full outer join which will
- 3:32:23show everything all together. Again, I
- 3:32:25understand it's not going to click, but
- 3:32:27maybe do some practice with merges. It's
- 3:32:30it's really really important. Okay. The
- 3:32:32other option over here is to combine by
- 3:32:35position. And you can see that we have
- 3:32:37two inputs. This is a little bit
- 3:32:39different. So what we have over here are
- 3:32:41different metal bands. Mishuga Tulle and
- 3:32:43then Orbit Culture. And then over here
- 3:32:46what we have is different iconic venues.
- 3:32:48So Red Rock Amphitheater as well as
- 3:32:50Madison Square Garden. I've never been
- 3:32:51to either of those, but they seem like
- 3:32:53they're going to be pretty close. And uh
- 3:32:55what we do is merge over here. We do
- 3:32:57combine my position
- 3:32:59and
- 3:33:01nothing is populating because I don't
- 3:33:03have this execute workflow. It is such a
- 3:33:07bummer that you have to always do this
- 3:33:09testing. All right, so let's rerun this
- 3:33:12again.
- 3:33:14And now it should work. And you can see
- 3:33:16we only have Mishuga and Tulle. And
- 3:33:18you're like, what what happened to the
- 3:33:20third one? Well, there wasn't a third
- 3:33:22venue. You can see we only have two
- 3:33:24venues over here. And we have three
- 3:33:26bands. So, unfortunately, Orbit Culture
- 3:33:28is not playing an iconic menu. They will
- 3:33:30in the future. They're going to grow
- 3:33:31quite a bit as a band, but because it's
- 3:33:34missing, uh, we have item one over here,
- 3:33:37which is Mishuga. They are playing Red
- 3:33:40Rock AIT, and that'd be an interesting
- 3:33:41show. Then you have Tulle, and they're
- 3:33:44going to play Madison Square Garden,
- 3:33:46which I think they've played probably
- 3:33:48multiple times. And unfortunately, Orbit
- 3:33:50Culture does not have a venue assigned
- 3:33:52because they're combining by position.
- 3:33:54And that is no longer the case. And you
- 3:33:56can see the output over here is two
- 3:33:58particular items. And hopefully that
- 3:34:00cleared up at least the basics of
- 3:34:03merges. And as I've been saying multiple
- 3:34:06times, if you want to watch another
- 3:34:07video to talk about merges where it's
- 3:34:09just only focused on merges and has like
- 3:34:1120 examples, um, go check that out. But
- 3:34:15I want to give you guys the examples for
- 3:34:18this section.
- 3:34:19So we're going to talk about these. So,
- 3:34:23example problems and I actually we're
- 3:34:25going to try to solve two of them
- 3:34:27together. So, the first one and I'm just
- 3:34:29going to copy this over from my notes.
- 3:34:33So, what we're going to do is have a
- 3:34:34form submission. We're going to look at
- 3:34:36the form submission with an if node to
- 3:34:38see if someone has budget and we could
- 3:34:42say also have a switch based off of the
- 3:34:45company size. we can build out some
- 3:34:47score calculation and then it sends into
- 3:34:50a CRM which obviously I haven't shown
- 3:34:52you how to do the CRM yet so this step
- 3:34:54will not exist score calculation we can
- 3:34:58make something up if you want on that
- 3:35:00side of things like hey we're just going
- 3:35:01to sum things up honestly it does not
- 3:35:04really matter but I want you to try
- 3:35:06building this out and I'll just make
- 3:35:08this note not available yet but this
- 3:35:12would be an example of kind of a real
- 3:35:14workflow that someone might want they
- 3:35:15have a form, you know, we do some sort
- 3:35:17of calculation based off of the form,
- 3:35:19which, you know, real world, we might be
- 3:35:21using a code node for this. Obviously,
- 3:35:23we haven't currently covered the code
- 3:35:24node, but really it's just to test out,
- 3:35:26you know, the form submission, which
- 3:35:27we've covered, the if node, and then
- 3:35:29switch. So, honestly, if you just want
- 3:35:31to do these three steps and stop there,
- 3:35:34I'm perfectly okay with this. And I'll
- 3:35:36just put over here like don't worry
- 3:35:38about the rest. how we can always expand
- 3:35:40on this later in the course, but feel
- 3:35:42free to pause the video, try to solve
- 3:35:44this, and then uh I'll give you the
- 3:35:46solution. All right, I'm back. Let's
- 3:35:48solve this. So, what we're going to do
- 3:35:49is have a form submission and go in
- 3:35:53form. We'll go into a trigger. And the
- 3:35:56first thing we're going to want to do is
- 3:35:57build out our two data points. So, uh
- 3:36:00obviously, actually, we're going to
- 3:36:01probably have three data points. So,
- 3:36:02we're going to say, um consulting
- 3:36:05services. consulting
- 3:36:07services
- 3:36:09and maybe we have three different form
- 3:36:10elements. So first we would have like a
- 3:36:12business name
- 3:36:15or you could have like a contact name.
- 3:36:17It it doesn't matter. We'll just assume
- 3:36:18we don't need the contact name obviously
- 3:36:20where we will um what is the business
- 3:36:24name
- 3:36:25and what we'll have next is our first
- 3:36:28one over here is based off of the
- 3:36:29budget. So let's set up our budget. So,
- 3:36:32we're going to call this budget.
- 3:36:35How much can you pay for AI services?
- 3:36:42And then lastly, we'll do company size.
- 3:36:47And obviously, based off the company
- 3:36:49size, there might be see different data
- 3:36:50governance rules. Um, companies with
- 3:36:53larger amount of people typically pay a
- 3:36:55little bit higher for services. Uh,
- 3:36:57there's obviously more rules that you're
- 3:36:58going to have to follow.
- 3:37:00We're going to say how many
- 3:37:02are in
- 3:37:05make sure that both of these are going
- 3:37:07to be numbers. So we'll go into numbers
- 3:37:09like that and uh let's test this out. So
- 3:37:14execute. What is the business name?
- 3:37:15Great. So good to go on that side of
- 3:37:18things. First thing what we're going to
- 3:37:20do is build out an if. So we're going to
- 3:37:22say if and maybe you have a specific
- 3:37:26rule for what this budget should be. I'm
- 3:37:28also just going to test this out one
- 3:37:30more time and just fill out some blank
- 3:37:32data. Uh we're going to say Ryan's SEO.
- 3:37:37How much can you pay for AI services?
- 3:37:40We'll say 1,200. Also, by the way, when
- 3:37:43you're building out forms, you should be
- 3:37:45explicit because someone might try to
- 3:37:46put, you know, dollar sign over here.
- 3:37:48Obviously, it's locked right now. I'm
- 3:37:50trying to spam it and it's not working,
- 3:37:51but just be explicit. And how many
- 3:37:53people are in your company? We're going
- 3:37:54to say one. And uh great, we have this
- 3:37:58over here. I'm going to pin this data
- 3:37:59just for testing. Next, we have our if
- 3:38:02node. I'm going to zoom in a little bit
- 3:38:03for you guys. First, we're going to take
- 3:38:05a look at our budget. We're going to
- 3:38:07say, is this budget, and it
- 3:38:09automatically defaults for a number, and
- 3:38:11we're going to say is greater than, and
- 3:38:13maybe you don't want to take on
- 3:38:14customers that are less than $1,000. Um,
- 3:38:17so we'll put a,000. And typically, a lot
- 3:38:19of people will put like round numbers
- 3:38:20and things like that. So maybe you want
- 3:38:22to change this to greater than or equal
- 3:38:23to. And you'll see this goes into the
- 3:38:25true branch. And maybe we don't want to
- 3:38:27deal with anything that goes into the
- 3:38:28false branch, right? And then next we'll
- 3:38:31want to have some sort of switch. And
- 3:38:34maybe we have a different template we
- 3:38:36build out later on or, you know,
- 3:38:38obviously this one is sending into the
- 3:38:40CRM, which you know, maybe we label
- 3:38:42based off of the company size. Again,
- 3:38:43there's a lot of different things we
- 3:38:44could think about why we're using the
- 3:38:46switch based off of this company size,
- 3:38:48but I just want you guys to have some
- 3:38:50testing with it. So, we're going to say
- 3:38:52value for company size. And we're going
- 3:38:54to do this probably by um let's just do
- 3:38:57it three times. So, we'll three over
- 3:38:59here. So, drag in company size over
- 3:39:01here. And we'll do company size. And
- 3:39:04we'll do small, medium, large. So, we'll
- 3:39:06go small, medium, large.
- 3:39:10Call this small.
- 3:39:13Call this medium.
- 3:39:15Call this large. Maybe you want to call
- 3:39:17this large company. Small company.
- 3:39:20what is considered a small company? And
- 3:39:24actually, let's think about this. Um,
- 3:39:26maybe if it's less than 20 employees.
- 3:39:30So, we're going to say 20 over here. And
- 3:39:32instead of is equal to, we're going to
- 3:39:33say less than or equal to. Okay. Then
- 3:39:37let's say medium. Maybe that's under 99
- 3:39:40employees. So, we'll go over here.
- 3:39:42Number we, we'll say less than or equal
- 3:39:45to 99. And then honestly instead of this
- 3:39:48large, what we should do is probably
- 3:39:51remove that. We're going to go over here
- 3:39:53to add option. We'll fall back output
- 3:39:55and think about it. Actually, we should
- 3:39:58keep large. We'll have a fallback output
- 3:40:00as well. And we'll still label this.
- 3:40:03Just going to copy this expression in.
- 3:40:08And then we're going to say
- 3:40:10value number
- 3:40:13is greater than 99.
- 3:40:16Call this large and this is just in case
- 3:40:18someone sends us in bad data. We won't
- 3:40:19have our fallback over here. And uh
- 3:40:23we'll say items will be sent to an extra
- 3:40:25separate output. And um
- 3:40:29I think we're going to be good. And then
- 3:40:30we'll rename fallback output. Um we'll
- 3:40:34say like missing
- 3:40:36size doesn't matter too much. But now if
- 3:40:41we execute this workflow, you can see
- 3:40:43this populated into small. We go over
- 3:40:46here and we change this. And this is
- 3:40:47what we can do for CH testing. Let's say
- 3:40:50we want to test these edge cases. We'll
- 3:40:51put 100 over here. You can see now it
- 3:40:55goes to large. We go over here and
- 3:40:58change this out again. Sorry, I meant to
- 3:41:01go to the form submission. We'll test
- 3:41:03that and uh do now is 50. Save that.
- 3:41:10And you'll see it goes to medium. We
- 3:41:12could also go back over here and say,
- 3:41:14"Hey, Brian's SEO, they have $200 a
- 3:41:17month. Are we going to do any services
- 3:41:19with them?" Nope. It goes into the false
- 3:41:22branch. But now you know how if works in
- 3:41:25a world scenario as well as switch.
- 3:41:28Again, very basic on this side of
- 3:41:30things. I just want to get your feet wet
- 3:41:31with it. The next one we're going to do
- 3:41:34is a little bit of cleaning up data.
- 3:41:38So, let's just copy this note. and I
- 3:41:41will go over here. Great. And let me
- 3:41:45just copy that I have in my notes. All
- 3:41:48right. So, a workflow that processes
- 3:41:50contact list from multiple sources,
- 3:41:52removes duplicates, and then creates a
- 3:41:54clean master list. So, let's
- 3:41:59go and build that out. How I want you to
- 3:42:03build this out is first we're going to
- 3:42:07take in two edit fields.
- 3:42:12fields.
- 3:42:13Then what we're going to do is expand
- 3:42:16that out. Expand these out. And you can
- 3:42:20think of this
- 3:42:22edit twoit fields. And we're going to
- 3:42:24actually just populate arrays. So
- 3:42:25populate arrays. We're going to expand
- 3:42:29both of these out.
- 3:42:31Then we're going to append
- 3:42:34in our merge.
- 3:42:37And then we're going to remove
- 3:42:38duplicates.
- 3:42:41So, I want you to build out this
- 3:42:42workflow. We'll build it out here in a
- 3:42:44second. But again, pause the video. Try
- 3:42:47this for yourself.
- 3:42:49Obviously, our edit fields are going to
- 3:42:51be a little bit different just based off
- 3:42:53of what we want to populate in there,
- 3:42:54but that's all right. All right, we're
- 3:42:55back. Let's go and do that. I'm lazy.
- 3:42:59Actually, I'm not going to copy it. I'm
- 3:43:00just going to show you where edit fields
- 3:43:01are. We're going to go over here and say
- 3:43:04edit fields. We're going to do that
- 3:43:06twice.
- 3:43:08Why is that connected all the way over
- 3:43:09here? Look at that connection. That is
- 3:43:13should have been lazy and just copied
- 3:43:15it. That's all right. Edit fields over
- 3:43:17here. Edit fields. Right. We need to
- 3:43:20expand these out. If you remember from a
- 3:43:22little bit earlier, how do we do this?
- 3:43:24Well, we go to split out. So, just copy
- 3:43:27split out. So, we'll split out twice.
- 3:43:32Great. So, we have one split out.
- 3:43:35our second split out. Then we're going
- 3:43:38to want to merge these together. So
- 3:43:39we're gonna go into our merge like that.
- 3:43:43Awesome. Let's remove that. And then
- 3:43:45we're going to want to remove
- 3:43:46duplicates.
- 3:43:49All right. Remove items process previous
- 3:43:52executions. No. Repeated with current
- 3:43:53input. Yep. So we're going to have our
- 3:43:55clean list. This will go right here.
- 3:43:57This will go right here. And then let's
- 3:43:59find where our manual trigger is because
- 3:44:02we know it has some issues. And this is
- 3:44:05going to be our workflow. Now, let's go
- 3:44:07in over here and we'll say names.
- 3:44:11Duh. We'll change that into an array.
- 3:44:14And I'll just put Ryan
- 3:44:21over here.
- 3:44:23Let's go Nolan.
- 3:44:26Over here, we'll do another name. I'll
- 3:44:28put C.
- 3:44:30Crucial.
- 3:44:32that.
- 3:44:33Great. And honestly, I'm just going to
- 3:44:36copy this. We're going to actually
- 3:44:37replace this because I want to have some
- 3:44:38duplicates.
- 3:44:41Great.
- 3:44:43Then over here, we'll change Ryan to
- 3:44:46Carlton.
- 3:44:47Keep Nolan and we'll put Maddox over
- 3:44:49here. Awesome. So, we have those. Let's
- 3:44:53just test one of these edit fields. So,
- 3:44:55that way we can just populate this for
- 3:44:57here. We'll call this names. Just super
- 3:44:59easy. Just execute this to make sure.
- 3:45:01Great, that works. And obviously, like I
- 3:45:04like testing out each node at a time.
- 3:45:08Great. We have our output there. We're
- 3:45:10going to merge these together. We're
- 3:45:11going to pin that. That's fine. So, I'm
- 3:45:14going to run this up into this remove
- 3:45:15duplicates. Should have no issues. So,
- 3:45:18you have six names. Great. I'm going to
- 3:45:20pin this data just for testing purposes.
- 3:45:22And then we go into remove duplicates.
- 3:45:24And uh we're going to do is compare all
- 3:45:27fields. That's fine. Uh we can specify
- 3:45:30fields selected fields. Let's go over
- 3:45:32here and choose names
- 3:45:35and we have five and take a look at
- 3:45:38that. So we remove the extra I want to
- 3:45:41say there was an extra Ryan or extra
- 3:45:43Nolan but we have Ryan Nolan Kershaw
- 3:45:45Carlton and Maddox. That is two more
- 3:45:49workflows that we built together. If any
- 3:45:52of this did not make sense, I'd probably
- 3:45:54just pause the video, go back into that
- 3:45:56specific node because this video is
- 3:45:59going to this video and honestly just
- 3:46:01working with any and you're going to
- 3:46:03expand out and um really use these in
- 3:46:06workflows and if you don't understand
- 3:46:07the basic fundamentals of these nodes,
- 3:46:10you're going to struggle and I don't
- 3:46:12want to sound rude, but it's super
- 3:46:14important that you understand the
- 3:46:16basics.
- 3:46:17So yeah, those this is a longer section,
- 3:46:21but to kind of recap, edit fields, we
- 3:46:25can create data in there. Uh we use it
- 3:46:27often when we're using spreadsheets and
- 3:46:29we don't want all the specific fields or
- 3:46:31we have other things going in over here.
- 3:46:32We can manipulate the JSON as well. If
- 3:46:36allows us to build out different
- 3:46:38branches within our workflow, true,
- 3:46:39false, super basic, switch, you have
- 3:46:42multiple options associated with it. Uh
- 3:46:44so you can think of a little bit kind of
- 3:46:45a more advanced if nodes. You can see
- 3:46:48for example I built out four. Filter
- 3:46:50helps you clean up data. Limit is really
- 3:46:52good for testing. Date and time allow
- 3:46:54you to build out as it says date and
- 3:46:57time. You can add in dates or additional
- 3:47:00days or hours or whatever else. You can
- 3:47:02remove it. You can format dates. You'll
- 3:47:05use dates occasionally, but it's just
- 3:47:07important to know where it's at. Remove
- 3:47:08duplicates. Removes any duplicated data.
- 3:47:11Some people don't want to have
- 3:47:12duplicated data. split out. It
- 3:47:15essentially takes an array and builds
- 3:47:17out multiple items associated with it.
- 3:47:19Aggregates the opposite. It takes
- 3:47:21multiple items, turns that into an
- 3:47:22array. Summarize allows us to do
- 3:47:24calculations such as like what's the
- 3:47:27average, what's the min, max, what's the
- 3:47:29count. Um, and then also allows you to
- 3:47:32aggregate, but has a lot more
- 3:47:33functionality associated with it. Again,
- 3:47:35I use summarize more than aggregate, my
- 3:47:38personal opinion. Merge, we have a ton
- 3:47:40of different options with merge. You can
- 3:47:42append which essentially allows us to
- 3:47:43stack data. You could combine by
- 3:47:45position or you could combine by field.
- 3:47:48If you combine by field, just know that
- 3:47:50there's multiple types of joins. Most
- 3:47:52popular one is just to keep only data
- 3:47:54that matches together, which is your
- 3:47:56inner join. You have the inverse as
- 3:47:57well, which you can see things that
- 3:47:58weren't matched. And you either use the
- 3:48:00left or right join to see those sides.
- 3:48:02Outer join shows you everything all
- 3:48:05together. And then we went through two
- 3:48:07of these different examples. So
- 3:48:10hopefully that cleared up or I shouldn't
- 3:48:13say clear up but hopefully you learned
- 3:48:15the basics of these nodes. You know we
- 3:48:17have one over one two three four five
- 3:48:20six 7 8 9 10 in this section. Man that's
- 3:48:24a lot but uh we still have quite a more
- 3:48:26that we're going to go through. Our next
- 3:48:28section actually is going to jump into
- 3:48:30data tables native data tables here in
- 3:48:32Nan. uh one of the gamechanging things
- 3:48:34that the Nan team developed in 2012 2025
- 3:48:38and uh we will take a look at that again
- 3:48:42feel free to take a break because this
- 3:48:44uh section was very long I don't expect
- 3:48:47data tables to be as long as this but
- 3:48:49yeah we'll definitely need to use it all
- 3:48:51right see you in section number eight
- 3:48:53all right so good job so far through the
- 3:48:56course today we're going to be talking
- 3:48:58about data tables and what are data
- 3:49:01tables well you can think of this as
- 3:49:03like a spreadsheet internal to any end.
- 3:49:05So instead of having to call let's say
- 3:49:09air table or call Google sheets, you can
- 3:49:13have the data directly in any end and
- 3:49:15you don't even need to import in a
- 3:49:16Google Sheets file. So what we're going
- 3:49:19to be doing is we're going to go over
- 3:49:20how to access data tables. We're going
- 3:49:22to create a few different data tables as
- 3:49:23well and I believe we also have one or
- 3:49:25two different small minor projects at
- 3:49:27the end of this lesson. So let's not
- 3:49:30waste any time and jump right into it.
- 3:49:33Okay, so I'm over here in a new workflow
- 3:49:37and but I want to jump back into our
- 3:49:40overview tab because that is going to be
- 3:49:43where the best place to access your data
- 3:49:45tables are. So I'm just going to click
- 3:49:47overview like that and we're going to
- 3:49:49head over here. We're going to jump into
- 3:49:52our fifth tab which is going to be data
- 3:49:54tables. And what we're going to do is
- 3:49:56we're going to create our first data
- 3:49:58table together. And I'm just going to
- 3:50:00click this create table over here. And
- 3:50:04then what we want to do is enter in a
- 3:50:06table name. You can either create
- 3:50:08something from scratch or you could
- 3:50:10import in a CSV file. And your CSV file
- 3:50:13must contain a header row. Otherwise,
- 3:50:15you need to define it. So I'm just going
- 3:50:18to click from scratch. We'll also create
- 3:50:20one from CSV here in a second. And I'm
- 3:50:22going to say this is a running log. So
- 3:50:25like what my different runs are. Feel
- 3:50:28free to use whatever examples you want
- 3:50:31and uh we're just going to generate this
- 3:50:32over here. There's also nodes on how we
- 3:50:34could generate it, but we're going to
- 3:50:35start over here for running logs. I'm
- 3:50:38also going to create one from a CSV here
- 3:50:40in a second, but let's start off with
- 3:50:42that. So, first thing you'll see is we
- 3:50:44have a created app by default as well as
- 3:50:47updated at. So, these are going to be
- 3:50:51here originally. You also have an ID
- 3:50:54which is your row number. Over here you
- 3:50:57have an add row section. You also have
- 3:51:00an add column section. You also have a
- 3:51:03search over here too if you wanted to
- 3:51:04search for specific data. Uh this plus
- 3:51:08icon allows you to add in additional
- 3:51:10columns. So row column, but you also
- 3:51:13have these options over here. So what I
- 3:51:16want to do is add in a column. And we're
- 3:51:18going to go over here and say this is
- 3:51:20miles. And you'll notice that we have
- 3:51:22different types available to us. We
- 3:51:24either have string, number, boolean, or
- 3:51:27datetime. And I'm going to say miles is
- 3:51:29that over here. And we're going to add a
- 3:51:32column. And you'll see miles now is
- 3:51:35populated over here. Now, let's say I
- 3:51:38want to add in a date. So, what we're
- 3:51:40going to do is add in run dates. And we
- 3:51:45can go over here and choose our daytime.
- 3:51:48So, we have now created miles, right?
- 3:51:52How many miles I ran, what day of the
- 3:51:54run. Now, let's add in another column
- 3:51:57and we're going to say difficulty or
- 3:51:59let's say um is it a difficulty? We're
- 3:52:02going to go and say location, whether
- 3:52:04it's like a a trail or a road or
- 3:52:07mountain, whatever the case may be.
- 3:52:09There's no mountains in Florida, by the
- 3:52:10way. Uh we're going to go over here and
- 3:52:12add column.
- 3:52:14And then lastly, what we're going to do
- 3:52:16is a boolean. And we can say like, I
- 3:52:20don't know, spelt difficult.
- 3:52:26And uh you know what? Actually, what
- 3:52:28we're going to do, I'm going to change
- 3:52:29our location. I'm going to delete this
- 3:52:31column. And why I want to show you that
- 3:52:33is so we can delete stuff here as well.
- 3:52:35So I'm actually going to delete that.
- 3:52:37And I'm thinking about, you know what,
- 3:52:39we should have a boolean instead of
- 3:52:42roadr run.
- 3:52:45And this is either true or false, right?
- 3:52:46You ran on the road or you ran on the
- 3:52:49trail. So, we're going to say this is a
- 3:52:51road run. And then lastly, we need to
- 3:52:54have a string. And then we're just going
- 3:52:56to say run notes.
- 3:52:59And you know what? Actually, I want to
- 3:53:01change run notes. I want to go over here
- 3:53:04and go and rename this column and say
- 3:53:06runner notes. And obviously I'm making
- 3:53:09these mistakes on purpose or changes on
- 3:53:11purpose just to show you that we can
- 3:53:13delete. We can change the name. We can
- 3:53:17also change the order like hey you know
- 3:53:19what I want runner notes before road
- 3:53:20runner. I want this before the run date.
- 3:53:23Or actually you know what I want run
- 3:53:24date first then miles runner notes road
- 3:53:26run. And you can change all these as you
- 3:53:29want. Again you can add in a column over
- 3:53:30here if you wanted to or you could just
- 3:53:32um click on that side of things. There's
- 3:53:35also filters and things like that. and
- 3:53:37we'll we'll cover that here in a second.
- 3:53:39But yeah, let's jump into adding our
- 3:53:42first thing. So, we're going to add in
- 3:53:44today's run. And this is 1227
- 3:53:47miles. I did 30 miles. Uh road run is
- 3:53:51false because that
- 3:53:55over here like that. Yeah, it was old
- 3:53:57trail running. Uh runner notes and we'll
- 3:54:01just say felt felt pretty good overall.
- 3:54:07roll tested newer shoes
- 3:54:12on the trail. A bit dehydrated, which is
- 3:54:15true because I'm kind of a little tired
- 3:54:17right now. Hydrated. And I probably
- 3:54:19misspelled dehydrated.
- 3:54:21That was terrible spelling. That's fine.
- 3:54:24And you can see created at it says
- 3:54:2612:27. We have a time stamp over here.
- 3:54:28So, it is 6:21. And you can see that
- 3:54:32it's built over here at 6:20. And then
- 3:54:34updated at as well. You can see it's uh
- 3:54:372056 which is essentially 621. And you
- 3:54:40know we can change these if we want.
- 3:54:42There's nothing telling us we have to
- 3:54:44put this in general supposed to do 31
- 3:54:46miles today but there is was on the
- 3:54:48trail and you know what 31 miles now?
- 3:54:50No. You know what I want to go back over
- 3:54:52here and make it 30. Again you have the
- 3:54:55options to change that as you want. And
- 3:54:57you can also see I can change the time.
- 3:54:59Well, you know I started running this
- 3:55:00morning at 6:00 a.m. And uh we can put
- 3:55:03that over here. So you can see now it's
- 3:55:05at six. Well, actually, you know what?
- 3:55:08It's not at six. We started at 610. So,
- 3:55:11what we're going to do is click okay.
- 3:55:14And we're going to change that over here
- 3:55:16to 610.
- 3:55:18Boom. We have that over here. Obviously,
- 3:55:21there's more fields that I'd put in a
- 3:55:23run tracker or not. And you can keep
- 3:55:25expanding that out. Another time earlier
- 3:55:28this week I I ran on I took a break the
- 3:55:32last two days but I did run on Wednesday
- 3:55:36and on that day I ran specifically what
- 3:55:39did I run eight miles want to say and
- 3:55:42that was a road run so we're going to
- 3:55:44put over here and uh kind of felt really
- 3:55:47tired felt tired and it was a speed day
- 3:55:51I don't like doing speed work but you
- 3:55:53can see we we changed this up as well
- 3:55:55when this created at time is different.
- 3:55:58Updated at is different. You know what?
- 3:56:00I change this over here. Updated ad is
- 3:56:03going to change as well. Cool. So, next
- 3:56:06what we can do is add in different types
- 3:56:08of filters and take a look at it from
- 3:56:09that perspective. So, if I wanted to go
- 3:56:12over here and hey, you know what? I only
- 3:56:13want to take a look at things that were
- 3:56:15not uh road runs. I can go over here,
- 3:56:18false. You know what? I want to actually
- 3:56:20show anything that was at a road run.
- 3:56:22That is true. You know what? I want to
- 3:56:24just remove the filter. it goes to both
- 3:56:26U. And these are going to always be
- 3:56:28different because you can see like this
- 3:56:30is a boolean miles over here. We can
- 3:56:33choose our different options. These
- 3:56:35options are going to be very similar to
- 3:56:36what we've already covered with our if
- 3:56:39node or our filter node. You can see we
- 3:56:41have equals, does not equal, less than,
- 3:56:42greater than, greater than, greater than
- 3:56:44equal to, between, is null. And maybe I
- 3:56:47want to see anything that's like larger
- 3:56:48than a marathon. So I say like 26.2.
- 3:56:52Um actually it should be just greater
- 3:56:54than so greater than 22 over there or
- 3:56:58you know what I want to see between
- 3:57:00anything 26.2 to 100 miles 100 miles is
- 3:57:04a very common ultra and you can see we
- 3:57:06saw that one over there. So you know
- 3:57:07what I want to find things that are less
- 3:57:09than a marathon 8 miles over here. All
- 3:57:12right so again those are some of the
- 3:57:14different options over here and uh yeah
- 3:57:16so we also have this option for dates.
- 3:57:19You can see we have equals, is not
- 3:57:20equal, less than, less than, equal,
- 3:57:22greater than, greater than equal to,
- 3:57:23between, is null, is not null. We have
- 3:57:26our runner notes which we can filter. So
- 3:57:28you have something that contains and
- 3:57:30maybe want to search for things that are
- 3:57:31tired. Also, let me remove this filter.
- 3:57:35And I don't know why this filter
- 3:57:38is not working. There we go. Reset. You
- 3:57:42would think it would be easier just to
- 3:57:43click on and off, but let's say I want
- 3:57:45to filter for anything that says tired.
- 3:57:47So I'm just going to go search tired
- 3:57:49over here. And you see tired shows. I am
- 3:57:52curious if it is case sensitive or not.
- 3:57:55It is not case sensitive which is great.
- 3:57:57But that's contained. You have equals.
- 3:57:59Obviously the full thing needs a match.
- 3:58:00Does not equal is empty not empty not
- 3:58:02old. And then you have other things for
- 3:58:05when a no specific row is created
- 3:58:08or last updated at. Okay. I'm going to
- 3:58:11reset this over here. You get the gist
- 3:58:13of essentially how this works. uh
- 3:58:16directly in this view. However, we can
- 3:58:19do a lot of modifications as well uh
- 3:58:21directly within any end. I also just
- 3:58:23want to show you really fast uploading a
- 3:58:25CSV file because that is something that
- 3:58:27has been recently added to data tables.
- 3:58:29People have requested it. So, I'm going
- 3:58:32to find a CSV file really fast and then
- 3:58:35uh we're going to upload that. Actually,
- 3:58:37I won't even need to find one or create
- 3:58:39a new uh CSV file because if you click
- 3:58:42these three dots, I forgot to show you.
- 3:58:44We can rename uh we can just change this
- 3:58:46first to runner logs. Okay. Then what we
- 3:58:50can do over here is delete, which I'm
- 3:58:51not going to delete this yet, but I'm
- 3:58:53going to download the CSV first. So you
- 3:58:54can see we have runner logs.csv.
- 3:58:56And I'm going to delete this over here.
- 3:58:59Delete. Now we go to data tables. I'm
- 3:59:01going to say create new data table.
- 3:59:02Import CSV. And I'm going to grab my
- 3:59:05runner logs. Then I'm just going to drag
- 3:59:07that in over here. My CSV contains a
- 3:59:09header row, which I assume it does. Uh
- 3:59:12uh.
- 3:59:15Oh, I need to put in a name. I was like
- 3:59:17I would have thought it would have just
- 3:59:18kept the exact name. That's all right.
- 3:59:20We're going to create this over here.
- 3:59:22Log CSV been uploaded. We found seven
- 3:59:24columns and two rows. Column name, which
- 3:59:28is interesting.
- 3:59:31You can't use the default ones if you
- 3:59:33just download this one over here. So,
- 3:59:39and you can't
- 3:59:42I guess you also can't just change this
- 3:59:45as well. I'm just going to call these
- 3:59:47ID2 and things like that. Yeah, this is
- 3:59:49my first time literally looking at the
- 3:59:51new updates over here.
- 3:59:54Um, all right. So,
- 3:59:57cool. So, I'm just going to say this is
- 3:59:58created at two and then ID2.
- 4:00:02I wish if you had the same column names
- 4:00:04like for ID and then updated at and
- 4:00:07created at it would just automatically
- 4:00:09populate those. So like that should be
- 4:00:12edited and maybe it will in the future.
- 4:00:14All right, so we have all those. I'm
- 4:00:15just going to create this really fast
- 4:00:17and then you can see we have these over
- 4:00:19here. I would just recommend you delete
- 4:00:21this ID2
- 4:00:23for putting that in. And then you have
- 4:00:25these created and updated out. And
- 4:00:27obviously you can't modify these
- 4:00:30but yeah. So these unfortunately are
- 4:00:33going to have to go as well. So you
- 4:00:35won't see exactly when these were
- 4:00:37created at or updated at, which is a
- 4:00:39bummer. You can't upload that within a
- 4:00:41CSV, but we essentially have the same
- 4:00:43runner log that we had before. All
- 4:00:46right, so now let's talk about the nodes
- 4:00:49here in any. Hopefully that cleared up
- 4:00:51any confusion. Again, you can add row,
- 4:00:53add column, created is when you add in
- 4:00:55that row, updated as last modification.
- 4:00:58You can move these around. Make sure to
- 4:01:00get your data type correct because you
- 4:01:02cannot change it. You can change the
- 4:01:04column name and you can also delete a
- 4:01:06column as necessary. Uh multiple
- 4:01:09options. Add a column here, add column
- 4:01:12there, add a row here, add rows. All
- 4:01:14right. So now let's talk about data
- 4:01:16tables in general. And uh what we'll see
- 4:01:19is we have data table and it's a
- 4:01:20recommended node. Uh so what we're going
- 4:01:23to do is take a look at our data table
- 4:01:26and we have delete rows, get rows, if
- 4:01:28row exists, if row does not exist,
- 4:01:29insert row, update rows, and upsert
- 4:01:32rows. Now I am going to say I believe
- 4:01:35here in the future and I I saw a note
- 4:01:37from the Nan team that there's going to
- 4:01:40be like a a create data table option as
- 4:01:43part of the node. I could be wrong, but
- 4:01:45I believe I did see that they were going
- 4:01:48to populate that soon. So depending when
- 4:01:51you're watching this video that should
- 4:01:53be out. Um we're just going to go and
- 4:01:56take a look at some of these options. I
- 4:01:58guess we can't Oh, let me go to
- 4:02:00operations. Yeah. So we have all the
- 4:02:02different stuff over here. Let's just go
- 4:02:04into these. So first thing
- 4:02:07you have is resource. This one's just
- 4:02:09based off of rows over here. There's no
- 4:02:11option yet to update columns, which I
- 4:02:14would think that there's going to be a
- 4:02:16node option for that in the future, but
- 4:02:17you can see rows, row, row, row. Um,
- 4:02:20they obviously put this in here, so you
- 4:02:22could have columns here in the future.
- 4:02:23Again, I I don't know the full in
- 4:02:25development, but I would assume it's
- 4:02:27going to come at some time in the
- 4:02:29future. This one will delete a specific
- 4:02:31row. You could get rows if a row exists,
- 4:02:34match input items that are in data
- 4:02:35table, match input items that are not in
- 4:02:37the data table, insert a new row,
- 4:02:39update, upsert as well. So, let me just
- 4:02:42show you a few of these really fast. So,
- 4:02:44what we can do is get row um you have to
- 4:02:47find your data table. So, you just go
- 4:02:49over here and search for your table. If
- 4:02:51you're not sure what the table looks
- 4:02:52like, you see this icon? This actually
- 4:02:54opens up your data table here into the
- 4:02:56side. And now we have that populated
- 4:02:58over there. So, I'm just going to do
- 4:02:59runner logs. Uh what we're going to do
- 4:03:01is match any condition, but you can also
- 4:03:03match all conditions. I don't have any
- 4:03:06filters over here. I'll show you some
- 4:03:07filters in a second. You can also return
- 4:03:09all the data or you could limit it based
- 4:03:11off the results. And why they have that
- 4:03:13is any end tends to lag if you have a
- 4:03:16ton of data. Data tables can be pretty
- 4:03:18large. Obviously, I only put two rows in
- 4:03:21there. So, you'll see if I execute this,
- 4:03:22we have all this information. But, you
- 4:03:24know what? Maybe I just want to limit
- 4:03:26this to one row. And you see now we only
- 4:03:28have one row. It says limit is not.
- 4:03:30There may be more items returned. Tweak
- 4:03:32the return all. I'm just going to return
- 4:03:34all. But now what we're going to do is
- 4:03:35match a condition. And what we're going
- 4:03:37to do is take a look at miles. And we're
- 4:03:40going to say if miles equals 30. So let
- 4:03:43me want to just find all the runs that
- 4:03:44are 30 miles. And boom, we have this
- 4:03:47over here. And you can see that this is
- 4:03:49defined as a zero. If we go back into
- 4:03:52our data table. Oh, you know what? This
- 4:03:54actually didn't pick up the boolean
- 4:03:56value. If you take a look at this
- 4:03:58earlier, we had this as
- 4:04:01boolean and let's say road running and
- 4:04:08we'll just go back over here and make
- 4:04:09this a boolean column. That's another
- 4:04:12thing I did not even notice. Um, that's
- 4:04:15interesting.
- 4:04:17All right, we're just going to delete
- 4:04:19that over here. So, another thing to
- 4:04:22mention if you are working on this
- 4:04:27sure to change your booleans because it
- 4:04:29might not always be correct. Going back
- 4:04:31over here, I'm just going to execute the
- 4:04:33step again. And you can see this is
- 4:04:35turned into false. That is interesting.
- 4:04:37I feel like that's another bug. Um,
- 4:04:39obviously the software just pro or not
- 4:04:42software, but the team has made some
- 4:04:43changes. So maybe that was something
- 4:04:45they didn't address. But regardless, you
- 4:04:48can see now it is false. Over here I can
- 4:04:50change our different conditions. We can
- 4:04:52go to another column. Let's go into road
- 4:04:54running.
- 4:04:56as a boolean and you can see is true. I
- 4:04:58just want to show whatever is a road run
- 4:05:00and you can see that is true. Obviously
- 4:05:02there's more things we can take a look
- 4:05:03at if we really wanted to. Uh and this
- 4:05:06could be way longer. Obviously you can
- 4:05:07delete a row which would just completely
- 4:05:09get rid of it from our data table. I
- 4:05:11don't want to do that because I already
- 4:05:12spent enough time building that out and
- 4:05:15you can insert a new row. So let me just
- 4:05:17show you how to insert this in really
- 4:05:18fast. Let's say I am going to run
- 4:05:21another thing over here. I actually ran
- 4:05:24a half marathon though half in Orlando.
- 4:05:27So I will say that half marathon's
- 4:05:30nothing by the way. That's only 13 miles
- 4:05:32and that is a road running runner notes.
- 4:05:36Felt great. Didn't really feel great. I
- 4:05:38kind of cramped a little bit but I put
- 4:05:41that over here. You can see this has
- 4:05:43been updated the 13th. We have a time
- 4:05:45which I could put in the exact time if I
- 4:05:47really wanted to. But now if I go and
- 4:05:49get rows, you can see this is now
- 4:05:53populated in over there, which is
- 4:05:55awesome. And you know, we can sort these
- 4:05:57results as well. And I wanted to cover
- 4:06:01this node in this area. So let's say you
- 4:06:05have a a spreadsheet and you want to
- 4:06:06sort these. You can go over here to sort
- 4:06:09and changes the the order of items. So
- 4:06:12we have three items, which is the each
- 4:06:14row is a specific item in a spreadsheet.
- 4:06:17And I want to sort these now by run
- 4:06:21date. So I go over here to sort and I'm
- 4:06:24going to do a simple sort. There's other
- 4:06:25options as well. You could sort by code.
- 4:06:27You could sort random also by code. I
- 4:06:29believe it's only JavaScript now. Yeah,
- 4:06:31they need to put Python in here. Um
- 4:06:34JavaScript, but we'll do a simple sort.
- 4:06:37Add fields of sort by. We're going to go
- 4:06:39and grab our run date. And we're going
- 4:06:40to put this in ascending order which is
- 4:06:42A to Z or earliest or smallest number to
- 4:06:45largest in this case like earliest date.
- 4:06:49And you'll see that has changed uh 1213.
- 4:06:531224. You know what? I don't want to do
- 4:06:55run date. I want to take a look at
- 4:06:57miles. Do this in ascending order. You
- 4:06:59can see it goes from small to large. You
- 4:07:00know what? I want descending order. You
- 4:07:02can see it goes from 30 into eight.
- 4:07:05Again, we can change this as well for
- 4:07:08other things, but I think it's pretty
- 4:07:10self-explanatory. There you have other
- 4:07:12options over here. Disablenotation, but
- 4:07:14that's really it. And you can sort by
- 4:07:16multiple fields if there is things that
- 4:07:18are tied. So, typically if there's a
- 4:07:21tiebreaker, you'll want to have a
- 4:07:22secondary sort. Very, very common in the
- 4:07:25real world. I can tell you that because
- 4:07:27I pull a lot of data from SQL databases
- 4:07:29and there's a lot of sorting. You can
- 4:07:30sort by random as well. Um, this can
- 4:07:33randomly generate your data. So you can
- 4:07:34see it's changing every time that I run
- 4:07:36it. So if you need to have any sort of
- 4:07:39randomization, maybe you want to go with
- 4:07:40this approach. Although the one downside
- 4:07:43is this is not replicatable. You just
- 4:07:46don't have that specific seed number if
- 4:07:48you want to get it randomized. But yeah,
- 4:07:51that is essentially a sort. I just
- 4:07:53wanted to throw this in over here really
- 4:07:54fast. This was something I was going to
- 4:07:56throw within the data tables or like
- 4:07:58Google Sheets, but I felt like it was
- 4:08:00pretty applicable. Now, so again,
- 4:08:03go into data tables and create a table.
- 4:08:06In the future, the end team is going to
- 4:08:07be building this into a native node. Um,
- 4:08:10I thought it was going to be out by now,
- 4:08:12but it's not. And you can create a table
- 4:08:14from there. You can also create a table
- 4:08:17from scratch or you could upload a CSV,
- 4:08:19although it seems like the CSV
- 4:08:21functionality is down just a little bit.
- 4:08:23Again, it's a small bug. Uh, data table
- 4:08:25node over here is based off of rows.
- 4:08:28Right now you can get rows, delete rows,
- 4:08:30update rows as well, upsert and
- 4:08:32different things like that. You have
- 4:08:34options to return everything or limit
- 4:08:36it. So that way uh your N instance
- 4:08:38doesn't bug out if you have a ton of
- 4:08:40data. And that essentially is data
- 4:08:44tables. I want to jump into our projects
- 4:08:46now for this section. Obviously, we we
- 4:08:49don't have a ton going on on the node
- 4:08:51side of things. obviously give you guys
- 4:08:54the spreadsheet that I used, but let's
- 4:08:58talk about two projects. And what we'll
- 4:09:01do first is add in project number one.
- 4:09:05I'm just going to grab this from my
- 4:09:06notes, which is on our second screen.
- 4:09:08Great. So, this project today, what
- 4:09:10we're going to take a look at is a
- 4:09:12birthday emailer. So, imagine you have a
- 4:09:14a schedule that takes a look at your
- 4:09:16table on like a daily basis or runs the
- 4:09:19operation on a daily basis. you filter
- 4:09:21for today's birthday. And I say send a
- 4:09:24personalized email. Obviously, I haven't
- 4:09:25shown you guys how to send a personal
- 4:09:27email yet. So, we could ignore that
- 4:09:29section. Although, if you want to try
- 4:09:31doing it, awesome. And this is pretty
- 4:09:33basic. So, spend a few minutes, try to
- 4:09:36see if you could do that. Try to throw
- 4:09:37also a different trigger just to start
- 4:09:38this workflow for you guys. And uh yeah,
- 4:09:42pause the video. Three, two, one, and
- 4:09:45let's take a look at it. All right, I'm
- 4:09:47back. Let's build this out. So, first
- 4:09:49what we should do is create a new data
- 4:09:51table. And what we're going to do is
- 4:09:53call this birthday.
- 4:09:56And we'll create this. And we're just
- 4:09:58going to go and add a column. And we're
- 4:10:01going to say this is birthday. And it's
- 4:10:03going to be specifically a datetime over
- 4:10:06here. Awesome. And what we're going to
- 4:10:10do first is also create another name.
- 4:10:13And we're say like employee name.
- 4:10:16And oh that's another thing I forgot to
- 4:10:18bring in this video. You can't have
- 4:10:19spaces. You can see it says invalid
- 4:10:21column name. So if you want to have
- 4:10:24space essentially do an underscore. So
- 4:10:26we'll say like employee name. Obviously
- 4:10:28there's database principles associated
- 4:10:29with this in database. You should not
- 4:10:31have a space in your column name. All
- 4:10:33right. So we're going to go over here.
- 4:10:34We're going to say someone has a
- 4:10:36birthday of today.
- 4:10:38Employee name. Um I I click cards. So,
- 4:10:42the first card that I have over here
- 4:10:44just to show you like from 1986 Fleer.
- 4:10:47Um, put his name in over here. Danny.
- 4:10:49So, see Danny
- 4:10:52Sanjay. I completely butchered that. I
- 4:10:55clicked mostly baseball cards, not
- 4:10:58basketball, but that was on my stack.
- 4:11:01Cool. So, we have that over here. And
- 4:11:04then we'll create another row over here.
- 4:11:06Let's grab a baseball card. This is
- 4:11:09Derek Jeter. We'll throw Derek Jeter in
- 4:11:11over here. Obviously, I could look up
- 4:11:13their birthdays or just grab it from the
- 4:11:15back of the card, but I'm not going to
- 4:11:17do that. We're gonna say Derek Jeter has
- 4:11:19a birthday of And we're just going to go
- 4:11:23Oh, sorry. And obviously, I'm looking at
- 4:11:262025. I should put actual days over
- 4:11:31here, but it does not matter.
- 4:11:34I mean, it does matter, but we're just
- 4:11:36going to literally filter by month and
- 4:11:38day. Cool. So we have both of those over
- 4:11:40here. I think this is fine and let's
- 4:11:43jump into it. So first thing we want to
- 4:11:45do is go over here. We're going to look
- 4:11:47for a trigger. So let's go into our
- 4:11:50triggers. So we should go over here and
- 4:11:52then we say on a schedule. So we have
- 4:11:55this. The first thing we need to do is
- 4:11:57take a look at a trigger interval. We'll
- 4:12:01say this runs at every day. We could
- 4:12:03choose a specific hour. Let's say this
- 4:12:06runs every day at like 8 a.m. or 9:00
- 4:12:08a.m. when a workplace starts. A little
- 4:12:11bit on my view because of the mic, but
- 4:12:13that's okay. Then what we're going to do
- 4:12:15is get rows. So we'll go into our data
- 4:12:18table, data table, and what we're going
- 4:12:21to do is get rows. I first want to just
- 4:12:24make sure that we can pull all of our
- 4:12:25data. So I'm just going to go into
- 4:12:27birthday. And we're going to execute
- 4:12:28this step. And you can see now that
- 4:12:32specifically works. And let's we might
- 4:12:35actually have to pull the data over here
- 4:12:36and add in another filter into the next
- 4:12:39node, but I'm just going to double
- 4:12:41check. So, we can add in a condition.
- 4:12:43We're going to look at birthday over
- 4:12:44here. And yeah, so we can say it's equal
- 4:12:48to something.
- 4:12:50Um, wonder if we can actually make an
- 4:12:52expression,
- 4:12:54but we might be able to make an
- 4:12:56expression. I'm going to actually pause
- 4:12:58the video and show you really fast how
- 4:13:00we could do this.
- 4:13:02All right, I'm back. Here is the other
- 4:13:05part of the solution. So, I tried to get
- 4:13:07this working down in the conditions.
- 4:13:09Since it's a little bit more
- 4:13:10complicated, I decided, hey, let's pull
- 4:13:13all of our data over here and let's
- 4:13:15actually use a node after to filter. I'm
- 4:13:17not ashamed of that. Next thing, what I
- 4:13:20did is I essentially was trying to grab
- 4:13:22an expression uh to just grab the month
- 4:13:25and date. Here's the deal with it. I'm
- 4:13:28not going to memorize all the different
- 4:13:30patterns for month and date and time and
- 4:13:35all this stuff. LMS are pretty good at
- 4:13:37this if you want to prompt it. So you
- 4:13:40can see what it did is it said datetime
- 4:13:41from JSON. To format month month day day
- 4:13:46from the daytime now to format month
- 4:13:48month day. probably could have easily
- 4:13:49figured this out over here as well as
- 4:13:51this if I put a little bit more effort
- 4:13:53into it, but and I'll show you also what
- 4:13:55I prompted, but you can see kept the one
- 4:13:57item. So, we kept the birthday over here
- 4:13:59that I said was 12:27. It does have that
- 4:14:01time stamp, but you know what? It still
- 4:14:03matched specifically what today is. And
- 4:14:07uh yeah, we can send a personalized
- 4:14:08message after. And you know, we could
- 4:14:12actually build that out with an AI
- 4:14:13agent. Obviously, you guys know a little
- 4:14:16bit of the basics. And what I'll do is
- 4:14:18put this over here. We'll add in a chat
- 4:14:21model. We'll go in here and add in what
- 4:14:24are we going to add? We'll add in tropic
- 4:14:26for this one. Great. And then all I'm
- 4:14:28going to say is go here and say write a
- 4:14:34unique
- 4:14:36birthday
- 4:14:40message
- 4:14:42for our employee. Let's pretend these
- 4:14:45are employees. And we'll put over here
- 4:14:49his birthday is his birthday
- 4:14:52is and we'll go over here json.now
- 4:14:58not JSON.now sorry it's uh we're going
- 4:15:01back over not this one it is
- 4:15:04datetime.now
- 4:15:06see I make mistakes as well
- 4:15:10datetime.now Now good. Great. So we have
- 4:15:14this information. Let's write this. You
- 4:15:18know what? This is probably going to be
- 4:15:19a little bit weird because it might
- 4:15:20think it's birthday is 2025
- 4:15:23is the month month day. It's the month
- 4:15:28and day from that's a little bit better.
- 4:15:31We haven't obviously talked about
- 4:15:32prompts and this is a pretty bad prompt.
- 4:15:35But let's write this and uh we'll get
- 4:15:37the birthday message as well based on
- 4:15:39the date. Here you go. Happy birthday
- 4:15:42Danny. Wishing you a fantastic December
- 4:15:4323rd. Hope your day is special joy,
- 4:15:45relaxation, all your favorite things.
- 4:15:47And it's sounds straight up from HR. And
- 4:15:50here you go. Your team company name.
- 4:15:52Cool. So, we're able to build this out
- 4:15:54the nuance um based off the filtering of
- 4:15:57the dates. I just found it easier to
- 4:15:58throw this in the filter side of it. And
- 4:16:01again, just to show you how I prompted
- 4:16:03this, which I don't believe I showed it
- 4:16:05to you. If I did, I I apologize. I said,
- 4:16:07"And can you write me an expression? I
- 4:16:09want to have it grab the birthday
- 4:16:10matches this." So, I initially sent in
- 4:16:12this screenshot. Obviously, that didn't
- 4:16:14work. So, I continue to prompt it. And
- 4:16:16then I sent what this looked like based
- 4:16:19off of the the code that they gave us
- 4:16:21for each of these across the board
- 4:16:23showing that the time stamp over here.
- 4:16:25And this also had a different result.
- 4:16:28And then it gave me both of those. and
- 4:16:30uh should give you that which is 100%
- 4:16:33correct because that is what I got. And
- 4:16:35again, we filtered out Derek Jeter
- 4:16:37because apparently he was born 107.
- 4:16:41Hopefully you guys enjoyed that example.
- 4:16:44What we're going to do next is do
- 4:16:47another data table.
- 4:16:50And what we're going to do, this one's
- 4:16:53actually a little bit easier. Maybe we
- 4:16:54should have started with this.
- 4:16:58Cool. So, we're doing a product
- 4:16:59inventory tracker. So, let's say we have
- 4:17:01data table for different products. We
- 4:17:03want to schedule some sort of check.
- 4:17:06Maybe this isn't a daily check, but uh
- 4:17:09we're going to do a weekly check. So,
- 4:17:11weekly
- 4:17:13check. And then we're going to say if
- 4:17:15low stock, we'll say like less than five
- 4:17:17items, then five items, we're going to
- 4:17:21do an email alert, which again, I
- 4:17:22haven't shown you an email alert yet,
- 4:17:24but can ignore that section. and uh we
- 4:17:28can do still the first parts of it. So
- 4:17:31let's spend a few minutes, you try to
- 4:17:33solve it first and then I will give you
- 4:17:35guys the solution. All right, ready? 3 2
- 4:17:381 Let's get that.
- 4:17:41All right, we're back. Let's solve this.
- 4:17:43So first thing we need to do is create
- 4:17:44that data table. And we're just going to
- 4:17:46say we're going to say inventory as our
- 4:17:49table name.
- 4:17:51We're going to just keep this super busy
- 4:17:53easy. I'm gonna say items and what we're
- 4:17:57going to do is say stock.
- 4:18:00Obviously, in real database, there's a
- 4:18:02lot better designs and things like that,
- 4:18:04but uh let's add in some items. So,
- 4:18:06we'll say Hoka Speed Goats,
- 4:18:09which I've never ran in, but I've heard
- 4:18:11great things about. Let's say the stock
- 4:18:13on these are 20. And then we'll go over
- 4:18:16here and we'll add in Nike Alphally.
- 4:18:21Obflies. We'll keep that misspelling.
- 4:18:24And the inventory is two. Great. And
- 4:18:27what we're going to do is build this
- 4:18:29out. So, first thing we're going to do
- 4:18:30is a schedule trigger. So, we have the
- 4:18:32schedule trigger over here. This time we
- 4:18:35set a weekly check. So, just go in over
- 4:18:37here and change this into weeks. We can
- 4:18:40choose the day. Let's maybe make this as
- 4:18:41like a Monday morning. So, that way it
- 4:18:43can be on the task for an employee.
- 4:18:45We'll say 8:00 a.m. We can say also
- 4:18:48minute. Let's put this to 30 minutes
- 4:18:50like 8:30. Then what we're going to do
- 4:18:52is grab our data table. So we're going
- 4:18:53to go to data table like that. And we're
- 4:18:56going to say get rows. And we're going
- 4:18:59to go over here and choose inventory.
- 4:19:01And we're going to add in a condition
- 4:19:02directly over here. So we're going to
- 4:19:04look at stock. And we're going to say
- 4:19:06stock is less than or equal to five.
- 4:19:09That's a low. And boom. We have that
- 4:19:12right over there. Literally two nodes.
- 4:19:14Now we have a trigger that goes and runs
- 4:19:17this on weekly cadence and then we get
- 4:19:19the rows from our database and obviously
- 4:19:21we could schedule an email and things
- 4:19:23like that a little bit later. Uh that is
- 4:19:26coming though because I'm going to be
- 4:19:27showing you guys how we could set up
- 4:19:28Gmail and just a few different sections
- 4:19:30so we can really expand these out. And
- 4:19:32honestly if you want to go backwards
- 4:19:33later on the course and expand these out
- 4:19:35that's perfectly fine. These are going
- 4:19:37to all be saved as JSON files so you
- 4:19:40guys can access them. And that is data
- 4:19:44tables. Obviously, I should have
- 4:19:46probably put this one here first rather
- 4:19:47than this one. But the day just wanted
- 4:19:50to show you two use cases. Thank you for
- 4:19:53uh checking this one out. And I will see
- 4:19:56you guys in section number nine. Now,
- 4:19:58all right. So, we're now going to cover
- 4:20:00something called binary files. And
- 4:20:03binary files seem really scary, but
- 4:20:06they're really not. It's really any type
- 4:20:07of file that you want to pass along your
- 4:20:10workflow. There's some weird quirks
- 4:20:12about binary files in comparison to the
- 4:20:15things that we've covered so far. And
- 4:20:18I'm also going to teach you about two
- 4:20:19new nodes in this section which I think
- 4:20:22will be pretty helpful for you to learn.
- 4:20:25I didn't want to put them in the common
- 4:20:26node section because they really pair
- 4:20:28well with binary files. So we're going
- 4:20:32to jump into NE right now and let's uh
- 4:20:35learn a little bit more about binary
- 4:20:37files. Okay. So, first, you know, the
- 4:20:41easiest way to start working with binary
- 4:20:43files is honestly a form trigger. So,
- 4:20:46we're going to go and grab on form
- 4:20:47submission. And you'll see we have this
- 4:20:50right over here. Okay. And what we're
- 4:20:52going to just call this on the side of
- 4:20:54things is file uploader. And uh we're
- 4:20:58going to add in a form element. So, I'm
- 4:21:01just going to call this field name data.
- 4:21:03And I say upload
- 4:21:05file.
- 4:21:07And what we're going to do is change our
- 4:21:10element type. So this is brand new. And
- 4:21:14you know, we've covered a lot of these,
- 4:21:15but this time we have something called
- 4:21:18file. And you could accept either one
- 4:21:20file or multiple files. For simplicity
- 4:21:23sake in this video, we're just going to
- 4:21:25do a single file. You could also specify
- 4:21:28the specific file type. If you're going
- 4:21:30to go into production, highly, highly
- 4:21:33recommend you define what file types
- 4:21:35that you want in over here. Right now,
- 4:21:39since I am going to be giving you guys
- 4:21:40this through multiple examples, I'm just
- 4:21:42going to leave it blank. So, we have our
- 4:21:45form. And if you go and execute the
- 4:21:46step, you'll see it says choose file,
- 4:21:49which is great. So, we're going to go
- 4:21:52through this as an example and we're
- 4:21:54going to go and upload our CSV file, the
- 4:21:57runner logs that we just used. You can
- 4:22:00see I just drag and drop this or you
- 4:22:02could choose a file on your computer.
- 4:22:03And I'm going to click submit. And
- 4:22:07look at this. Wait, we have our fourth
- 4:22:10option. So, we've covered schema, table,
- 4:22:13and JSON. And now we have this section
- 4:22:16over here that has a binary file. The
- 4:22:20field name will be populated here at the
- 4:22:22top. And you can see file name is runner
- 4:22:25logs.csv.
- 4:22:27It has our file extension over here. And
- 4:22:30we can actually view our file and
- 4:22:32download it view. We'll go and do that
- 4:22:35over here. And it downloads that as a
- 4:22:37file. Uh when you view an image, it'll
- 4:22:39actually show over here. So I want to
- 4:22:42just show you that as an example as
- 4:22:44well. Let me actually grab a image
- 4:22:48and uh throw that in. All right. So I'm
- 4:22:51going to execute this step. I have just
- 4:22:53this running image. Believe we used it
- 4:22:56in uh a YouTube video or just some
- 4:22:58testing purposes. And I click submit.
- 4:23:02And you see if I click view, we actually
- 4:23:05have an image that populates over here,
- 4:23:07which is cool because if you do any sort
- 4:23:09of image editing or image manipulation,
- 4:23:12uh you can just preview it on that side
- 4:23:14of things. And again, I could download
- 4:23:15this as well. This time it's a PNG file
- 4:23:17and you can see PNG has been uploaded
- 4:23:20over there on that. So I want to execute
- 4:23:23this step one more time and we're going
- 4:23:25to actually just go back and throw in
- 4:23:27the CSV file. We're going to go to
- 4:23:29images a little bit later and we'll
- 4:23:31click submit.
- 4:23:33And you'll see oh I actually upload the
- 4:23:35wrong one and we click submit and you
- 4:23:37can see we have our CSV file here once
- 4:23:39again. Okay so we showed you that this
- 4:23:43is the fourth type over here and you'll
- 4:23:46see this with other stuff as well. First
- 4:23:48thing I want to do is show you how we
- 4:23:49can actually extract our information
- 4:23:52because you might have uploaded a CSV or
- 4:23:54someone uploads a CSV and you're like
- 4:23:55how do I actually grab this data out? So
- 4:23:58you can go over here and say extract
- 4:24:00from file. And it says convert binary
- 4:24:02data into JSON. And you can see we have
- 4:24:05a lot of different options over here. So
- 4:24:07you want to match this based around the
- 4:24:10file that you're using. And I'm going to
- 4:24:12show you also just a a quick pipeline.
- 4:24:14If you're working with like CSV files,
- 4:24:16how we could also approach this or CSV
- 4:24:18or Excel files. We're going to just say
- 4:24:20extract from CSV. You have input binary
- 4:24:22field name. Make sure whatever is here
- 4:24:26matches over here. I called this data.
- 4:24:28So it's one two one. You're not matching
- 4:24:30on file name. You're matching on
- 4:24:33whatever this is called. This is called
- 4:24:34data over here. Again, we define this as
- 4:24:38the field name. So our field name needs
- 4:24:40to match what it says input binary
- 4:24:42field. So that is at the very top. I
- 4:24:45know when I first started working with
- 4:24:46binary files, I always thought it was
- 4:24:47like this. I just could not get it to
- 4:24:49work. So make sure it's that field
- 4:24:51image. So if I execute the step, we have
- 4:24:54all of our data. You can see table. we
- 4:24:56have our table that's been extracted
- 4:24:58from a CSV file. Then what we can do as
- 4:25:01well is use an edit
- 4:25:05and say edit fields like this.
- 4:25:09And what we can do now is
- 4:25:13go over here and choose what fields we
- 4:25:15want. Now I don't care about the ID.
- 4:25:17Maybe I just want to have the run date,
- 4:25:20miles, and whether it was a road run or
- 4:25:23not.
- 4:25:25And look, we've just populated these
- 4:25:27three and we have all this over here.
- 4:25:29And this is one of the ways I use edit
- 4:25:30fields all the time. I alluded to it a
- 4:25:32little bit earlier in uh this video or
- 4:25:35this course, however you want to define
- 4:25:36it. But edit fields allows you to really
- 4:25:40clean things up because now I don't have
- 4:25:42all this junk. I just have these three
- 4:25:45over here. So now I want to show you the
- 4:25:47opposite of extract from file and show
- 4:25:49you to convert to file. So convert to
- 4:25:53file will take our JSON data and turn it
- 4:25:55into binary data. And we could define
- 4:25:58hey we want to turn this into a CSV,
- 4:26:00HTML, ICS, JSON, ODS, RTF, text file,
- 4:26:03XLS, XLSX. Like you can choose whatever
- 4:26:06you want. Let's say I want an Excel
- 4:26:08file. We're going to call this data over
- 4:26:10here. And I execute the step. And now we
- 4:26:12have created a binary file. So we have
- 4:26:17the option over here to extract from our
- 4:26:20binary file. You can see extract from
- 4:26:22CSV, HTML, etc. And then we have the
- 4:26:25option over here to convert back into a
- 4:26:29file. And why this is really cool, if
- 4:26:31you go back to some of our other
- 4:26:32previous examples, like we could have
- 4:26:34used this convert to file in multiple
- 4:26:37different ways. So now we know if like,
- 4:26:39hey, we end off with some sort of JSON.
- 4:26:42We can turn this into a spreadsheet and
- 4:26:45then we could attach this spreadsheet
- 4:26:47into an email. And again there's a lot
- 4:26:50of different opportunities out there but
- 4:26:52uh extract from file grabs from a binary
- 4:26:54file. You have to define the file type
- 4:26:58and then convert the file converts it to
- 4:27:00a specific file type. And again you
- 4:27:02could download this right over here. You
- 4:27:04could also essentially take this file
- 4:27:07and move it up into Google Drive.
- 4:27:09There's a there's a really a lot of
- 4:27:11different options for you. So I showed
- 4:27:14you how to download it. I showed you
- 4:27:15that. Let me show you as well working
- 4:27:17with binary data because it it can be
- 4:27:20weird in your workflows. So what I want
- 4:27:23to show you is this note and I just save
- 4:27:27this all the time and I access it
- 4:27:29because it can be confusing. Like if
- 4:27:31let's imagine you have a binary file a
- 4:27:33little bit earlier in workflow and then
- 4:27:34you do some other data manipulations or
- 4:27:37uh have other nodes and you want to
- 4:27:38access this binary file again. How do
- 4:27:40you actually access the binary file? So,
- 4:27:43what I'm going to do is just copy this
- 4:27:44and literally just going to be called on
- 4:27:46form submission one. And let's imagine
- 4:27:48we have two edit fields. So, I'm going
- 4:27:51to go over here and say edit fields. And
- 4:27:53then maybe I want to go and have another
- 4:27:56edit fields after. I don't know. We're
- 4:27:58just going to go and make some weird
- 4:28:00stuff happen over here. All right. So,
- 4:28:02we have two edit fields. Put like name.
- 4:28:07We're going to say I don't know. Keep
- 4:28:09chugging. Keep chugging. Cool. And uh
- 4:28:13let's say we want to access this binary
- 4:28:15file later in edit fields. So I'm going
- 4:28:17to go over here. I'm going to go and
- 4:28:20execute this workflow. We are going to
- 4:28:22access a image. I'm going to go find
- 4:28:25another image for you guys. Okay. So now
- 4:28:28I want to share with you guys how we can
- 4:28:30actually access binary data a little bit
- 4:28:33later on in a workflow. So from the
- 4:28:36example above over here, if I execute
- 4:28:38this workflow again, and I upload a
- 4:28:41file, which I'll just grab our runner
- 4:28:43logs again and upload this over here,
- 4:28:46you'll notice that if we go to the edit
- 4:28:48fields, we no longer see the binary
- 4:28:51file. Um, we only have schema, table,
- 4:28:53and JSON. However, when you go to
- 4:28:55extract from file, you'll have u our
- 4:28:58data, which is our binary file on this
- 4:29:00side of things. You're like, all right,
- 4:29:02how do I actually access this? And let
- 4:29:05me show you how we could do this. So
- 4:29:08here's how this code works. And I'm just
- 4:29:10going to make this a little bit more
- 4:29:12clear. So essentially what we want to do
- 4:29:16is define the node where the binary data
- 4:29:18is at. In this case it's the form
- 4:29:22submission which is our trigger. And uh
- 4:29:25so I just put that as node but node or
- 4:29:27trigger. We do do item.binary and then
- 4:29:30the name of the file. So not name of the
- 4:29:33file but the field name. So you can see
- 4:29:35over here the field name is data. So in
- 4:29:38this case when I duplicate this we're
- 4:29:40going to say on form submission one
- 4:29:42because we're going to get a second
- 4:29:43version of this do item.binary
- 4:29:46data. Again if this is something else
- 4:29:49let's say it's like file you just change
- 4:29:51file in right over here. You say
- 4:29:54spreadsheet right there. You change this
- 4:29:57over here to spreadsheet. So we'll do
- 4:29:59that really quick. I'm going to make a
- 4:30:01one modification
- 4:30:03over here. So hopefully you guys don't
- 4:30:05mind. So I'm just going to go over here
- 4:30:07and just put a limit because it's going
- 4:30:09to duplicate my binary files if I don't.
- 4:30:12And I'm just going to put a limit of
- 4:30:13one. So let's just go there. Great. And
- 4:30:16then I'm going to add in an edit fields.
- 4:30:18And I'm also going to show you really
- 4:30:19quick how edit fields works with the
- 4:30:21binary file. So what we're going to do
- 4:30:23is grab our code side things. And you'll
- 4:30:27notice the curly braces brackets. So
- 4:30:30that's going to be a expression. So
- 4:30:33we'll go over here and automatically
- 4:30:34changes to an expression. Instead of
- 4:30:36string this time, we want to go into
- 4:30:38binary data. And by default, we can keep
- 4:30:41our name. I'll just keep a data, but
- 4:30:43I'll show you we can we can change it as
- 4:30:44well. So let's run this workflow.
- 4:30:46Execute step. I'm going to run in put in
- 4:30:48my runner logs over here. I'll click
- 4:30:50submit. And you'll see we have the green
- 4:30:52check. And we have our binary data once
- 4:30:55back again. So again, how you access
- 4:30:57this is we we're node has the binary
- 4:31:01file, the item.binary, and then the file
- 4:31:04name. But hey, what if we don't like
- 4:31:06data? I want to name this to
- 4:31:07spreadsheet. Well, that's one of the
- 4:31:09cool things with uh edit set. So I can
- 4:31:12go over here and call this spreadsheet.
- 4:31:14Now I execute this step. And now if I
- 4:31:17want to access this later on, it's just
- 4:31:19called spreadsheet. Again, you can view
- 4:31:20or download this. Same thing is
- 4:31:22applicable to images as well. So
- 4:31:25hopefully that clears up how to access
- 4:31:27it later. Remember the node that the
- 4:31:29file is at the item.binary and then also
- 4:31:32the binary name. Okay, next thing and
- 4:31:35this is a little bit outside the scope
- 4:31:37of binary data but I'm still going to
- 4:31:39throw it into this section and this is
- 4:31:42converting a file uh from base 64. So a
- 4:31:46little bit weird but yeah, let me show
- 4:31:49you how we could specifically do that.
- 4:31:51Okay. So, how we're going to do this,
- 4:31:53we're going to start with a manual
- 4:31:54trigger. So, I'm going to go over here
- 4:31:55to a manual trigger. And next thing
- 4:31:59we're going to do is do an edit fields.
- 4:32:02So, we're going to go edit fields and
- 4:32:04we'll grab that. Awesome. So, now we
- 4:32:06have our edit fields over here. Next
- 4:32:08thing we want to do is grab a base 64
- 4:32:11image encoder. The website I'm using for
- 4:32:13this encoding. And I'll just put this as
- 4:32:14a sticky note for you guys so you can
- 4:32:16see it just because I believe I have my
- 4:32:18browser tabs cut off. So go to this
- 4:32:21website, b64 image.de. So all we want to
- 4:32:24do is drag and drop an image over here.
- 4:32:27And what I'm going to do is just grab a
- 4:32:29recent screenshot that I had. And inside
- 4:32:31over here, I just have an image from
- 4:32:34kind of a YouTube video I was watching.
- 4:32:37I thought it'd be kind of interesting to
- 4:32:40at least save this on my computer. So
- 4:32:42over here, you'll see now that we have
- 4:32:44all of this code associated with it. And
- 4:32:47that is a lot of code all the way down
- 4:32:51over here. Wow, that is a ton. And it
- 4:32:54says for image elements. And essentially
- 4:32:57what this is is this is code for this
- 4:33:00particular image. I can't tell you the
- 4:33:02math behind it. I never really
- 4:33:04researched that. But all this can turn
- 4:33:08into an image. So what I want to do is
- 4:33:10grab all of this minus the first part
- 4:33:13because we don't care about data, image,
- 4:33:15PNG, B 64. We just want this very long
- 4:33:19string. And all I'm going to do is go
- 4:33:21over here to manual mapping and we're
- 4:33:24going to label that. And how we want to
- 4:33:26label this, we're just going to call
- 4:33:27this as image. So image like this. We're
- 4:33:29going to keep it a string. And we're
- 4:33:31going to paste in that very long value.
- 4:33:33And again, if you want to make sure it
- 4:33:34works correctly, open this up. And
- 4:33:36you'll see this is all of the base 64.
- 4:33:40That is it's insane for an image. Okay.
- 4:33:42So, if we execute this step, you'll see
- 4:33:45we just have that over here. Like the
- 4:33:49craziness. Now, the next thing we're
- 4:33:51going to do is go back into convert to
- 4:33:53file. So, search for convert to file and
- 4:33:56we're going to turn this into an image.
- 4:33:59And you can see it says move B 64 string
- 4:34:01to file. So, now what we're going to do
- 4:34:04is go over here on that side of things.
- 4:34:07We're gonna say B 64 input field. We
- 4:34:10call this image. So make sure we put
- 4:34:11this is image and then we could change
- 4:34:13the output file name as I showed you
- 4:34:15like we change it from data to
- 4:34:16spreadsheets. It's commonly called data.
- 4:34:19I'm just going to call this video
- 4:34:20screenshot. So video screenshot and
- 4:34:24change it to how you would like and
- 4:34:26hopefully that this works. We're going
- 4:34:28to execute step. Oh, look at that. And
- 4:34:30now I can view this. Boom. This is from
- 4:34:34a school live stream or school video.
- 4:34:36And you can see um we have 101.8% 8%
- 4:34:40retention which is not accurate but uh
- 4:34:43yeah we have this screenshot and it
- 4:34:45worked correctly. So essentially what we
- 4:34:47did is we encoded this image I used a B
- 4:34:5064 coder and we got all of the string
- 4:34:54associated with it. Then we put this
- 4:34:56into our edit fields as an image name.
- 4:34:59Uh we just called this a string or not
- 4:35:01called this a string but put this as
- 4:35:02data type of string. Pasted that in over
- 4:35:04here and then we converted that B64
- 4:35:07string into a particular image. So I
- 4:35:10know their approach that sometimes
- 4:35:11you'll see is people want to have an
- 4:35:13image as B 64 and then convert it a
- 4:35:15little bit later on. So now that's like
- 4:35:18the basics. I want to give you guys an
- 4:35:21example workflow working with binary
- 4:35:24files. And here is going to be your mini
- 4:35:27project on this side of things. This is
- 4:35:29going to be a little bit abstract.
- 4:35:31And obviously there's other things I
- 4:35:32want to do with B 64, but we haven't
- 4:35:34really covered OC or not B 64, but
- 4:35:36sorry, binary files, but we really
- 4:35:38haven't covered OCR yet, and that'll be
- 4:35:40a little bit later on in this course.
- 4:35:42So, what we're going to do is we're
- 4:35:44going to have a form upload. We're going
- 4:35:46to download the attachment. We're going
- 4:35:47to remove extra columns from it. We're
- 4:35:50going to remove duplicate uh issues. I
- 4:35:52put billing, but maybe we're going to do
- 4:35:55like a billing spreadsheet. add in one
- 4:35:57data point as it from a merge and then
- 4:35:59save as a brand new CSV. So, let me give
- 4:36:02you a little bit of context. What we're
- 4:36:04going to do on this side of things is
- 4:36:06we're going to have like a billing
- 4:36:08file uploader uploader and we have just
- 4:36:12name
- 4:36:14and we'll say we'll pretend like the
- 4:36:16name is unique. This is unique. So, each
- 4:36:19name cannot be built multiple times and
- 4:36:22then we'll have like a a cost. So let's
- 4:36:25just say like this is a dollar amount
- 4:36:28in integers. It's I just want to keep it
- 4:36:31super basic. So we upload a spreadsheet.
- 4:36:36We download the attachments associated
- 4:36:38with it. Right? Once we go through over
- 4:36:40here, remove any extra columns. So let's
- 4:36:42add an extra column as well. Um extra
- 4:36:45column. Let's think about what we're
- 4:36:47going to say. Um let's do something way
- 4:36:50out there. Does not make sense to put in
- 4:36:52billing. favorite color,
- 4:36:54right? Uh we're going to remove the
- 4:36:57duplicate billing issues as well. So,
- 4:36:58we're going to have one person that's
- 4:36:59duplicated. We're going to have a merge
- 4:37:01to add in another data point. Let's say
- 4:37:03the spreadsheet was missing one row.
- 4:37:05We're going to have another edit set.
- 4:37:07We're going to bring that in over here
- 4:37:09and we're going to save as a new CSV.
- 4:37:11So, I want you guys to kind of test this
- 4:37:14out and see if you can get the solution
- 4:37:18and pause the video. Ready? Three, two,
- 4:37:20one, pause it and I will be right back
- 4:37:22with the solution. All right, guys. I'm
- 4:37:25back. So, let's build this out. First, I
- 4:37:28don't even have the spreadsheet yet, but
- 4:37:30we're just going to build out this
- 4:37:31workflow. So, what I want to do is go to
- 4:37:34a form. So, we're going to say any end
- 4:37:35form. We're going to go to a trigger and
- 4:37:38do on a new form event. So, this is
- 4:37:40going to upload our our spreadsheet.
- 4:37:42Next thing that we want to do is ract
- 4:37:44our spreadsheet. So extract from file
- 4:37:47and we're going to extract from a CSV.
- 4:37:50Great. And obviously I'm not connecting
- 4:37:52these yet. We need to remove extra
- 4:37:54columns. Well, I showed you how to do
- 4:37:55this through edit set. So we can put
- 4:37:57edit set for here as well. Great. Next,
- 4:38:01what we want to do is remove duplicate
- 4:38:03billing issues. So we're going to go to
- 4:38:04remove duplicates for here. And we're
- 4:38:08going to remove within the current
- 4:38:10input.
- 4:38:12Okay. Then what we're going to do is add
- 4:38:14in one more data point from a merge. So
- 4:38:15we're going to get another edit set.
- 4:38:19And again, I'll show you how to put
- 4:38:21everything together here in a minute.
- 4:38:23Then we need to merge in everything
- 4:38:25together. So we're going to say merge.
- 4:38:29And uh the merge will take in those
- 4:38:30inputs. And then lastly, we want to
- 4:38:33convert to a file. So we're going to say
- 4:38:34convert to file.
- 4:38:37And let's convert this back into a CSV.
- 4:38:39Great. So, let's actually build out our
- 4:38:43spreadsheet. And what I'm going to do is
- 4:38:45just go into personal and I'm going to
- 4:38:47create a just very quick data table. And
- 4:38:50obviously, like you can call the data
- 4:38:51table in here instead of uploading
- 4:38:53a spreadsheet, but I'm just going to do
- 4:38:55this really fast. And we're going to say
- 4:38:57billing.
- 4:38:59So, this creates awesome. So, what did
- 4:39:03we need in billing? Well, we wanted to
- 4:39:05have over here name. I go over here and
- 4:39:09say name.
- 4:39:12Next, we said we want to have cost. So,
- 4:39:15we're going to say cost. That is an
- 4:39:17integer.
- 4:39:19So, a number. And then lastly, we're
- 4:39:21going to say favorite color. So,
- 4:39:23favorite
- 4:39:24color. It's going to be a string. Great.
- 4:39:26Let's just put some BS data in over
- 4:39:30here. So, we're going to add in a new
- 4:39:32row. And we'll add in another row. And
- 4:39:35we'll add in a third row. All right. So
- 4:39:37now what we want to do is just throw in
- 4:39:39some names. I'm going to grab uh itch
- 4:39:42over here. Baseball player Ichiro.
- 4:39:46We're going to say max for Max Sherzer.
- 4:39:49And then we'll have it in over here
- 4:39:51again
- 4:39:54like that. Cool. The cost over here
- 4:39:56let's say is 100
- 4:40:0050
- 4:40:03100.
- 4:40:05Let's say it's favorite color is blue.
- 4:40:09Blue. Max's favorite color is black.
- 4:40:12Done.
- 4:40:14Simple. Done in two seconds. So, we're
- 4:40:16just going to go over here and export
- 4:40:18this as a CSV. So, download CSV like
- 4:40:20that. And now we see we have
- 4:40:21billink.csv. Great. So, what we're going
- 4:40:25to do is go into our form. We're going
- 4:40:27to say billing uploader.
- 4:40:30And we're going to add in a form
- 4:40:31element. And over here we're going to
- 4:40:33say billing spreadsheet.
- 4:40:38And uh we're going to say upload.
- 4:40:43The billing spreadsheet.
- 4:40:47We're going to say element type file.
- 4:40:49We're only accept one file. We can go
- 4:40:51over here and say it's a CSV only. And
- 4:40:54execute step. And you'll see it says
- 4:40:56choose a file. I'm going just go on my
- 4:40:59computer really quick. Find this billing
- 4:41:01CSV. Great, we have it. Going to click
- 4:41:03submit. And we have our billing
- 4:41:05spreadsheet. Great. Next. Oh, one other
- 4:41:08thing I need to tell you guys. You can't
- 4:41:10pin binary data. So, you can see pin
- 4:41:11data is disabled as this node output
- 4:41:13contains binary data. Didn't cover that
- 4:41:15in this video. I apologize. I was on my
- 4:41:18notes and I skipped over. Okay. So, now
- 4:41:20we need to extract from the binary data.
- 4:41:22So, you notice how I called this billing
- 4:41:24spreadsheet and it says input binary
- 4:41:26field. Again, make sure this over here,
- 4:41:29the field name is the same as this input
- 4:41:31binary field name. So, we're going to
- 4:41:33execute this step. And if we go to table
- 4:41:35view, we have ID, name, cost, favorite
- 4:41:37color, created, updated. So, we're
- 4:41:39looking pretty good over there. Next
- 4:41:41step, we wanted to remove all these
- 4:41:42extra things that we don't care about.
- 4:41:44Only thing we care about is name and
- 4:41:46cost. That's it. So, execute step. Boom.
- 4:41:50We cleaned that up. Okay. Now, we want
- 4:41:52to remove duplicates because we have
- 4:41:54duplicates in our data set. You can see
- 4:41:56of it 100, max 50, itro 100. We're going
- 4:42:00to compare all fields. And then you can
- 4:42:03see it is now down into two. We have it
- 4:42:05and max cost 150. Great. Okay. Now,
- 4:42:09let's add in additional data. Let's say
- 4:42:12we have another data point we want to
- 4:42:14add into the spreadsheet. So, what we're
- 4:42:17going to do is create two new fields. To
- 4:42:20keep these accurate, we have name and
- 4:42:21cost. So, we're going to go over here
- 4:42:22and call these name and cost. So name
- 4:42:26of cost and then let's put in those
- 4:42:29values. So namewise, let's say we have
- 4:42:31like Justin for Justin Verlander and
- 4:42:34we'll put a cost of 75. Let's execute
- 4:42:36the step just to make sure it works. And
- 4:42:38it works. However, you notice I put
- 4:42:40string here. I should put a number and
- 4:42:42boom, we have that working correctly.
- 4:42:43You can see that we don't want to have
- 4:42:45mismatch over here. Next, we want to put
- 4:42:47both of these into the merge like that
- 4:42:50over here. Um, we're also going to have
- 4:42:53to do a um test over here because this
- 4:42:56might not necessarily work, but we'll
- 4:42:58see. Remember, we had that issue a
- 4:43:00little bit earlier when we're talking
- 4:43:02about merges.
- 4:43:04And uh we have a problem over here.
- 4:43:08See what our issue was. Oh, you know
- 4:43:11what? It's empty. We should probably
- 4:43:12append that data. We're going to just
- 4:43:14execute workflow. And we're gonna load
- 4:43:16this up over here. Submit.
- 4:43:20And you can take a look over here in
- 4:43:23that table. We actually didn't call
- 4:43:26that. So what I'm going to do is say
- 4:43:28that also starts this over here. Again,
- 4:43:31just kind of a weird bug with merges,
- 4:43:33but that's okay. So we're going to just
- 4:43:35clean this up a little bit. So that way
- 4:43:38this trigger starts this edit fields and
- 4:43:40also goes into the merge as well. All
- 4:43:42right, this should be fine here. We're
- 4:43:44going to execute this again. Upload that
- 4:43:47billing. Click submit. And now you can
- 4:43:50see we have both items going into that
- 4:43:52merge node. Item one there, two. And now
- 4:43:55we have three items. We have Justin, it
- 4:43:57ro and max. Awesome. So now all we need
- 4:44:00to do is convert this into a file. So
- 4:44:04what we want to do is name the file. And
- 4:44:06did I mention a name? I can't remember.
- 4:44:09No, I didn't. I'll say like new billing.
- 4:44:15And let's go to add option. You can
- 4:44:17actually change the file name. So I'll
- 4:44:19say new
- 4:44:21or let's call this like final billing
- 4:44:25CSV.
- 4:44:27Actually, I don't think I even need the
- 4:44:28CSV section. I think I should just call
- 4:44:30it file billing. Let me just double
- 4:44:32check really quick.
- 4:44:34No, I need to actually put CSV. So, make
- 4:44:36sure you put the exact name over here.
- 4:44:38When it says convert to CSV, make sure
- 4:44:40you put that. Otherwise, it's not going
- 4:44:41to work. And now you can see it says
- 4:44:43final billing.csv.
- 4:44:45And I can download our data that we have
- 4:44:47over here. And this would be also
- 4:44:49another case where you use edit set over
- 4:44:50here just to make sure that um every
- 4:44:53every column that you want in the
- 4:44:54spreadsheet is there. And you could also
- 4:44:56reorder things in edit set. So you can
- 4:44:58see like name is here first then cost.
- 4:45:00So if you want to reorder things you can
- 4:45:01use edit set. Didn't really cover that
- 4:45:03also. Apologies but essentially download
- 4:45:07it here. And you can see we have final
- 4:45:09billing.csv.
- 4:45:11So that is our workflow. Essentially
- 4:45:13what we did is we submitted a file over
- 4:45:16here which was our CSV file. We forced
- 4:45:18it to be a CSV on one path. We extracted
- 4:45:21from the file. We removed the extra
- 4:45:24columns we didn't care about. We removed
- 4:45:25any duplicates on the other path over
- 4:45:28here. What we did specifically is added
- 4:45:31another data point that was just missing
- 4:45:32from this form. Then we merged all of
- 4:45:35this together. All we need to do is
- 4:45:37append because we're just stacking these
- 4:45:39particular inputs. and then we convert
- 4:45:41it to the file at the very end to have
- 4:45:43our brand new spreadsheet. So, awesome
- 4:45:46job on this section. What we're going to
- 4:45:49do next is actually take a look at how
- 4:45:51you can set up your Google credentials
- 4:45:53and uh this is going to be a big step
- 4:45:55for you guys because Google is used all
- 4:45:57the time. You can think of this Gmail,
- 4:46:00sheets, drive and uh it's pretty
- 4:46:02exciting stuff. So, I will see you guys
- 4:46:04in that video now and uh great work. So
- 4:46:08this section is going to cover how you
- 4:46:10could set up the Google suite within any
- 4:46:13end. This is going to use something
- 4:46:14called OOTH. And honestly, the first
- 4:46:17time you do it or take a look at it,
- 4:46:19you're going to think this is really,
- 4:46:20really confusing. But you know, kind of
- 4:46:22the best part about it is once you set
- 4:46:24up the Google Suite once, you don't have
- 4:46:26to do it again unless you're obviously
- 4:46:28working with customers in some sort of
- 4:46:30capacity. So once we set this up, you'll
- 4:46:33have access to using the different Gmail
- 4:46:35nodes. you're going to have access to
- 4:46:36Sheets, Google Drive, Google Docs, and
- 4:46:39some of the other Google services if you
- 4:46:41specifically want to do that. Um, I
- 4:46:43would recommend you just follow this
- 4:46:45step by step. And also, the full
- 4:46:47documentation on how to set this up will
- 4:46:49also be available to download.
- 4:46:51Obviously, pause the video as I go
- 4:46:52through this and follow it because it is
- 4:46:55super important not to miss a step.
- 4:46:56Otherwise, you are going to have issues
- 4:46:58and something that would take you 10
- 4:47:00minutes is now going to take you 20, 30
- 4:47:02minutes or longer. After we go through
- 4:47:05those specific documentation to set
- 4:47:08everything up, we're going to actually
- 4:47:10go through the specific triggers and
- 4:47:12nodes. I'm going to cover some of the
- 4:47:13use cases that I see from building real
- 4:47:15world workflows and then we're going to
- 4:47:17go over to projects. So, uh it's going
- 4:47:20to be another kind of a lengthy section
- 4:47:22over here, but it's really important
- 4:47:24because this unlocks a ton of
- 4:47:26capabilities for you guys. So, first
- 4:47:28let's jump into uh setting up the OOTH
- 4:47:31for all these. All righty. So, what
- 4:47:34we're going to do is set up Google Drive
- 4:47:36into any and uh so what I'm going to do
- 4:47:39over here is just click over here to add
- 4:47:41first step. I'm just going to search for
- 4:47:42Google Drive over here. And you can see
- 4:47:45that we have Google Drive
- 4:47:48and actions. I'm just going to go over
- 4:47:50here and click download a file. Right
- 4:47:52now, there's a few different ways that
- 4:47:54we could specifically set up our Google
- 4:47:56Drive connection. We could go right
- 4:47:59through here and build this out in our
- 4:48:01workflow. Or we can go into our account
- 4:48:03and do that as well. I'm just going to
- 4:48:05go over here and go through this side of
- 4:48:08things and set it up like that just
- 4:48:10because I feel like this is where most
- 4:48:12people are probably going to start at.
- 4:48:14And the first thing that you're going to
- 4:48:16want to do is go into your Google Cloud.
- 4:48:19Just Google search Google Cloud
- 4:48:21Platform. And what you're going to do is
- 4:48:22grab this link right over here. It says
- 4:48:24Google Cloud Cloud Computing Services.
- 4:48:26Make sure you go to your account and
- 4:48:28choose the specific account with your
- 4:48:30NAN account. Right? In this tutorial,
- 4:48:32I'm using the Ryan Nolan data. And then
- 4:48:34what we're going to do on this side of
- 4:48:36things is click over here to console. So
- 4:48:39this will load up. And what I'm going to
- 4:48:40do is create a brand new link from
- 4:48:42Google Cloud into N8N. So how I'm going
- 4:48:45to do that is we go over here to open
- 4:48:47project picker. And then we're going to
- 4:48:49click on new project, right? And I'm
- 4:48:52going to name this project N
- 4:48:55G Drive tutorial. Drive tutorial. Uh
- 4:49:00it's going to say location, no
- 4:49:02organization. That's perfectly fine for
- 4:49:04this. So I'm going to click create. And
- 4:49:06it says now viewing N Google Drive
- 4:49:09organization, no organization.
- 4:49:13But we're going into this N G Drive
- 4:49:16tutorial. So make sure you click on
- 4:49:18that. And then we have this up over
- 4:49:20here. So there's a few steps that we are
- 4:49:22going to have to take to set this up.
- 4:49:25And depending when you watch this, the
- 4:49:27user interface may have changed. So
- 4:49:29click over here to these three lines.
- 4:49:32And then we're going to go into API and
- 4:49:34services. Click on to the library over
- 4:49:37here. And then what we're going to look
- 4:49:38for is drive. You should really put
- 4:49:41Google Drive.
- 4:49:44Drive over here. And we're looking for
- 4:49:46the Google Drive API, right? So, we're
- 4:49:49going to click on that over here. And
- 4:49:51the first thing we're going to do is
- 4:49:52click on enable.
- 4:49:55This will take a second. Make sure that
- 4:49:56this runs and I will be back once this
- 4:50:00is ready to go. Okay. So, we have this
- 4:50:02over here. The first thing that we're
- 4:50:03going to want to do on this side of
- 4:50:04things is go over to the OOTH consent
- 4:50:07screen. So, click that on here and
- 4:50:09you're going to get this blank page. So,
- 4:50:11click get started. Uh, we're going to
- 4:50:13put our app name. I'm just going to call
- 4:50:15this N Google Drive tutorial. Right. And
- 4:50:19then what we're going to have to do as
- 4:50:20well is put in our email, which I have
- 4:50:22this already over here. Data. Next.
- 4:50:25Since this is going to be an external
- 4:50:27application, click over here to
- 4:50:29external. Click next. Contact
- 4:50:31information. Make sure to put in your
- 4:50:32email again. So,
- 4:50:35[email protected].
- 4:50:39Click next. And then I agree to Google
- 4:50:41API services. Awesome. continue and then
- 4:50:44click create on this side of things. So
- 4:50:47once that is done, our next step is
- 4:50:49we're going to want to go over here to
- 4:50:50the audience tab and we're going to want
- 4:50:52to click on publish app. Now if you
- 4:50:54don't click publish app, you're going to
- 4:50:56have issues within nan when you do set
- 4:50:58up this connection. So make sure that
- 4:50:59you publish your app. Click confirm
- 4:51:03and your app is done. Awesome. So now
- 4:51:05what we're going to do is go back into
- 4:51:07N8N. So it's going to say credentials to
- 4:51:11connect with right over here. I'm just
- 4:51:12going to click create new credentials
- 4:51:14and then we get to this popup screen
- 4:51:16over here. Right. So, a few things that
- 4:51:19we are going to want to set up
- 4:51:20specifically for that. What we're going
- 4:51:22to do is go back to home where we get
- 4:51:24this on this side of things. Go to APIs
- 4:51:26and services and then click on
- 4:51:28credentials. Uh so then we're going to
- 4:51:30get into this side of things. We're
- 4:51:32going to click on create credentials and
- 4:51:34select OOTH client ID. So then we have
- 4:51:37the application type. Now click on to
- 4:51:40web application. I'm just going to call
- 4:51:42this
- 4:51:44Google Drive NN put
- 4:51:50that. And then what we're going to do is
- 4:51:52authorize redirect URI. So click add new
- 4:51:55URI. Now go back in over here and you
- 4:51:58see it says OOTH redirect URL. Click to
- 4:52:01copy that. Go down below over here and
- 4:52:04paste that in over here and then click
- 4:52:07create. Okay. Now we have our client ID
- 4:52:09as well as our client secret. So really
- 4:52:11important that you copy these in. Also
- 4:52:13save these just in case. So first we're
- 4:52:16going to do is grab our client ID. All
- 4:52:18we go over here to client ID, paste that
- 4:52:20in. Then we go to our client secret.
- 4:52:23Copy that. We're going to paste in the
- 4:52:25client secret over here. So both of
- 4:52:27those are there. Next we're going to
- 4:52:28have to do is sign in with Google. Now
- 4:52:31if we didn't publish our app, we will
- 4:52:32have issues with the signin with Google,
- 4:52:35right? It's going to say N is
- 4:52:36authorized. So again, make sure you your
- 4:52:39app. So we're going to click over here
- 4:52:40to sign in with Google. And you can also
- 4:52:43see it says credentials successfully
- 4:52:44created. So what I'm going to do is grab
- 4:52:46the Ryan Nolan data account. And it says
- 4:52:48Google hasn't verified this app. That is
- 4:52:50okay. So click over here to advanced and
- 4:52:53click go to N cloud unsafe.
- 4:52:57And then make sure you select all on
- 4:52:59this side of things and click continue.
- 4:53:02And it says connection successful. This
- 4:53:04window will close in 5 seconds. Right?
- 4:53:07It closes down the window and then we
- 4:53:09have this in over here. The save
- 4:53:12password once, right? And we have that.
- 4:53:14Okay. So now I want to show you
- 4:53:17essentially how we could grab
- 4:53:19essentially images within a folder in
- 4:53:21Google Drive. This won't be a full
- 4:53:23tutorial on Google Drive within any but
- 4:53:26I feel like it is applicable just to
- 4:53:28throw this in here at the very end. So
- 4:53:29what I have on this side of things and
- 4:53:31this is actually going to be a tutorial
- 4:53:32I'm recording right after here. So
- 4:53:35essentially I have different images of
- 4:53:37cards and I want to grab them in nan
- 4:53:41right. So I haven't fully decided what
- 4:53:43I'm going to do with these images as of
- 4:53:44yet. I'm kind of still in the tutorial
- 4:53:45planning stages but regardless it's
- 4:53:48going to be part of it. So I felt like
- 4:53:49show this on this side of things. Uh so
- 4:53:51we're going to do is resource. We're
- 4:53:53going to grab file and folder. We're
- 4:53:56going to search for JPEG images. So put
- 4:53:58JPEG like this. Uh next we're going to
- 4:54:01do a filter. So click add filter. We're
- 4:54:03going to go over here to folder from
- 4:54:05list. And what we're going to do is look
- 4:54:07for the card images on this side of
- 4:54:09things. And to make sure that this has
- 4:54:11worked correctly, I'm just going to
- 4:54:12click execute step. And you can see on
- 4:54:15the JSON side of things, we have the ID
- 4:54:16of each of these images. And then the
- 4:54:18name, right? So you can see we have
- 4:54:20Hannibal over here in the five grade.
- 4:54:22This is where I was actually downloaded
- 4:54:24from. We have it right over here. Right.
- 4:54:28Up next on there is what? Wolf.
- 4:54:34We have Wolf. And then lastly, we're
- 4:54:36going to look for Cresbow
- 4:54:38and you can see he is on here as well.
- 4:54:41So, just like that, I showed you how we
- 4:54:44could set up Google Drive within your
- 4:54:46N8.
- 4:54:48Hey guys, post editing for this video, I
- 4:54:51realized initially this video I had on
- 4:54:54my YouTube channel only showed you how
- 4:54:55to set up Google Drive and you're going
- 4:54:57to probably want to set up Slides,
- 4:54:59Gmail, Sheets, all that good stuff. So
- 4:55:02I'm in my N Google Drive over here. I
- 4:55:05just want to quickly show you really
- 4:55:06fast how you enable this. So when you go
- 4:55:09to enabled APIs and services, just
- 4:55:11search for the next API. Uh so for
- 4:55:14example, if I want to get Google Sites,
- 4:55:15which I've never used actually in any
- 4:55:17NN, click on this over here and then
- 4:55:20just click on enable
- 4:55:23and then you'll see it's getting enabled
- 4:55:25to your account. Obviously, I called
- 4:55:26this one any Google Drive for that
- 4:55:28particular video when I was shown the
- 4:55:30Google credentials. Might want to change
- 4:55:32the name, but regardless, now you can
- 4:55:34see that this has been enabled in my
- 4:55:35account. Same thing with calendar. If I
- 4:55:37want to go over here to Google calendar,
- 4:55:39I'm just going to search for calendar
- 4:55:40and then we're going to look for this
- 4:55:41Google calendar API.
- 4:55:44And then we're going to click enable
- 4:55:45over here as well. So, we have to enable
- 4:55:48all these in our Google Cloud account,
- 4:55:50which this one's the and Google Drive
- 4:55:52just because it was the tutorial, not my
- 4:55:54main one. And then when you're back in
- 4:55:56Nan, what you have to do is you're going
- 4:55:58to have to authenticate each of these as
- 4:56:00well. So just follow the same process.
- 4:56:02Like I'm in version two over here.
- 4:56:04Obviously that video I recorded early on
- 4:56:06on my YouTube channel when we're jumping
- 4:56:08into any end and I just reused it
- 4:56:09because it's like credentials. But
- 4:56:11regardless, same exact thing that you're
- 4:56:13going to go through where we have
- 4:56:14credential to connect with. You're going
- 4:56:16to have to create a new credential
- 4:56:18and then just go through the OOTH over
- 4:56:20here. So, you know, the client ID,
- 4:56:23client secret, and you should be pretty
- 4:56:26good to go. You're gonna have to do that
- 4:56:27for each of these in particular uh that
- 4:56:30you want to use with Google. So,
- 4:56:32literally the process is exactly the
- 4:56:34same that I showed you. All you need to
- 4:56:36do essentially is enable each API one at
- 4:56:39a time directly here in Google Cloud and
- 4:56:42then just go back over here and copy and
- 4:56:44paste the same exact information into
- 4:56:46the individual notes. Create an account.
- 4:56:48Label it properly. Don't label like
- 4:56:50Google account one like I have in this
- 4:56:52test account. Um, and uh, be good with
- 4:56:55it and you should be pretty much set for
- 4:56:57the rest of this particular tutorial. If
- 4:57:00you have any questions, I'm actually
- 4:57:01going to put a full doc like step by
- 4:57:02step on how to set this up properly in
- 4:57:05our school group. So, that'll be there
- 4:57:08on that side of things. You can just
- 4:57:09follow it. I'll put screenshots exactly
- 4:57:13and should be pretty good to pair with
- 4:57:14that last video and then also this video
- 4:57:16over here. But I just realized that this
- 4:57:18would be a source of confusion if I only
- 4:57:20showed you Google Drive. So, I wanted to
- 4:57:22throw this in here really fast. I just
- 4:57:23recorded my laptop. All right, hopefully
- 4:57:25you guys are getting a bunch of value.
- 4:57:27And now, let's expand on Google Drive.
- 4:57:30So, let's cover the four different
- 4:57:32Google core nodes that you'll probably
- 4:57:34use about 90% of the time. The first one
- 4:57:38is going to be Gmail. And if you go over
- 4:57:40to the Gmail side of things, you'll
- 4:57:43notice that there is a trigger which is
- 4:57:45on message received. and you have 26
- 4:57:48different actions that you can do. So,
- 4:57:51let's first talk about the trigger and
- 4:57:53why this is really important. So, I'll
- 4:57:55just click over here. Uh first,
- 4:57:57obviously, you want to make sure that
- 4:57:58you set up your correct uh credential to
- 4:58:01connect with. And then you have a poll
- 4:58:03time. And if you go over here, it says
- 4:58:05time at which polling recurs. So, this
- 4:58:07will tell you like how often should this
- 4:58:10take a look at your Gmail account. And
- 4:58:13you can change this setting to every
- 4:58:15minute, every hour, day, week, month,
- 4:58:17every x or custom. Custom goes back into
- 4:58:20cron jobs which we talked a lot about
- 4:58:22before. You can say every month choose a
- 4:58:24specific hour. Every hour on what
- 4:58:27minutes, every day, what hour on that
- 4:58:30day, as well as minute, every minute
- 4:58:31itself, every x, you can set a value and
- 4:58:34you can set the unit whether minutes or
- 4:58:36hours. So, there's a lot of
- 4:58:37customization over here, which is why I
- 4:58:39don't really think most people are going
- 4:58:41to have to use a specific cron message.
- 4:58:44Uh, we're going to go over here and say
- 4:58:46sorry, cron job. So, you have that. You
- 4:58:48can also add in multiple polling times
- 4:58:50if necessary. Again, I just think most
- 4:58:52people are going to use that. So, you
- 4:58:54can also choose the event. So, by
- 4:58:56default, it's going to obviously be
- 4:58:57message received. And if you go to your
- 4:59:00filters, you can include spam and trash,
- 4:59:02which personally I probably wouldn't
- 4:59:04recommend. Uh, you can also search. So,
- 4:59:08if you want to only grab emails that
- 4:59:10have an attachment, you can see it says
- 4:59:12has attachment. It says use the same
- 4:59:14format as in the Gmail search boxes. So,
- 4:59:16you can actually click onto this and it
- 4:59:19tells you how to refine searches. So,
- 4:59:21you can say, okay, find emails sent from
- 4:59:24a specific person. You can go over here
- 4:59:27and say, search for emails received
- 4:59:29during a certain time period. Like,
- 4:59:30there's a lot of different options for
- 4:59:32you. Obviously, I don't think the time
- 4:59:33period is that great for this search,
- 4:59:36but uh if you want it from a specific
- 4:59:38person, I think that's beneficial. If an
- 4:59:41email has an attachment, let's imagine
- 4:59:42that you're doing some sort of contract
- 4:59:44work and you're getting contracts in and
- 4:59:46you need to extract the data from
- 4:59:48contracts. That's where has attachment
- 4:59:50would be useful as well as possibly uh
- 4:59:53from you can do multiple criteria with
- 4:59:57and over here. Again, I'm not going to
- 4:59:58cover every single thing over here
- 5:00:00because it's going to be different for
- 5:00:02every person, but you can put in that
- 5:00:04search over there, and a lot of people
- 5:00:06do that as well. I can do the read
- 5:00:08status, whether it's unread, emails.
- 5:00:11Again, if you're going to build this out
- 5:00:12as a trigger, I would assume most of
- 5:00:14these are going to be unread anyways.
- 5:00:15And then you can specify the sender over
- 5:00:18here. So, you could specify that in the
- 5:00:20search or you could put this on that
- 5:00:22sender side of things. You know, if you
- 5:00:25have an internal system and let's say
- 5:00:27for example, I work at fintech. So maybe
- 5:00:30we have an email that just sends things
- 5:00:32that are possible fraud transactions to
- 5:00:34another email. We could just search for
- 5:00:36that specific sender. You have also
- 5:00:38label names or ids over here. Uh so you
- 5:00:40can see uh there's quite a bit over here
- 5:00:43that you could fill out. Um and one of
- 5:00:46the things also that's interesting is
- 5:00:48simplify versus non-simplify. So, when
- 5:00:51you have simplify, you'll notice also
- 5:00:53other options are gone. So, it's just a
- 5:00:56it gives you a little bit of
- 5:00:58information. If you want all the
- 5:00:59information about your email, you're
- 5:01:00going to have to have to turn off
- 5:01:02simplify. I'll show you that here in a
- 5:01:03second. You can also download
- 5:01:05attachments when simplify is
- 5:01:07particularly off. So, I'm going to send
- 5:01:10myself an email and just show you the
- 5:01:11difference really quick. Cool. So, I
- 5:01:13just uploaded uh email or I should say
- 5:01:16uploaded, but I just sent myself an
- 5:01:18email over here. And what I'm going to
- 5:01:20do is just do a fetch a test event just
- 5:01:22so that way I can pull this in. So this
- 5:01:24is a simplified version of it. So you
- 5:01:27can see on this side of things from Ryan
- 5:01:29Nolan data to Ryan Nolan data. We can't
- 5:01:31actually grab the attachment. It's
- 5:01:33labeled as important.
- 5:01:35And uh yeah, I mean it's good. We have
- 5:01:38our subject line over here. The message
- 5:01:40on this email is actually blank. So
- 5:01:42maybe I should have put a message over
- 5:01:44here. And if I unsimplify this, if I
- 5:01:48fetch the test event, you can see we
- 5:01:49have a lot more information over here.
- 5:01:51We have the HTML as well the text uh
- 5:01:55again more from information. And then we
- 5:01:57can go into add options and we can
- 5:01:59download attachments. So obviously you
- 5:02:01want to make sure something is secured
- 5:02:02for those test or for the download
- 5:02:04attachments. And now you can see we have
- 5:02:06a binary file in here. So, when we were
- 5:02:09talking about binary files a little bit
- 5:02:10earlier, obviously you didn't have
- 5:02:13Google set up, but one of the most
- 5:02:15common use cases for binary files, we're
- 5:02:17going to get an attachment through a
- 5:02:20specific email. I actually did this
- 5:02:21recently with a doctor and we're
- 5:02:24building out essentially an end workflow
- 5:02:26where he gets a specific email from
- 5:02:28someone in his department and runs
- 5:02:30through a whole nan workflow and gives
- 5:02:32them results. So, it starts the whole
- 5:02:34workflow with a Gmail trigger kind of
- 5:02:36just like this. We download it. We
- 5:02:38extract it. Uh, next, which we've
- 5:02:40already covered the extract from file
- 5:02:41node, right? We go back over here to
- 5:02:44extract from file. And uh, sorry, I
- 5:02:47didn't meant to go there. Extract from
- 5:02:48file. Extract from CSV. And uh, we could
- 5:02:52just go grab attachment zero. Put that
- 5:02:54there. Remember, it's the field name.
- 5:02:55So, this is attachment zero. Execute
- 5:02:57step. And look at that. Now, I have my
- 5:03:00runner notes over here. This table
- 5:03:03grabbed directly from a Gmail. So
- 5:03:06hopefully a lot of this makes sense. In
- 5:03:09addition, what we could do too a little
- 5:03:11bit later on and actually let me show
- 5:03:12you this now. We could summarize emails
- 5:03:15with an AI agent. And I know we haven't
- 5:03:17really talked a ton about prompting as
- 5:03:19of yet. We got our feet wet a little bit
- 5:03:21with an AI agent, but it's very common
- 5:03:24to have a Gmail or email go straight
- 5:03:27into an AI agent and we do some sort of
- 5:03:28summary based off of this. It's also
- 5:03:31very common to either before or after
- 5:03:34the summary have some sort of if
- 5:03:36condition or a switch to route things
- 5:03:39around. So let's say we receive an email
- 5:03:42and if it's a criteria we go over here
- 5:03:44or we go over here. Typically this is
- 5:03:46probably after like an AI agent or after
- 5:03:48it's cleaned up. But you can start
- 5:03:50seeing how we we start piling things on
- 5:03:52together. And this is honestly just from
- 5:03:55the trigger itself. Maybe I should just
- 5:03:57keep these in over here. I'll keep this
- 5:03:59here for you guys notes.
- 5:04:01And uh yeah, so let's also I'm just
- 5:04:04going to send you another email really
- 5:04:06fast. I shouldn't say send you, send
- 5:04:08myself. Uh we're going to go over here,
- 5:04:10tester for video 2, and I'm going to
- 5:04:13send a body this time with no
- 5:04:17else. I'm just going to literally spam
- 5:04:18my keyboard and hopefully it doesn't hit
- 5:04:20in the spam filter. Right, let's uh test
- 5:04:24fetch event.
- 5:04:26Great. And you can see what we have over
- 5:04:28here. Where is this test for video two?
- 5:04:33Great. You can see the HTML of the
- 5:04:35email. All this getting spammed out,
- 5:04:38which is fantastic.
- 5:04:40And uh this is the non-simplified
- 5:04:43version. I don't have any attachments
- 5:04:44here. So I'll just remove that. But if
- 5:04:46we simplify this now, you can see we
- 5:04:49have over here on that side of things.
- 5:04:51So I would probably recommend and you
- 5:04:53can see we have a snippet over here. So,
- 5:04:56one other thing to mention is when you
- 5:04:57simplify it, you only get the snippet.
- 5:04:59Whereas, if you have it not simplified,
- 5:05:02you can actually get the full email.
- 5:05:04Obviously, there's some cleanup that
- 5:05:05you're going to have to do. But I would
- 5:05:07just recommend don't simplify your
- 5:05:09specific email. Let's talk about some of
- 5:05:11the Gmail nodes as well because I think
- 5:05:14some of these are going to be pretty
- 5:05:15important. Obviously, I don't have the
- 5:05:16time to cover every single one of these,
- 5:05:19but there's a lot that you could do with
- 5:05:20it. So, you could add labels to
- 5:05:22messages. You could delete a message.
- 5:05:24Where I find this helpful is like if you
- 5:05:26have a ton of different spam or things
- 5:05:27in your inbox you don't care about. I
- 5:05:29will say get care be be very careful
- 5:05:31though because I just probably wouldn't
- 5:05:34recommend to delete everything out of an
- 5:05:36inbox. Maybe you want to send it to a
- 5:05:39specific area instead of deleting it. Uh
- 5:05:41you can also get a message or get many
- 5:05:43messages. So if you want to get every
- 5:05:45single message within a conversation,
- 5:05:47you have that option over here. You can
- 5:05:49mark things as read or unread. Remove
- 5:05:51labels. You could reply to a message
- 5:05:54where this could be helpful for I don't
- 5:05:56really say you should focus on the
- 5:05:58draft, but imagine you want to
- 5:06:00autorespond to specific people. You
- 5:06:02could have it over there. Again, I would
- 5:06:04probably recommend draft just because
- 5:06:06you can add in something called human in
- 5:06:07the loop, which is essentially allowing
- 5:06:09someone to review whatever AI generates.
- 5:06:12Coming from the corporate world, a lot
- 5:06:14of companies believe in human in the
- 5:06:15loop. They don't want automatic
- 5:06:17responses. However, if you know
- 5:06:18something is like very very accurate and
- 5:06:20you're okay with the downside of it
- 5:06:22occasionally being inaccurate, maybe you
- 5:06:24do reply to a message, you can send a
- 5:06:26message automatically. Again, very
- 5:06:28helpful at the very end of a workflow if
- 5:06:30you have orchestration that you say once
- 5:06:32this is done, I want to send a message
- 5:06:34to person X and that could be a message
- 5:06:37or that could also be a message with an
- 5:06:38attachment. Uh, find that. You could
- 5:06:40send a message and wait for a response.
- 5:06:43There's more labels. I don't really use
- 5:06:45labels as much as a lot of other people
- 5:06:47do, but you have tons of actions.
- 5:06:48Create, delete, get label info, or get
- 5:06:50many labels. Drafts I find helpful. So,
- 5:06:52you can create a draft over here, and I
- 5:06:55would just recommend doing that. And
- 5:06:56we're just reviewing an email before
- 5:06:58it's finally sent. But it can save you a
- 5:07:00lot of time. And then you have thread
- 5:07:02actions. So, you can add label to a
- 5:07:03thread, delete a thread, get a thread,
- 5:07:05get many threads. So, I just want to
- 5:07:07show you really quick one of these
- 5:07:08options, which is going to be send a
- 5:07:10message. So, let's go over here and do
- 5:07:12that. And what we're going to do is I'll
- 5:07:15just use my Gmail account. Message send.
- 5:07:18We'll put an email. I'll say Ryan Nolan
- 5:07:20data
- 5:07:22[email protected].
- 5:07:26And we're going to say hello world.
- 5:07:31And uh we're say this email will be read
- 5:07:37live on a YouTube video.
- 5:07:41You can see for the options down below
- 5:07:43over here you can append to any
- 5:07:45attribution or not. So essentially what
- 5:07:47this does and a lot of people will turn
- 5:07:49this off if you have this on which is
- 5:07:51the default LCO sent by any N. A lot of
- 5:07:53people don't want to see that so they
- 5:07:54just turn this off. Next thing you can
- 5:07:57do is set add attachments. So what you
- 5:08:00would want to do is have a binary file.
- 5:08:02Remember that top section in red? Well
- 5:08:04that would be the name that you populate
- 5:08:05over here. So uh thought we had this.
- 5:08:09Oh, I guess I I um had the second
- 5:08:12example, but if you remember earlier
- 5:08:13where we downloaded that attachment and
- 5:08:14had the top name, essentially you just
- 5:08:16make sure that top name matches over
- 5:08:17there. If you have an attachment, again,
- 5:08:19very common to specifically add. Um, let
- 5:08:22me remove these. And you can add
- 5:08:23multiple attachments over here, too. You
- 5:08:25can BCC or CC. You could have a sender
- 5:08:28name over there as well. Send replies to
- 5:08:31or reply to sender only. Obviously,
- 5:08:33depends what happens. We're going to
- 5:08:34send this over here without with the
- 5:08:36anyn attribution so you can see what it
- 5:08:38looks like. And obviously you can just
- 5:08:40remove that. So I'll execute the step.
- 5:08:42It says unread sent inbox. And let's see
- 5:08:45if I got it over here. Great. I have it
- 5:08:47over here. And let me populate this
- 5:08:50here. So it says this email will be read
- 5:08:52live on a YouTube video. And then we
- 5:08:54have this email sent automatically with
- 5:08:56any end. So if you want to remove this
- 5:08:57email iss
- 5:09:00over here and remove that. I can send
- 5:09:02this again. And I'll say hello world 2.
- 5:09:04Execute that step. It's been sent. I'm
- 5:09:06just going to load this up in my email.
- 5:09:08And once that is ready to go, we'll see.
- 5:09:12Here we go. This email will be right
- 5:09:13live on YouTube video. And that is gone.
- 5:09:15Obviously, again, we have tons of
- 5:09:16different options over here. Really
- 5:09:18start messing with emails because it
- 5:09:20opens up a lot of opportunities there.
- 5:09:23Okay. So, next is sheets. Now before
- 5:09:26data table sheets was used honestly in
- 5:09:30almost every workflow just because most
- 5:09:32people have their Google credentials set
- 5:09:34up. It's super easy to integrate in with
- 5:09:36Google Sheets after it is obviously it's
- 5:09:38a little bit pain the first time you do
- 5:09:40it. Now let's talk about probably the
- 5:09:42most used out of the Google suite which
- 5:09:44is sheets. Now it's been down quite a
- 5:09:47bit since data tables have been added
- 5:09:49in. Also I want to say it's kind of
- 5:09:50funny when you type in sheet data tables
- 5:09:52is first then Excel then Google sheets.
- 5:09:55I feel like Google Sheets is should slot
- 5:09:57in number two, but obviously N obviously
- 5:09:59wants to promote their data tables as
- 5:10:01well. So that's why it's the very top.
- 5:10:02But if you go into Google Sheets, you'll
- 5:10:04see that we have different triggers as
- 5:10:06well as specific actions. I do want to
- 5:10:08call out our triggers first over here
- 5:10:11because I think some of these are pretty
- 5:10:13beneficial. So really there's three
- 5:10:16triggers, but they're based off of two
- 5:10:17actions. So the first one is on a new
- 5:10:19row added. So imagine that you have a
- 5:10:21spreadsheet and someone adds in a new
- 5:10:23row and you want to start a workflow
- 5:10:24based around that. And the second is on
- 5:10:27a row updated. So this is used typically
- 5:10:30when you want to watch one specific
- 5:10:32column and see if there is a change
- 5:10:34associated with it. And then lastly
- 5:10:35[snorts] you have on row added or
- 5:10:37updated which is either one of these
- 5:10:39two. I'm going to go and show you guys
- 5:10:42an example on a row updated at. So I'll
- 5:10:45go in here and right now I just have a
- 5:10:48pull time of every minute. Obviously,
- 5:10:49you can change that as required. We can
- 5:10:51go to a document. Choose the document
- 5:10:53you want. I'm going to just use all
- 5:10:55YouTube update. And what I'm going to go
- 5:10:57is find our sheet. And we're using sheet
- 5:10:59three over here. So, what I have on this
- 5:11:01sheet three is name of two artists and
- 5:11:04then a status. So, we're going to look
- 5:11:06for this status column to specifically
- 5:11:08change. And this is very, very common.
- 5:11:10Like people will build out a
- 5:11:12spreadsheet, they wait for a column
- 5:11:13status to change like ready to generate
- 5:11:15or good to go or something like that and
- 5:11:18then it builds out the workflow. So what
- 5:11:20we're going to do is build that out
- 5:11:23essentially. So we have a Google sheet
- 5:11:24trigger. We're looking at sheet three.
- 5:11:26We're triggering on a row updated.
- 5:11:28Again, you can look at row added or
- 5:11:29updated. I'm just going to do updated.
- 5:11:31And options you can say columns to
- 5:11:33watch. So this will only trigger the
- 5:11:36workflow when the status column is
- 5:11:38changed. So we'll say fetch test event
- 5:11:40and you can see we have Bruce Hornsby,
- 5:11:42Billy Joel. The status is yes and no.
- 5:11:44Obviously nothing has changed yet.
- 5:11:46That's fine. Then what we typically want
- 5:11:48to do next is have some sort of filter
- 5:11:51in place. So what we're going to do is
- 5:11:54have an an if. So
- 5:11:58what I'll have over here is say if and
- 5:12:02we're going to say status is equal to
- 5:12:04and then you can put something like
- 5:12:06ready to go. So ready to go. It's going
- 5:12:10to go and start the workflow over here.
- 5:12:12Otherwise, you can have a false. And I
- 5:12:15typically just say do nothing over here.
- 5:12:18No operation do nothing. We I know we
- 5:12:20haven't really covered this as of yet,
- 5:12:21but it literally as it's mentioned
- 5:12:23nothing, do nothing. So like it's just
- 5:12:25kind of a blank node. But essentially
- 5:12:28how this works, you'll see it goes and
- 5:12:31grabs the sheet and both of these are
- 5:12:33going to go into a false because nothing
- 5:12:35ends up happening. But if let's say for
- 5:12:37example we changed the status over here
- 5:12:40and we put the status to ready to go. Um
- 5:12:44if this was in production which we're
- 5:12:45not in production right now it would run
- 5:12:47the workflow automatically
- 5:12:50based off the polling time and it would
- 5:12:52go in over here and it would say hey
- 5:12:53this is ready to generate and then we
- 5:12:55would have our steps that we want to
- 5:12:57take over in this direction. So if I run
- 5:12:59this now,
- 5:13:00take a look. We have one item that
- 5:13:02populates into the if and that's going
- 5:13:04to be Bruce Hornby, which is ready to
- 5:13:06go. So a pretty nifty trick that people
- 5:13:08use to say, "Hey, this row has been
- 5:13:10updated. It's time to grab something
- 5:13:12else." Again, just an example I used
- 5:13:14recently for a customer is we're
- 5:13:15building out an email newsletter.
- 5:13:17There's like 10 columns worth
- 5:13:19information that they specifically
- 5:13:20wanted and there was one column which
- 5:13:22was a status column which we filtered
- 5:13:24based around. So as soon as someone put
- 5:13:26ready to generate, it started the
- 5:13:28specific workflow for that particular
- 5:13:30column. And then we had things that are
- 5:13:32like yes, it's done or a failure and
- 5:13:34things like that. Like it's a way more
- 5:13:35complicated workflow than I would show
- 5:13:37you guys over here, at least where we're
- 5:13:40at in the tutorial series, but or I
- 5:13:42guess one video um but another day. So
- 5:13:45that is one of the biggest use cases uh
- 5:13:48using a trigger. Someone makes an update
- 5:13:50to a column. If you were looking at for
- 5:13:53a specific row, imagine someone adds in
- 5:13:54a row. Let's add in another piano
- 5:13:58focused performer. I think the first one
- 5:14:00probably is Elton John because people
- 5:14:02compare him like Billy Joel. And then
- 5:14:04you can have whatever status, I don't
- 5:14:05know. And essentially that would start a
- 5:14:08workflow if we're just adding in a new
- 5:14:10specific row. I kind of prefer the
- 5:14:12status or whatever verbiage you want to
- 5:14:15use instead of status because I think
- 5:14:16it's a little bit cleaner and a little
- 5:14:17bit more secure because I feel like
- 5:14:19people could just accidentally add in a
- 5:14:20new row. Um and also you know you could
- 5:14:23have this filter in place over there.
- 5:14:25All right let's talk about some of the
- 5:14:26other things that you can grab in
- 5:14:27sheets. So if I go back to sheets
- 5:14:30we talked about the triggers but uh
- 5:14:32there is other actions. So you can
- 5:14:34actually create a spreadsheet or delete
- 5:14:36a spreadsheet. So imagine you have a lot
- 5:14:38of data you want to create a brand new
- 5:14:40spreadsheet. Essentially what you can do
- 5:14:41is go through over here. You can create
- 5:14:43a document over here title. You can add
- 5:14:45in specific sheets as well. Um this only
- 5:14:48creates the spreadsheet. You have to add
- 5:14:50in the data a little bit later on, but
- 5:14:52you have that option over there as well
- 5:14:54if you want to particularly delete one.
- 5:14:57Going back into sheets, go there. You
- 5:15:00can see we can append or update a row.
- 5:15:03Typically, if you do some sort of
- 5:15:04research or you have some sort of um
- 5:15:07monitoring or logging, you can update
- 5:15:09and things like, hey, this failed. And
- 5:15:10you can go back over here and say this
- 5:15:13failed if it didn't populate correctly.
- 5:15:16You can clear a sheet as well which just
- 5:15:18removes all the data. Uh you see already
- 5:15:20create a sheet on that side of things.
- 5:15:22So a sheet is the individual tab. A
- 5:15:25spreadsheet is everything all together
- 5:15:27which is why when we go into create
- 5:15:29spreadsheet you'll see the option over
- 5:15:31here for sheets and you can add in
- 5:15:33multiple sheets as necessary. Like in
- 5:15:35this example we have three sheets. So
- 5:15:37you could specifically create a
- 5:15:39spreadsheet with three speech and uh
- 5:15:42maybe I'll do that for you guys here in
- 5:15:43a second. Uh going in back into our
- 5:15:46Google Sheets uh we can also let's see
- 5:15:49we did append clear. We can delete a
- 5:15:51sheet delete rows or columns get rows in
- 5:15:54sheet as well as update rows. So let's
- 5:15:57first grab get rows and sheets. So just
- 5:16:00to show you I'm go my sheets account
- 5:16:02sheet within document. We're going to go
- 5:16:04and grab this YouTube one. So all
- 5:16:06YouTube we're going to go to sheet
- 5:16:07three. You can see that this grabs
- 5:16:10everything over here. So row number name
- 5:16:12and then also status. You could add in
- 5:16:15filters over here as you specifically
- 5:16:17want to. As you can see filters populate
- 5:16:21those. So we can add in filter. Let's
- 5:16:23say status over here is yes.
- 5:16:30You can see it's filtered down very
- 5:16:31similar to what we've had in data
- 5:16:33tables. So that is the get rows in
- 5:16:35sheets. And let me just add in a row as
- 5:16:37well. So you can just go in here by the
- 5:16:39way and and change this up. So instead
- 5:16:41of get rows, we can go and append row
- 5:16:46and uh you can add in something else. So
- 5:16:48you can see we have to map each of these
- 5:16:49over here. I'm trying to think of
- 5:16:51another piano player which we can add.
- 5:16:53There's a lot. I'll just put in Mosart.
- 5:16:56Mosart
- 5:16:58say no too much. And uh see execute
- 5:17:03step. That's been added. And I go to our
- 5:17:05sheet and you can see Mosart is added
- 5:17:07over there. However, let's say, you know
- 5:17:09what, I actually want to delete Mosart.
- 5:17:12He does not belong in here. So, instead
- 5:17:15of append, what we can do is delete. So,
- 5:17:17delete rows or columns, which as you saw
- 5:17:20in data tables, we don't have the option
- 5:17:22for deleting columns yet, only rows. And
- 5:17:24we're going to go to all YouTube update
- 5:17:26sheet 3. Delete. Obviously, we want to
- 5:17:28choose rows. And then you can start with
- 5:17:30a row number over here. There's other
- 5:17:32options too, but we're going to start in
- 5:17:35uh
- 5:17:37but we're going to start over here.
- 5:17:39We're going to just start with five. So,
- 5:17:42let's go start in row five. Execute. And
- 5:17:46it says true. And take a look. That is
- 5:17:49now gone. Again, there's a lot of
- 5:17:50options and you'll get used to sheets
- 5:17:52the more that you use it. But yeah, so
- 5:17:55just going in here one last time. You
- 5:17:57can create or delete an entire
- 5:17:59spreadsheet. You could create or delete
- 5:18:01a specific sheet in itself or clear the
- 5:18:03sheet. You can add in new rows over
- 5:18:06here. You could delete rows or columns.
- 5:18:08So there's not an option right now to
- 5:18:10add in a new column. You can see it's
- 5:18:12only with rows, append row, append or
- 5:18:14update there. You can get all the rows
- 5:18:16in a sheet. You could update that. And
- 5:18:18then again, you could start a workflow
- 5:18:19when someone adds in a new row or you
- 5:18:21could start a workflow when someone
- 5:18:23updates a specific column value. Um, so
- 5:18:26we're going to just throw all these over
- 5:18:28here.
- 5:18:29And you guys can download all these
- 5:18:31templates. What we're going to do next
- 5:18:33is take a look at I believe Google
- 5:18:35Drive. Yeah. So, we can look at Docs and
- 5:18:37Drive. Let's go to Docs first because
- 5:18:40it's kind of quick. So, we go to Docs.
- 5:18:45You'll see Google Docs right there. And
- 5:18:48you have different actions. You can
- 5:18:49create a document, get a document, or
- 5:18:51update a document. And uh yeah, so let's
- 5:18:55say you have some text you want to turn
- 5:18:57into a document. You can go in here and
- 5:18:58create a document. You specify where
- 5:19:01it's at. You create the title name
- 5:19:03associated with it. Then what you can do
- 5:19:06next is actually update the document. So
- 5:19:08if we go into Google Docs again,
- 5:19:11we'll just go over here and say update a
- 5:19:13document. So why I find this really
- 5:19:16helpful
- 5:19:18is you can actually specify where in a
- 5:19:21document you want to upload uh some
- 5:19:23additional information. What I've done
- 5:19:25in the past is create some sort of
- 5:19:27template. So essentially I'll put like
- 5:19:30brackets and say like fill this
- 5:19:31information in and we can have an any
- 5:19:33workflow that automatically updates a
- 5:19:36document uh based off of a template. So
- 5:19:38you can see we have an insert location
- 5:19:40at the end of a specific position. We
- 5:19:43can insert an index as well. But we can
- 5:19:46also just literally update sections
- 5:19:48within a document based off what is
- 5:19:50going on in any in workflow. Uh, we'll
- 5:19:53I'll show you one of those examples.
- 5:19:55Well, actually, I'll I have it on the
- 5:19:57channel, so I'd recommend you watch that
- 5:19:58video, but it's like 20 30 minutes. We
- 5:20:00don't have the time to cover that, but
- 5:20:03yeah, you can create a document. You
- 5:20:04could also update a document with a
- 5:20:06specific text. And then lastly, if you
- 5:20:09go to Google Docs, I believe the third
- 5:20:10one is you can just delete a document.
- 5:20:12It's pretty straightforward. Uh, no, you
- 5:20:14can uh create, you could get or update.
- 5:20:17So, I apologize. You can't actually
- 5:20:19delete a document over here, but you can
- 5:20:21get that document. Okay, that is Google
- 5:20:24Docs. Now, uh what's the use a little
- 5:20:27bit more is Drive and let's jump into
- 5:20:31Google Drive. There's a lot of different
- 5:20:33options over here. So, let's jump
- 5:20:34through those. The first one is the
- 5:20:36triggers. So, you can take a look at
- 5:20:38changes to a specific file or a folder
- 5:20:41in Drive. I've started workflows before
- 5:20:44where let's say for example someone
- 5:20:45drops a new image into a Google Drive
- 5:20:48folder and then it starts a workflow
- 5:20:50based around that. So you can see
- 5:20:51changes on a specific folder or the
- 5:20:53specific file to jump into some of the
- 5:20:55things that are used quite a bit.
- 5:20:57Sometimes I've had to copy a specific
- 5:20:59file to create another version of it. Uh
- 5:21:01you can create a file from text. You
- 5:21:04could also delete a file or download a
- 5:21:07specific file. So downloading a file
- 5:21:09will get that binary data directly in
- 5:21:11NEN. You can move files between things
- 5:21:14which I don't use that that often.
- 5:21:16Share, don't use that often. You can
- 5:21:18update or upload a file. Uh you can
- 5:21:20search files and folders that can be
- 5:21:23helpful. Uh you can create a folder,
- 5:21:25delete a folder or share folder. Again,
- 5:21:27these can be a little bit helpful for
- 5:21:28the create the folder or possibly delete
- 5:21:31the folder. Let's say you have a
- 5:21:33workflow that you want to create a
- 5:21:34folder full of images every single time.
- 5:21:36Uh that's where a create a folder would
- 5:21:38be. And I could see this being used with
- 5:21:40the new image or video models. You have
- 5:21:42a workflow that you're creating images
- 5:21:44for a specific Facebook ad and then you
- 5:21:46want to just create the folder based
- 5:21:47around it. Uh you can create a shared
- 5:21:49drive, delete share drive, get over here
- 5:21:52and update a shared drive. So uh
- 5:21:54download file is really kind of be the
- 5:21:56most important one. Let me just pause
- 5:21:58the video really fast and we'll grab a
- 5:22:00file to download. All right, so I'm
- 5:22:02back. Uh so what I essentially did is I
- 5:22:04have my Google Drive account. I did a
- 5:22:06resource. I just looked for a file over
- 5:22:08here. Operation download and then I
- 5:22:10grabbed a file from list. I literally
- 5:22:12just looked for the first thing that
- 5:22:13populated which I don't use this drive
- 5:22:15as much. So it's law of large numbers
- 5:22:17and this I believe was a PowerPoint
- 5:22:19presentation that I put for that
- 5:22:20specific YouTube video. Obviously can't
- 5:22:23view the PowerPoint here indirectly in
- 5:22:25any end. But you can see we have the
- 5:22:26binary file that has populated. So
- 5:22:28you'll use this quite a bit whether
- 5:22:30you're downloading a file or uploading a
- 5:22:31file into drive. Uh, so just to show you
- 5:22:34the opposite, we go to drive and then
- 5:22:36you can see upload a file right here. So
- 5:22:39again, you would want to fill this out.
- 5:22:41Choose a specific file name over there.
- 5:22:44Make sure the input data field name
- 5:22:45matches to what is over here. So one to
- 5:22:48one over there, a file upload, and then
- 5:22:51choose the specific folders that you
- 5:22:53particularly want. So your parent drive
- 5:22:54and the parent folder. There's other
- 5:22:56options over here as well if you want to
- 5:22:59specifically fill these out. I don't use
- 5:23:01those all the time. And yeah, that is
- 5:23:03essentially it. So that is the basics of
- 5:23:06the Google Suite. We're actually going
- 5:23:08to build out two workflows uh together,
- 5:23:11but just to kind of reiterate what we
- 5:23:13covered.
- 5:23:15First, Gmail. Really powerful because it
- 5:23:18allows you to send email messages,
- 5:23:19allows you to receive email messages and
- 5:23:21you can start a workflow based off of an
- 5:23:23email being sent to you if that has an
- 5:23:25attachment or not. Next is Google
- 5:23:27Sheets. So uh very similar to data
- 5:23:30tables that we have here in any and
- 5:23:31there's more that you could do in Google
- 5:23:33Sheets and I'm not even going to say
- 5:23:34sheets is the final solution because a
- 5:23:35lot of people migrate from sheets into
- 5:23:37air table as well. Uh but obviously
- 5:23:39we're talking about the Google suite
- 5:23:40right now. There's sheets very popular
- 5:23:42to start a workflow based off of a
- 5:23:44column change and you do see it
- 5:23:46sometimes also with a specific row
- 5:23:48change. A lot of updates that you can do
- 5:23:49to a spreadsheet. You have Google Docs
- 5:23:51over here where you could either create
- 5:23:53a new document, get a document or update
- 5:23:55a document. I've updated documents
- 5:23:57before just based off of templates. And
- 5:23:59then lastly, Google Drive. Um, very
- 5:24:01popular to look when a new file is
- 5:24:04uploaded. Uh, you can start a workflow
- 5:24:06based around that. This is downloading a
- 5:24:08file which allows you to get binary data
- 5:24:09into your NAN workflows. And also very
- 5:24:12popular at the very end of a workflow,
- 5:24:14you do some type of building out of a
- 5:24:17file, not out some complicated JSON, you
- 5:24:19convert that into a spreadsheet, and
- 5:24:21then you upload that into drive or you
- 5:24:23create some type of image. Let's say you
- 5:24:25have an image workflow. Uh you're
- 5:24:27building out images or videos and you
- 5:24:28upload that into the drive at the very
- 5:24:31end. Uh but this is really good for
- 5:24:32storage because you can't technically
- 5:24:34store the data here in any you'll have
- 5:24:36to upload it somewhere. You know,
- 5:24:38there's other services besides Google
- 5:24:39Drive, but everyone has drive if they
- 5:24:41have a Gmail account or a Google account
- 5:24:43and it just very simple to do. Man, I
- 5:24:46feel like this has been a very long
- 5:24:48section, but now we're going to talk
- 5:24:50about two different workflows. I'm just
- 5:24:52going to take a quick break and then
- 5:24:53we'll jump those. Great. Let's cover our
- 5:24:56projects for this section. So, the first
- 5:24:58one that we should do and I think
- 5:25:00there's going to be a better way to
- 5:25:02approach this a little bit later on in
- 5:25:03the course, but we're going to do a
- 5:25:06weekly report generator. So, let's
- 5:25:08schedule this at like a Monday at 9:00
- 5:25:10a.m. Google Sheets is going to pull the
- 5:25:13data and then what we're going to do is
- 5:25:15use a summarize node
- 5:25:18and then also kind of an email summary
- 5:25:20at the very end. So, I'll leave this up
- 5:25:24into interpretation for you to do, but
- 5:25:28let's try uh to build something out like
- 5:25:30this. Uh, pause the video. Three, two,
- 5:25:34one, give it a shot and then I will be
- 5:25:36back. All right. So, let's build this
- 5:25:39out. So, as it mentioned, we need to
- 5:25:42schedule this a Monday 9:00 a.m. So,
- 5:25:44we're going to go into triggers and uh
- 5:25:46we'll go over here and say on a
- 5:25:48schedule. First thing we're going to do
- 5:25:51is every week and then we're going to
- 5:25:52choose Monday and then we're going to
- 5:25:54choose 9:00 a.m. So, you can say 9:00
- 5:25:58a.m. on the dot. So, that's perfectly
- 5:26:00fine. Uh the next thing what we need to
- 5:26:02do is grab data from Google Sheets. So,
- 5:26:07we'll go into sheets
- 5:26:11like that. And then we're going to get
- 5:26:13over here, get rows in sheets. Now, this
- 5:26:15is going to be the tricky part because
- 5:26:17we're going to have to do some sort of
- 5:26:18filtering associated with it. I'm not
- 5:26:21going to worry about that um as of yet.
- 5:26:24We can either filter directly into the
- 5:26:26sheet or we could filter somewhere else.
- 5:26:28Also, I'm just going to create a new
- 5:26:29sheet for over here.
- 5:26:33And uh let's build out some basic stuff.
- 5:26:36So let's imagine we have a date over
- 5:26:39here and then we have invoice amounts.
- 5:26:43We're just going to spam these out.
- 5:26:48I don't know. It doesn't really matter
- 5:26:50to me. And let's set some dates. So
- 5:26:53we'll say this is like 1210
- 5:26:5725. We'll say this is 12 12 25. Let's
- 5:27:02put some stuff newer as well. So, we'll
- 5:27:05say 12 20 25 12 22 25
- 5:27:13then 12 7.
- 5:27:16So, this is going to be over here.
- 5:27:20And uh let's test this out. So, we'll go
- 5:27:24over here and grab this all YouTube
- 5:27:28update. We'll go into sheet four. Let's
- 5:27:30just execute this step. Great. We have
- 5:27:33our row number. We have our date as well
- 5:27:37as our invoice amount. So, we're looking
- 5:27:38pretty good over there on that side of
- 5:27:40things. Obviously, we're going to have
- 5:27:42to do some sort of filter. Personally,
- 5:27:44with dates, I find it probably easier to
- 5:27:46filter outside of that. Uh, we could
- 5:27:48also set timestamps and things like
- 5:27:50that. So, we'll just make a note and
- 5:27:52we're going to say filter over here
- 5:27:58to be oops to be completed.
- 5:28:03Then what I want to do is up next use a
- 5:28:08summarize node. So, we're going to say
- 5:28:09summarize and let's get some data points
- 5:28:12that we want necessarily in here. Um,
- 5:28:15obviously we're going to have to filter,
- 5:28:16but we can just test this for now. And
- 5:28:20what we're going to do on this side of
- 5:28:22things, I'm just going to go to the
- 5:28:23JSON. Let's count the row numbers, add
- 5:28:27in a field. Let's go over here and find
- 5:28:30the average invoice amount. Let's go
- 5:28:33over here and find the sum of invoices
- 5:28:37as well.
- 5:28:39And let's grab the max.
- 5:28:42So, we'll go over here.
- 5:28:45And I guess also instead of row number,
- 5:28:47we should probably do invoice amount
- 5:28:48instead.
- 5:28:51Great. And obviously you can choose
- 5:28:54these values if you want. And you can
- 5:28:56see we have this over there. Next, what
- 5:28:59I want to do is have an AI agent. And
- 5:29:02we're going to say is write a very basic
- 5:29:06prompt. So let's go over here. Define
- 5:29:08below. Say you are an agent. And by the
- 5:29:13way, this isn't the approach I would
- 5:29:14take normally. We're going to show you
- 5:29:16that a little bit later on the course,
- 5:29:17but we're going to say you're an agent
- 5:29:19that writes,
- 5:29:22a concise email
- 5:29:25that summarizes
- 5:29:27paid invoices
- 5:29:29for last week. Here
- 5:29:33are the data points.
- 5:29:38Let's expand that out. Say counts.
- 5:29:43average
- 5:29:46sum
- 5:29:48max
- 5:29:50and just throw these in.
- 5:29:54Let's put this as an expression.
- 5:29:57And then let's expand it out just to
- 5:29:59make this a little bit easier. Counts,
- 5:30:02average, sum,
- 5:30:04and max. Cool. And you can see all this
- 5:30:07is populated over here. Let's add in a
- 5:30:10model. So, let's add that in Gemini
- 5:30:12since we've used Enthropic a bit. And
- 5:30:14that's fine. We're just going to use
- 5:30:16Gemini 2. Actually, let's make this
- 5:30:19three. We go. Where is Gemini
- 5:30:253 Pro preview?
- 5:30:27That's image.
- 5:30:30Cool. So, we have that in over here. And
- 5:30:32now, like obviously, we have all our
- 5:30:34data points that we need. We can also
- 5:30:36build out an email.
- 5:30:38So, go to Gmail.
- 5:30:41We're going to say send a message.
- 5:30:43Obviously, we can send drafts if we
- 5:30:46want. I'm just going to send a message
- 5:30:47to myself to Ryan Nolan data
- 5:30:53gmail.com
- 5:30:56this week's report
- 5:30:59email type and [snorts] then message.
- 5:31:01Obviously, we're going to have to send
- 5:31:02it from the AI agent. All right. So, all
- 5:31:05this is kind of looking like it's going
- 5:31:06to work. The only thing that we need to
- 5:31:08do now is filter this out. So, what we
- 5:31:12can do is set that filter and let me
- 5:31:15think about how we're going to approach
- 5:31:16that. I'm just going to save this really
- 5:31:18fast. We're going to go into a filter
- 5:31:23and we could use AI to help us out with
- 5:31:25these dates if we want. We also have the
- 5:31:26date and time. So, there's a few
- 5:31:28different approaches that we could take.
- 5:31:32Then, uh we might actually use AI. So,
- 5:31:36we're going to go over here. Date and
- 5:31:37time
- 5:31:39is
- 5:31:41after we're going to say like last 7
- 5:31:44days.
- 5:31:45So, I'm going to ask really quick into
- 5:31:51a large language model how we can do
- 5:31:53that. So, watch what we're going to do.
- 5:31:54I'm going to copy this and I'm going to
- 5:31:56load up Claude
- 5:32:01and we're going to go over here. I'm
- 5:32:03going to say write an expression
- 5:32:06in nan to filter
- 5:32:10the dates
- 5:32:13by
- 5:32:16anything
- 5:32:18last seven days.
- 5:32:23All right. So I'm sending this over
- 5:32:24here. I sent in a screenshot. I sent
- 5:32:27some context associated with it. Let's
- 5:32:29see.
- 5:32:37This is pretty readable.
- 5:32:39So, let's test this out.
- 5:32:46And actually, we
- 5:32:51might want to use an if instead.
- 5:32:55We're back to if.
- 5:32:57Yeah, if is going to be better in this
- 5:32:59case than filter.
- 5:33:01All right. So, what we're going to do is
- 5:33:04grab this date,
- 5:33:08say date and time.
- 5:33:13Oh, actually, it's not going to matter.
- 5:33:16Throw that in there.
- 5:33:23You can see we can set an expression.
- 5:33:26All right. So, we're looking for last
- 5:33:29seven days. Let's see if this worked
- 5:33:31correctly.
- 5:33:35Obviously, this didn't work as I kind of
- 5:33:37expected.
- 5:33:39I'm going to send all of this as a
- 5:33:41screenshot
- 5:33:43there. So, check this out.
- 5:33:47That obviously didn't work. Send it back
- 5:33:49in over here.
- 5:33:52That'll tell me exactly what happened.
- 5:33:56I should have put also I'm using a
- 5:33:58filter node, not if.
- 5:34:05All right, there we go. So, it gives me
- 5:34:08this over here.
- 5:34:16Take a look
- 5:34:19today minus 7 days. Yeah, but exactly.
- 5:34:21So that's why I mentioned like sure you
- 5:34:23can be a little bit faster if you
- 5:34:25memorize all of this, but really like
- 5:34:28LMS are pretty good at this as well,
- 5:34:29just creating these expressions. So I
- 5:34:31just recommend that. And you see it it
- 5:34:33already took two things. I could have
- 5:34:34prompted this way better over here, but
- 5:34:37at the end of the day, it worked. We
- 5:34:38kept two items. We disregarded these
- 5:34:41specifically three. Um, obviously I kind
- 5:34:44of wish this 1220 was a little bit
- 5:34:46earlier, but that's fine. Or not
- 5:34:48earlier, later. But that's fine. All
- 5:34:50right. So now what I want to do is minus
- 5:34:52this send a message. I want to test this
- 5:34:54whole workflow. So we're just going to
- 5:34:56execute this workflow. I don't need this
- 5:34:58if anymore.
- 5:35:00And you can see we have a problem with
- 5:35:02our AI agent. The reason why is actually
- 5:35:04have another workflow going on in the
- 5:35:05background. So I'm going to just use
- 5:35:07OpenAI
- 5:35:09really fast. We're going to go to over
- 5:35:11here and use GPT5 Mini.
- 5:35:18Right now I'm actually uh building out a
- 5:35:20bunch of timestamps for our YouTube
- 5:35:21videos because they were missing and I
- 5:35:23actually have uh like 400 YouTube
- 5:35:25videos, 300 something like that. So it
- 5:35:28is not working because of that.
- 5:35:34All right. So now what you can see is
- 5:35:38have this going on
- 5:35:40subject paid invoices summary last week
- 5:35:46and uh
- 5:35:49cool
- 5:35:55all of there and I'm going to say do not
- 5:35:57include a sum a subject as well. say,
- 5:36:00"Do not include
- 5:36:04the subject,
- 5:36:07only the email body." Again, later we'll
- 5:36:10we'll cover what makes a good prompt.
- 5:36:15And obviously, we could define it a
- 5:36:16little bit better, but uh it's okay.
- 5:36:21All right, great. We have this now and
- 5:36:25we can pass that in over here. So let's
- 5:36:28send this output over here as the
- 5:36:31message.
- 5:36:33You can see what it looks like. Hi, last
- 5:36:34week we paid two invoices totaling
- 5:36:36average amount was 46 and the largest
- 5:36:38payment was 93. Is that correct? So
- 5:36:41let's go back over here.
- 5:36:44Yep, that looks correct. And we'll send
- 5:36:47that message. So send that. Put my
- 5:36:51correct Gmail account.
- 5:36:54Great. It's been sent. And then let me
- 5:36:56check my inbox to see if we actually got
- 5:36:58it or not.
- 5:37:01All right. And we jump over here. Look,
- 5:37:03this week's report, hi. Last week we
- 5:37:05paid two invoices totaling 93. Average
- 5:37:07payment was blah blah blah. Right. And
- 5:37:10that has been sent. Thanks. Obviously, I
- 5:37:12I should fix the formatting because you
- 5:37:14can see over here
- 5:37:17by going back the new lines and things
- 5:37:19like that weren't actually sent. So, you
- 5:37:22can see we should probably send this as
- 5:37:23like an HTML body. So that way we could
- 5:37:26format it a little bit better. Um, but
- 5:37:28this is just a very basic concept for
- 5:37:31you guys or very basic idea. Um, yeah,
- 5:37:35we could also change that out. So, email
- 5:37:37type instead of body. Let's put this as
- 5:37:38text so that way we could get that to
- 5:37:40work
- 5:37:42and I'll execute this as a step again.
- 5:37:45All right, it sends Let me see if we
- 5:37:47have that over here. Probably should
- 5:37:48have changed it a little bit different.
- 5:37:51Great. It actually did. So, last time I
- 5:37:54sent that as HTML. This time I didn't.
- 5:37:56And you can see we have that correct.
- 5:37:58HTML template, by the way, for email.
- 5:38:00Super super helpful if you're building
- 5:38:01out some designs and things like that.
- 5:38:03And obviously, I kept this attribution.
- 5:38:05I could change that if I want, but it's
- 5:38:06kind of just to show you guys here in
- 5:38:08that specific video. So, great. We know
- 5:38:11that is working for this use case.
- 5:38:13Hopefully, you're able to solve this
- 5:38:14out. Um, I just find pretty easy. Add in
- 5:38:17a filter first. schedule the trigger at
- 5:38:209:00 a.m. get the sheets, filter this
- 5:38:23out, summarize based off these data
- 5:38:24points, throw that into an AI agent, and
- 5:38:27then send a specific email associated
- 5:38:29with it. Uh, the next one, which we're
- 5:38:31going to do also, is an expense tracker.
- 5:38:35So, what we can do on this, and
- 5:38:38obviously, um, it's going to be a little
- 5:38:40bit different,
- 5:38:43but let me show you.
- 5:38:48All right. So, how we're going to work
- 5:38:51this is we're going to have a Gmail
- 5:38:52which receives email and it said
- 5:38:55receipt. I'm just going to say receive
- 5:38:56because I didn't show you OCR yet.
- 5:38:58Initially when I was building out this
- 5:39:00course, I was thinking about putting OCR
- 5:39:02a little bit earlier, but I decided to
- 5:39:03put an advanced AI section. So, uh,
- 5:39:06Gmail receives emails. We're going to
- 5:39:08extract the amounts out. We're going to
- 5:39:10use an AI agent right now, but later on
- 5:39:12in the course, I'm going to show you
- 5:39:13actually a better approach than using an
- 5:39:15AI agent. We're going to log this to a
- 5:39:17Google sheet and then uh we don't need
- 5:39:19that monthly summary. We're just going
- 5:39:21to do it like that and let's jump into
- 5:39:24that. So, if you want to give this a try
- 5:39:27uh test it out, pause the video. Three,
- 5:39:29two, one. Otherwise, I'm going to solve
- 5:39:32it. All right, let's go and solve this.
- 5:39:35So, what we're going to do is use Gmail.
- 5:39:37Go to Gmail over here. We're going to
- 5:39:38get a trigger
- 5:39:42say on message received. Now, you could
- 5:39:46remove this simplify if you want. I
- 5:39:49would recommend you remove it. We're
- 5:39:51going to make sure we have a specific
- 5:39:53sender since we're an email, a party
- 5:39:55email. I'm just going to put my email
- 5:39:57over here. So,
- 5:40:00data.com.
- 5:40:04So, I only want to receive it over here.
- 5:40:05Obviously, up to you if you want to add
- 5:40:07in that filter or not. We're going to
- 5:40:09extract out the amounts. So, we're going
- 5:40:11to have to use an AI agent on there. So
- 5:40:14imagine we have it just an email in
- 5:40:15general and we're going to want to
- 5:40:17extract that out. So we're going to put
- 5:40:19that over here. I'm going to grab our
- 5:40:23define below. Say I'm just going to say
- 5:40:25you are an AI agent that extracts
- 5:40:33dollar amounts
- 5:40:36from an email.
- 5:40:39only
- 5:40:42extract
- 5:40:44all the dollar amount
- 5:40:51email. I'm going to say only
- 5:40:56finals output
- 5:40:59to be an integer.
- 5:41:05And actually maybe we want to make this
- 5:41:07a float a float
- 5:41:10value and nothing else. Great. So we
- 5:41:14have our AI agents over there and then
- 5:41:16we're going to go to sheets.
- 5:41:19So go to sheets and then what we're
- 5:41:20going to do is let's say append a row in
- 5:41:24sheets.
- 5:41:25Put my sheets account over here.
- 5:41:27Obviously we don't have this sheet built
- 5:41:29out yet. So let's go and build out a new
- 5:41:31sheet. So, we're going to say these are
- 5:41:34like expenses. So, we can say expenses
- 5:41:39and we'll say like 50, 100, 125 or
- 5:41:4311245. It's fine. We're going to add in
- 5:41:45a new expense over here. Again, I'm not
- 5:41:49being super scientific about it. We're
- 5:41:51just making something simple just to
- 5:41:55make sure you get the concepts down. We
- 5:41:56have OpenAI over there. Awesome. Let's
- 5:41:59go in here. grab the documents that we
- 5:42:02want. Go to sheet five. We have that
- 5:42:06over here. We're going to say expenses,
- 5:42:08which is going to be after our AI agent.
- 5:42:10Obviously, I don't want to pin that yet.
- 5:42:11So, we're going to save that. I'm going
- 5:42:13to send an email to myself.
- 5:42:15And let me do that really fast. I'll
- 5:42:18show you the email, too.
- 5:42:21So, I'm going send that over here.
- 5:42:24Expense
- 5:42:261228.
- 5:42:29I spent
- 5:42:34$25
- 5:42:36on
- 5:42:37a Chipotle bowl
- 5:42:41and large chip.
- 5:42:46All right, I'm going send that out over
- 5:42:48here.
- 5:42:50And I have that in. So, let's fetch this
- 5:42:54test event.
- 5:42:57Great. So you can see over here I spent
- 5:43:00$25 on a Chipotle bowl uh enlarged chip
- 5:43:03in queso. We have our text as well and
- 5:43:07we're good. So now what I'm going to do
- 5:43:08is send that into our AI agent.
- 5:43:12We're going to say make this an
- 5:43:14expression
- 5:43:16and expand this out.
- 5:43:18We're going to say
- 5:43:20email. We're going to pass in this text.
- 5:43:25Great. So obviously we want to test our
- 5:43:27agent to make sure it's working
- 5:43:28properly. Hopefully we just get 25.
- 5:43:31Boom. We get 25.0. As I mentioned, it's
- 5:43:34a float. A float is just an integer with
- 5:43:36decimals at the very end. Uh since we're
- 5:43:38doing a currency, obviously we want to
- 5:43:39have that as well. We don't want to just
- 5:43:41round it to the biggest whole number.
- 5:43:44All right. So now what we're going to do
- 5:43:45is just add this into our sheets. So we
- 5:43:49have our output over here. We're going
- 5:43:50to send over this expenses on that side
- 5:43:53of it. So, we've added that in and uh
- 5:43:56execute step 25. So, now going back over
- 5:44:01to our sheet, you can see 25 has been
- 5:44:03particularly added. So, pretty cool
- 5:44:05workflow. We have a Gmail trigger that
- 5:44:07expects an email from a certain email.
- 5:44:09We have an AI agent that takes that
- 5:44:11email, extracts out the dollar amount as
- 5:44:13required. Obviously, if there's multiple
- 5:44:15dollar amounts, it's going to get
- 5:44:16confused. So, you should prompt it a
- 5:44:18little bit better. Like, hey, should we
- 5:44:19sum these up? Should we ignore it?
- 5:44:21Should we take the max?
- 5:44:22you need to define your AI agent for all
- 5:44:24the scenarios that you can think of.
- 5:44:26Obviously, like we're not covering that
- 5:44:28yet in this course. And then we just
- 5:44:30appended a row in sheet just like this.
- 5:44:32So, I've seen literally jobs on like
- 5:44:34freelance platforms like Upwork that are
- 5:44:36this easy at times. Um, but it just adds
- 5:44:38in like one or two additional steps and
- 5:44:41uh yeah, there a lot of different
- 5:44:42opportunities over there. So, that was
- 5:44:45the Google section of the course. We
- 5:44:48essentially learned how to set up Gmail.
- 5:44:51We learned how to set up Sheets, Docs,
- 5:44:54and also Drive. Then we went and built
- 5:44:57out two workflows. Obviously, this was
- 5:44:58the more difficult of the two workflows
- 5:45:00because I asked for a few extra steps.
- 5:45:02And you know, this combined both Gmail
- 5:45:04as well as Google Sheets. I feel like we
- 5:45:06didn't cover the other ones that well
- 5:45:08through examples of Drive and things
- 5:45:10like that. But probably a little bit
- 5:45:11later on in the course when we learn
- 5:45:13about images and videos, uh, it's going
- 5:45:14to be a little bit more applicable.
- 5:45:16Anyways, I think up next we're going to
- 5:45:19be jumping into HTTP requests. No, we
- 5:45:22actually have documenting up workflow
- 5:45:24first and then we're going to be jumping
- 5:45:25into HTTP. So, uh, awesome job guys and
- 5:45:29I'll see you in the next lectures. So,
- 5:45:31this section is going to be a bit
- 5:45:32[clears throat] of a breather in
- 5:45:33comparison to the previous ones. In
- 5:45:35addition, I know upcoming we have our
- 5:45:38HTTP request and web hook which tend to
- 5:45:41be pretty dense with information. So,
- 5:45:44you guys need a break. we're going to be
- 5:45:46talking about today how to document your
- 5:45:48workflows. I feel like this is a pretty
- 5:45:51important concept. So, we should throw
- 5:45:52it pretty early on within the course
- 5:45:54because what tends to happen with a lot
- 5:45:57of workflows, people will build them out
- 5:45:58and later on they forget like why did I
- 5:46:01build out this logic? What is going on?
- 5:46:03Or if you deliver it to a customer, they
- 5:46:05don't know nan and if they're trying to
- 5:46:07debug something, they just have no
- 5:46:09understanding what you particularly
- 5:46:11built out. So, I'm going to be showing
- 5:46:13you guys essentially how you can use
- 5:46:15sticky notes, how you can tidy up your
- 5:46:17workflows, uh some of the other things
- 5:46:18you can throw in with these nodes as
- 5:46:20well. In addition, I briefly want to
- 5:46:23talk about one way to kind of present
- 5:46:26updates with your workflows to
- 5:46:29customers. Now, we haven't even really
- 5:46:31talked about customers since it's going
- 5:46:32to be way later on in the course, but I
- 5:46:34just wanted to quickly talk about that
- 5:46:36in here. So, one of the tools that I use
- 5:46:38all the time is something called Loom,
- 5:46:40and it saves me a ton of time. So
- 5:46:42essentially what Loom is is you can
- 5:46:44record short videos uh just on your
- 5:46:47desktop and then send it over to your
- 5:46:49customer and it essentially renders
- 5:46:51really really fast. And why that is
- 5:46:53helpful? First, you can kind of walk
- 5:46:54through what you're building in a
- 5:46:56workflow, show some results and you
- 5:46:58don't even have to jump onto meetings.
- 5:47:00See, one of the things that takes away a
- 5:47:02ton of time when you're building out
- 5:47:04things for customers or you want to send
- 5:47:07something for clarity is jumping on
- 5:47:09calls because you'll say, "How are you
- 5:47:11doing?" You'll chitchat a little bit and
- 5:47:13later you find out it's 30 minutes where
- 5:47:15you could record a two or three minute
- 5:47:16Loom video and you are way farther
- 5:47:19ahead. So, make sure you guys are using
- 5:47:21Loom. I'm not affiliated with them in
- 5:47:23any means, but honestly, it saves me a
- 5:47:25ton of time. also a little bit outside
- 5:47:27the scope of the section. What I like to
- 5:47:29do when I give a final workflow is build
- 5:47:31out a Google document demonstrating like
- 5:47:34why we have things in certain sections.
- 5:47:37We'll talk about this in like presenting
- 5:47:40findings and things like that to
- 5:47:41customers at the very end of the video,
- 5:47:43but I just felt like we needed to
- 5:47:44quickly talk about Loom. All right, so
- 5:47:46let's jump into our workflow. And uh
- 5:47:50obviously I have nothing over here yet,
- 5:47:52but let's just build out something that
- 5:47:55could be useful. Let's say we have a
- 5:47:58form trigger. And obviously I'm not
- 5:47:59going to build out an actual workflow. I
- 5:48:02just want to show you the documentation
- 5:48:03side of things. So let's say we have a
- 5:48:05form trigger over here. Uh the next what
- 5:48:07we want to do is extract um from our
- 5:48:10file and we're going to just pretend we
- 5:48:12have like a spreadsheet. Okay, so we're
- 5:48:14going to extract from a file. We'll say
- 5:48:16extract from CSV. Next thing we want to
- 5:48:19do, let's say we have an AI agent of
- 5:48:21some capacity. The AI agent is going to
- 5:48:24go and write something for each of these
- 5:48:26customers and do some research. Let's
- 5:48:28say we add in another tool over here.
- 5:48:31Um, I know I haven't showed you guys
- 5:48:33tools yet, but that's fine. Let's say we
- 5:48:35have a perplexity tool over here that
- 5:48:38does some deep research for a specific
- 5:48:41customer. And then what we have next is,
- 5:48:44hey, we have all this information
- 5:48:47together. We need to write an email. So
- 5:48:50we'll have another AI agent that
- 5:48:52literally just focuses on writing out an
- 5:48:54email. And lastly, let's send this over
- 5:48:56to a customer. So we're going to send
- 5:48:58this through a Gmail node. And uh all
- 5:49:00we're going to do is click send a
- 5:49:02message. Very basic workflow. I'd
- 5:49:05probably change a lot of things.
- 5:49:06Obviously, we would put different chat
- 5:49:07models in over here. Let's just put
- 5:49:10these over here just to make this look a
- 5:49:12little bit cleaner. And uh yeah, so
- 5:49:15let's start off and show you where these
- 5:49:17sticky notes are. So first thing what
- 5:49:19you would want to do is mention the
- 5:49:22whole process like what is going on.
- 5:49:24We're going to go into our sticky notes
- 5:49:26and I like just putting you know how
- 5:49:28does this workflow start? So this
- 5:49:30workflow starts and I'd make a note.
- 5:49:33Okay, this workflow starts
- 5:49:38starts
- 5:49:39when someone
- 5:49:42enters in information
- 5:49:45on form on website. They upload a CSV
- 5:49:52CSV they want more information for
- 5:49:57or okay and I just start going down the
- 5:50:00line
- 5:50:01extract from file is pretty basic so we
- 5:50:04understand what is happening there for
- 5:50:05this AI agent what we're going to say is
- 5:50:08we research
- 5:50:10the leads presented in the spreadsheet
- 5:50:18perplexity
- 5:50:21helps us get this information.
- 5:50:23This information again if I was actually
- 5:50:26making this finalized I would put a lot
- 5:50:28more detail in here. This is just a
- 5:50:30quick video and then I'd say over here
- 5:50:32this AI agent
- 5:50:35this AI agent
- 5:50:37AI agent goes and gets goes and I should
- 5:50:43rewrite this. This AI agent creates an
- 5:50:45email
- 5:50:48an email
- 5:50:50based on the examples
- 5:50:54from XYZ. I don't know XY and Z. And
- 5:50:59then we can lastly have that send
- 5:51:02message to the customer or whoever we
- 5:51:04send that specific email to. So, this is
- 5:51:07like pretty poor on the documentation
- 5:51:10side of things, but at least there is
- 5:51:12some sort of documentation. I I really
- 5:51:14recommend when you have things like AI
- 5:51:16agents where it's not super clear what
- 5:51:18is going on, you write a sticky note
- 5:51:20because you have to go in over here.
- 5:51:22You're going to have to take a look at
- 5:51:23the prompt that someone wrote as well as
- 5:51:25uh the system message. It's just extra
- 5:51:28clicks and you don't necessarily need to
- 5:51:30do that. In addition, one of the things
- 5:51:31that's really helpful is we can actually
- 5:51:33change what these nodes are called. And
- 5:51:36you know, it's not really helpful to
- 5:51:37have AI agent, AI agent one. And if you
- 5:51:39build more advanced workflows, which you
- 5:51:40will, you have like AI agent 2, AI agent
- 5:51:433, all the way to like five or six
- 5:51:44sometimes. So let's just re label these.
- 5:51:47And you can see if I go to the top left,
- 5:51:48I'll say email
- 5:51:51creator
- 5:51:53AI agent.
- 5:51:55And obviously label these how you want.
- 5:51:57And you could have your own formatting.
- 5:51:58And like this is a little bit too long.
- 5:52:00So maybe I just want to call this an
- 5:52:01email creator. I would say like lead
- 5:52:05researcher.
- 5:52:09Man, I have caps lock on. I don't even
- 5:52:11know. Maybe I don't. Hold on. Know what
- 5:52:15it is? It's my mic that's in the way and
- 5:52:18I can't see
- 5:52:21my nice spelling as well. But let's
- 5:52:23imagine I actually spelled this
- 5:52:24correctly. And you could re label these
- 5:52:27as well. and I'll just say like extract
- 5:52:31from CSV. So that's pretty helpful. In
- 5:52:35addition, what you can do if you go to
- 5:52:37the settings, you'll notice that we have
- 5:52:39notes and you can display notes and it
- 5:52:41says this grabs.
- 5:52:45Obviously like that's not the case, but
- 5:52:48you can see we have a little bit extra
- 5:52:50text over here. Um, sorry, I should
- 5:52:52probably put on this one. This
- 5:52:54researches a lead. this uses perplexity
- 5:52:58and gets lead info.
- 5:53:02And you can see it's a little bit too
- 5:53:04long on this heading. So just put a
- 5:53:05small few lines like maybe three words
- 5:53:07as a description. But you can throw that
- 5:53:09there. Same thing happens over here
- 5:53:11outside the AI agent. You just have this
- 5:53:13extra line. Um so this is pretty
- 5:53:15helpful. You can see we have this also
- 5:53:17over here. Upload
- 5:53:20CSV.
- 5:53:22And uh you can see that's populated
- 5:53:24right there. So you can use a mixture of
- 5:53:26you know reabeling the node name. You
- 5:53:29could use sticky notes as well as
- 5:53:32putting those additional notes here at
- 5:53:33the bottom. Just remember it's like
- 5:53:35three and you have to click display note
- 5:53:38in that particular flow. So we're going
- 5:53:41to save this. I just want to show you a
- 5:53:43few other things as well with these
- 5:53:45sticky notes that kind of may be helpful
- 5:53:47for you. So I see some people they have
- 5:53:50different like label of colors. So you
- 5:53:52can see if we click on this right over
- 5:53:54here we can change the colors associated
- 5:53:56with this. So some people might have
- 5:53:58certain sections or readmes based around
- 5:54:00this. I would also recommend if you have
- 5:54:02like a really advanced workflow. All you
- 5:54:05should all you could do and I should say
- 5:54:07all you should do is maybe have like a
- 5:54:09read me section here at the top like
- 5:54:10what is happening in this particular
- 5:54:12workflow and and one of the things that
- 5:54:14might be a little bit helpful on that is
- 5:54:16having a distinct color in addition
- 5:54:18having a different um size of text like
- 5:54:20all this text is the same in fact if you
- 5:54:22go over here and put a header you can
- 5:54:24either put one two or three hashtag or
- 5:54:27pound signs and it changes the side so
- 5:54:29you can see like for example readme like
- 5:54:31this and you'll see the size of it is
- 5:54:33large You could also change this up to
- 5:54:36two. It's a little bit smaller. You
- 5:54:38could change this up to three and it's
- 5:54:40even smaller. So, um, typically I'll
- 5:54:42probably put like a two. I think this is
- 5:54:44pretty good and it's super helpful. Now,
- 5:54:46there's a lot of other things that you
- 5:54:47can put into a sticky note like this as
- 5:54:49well. You can actually embed in images
- 5:54:51and videos. In fact, I've embedded
- 5:54:53YouTube videos in these. You can also
- 5:54:55link out to stuff. And I just want to
- 5:54:57quickly show you the documentation. So,
- 5:54:59you can say you can style with markdown.
- 5:55:02So if you know markdown, you have that
- 5:55:04option over there. I'm just going to add
- 5:55:06in another sticky note so you can
- 5:55:07actually see the guide. And this is what
- 5:55:09I recommend basically. Again, I don't
- 5:55:11memorize everything. But you can see you
- 5:55:14can change the position, which I think I
- 5:55:16already covered in the basic first
- 5:55:17video, but you can put the sticky note
- 5:55:19behind the particular nodes. This is
- 5:55:21markdown. So you can see bold is two
- 5:55:23stars. So if I want to do bold, let's
- 5:55:25just go over here say bold test
- 5:55:31test like this
- 5:55:34that is now bold. You have asterisk with
- 5:55:37the italics. You have italic which is
- 5:55:40one star. This is a headings which I
- 5:55:41talked about. This is an example of
- 5:55:43putting in a link. You can create lists.
- 5:55:45Oh, which I find really helpful as well,
- 5:55:47especially in a read me. Like you could
- 5:55:49say like step one, [snorts]
- 5:55:51step one, add CSV file
- 5:55:56process
- 5:55:58research. And again, these are one word.
- 5:56:00I wouldn't recommend that. Um, I'd say
- 5:56:03email and then send.
- 5:56:06Let me fix that for again. Be very
- 5:56:09thorough with your documentation. But
- 5:56:10you can see I built out a list on that
- 5:56:12side of things. It says make images full
- 5:56:14width. Then you can also embed a YouTube
- 5:56:16video. So pretty powerful stuff with
- 5:56:18these sticky notes and uh throw that
- 5:56:21together. All right. Promise you this is
- 5:56:23the last thing in this section. But
- 5:56:25another thing I sometimes see is people
- 5:56:27have like jumbled up workflows. Like
- 5:56:28don't make this your workflow. It
- 5:56:30literally takes two seconds to fix this.
- 5:56:32All you got to do is click this tidy up
- 5:56:34and look at that. Way better. And just
- 5:56:36make sure these sticky notes are in
- 5:56:38places that you think would be
- 5:56:40acceptable. If you're coming from
- 5:56:41programming background, just think of
- 5:56:42sticky notes as like comments. And um
- 5:56:44for those who don't have a programming
- 5:56:46background, comments are just really
- 5:56:48important. So that way someone later on
- 5:56:49can understand what you are particularly
- 5:56:52doing. And yeah, that is essentially the
- 5:56:54basics of a documenting workflow. Again,
- 5:56:56I would recommend that you probably also
- 5:56:58have some sort of video demonstrating
- 5:57:00like what is going on in this workflow.
- 5:57:01You could use a loom. You could also
- 5:57:03have a word document just doing a very
- 5:57:05quick writeup. Make sure you put in
- 5:57:07sticky notes. I recommend putting in a
- 5:57:09readme. Uh there's different formatting
- 5:57:11that you can put in the sticky notes as
- 5:57:13well. Very basic workflow with these
- 5:57:14five. Make sure that these aren't all
- 5:57:16over the place. You know, there's no um
- 5:57:19example project for this section since
- 5:57:21it's kind of pretty straightforward. Uh
- 5:57:23but the next one when we're going to be
- 5:57:24talking about HTTP requests, you can bet
- 5:57:26there's quite a few examples. So that
- 5:57:28way uh you get that skill ingrained
- 5:57:29because it is so important for
- 5:57:32orchestration. All right, we're going to
- 5:57:33jump into that section right now. So
- 5:57:35these next two sections are going to be
- 5:57:37blended together. The first part I'm
- 5:57:38going to be teaching you about the HTTP
- 5:57:41request node which allows us to use APIs
- 5:57:45within our NE workflows that are not
- 5:57:48native to NEN. And the second section
- 5:57:51which is going to be kind of lecture 13
- 5:57:53is going to be the examples of using
- 5:57:55real world APIs. We'll use some that
- 5:57:57have technical pageionation. We'll use
- 5:57:59some that you have to have credentials
- 5:58:02for. Others they're going to be pretty
- 5:58:04easy to set up. and we'll build a few
- 5:58:06different workflows from this. I assume
- 5:58:09both these sections are going to be a
- 5:58:10bit longer, which is why I separated
- 5:58:12them out. The first part will be
- 5:58:14teaching you the basics and then the
- 5:58:16second part will be implementing that
- 5:58:18out. So for this first part, I apologize
- 5:58:20for the lack of ruled examples. The
- 5:58:22second part um which is going to be
- 5:58:24lecture 13 is going to really focus
- 5:58:27around using the HTTP request. So with
- 5:58:32that out of the way, let's start
- 5:58:33covering it because there's a lot to
- 5:58:35start learning and awesome. So what
- 5:58:38we're going to first talk about is the
- 5:58:41node. So just go over here to the plus
- 5:58:43and then look for HTTP like this and
- 5:58:46you'll see HTTP request. Now out on the
- 5:58:48service level there's a lot that is
- 5:58:51going on. First we have a method. So we
- 5:58:54have delete, get, add, options, patch,
- 5:58:58post or put. Then we have authentication
- 5:59:01which if you go over here you can see
- 5:59:03there's credentials and like predefined
- 5:59:05it seems like there's so many
- 5:59:06credentials there but then you have
- 5:59:08generic and you have a lot as well. We
- 5:59:10have header, custom off bear, basic o
- 5:59:13like there's a lot there. And then we
- 5:59:16have query parameters, we have headers,
- 5:59:19we have body like and then you have even
- 5:59:22other options over here. Batching,
- 5:59:24lowercase headers, redirects, responses,
- 5:59:27pageionation, proxy, timeout. And you're
- 5:59:29like, man, I'm confused. What does all
- 5:59:31this mean? And in reality, you're not
- 5:59:34going to need all this for every single
- 5:59:35API. And every API is going to be a
- 5:59:37little bit different. What I recommend
- 5:59:39that you do though, however, is take a
- 5:59:42look at API documentation because that
- 5:59:44should be kind of the first place where
- 5:59:47you look in every step because it'll
- 5:59:49tell you exactly how to set up this
- 5:59:52node. In addition, biggest shortcut of
- 5:59:55all time is this importing curl. So why
- 6:00:00this is beneficial probably about 90% of
- 6:00:03the time you import and curl it changes
- 6:00:05all the settings over here hopefully
- 6:00:08with our second examples which we're
- 6:00:10going to go in lecture 13 there is an
- 6:00:12example with a curl I assume there would
- 6:00:14be and we could automatically fill this
- 6:00:17out and you can see it's literally as
- 6:00:18they call it game changer but let's
- 6:00:21start talking about the first section
- 6:00:24which is going to be your methods now
- 6:00:26there's a lot over Here you don't really
- 6:00:29have to focus on all these. Let's talk
- 6:00:31about the two that are the most popular.
- 6:00:35So the first is get. And essentially you
- 6:00:38can think of get as you're going to be
- 6:00:40grabbing data from a website. So let's
- 6:00:43say a website has information on leads.
- 6:00:47Let's say you are building out a lead
- 6:00:50list and you want to supplement that
- 6:00:52information. You want to see, hey, how
- 6:00:53much does this lead make every year and
- 6:00:56what is their email address? Um, maybe
- 6:00:58you have other personal information
- 6:01:00you're matching on, but you just want
- 6:01:01those two pieces of information. A
- 6:01:03website has these two pieces of
- 6:01:05information. Well, if you do a get
- 6:01:07request into that website, you're going
- 6:01:10to be able to grab that data. Obviously,
- 6:01:12there's more things involved with it,
- 6:01:16but for the method purposes, often that
- 6:01:18will be a get request. The next one
- 6:01:21which you're going to use just as much
- 6:01:24actually I'll say a little bit less is
- 6:01:26going to be post. Now post is going to
- 6:01:30essentially create data on that website.
- 6:01:34So let's say for example you want to use
- 6:01:38a pre-made scraper and a scraper will
- 6:01:41allow you to grab information on the
- 6:01:44internet. Well you have to boot up that
- 6:01:46scraper. So to boot up that scraper or
- 6:01:48boot up a service that is on that
- 6:01:50website, you're going to do a post
- 6:01:53request. So how these work together is
- 6:01:55in the real world, sometimes you have to
- 6:01:58use a post request to activate some
- 6:02:01service on a website and then use a get
- 6:02:03request to get the final results. So in
- 6:02:06the past uh one of the services that
- 6:02:09I've used before is Appify. And this is
- 6:02:11a clear example of posting first and
- 6:02:14then getting the information later. So
- 6:02:16essentially how this worked is I would
- 6:02:18have scrapers I would want to use for
- 6:02:20Instagram. Let's say I want to grab
- 6:02:21Instagram followers for specific
- 6:02:23accounts. Well, you have to run the
- 6:02:25scraper first. So we post first to run
- 6:02:28the scraper. When the scraper runs, it
- 6:02:31has all of its data ready to go. And
- 6:02:33with another API request, I actually get
- 6:02:36that data and then I bring it back into
- 6:02:38nan. So we're going to have to actually
- 6:02:40set up two different NAN nodes. One for
- 6:02:43post and one for get. I'll put all the
- 6:02:46notes here in a second so we can
- 6:02:48reiterate it once again. But then the
- 6:02:50other things over here that you're going
- 6:02:52to use occasionally.
- 6:02:54So put and patch depending on the
- 6:02:57documentation. There may be one of
- 6:02:59these, there may be both of these. This
- 6:03:01is updating data on a website. Why I say
- 6:03:05you won't be using this as much is
- 6:03:07because typically when you're building
- 6:03:08out any end workflows like you want to
- 6:03:11grab data which is why you're going to
- 6:03:13have get most of the time and obviously
- 6:03:16post to create the data if it's
- 6:03:17necessary. So patch is just updating
- 6:03:20data on a website and then you have
- 6:03:22delete which is deleting data on a
- 6:03:24website. This really isn't that common
- 6:03:27just because like it's kind of weird to
- 6:03:29delete data on a site at times.
- 6:03:31Obviously, there is use cases for it,
- 6:03:33but with your N workflows, you're mostly
- 6:03:36going to use get. You're also going to
- 6:03:37use post in conjunction with get. I
- 6:03:41don't use header options. I've never
- 6:03:42used those before. So, really focus on
- 6:03:45those four, but if I was going to narrow
- 6:03:46down your focus, really get familiar, no
- 6:03:50pun intended, with get and post. So,
- 6:03:52that's the first side of it. Next is
- 6:03:55going to be the specific URL. Now, with
- 6:03:58that URL, right, we're going to
- 6:04:00specifically look for that in the
- 6:04:03documentation. So, every website that
- 6:04:06has an API is going to give you some
- 6:04:08sort of documentation. So, here's an
- 6:04:11example of some documentation. This is a
- 6:04:13website called httpbin.org. I literally
- 6:04:16just asked Claude, it's a a good example
- 6:04:18of a free website I can test, post, and
- 6:04:21get methods at, and it gave me this one.
- 6:04:23So, we're going to try this out. And you
- 6:04:26can see over here we have a curl request
- 6:04:28which actually we should use and then we
- 6:04:31have a link and it says hypin.org/post
- 6:04:35and this is specifically for a post. So
- 6:04:37if we want to do a post we paste that in
- 6:04:39over here. Again all the URLs are going
- 6:04:42to be different um based off of uh the
- 6:04:45website. So sometimes you might have the
- 6:04:47same URL, sometimes you might have it
- 6:04:48different. It just you got to read the
- 6:04:49documentation. It'll tell you, hey, do
- 6:04:51you want to use a post method? Do you
- 6:04:53want to achieve this solution? use this
- 6:04:55URL. You just have to be really good
- 6:04:57taking a look at the documentation. So,
- 6:04:59this documentation, all we're doing is
- 6:05:01execute. And you can see we have this
- 6:05:02curl over here. So, we don't have any
- 6:05:05authentication on here, which makes it
- 6:05:07really easy. And if I run the step,
- 6:05:10congrats, guys, because you have
- 6:05:11officially did your first post request.
- 6:05:14Like, all we had to do is choose post,
- 6:05:17use http.org/post,
- 6:05:19and you just set up your first API. Uh,
- 6:05:22next we're going to try get. So if we
- 6:05:25want to try get, we go over here, take a
- 6:05:28look at get. We can try it out. We can
- 6:05:30do a test over here. And you can see we
- 6:05:32have get like this. So grab that URL.
- 6:05:37Go back into n.
- 6:05:40Change this out.
- 6:05:42Execute the step and take a look. We got
- 6:05:45a response. Now if you don't get a
- 6:05:47response over here, you get some sort of
- 6:05:49error. Means something is wrong.
- 6:05:51Typically, if something is working
- 6:05:52correctly, you're going to get a 200
- 6:05:53response. If there's an error, you'll
- 6:05:55get a 400 response or a 500. Typically,
- 6:05:59400 is on your end, like something's
- 6:06:01messed up. 500, something is messed up
- 6:06:03on the API side of things. So, I really
- 6:06:07want to show you, and I'm going to
- 6:06:08delete this because it doesn't really
- 6:06:09matter. Uh, curl because we have the
- 6:06:12option over here, and you'll see import
- 6:06:15in curl. I'm literally just going to
- 6:06:16grab this curl just to show you that
- 6:06:18this is super awesome because all we
- 6:06:21have to do is paste this in here. And
- 6:06:22again, this is a very basic API. Like
- 6:06:25this is your example of walking and
- 6:06:27we're training right now for a marathon.
- 6:06:29So you're learning to walk with this API
- 6:06:32over here. Um we click import and you
- 6:06:35can see we have more information. So I
- 6:06:39grabbed get pasted in our get over here
- 6:06:41and we're also going to be sending in
- 6:06:43headers. So it says use field parameters
- 6:06:45below accept and then it says value
- 6:06:47application JSON. So now if we go this
- 6:06:50over here boom it is working. We
- 6:06:52imported in our curl. This I believe was
- 6:06:55optional which is why we didn't
- 6:06:57necessarily need it with that first
- 6:06:59example but you can start seeing some of
- 6:07:01the sections over here and take a look
- 6:07:04at the documentation. So that is curl.
- 6:07:06Obviously, we're going to go over some
- 6:07:07more examples a little bit later into
- 6:07:10the next side. And yeah, so let's
- 6:07:14continue moving forward. Is there
- 6:07:15anything else I wanted to cover on the
- 6:07:17site? Well, we have patch. We might as
- 6:07:19well look at patch as well. So, we can
- 6:07:22go over here and try it out. We'll
- 6:07:24execute that. And you can see we have
- 6:07:26our patch. So, I just grab that. I'll go
- 6:07:30over here to our patch.
- 6:07:33Paste that in over here. You can see
- 6:07:36we've updated data. And lastly, we can
- 6:07:39go into delete.
- 6:07:44Try it out. Execute.
- 6:07:47And obviously, this isn't doing
- 6:07:49anything. It's just for testing
- 6:07:51purposes, but you can just go over here
- 6:07:53and click into delete. I just want you
- 6:07:55to get comfortable with how this node
- 6:07:58works and setting it up.
- 6:08:02to add to this as well. With your AI
- 6:08:04agents, you can actually use a tool.
- 6:08:07And uh I'll just show you with an AI
- 6:08:09agent really quick.
- 6:08:12I believe this is a little bit later on
- 6:08:14in the course. I'm actually recording
- 6:08:15this out of order, so don't kill me, but
- 6:08:18it will be in a correct order in the
- 6:08:21final course. But we have our HTTP over
- 6:08:24here, and you can see HTTP request, and
- 6:08:26it's the same thing, right? So you have
- 6:08:28your methods which we just covered, you
- 6:08:30know, delete, get, post, patch, input.
- 6:08:34We have our URL. We have the
- 6:08:35authentication that we're going to be
- 6:08:37setting up. You can send query
- 6:08:39parameters, you can send headers, you
- 6:08:40can send bodies. Then you have add
- 6:08:42options down below based around
- 6:08:45everything else. And uh one thing you'll
- 6:08:47notice is there's a description on the
- 6:08:49tool. Again, I don't know if we covered
- 6:08:51this earlier or if we're going to cover
- 6:08:52this a little bit later, but when you're
- 6:08:54attaching tools to an AI agent, it's
- 6:08:56super important that you write a clear
- 6:08:58description of what that tool is used
- 6:08:59for and when you specifically use it.
- 6:09:02You put that in the description here and
- 6:09:04you put this in something that is called
- 6:09:05a system message. So, put that and then
- 6:09:08you also call out like what happens if
- 6:09:10the tool fails. Now again I believe this
- 6:09:13is a little bit later on in the course
- 6:09:15but since we're talking about the HTTP
- 6:09:17paper press node I might as well also
- 6:09:19cover the specific tool that uh belongs
- 6:09:22with it. So that is like the very simple
- 6:09:26basics of the HTTP request. Um let's
- 6:09:29talk also really quick about query
- 6:09:30parameters headers and body. So if you
- 6:09:32cover over there whether request has
- 6:09:34query parameters or not whether it has
- 6:09:36headers or not and then whether the
- 6:09:38request has body or not.
- 6:09:40depending on the documentation
- 6:09:42that you'll read through and again
- 6:09:44you'll go to your API docs. It'll tell
- 6:09:47you, hey, send in a JSON body to our
- 6:09:51API. This is what you need to send to
- 6:09:53start a post request. So for that
- 6:09:56example, historically, I would have to
- 6:09:59copy an example of their JSON body, and
- 6:10:02it would be something like this. I'm not
- 6:10:03going to write proper JSON here. I'll
- 6:10:05probably make a mistake. Someone might
- 6:10:07be annoyed with it, but that's okay. And
- 6:10:10it might say like influencers,
- 6:10:12like you have to pass in influencers or
- 6:10:14whatever the case may be. And then
- 6:10:16you'll have to put in like, okay, IG1,
- 6:10:21IG2, etc. You get the point. We send
- 6:10:25this JSON over into the website and
- 6:10:28based off of this website or based off
- 6:10:30this JSON, then the website can produce
- 6:10:32the post request. Uh sometimes you might
- 6:10:35have a query parameter and you'll have
- 6:10:38something like a data set ID. So your
- 6:10:41post request gets you a data set ID and
- 6:10:44then you just pass in your JSON. Let's
- 6:10:45say there's some JSON over here and you
- 6:10:48pass it in as your query parameter and
- 6:10:50you get those specific results a little
- 6:10:52bit later. Headers you'll have like some
- 6:10:54sort of authentication. So maybe there's
- 6:10:56like an API key and then you just post
- 6:10:59your X your API key like XP API key over
- 6:11:03here. And one thing to mention
- 6:11:06is with these API keys, you do not want
- 6:11:09to store them in your headers with these
- 6:11:12nodes. So the issue with storing them
- 6:11:15over here or in a query parameter or
- 6:11:16whatever else the case is, anyone that
- 6:11:19accesses your JSON of your workflow can
- 6:11:23access your API key. that is not
- 6:11:25secured. So, you do not want to do that.
- 6:11:28Instead, you'll want to set up a
- 6:11:29credential. Uh so, when you go to
- 6:11:31authentication, you'll see a generic
- 6:11:33credential type. You want to set up one
- 6:11:35of these OS. Again, it just depends on
- 6:11:37the documentation. So, like the most
- 6:11:40common ones you'll see, you'll see basic
- 6:11:42O all the time, bear O, you'll see query
- 6:11:44off. So, and header off over here. So,
- 6:11:47it just really depends on what the
- 6:11:48documentation tells you to do. If you
- 6:11:51see for example header off you you see I
- 6:11:54have a lot of these over here you can
- 6:11:56see hey genen it's an a service to
- 6:11:59create AI videos of like UGC creators or
- 6:12:02yourself that has a header off AI which
- 6:12:05we're going to go over a little bit
- 6:12:06later in the series. It generates images
- 6:12:09and videos. That's a header off. A
- 6:12:10mistral header off. Um web hook video. I
- 6:12:14just covered that. A YouTube video
- 6:12:15scraper. This was a header off. I go
- 6:12:17back over here to a basic off. You can
- 6:12:20see I've done some basic O tests and
- 6:12:23obviously this isn't everything over
- 6:12:24here. A baroth I haven't used. Query
- 6:12:27should have some stuff in here and query
- 6:12:29off has our ampify as well as a Google
- 6:12:32SER for apply. So I guess appy was here
- 6:12:34both for query off. So sometimes you'll
- 6:12:36use the query off and sometimes you'll
- 6:12:39use where was that at? Not basic
- 6:12:46or header. Those are going to be the two
- 6:12:48most popular ones. And again, make sure
- 6:12:51to set up your specific generic uh off
- 6:12:55type over here in your header off. All
- 6:12:57you typically have to do read the
- 6:12:59documentation. I'll say how do you want
- 6:13:01to have this and then put in the
- 6:13:02specific value and it's going to be in
- 6:13:04the documentation. We'll cover that with
- 6:13:06these examples. But it's just super
- 6:13:08important that you set this up one for
- 6:13:10one. Otherwise, you're going to have
- 6:13:12some sort of error over here and you're
- 6:13:14going to be confused. So to kind of
- 6:13:16recap
- 6:13:18what we covered so far,
- 6:13:21we have the HTTP request. It's either a
- 6:13:23node or it is a tool, a tool that's
- 6:13:25attached to an AI agent, a node within
- 6:13:28an orchestration workflow. You have four
- 6:13:31to five methods that you're going to
- 6:13:33typically use. 90% of the time you're
- 6:13:35going to use get and post. Sometimes you
- 6:13:38have to use delete, which is going to
- 6:13:40just remove a resource. Sometimes you'll
- 6:13:42have to use patch and put to update
- 6:13:44resources. It's very common to start
- 6:13:46with post and then use get. Um they kind
- 6:13:50of link together. Next, you'll have the
- 6:13:52URL for that specific method or that
- 6:13:55specific call. You're going to find that
- 6:13:57URL in your documentation. We're going
- 6:13:59to cover that in the next part. You have
- 6:14:01authentication. So, a lot of APIs are
- 6:14:04going to be behind an authentication
- 6:14:06layer. You could be lazy and when you
- 6:14:08import in a curl and keep the stuff over
- 6:14:10here. I do not recommend that approach.
- 6:14:12Instead, I would recommend that you set
- 6:14:14it up once for it, whether it's like a
- 6:14:17header off or a basic O or a query off.
- 6:14:20Fill out the information. Make sure that
- 6:14:23the name is one for one with
- 6:14:25documentation. You paste in your API key
- 6:14:27over here because this is not shared
- 6:14:30this uh credentials. These are not
- 6:14:32shared when you share your workflow. Um,
- 6:14:35also I should have mentioned predefined
- 6:14:37credentials. There's a ton of predefined
- 6:14:38credentials as well. So you can see
- 6:14:40other APIs like there's tons and tons.
- 6:14:43So before you spend a lot of time and
- 6:14:45try to read the documentation, see if
- 6:14:47your API is in over here uh because it
- 6:14:50might not always be the case. You can
- 6:14:52send in query parameters, headers and
- 6:14:55bodies as well. Very common to send a
- 6:14:57body, very common also to send in query
- 6:14:59parameters. And headers typically have
- 6:15:01like an API key of some capacity. Um,
- 6:15:05great parameters. Typically I've seen
- 6:15:07with like data set ids and then body
- 6:15:09over here. I see this all the time with
- 6:15:11a post. And one other thing I forgot to
- 6:15:14mention in this video and man I I meant
- 6:15:17to bring it up in the beginning and I
- 6:15:19didn't. You know why do we want to use
- 6:15:22HTTP requests for uh APIs and sometimes
- 6:15:26you know APIs that are even already
- 6:15:28available in N. So like N has a ton of
- 6:15:32APIs already built in. So, for example,
- 6:15:34if we go to HubSpot
- 6:15:37and you'll see we have 31 different
- 6:15:39actions that we can perform in HubSpot,
- 6:15:41but HubSpot's API is pretty extensive
- 6:15:45and there's way more than 31 actions.
- 6:15:47So, if your action that you want to
- 6:15:49perform within your CRM and HubSpot is
- 6:15:51not here, you're going to have to set up
- 6:15:53an HTTP request. For example, um let's
- 6:15:57go into another one. Let's say I wanted
- 6:15:59to use Kai, which is going to generate
- 6:16:01images and videos. Well, if I go over
- 6:16:03here, Kai is not in Nan. If I type in
- 6:16:07Kai, you can see it's not there. So, to
- 6:16:10use that service, which I'll just show
- 6:16:11you the website, like this is a great
- 6:16:13website. It's a super popular website.
- 6:16:17Can't access this without an HTTP
- 6:16:18request node. So, just that important
- 6:16:21for you to build that out because you're
- 6:16:23not going to be able to go to this API
- 6:16:24market and build AI images or videos or
- 6:16:28music. So, you have to set up this HTTP
- 6:16:30request. So in some ways like it
- 6:16:33supplements so it's already here in nan
- 6:16:35and it expands upon it. Now if the API
- 6:16:39request that you specifically want is
- 6:16:41already in nan just use that approach
- 6:16:43like ampify has been added and in the
- 6:16:46past to the run actor and get a data
- 6:16:48set. I used to have to set up two HTTP
- 6:16:51requests I used to have to go over here
- 6:16:53set up a post request. So I'd have to go
- 6:16:56over here post and obviously fill out
- 6:16:58all these settings. I would have to set
- 6:17:00a wait node because it wasn't ready
- 6:17:03right away. Let's say the wait is 60
- 6:17:05seconds. And then I would have to go and
- 6:17:08get another HTTP request and essentially
- 6:17:12get our data set. So I'd have this with
- 6:17:15Appify and now there's this one single
- 6:17:17node that does it. So if your API is
- 6:17:20available in any end obviously just
- 6:17:22search like search the service over
- 6:17:24here. it's available and it's natively
- 6:17:27in here or if it's even a community
- 6:17:28node, do that first. Check that out. If
- 6:17:32it's not, then you're going to have to
- 6:17:33use this HTTP request to access other
- 6:17:35items. And because of this, this really
- 6:17:38allows you to connect any API into NAN
- 6:17:41and it's really awesome. So, that's
- 6:17:44going to be the first part of our HTTP
- 6:17:46request. The second part is really going
- 6:17:48to dive in to real examples. I want to
- 6:17:51say we have like five or six different
- 6:17:54examples that we're going to jump
- 6:17:56through. It's just so important that you
- 6:17:57get this concept down. Some of them, as
- 6:17:59I mentioned, are going to be really
- 6:18:00easy. Some of them are going to be
- 6:18:01difficult. We're going to cover
- 6:18:02pageionation as well in there. And I
- 6:18:05will see you soon. So, this next
- 6:18:06section, we're going to be covering four
- 6:18:08different APIs. Um, I asked Claude for
- 6:18:11some examples of different ones to
- 6:18:13utilize. So, we're going to be taking a
- 6:18:14look at a very basic one, which is going
- 6:18:16to look at countries. Uh there's no
- 6:18:18login over here and it's literally just
- 6:18:20a URL that we're going to be changing
- 6:18:21with our HTTP request. Then we're going
- 6:18:24to take a look at using binary data.
- 6:18:26Now, I haven't tested this one at all,
- 6:18:28but hopefully it does work. And we're
- 6:18:30going to be either getting pictures of
- 6:18:31cats or dogs and then passing it
- 6:18:33through. Our third example is going to
- 6:18:35actually build out a workflow with an
- 6:18:37API. This one's going to be using
- 6:18:39weather. So, we'll essentially build out
- 6:18:41a workflow and test that out with the
- 6:18:43API in the middle of it. And then the
- 6:18:45last one is going to deal with
- 6:18:47pageionation as well as a login. So
- 6:18:49we're going to be looking at different
- 6:18:50types of movies. So hopefully these will
- 6:18:53give you some ideas of how to work with
- 6:18:55APIs in NA. And obviously this isn't a
- 6:18:57full extensive list of every single
- 6:19:00option. There's a lot of them. And if
- 6:19:02you want more practice with using APIs,
- 6:19:05I have about two hours worth of content
- 6:19:06on the channel teaching about the HTTP
- 6:19:09request node. So the three videos I
- 6:19:11would recommend that you take a look at
- 6:19:13first. watch the rest API video about 20
- 6:19:16minutes long. Then we have a video
- 6:19:18specifically on the HTTP request node.
- 6:19:21Some of the REST principles are covered
- 6:19:22there, but it's an hourong video. We go
- 6:19:25over a bunch of different structured
- 6:19:26examples um as well as like different
- 6:19:29types of login and things like that.
- 6:19:30Highly recommend you watch that one. And
- 6:19:32then we have examples of pageionation
- 6:19:34which covers two different examples over
- 6:19:36there based off of TV shows. Um one
- 6:19:39being Pokemon and then one being I think
- 6:19:41Rick and Morty. So, those are other
- 6:19:44examples. You know, this isn't going to
- 6:19:46click right away. I completely
- 6:19:47understand it. So, it's going to use
- 6:19:50some testing to get this to work
- 6:19:52properly. You learn by doing. So, check
- 6:19:54those out. Um, another thing to mention
- 6:19:56with APIs and things like that.
- 6:19:59Typically, you're going to know what you
- 6:20:01want to use within the API before. Um,
- 6:20:04so, for example, if you're using a CRM,
- 6:20:05you already kind of know like, hey, I
- 6:20:07want to use a CRM to update contacts in
- 6:20:09bulk. So you would just search the
- 6:20:10documentation for that. In this case, I
- 6:20:13don't even know what these APIs have
- 6:20:15minus their names. So we're going to be
- 6:20:16kind of diving through that
- 6:20:17documentation. Some documentation is
- 6:20:19great. Some documentation is very poor.
- 6:20:22So you can also kind of search online
- 6:20:24whether you want to use an LLM or you
- 6:20:25can use like a Stack Overflow to see if
- 6:20:27people have other ideas based around
- 6:20:30that. Uh other things to note the the
- 6:20:32four examples I mentioned may have to do
- 6:20:34a pivot in case like an API is down.
- 6:20:37Those no longer exist or is now paid.
- 6:20:39They had to do a few minor pivots later
- 6:20:41on in this course based around this. But
- 6:20:43I know I'm recording this when I'm in my
- 6:20:4520 plus lectures into this. So I waited
- 6:20:49a little bit but regardless hopefully
- 6:20:52this goes well and let's take a look at
- 6:20:54these. So the first one we're going to
- 6:20:57take a look at is going to be our rest
- 6:20:59countries. So, I'm make a note and uh
- 6:21:02yeah, we'll dive into that right now.
- 6:21:04So, rest countries, we have our URL.
- 6:21:07This one I do know it works because I
- 6:21:08just tested it really quick because I
- 6:21:10knew it was going to be shortly after
- 6:21:11the intro. And uh it's going to be a
- 6:21:13pretty easy one. So, taking a look at
- 6:21:15the documentation over here, we can get
- 6:21:17information about countries and it says
- 6:21:19it's a restful API. So, it says
- 6:21:22important information. The structure of
- 6:21:24V2 has been reverted. uh you can access
- 6:21:26the API over here, but in order to get a
- 6:21:29fast response, you should filter by the
- 6:21:30results in the field you need. So, this
- 6:21:32gives you a good example of what we
- 6:21:35specifically want over here as notes.
- 6:21:37And I recommend like if you're brand new
- 6:21:39to an API, take some notes because some
- 6:21:42of this might save you time a little bit
- 6:21:43later on and way you don't have to go
- 6:21:45back and read it. Talks about
- 6:21:47contributing, donations, things like
- 6:21:49that. Um, and it says you can check the
- 6:21:52fields MD file to get descriptions for
- 6:21:53each field. So I might not know what
- 6:21:55every single field comes back as. So I
- 6:21:58want to take a look at this file over
- 6:22:00here just to see what happens. So we
- 6:22:02have different field names over here.
- 6:22:04Let's say I don't know what CLC is. And
- 6:22:07it says and actually it's CIOC. My mic's
- 6:22:10in the way. It says code of
- 6:22:11international Olympic Committee. Okay,
- 6:22:13cool. Now I know the acronym.
- 6:22:15Hey, let's see another thing I might not
- 6:22:17know.
- 6:22:19What is Genie? World Bank Genie Index.
- 6:22:22Someone might laugh at me for not
- 6:22:23knowing that. I generally don't know
- 6:22:25what that is. Uh, okay. What else over
- 6:22:27here? I might not know. Uh, let's see.
- 6:22:32This I assume was Latin long. That's
- 6:22:34what it is. But if you see lighting,
- 6:22:36you're like, "The heck is lighting?" So,
- 6:22:37typically, you're going to have some
- 6:22:39sort of data fields that are mapped.
- 6:22:41Again, some APIs are going to do a great
- 6:22:42job. This does a pretty good good job
- 6:22:44telling you about it. So, it says what
- 6:22:46version these are in. I think we're in
- 6:22:47version 3.1, as I mentioned, and it
- 6:22:50tells you a description. So, I like this
- 6:22:52a lot. Some APIs don't even do that. So,
- 6:22:54big props to this one because it's free
- 6:22:56and it tells us how to do that. Okay.
- 6:22:58So, then we jump into some other stuff
- 6:23:00over here as well. And the first one
- 6:23:02over here is all. So, it says you must
- 6:23:04specify the fields that you need up to
- 6:23:0610 fields. I believe we already put that
- 6:23:08note in here.
- 6:23:11Okay. So, we sort of put that in here,
- 6:23:12but I'd still mention that as well. So,
- 6:23:16let's just grab that and populate it.
- 6:23:21All right, pretty basic. And then we
- 6:23:24have name. It says search by country
- 6:23:26name. So let's start this off by
- 6:23:28searching by a country name. What we're
- 6:23:29going to do is grab our HTTP request.
- 6:23:32And we're just going to go off of what
- 6:23:35they want. So first thing to note is
- 6:23:37typically in APIs, it'll tell you like,
- 6:23:39hey, use a get, use post, hash, put,
- 6:23:42delete, whatever the case may be. And
- 6:23:44over here, it does not say it. So you're
- 6:23:46going to have to think about what I
- 6:23:47covered in last lecture. What are we
- 6:23:49doing over here? Well, we're grabbing
- 6:23:51data from an external source. So, since
- 6:23:53we're grabbing information, this is
- 6:23:54going to be a get. We're not creating
- 6:23:56data in any capacity. This data is
- 6:23:58already stored over here. We're just
- 6:24:00getting our data. So, let's use a get
- 6:24:02request.
- 6:24:03So, we have get and then what we need to
- 6:24:05do is take a look at the example. So, we
- 6:24:08can go over here and grab this country,
- 6:24:10which is Germany, and we can paste that
- 6:24:12in over here. Now, it didn't mention
- 6:24:14anything about authentication, and I
- 6:24:16know there's no authentication on here.
- 6:24:18So we don't have to worry about this
- 6:24:19authentication section. So we don't need
- 6:24:21to do that and there's nothing to send
- 6:24:23with query parameters, headers or body.
- 6:24:25This entire API is literally just based
- 6:24:27around this specific URL. So we can
- 6:24:30execute this step and you can see we get
- 6:24:32all of this information about Germany.
- 6:24:35So again, if you don't know what
- 6:24:36something is, let's say like I don't
- 6:24:38know what TLDD is. And obviously like we
- 6:24:40work in data and we use AI. We like we
- 6:24:43should know what TLDD is, but you can go
- 6:24:45over here and look for TLD. And it says
- 6:24:47internet tople domain. So cool
- 6:24:50documentation works pretty nice over
- 6:24:52there. Oh, I don't know what CCA2 is.
- 6:24:54Let's go into our documentation. CCA2
- 6:24:56ISO 316 31661 alpha twolet country code.
- 6:25:01So again, you can just go back and forth
- 6:25:03on that side of things if you
- 6:25:05necessarily want to take a look at it.
- 6:25:06And there's a ton of data over here. All
- 6:25:08right. Well, let's take a look at a
- 6:25:10different country. Well, it says take a
- 6:25:11look at this country over here.
- 6:25:14And let's see what happens. And this is
- 6:25:16Estonia. So, we see E as the domain,
- 6:25:20which I've never I don't think I've ever
- 6:25:21been to an e website. Uh when I think of
- 6:25:24E, I think of electrical engineering I
- 6:25:26graduated with. But have all this over
- 6:25:29here lat long borders, translations,
- 6:25:32etc. All across the board we have the
- 6:25:34continents and this is pretty cool. What
- 6:25:37we have over here as well is an example
- 6:25:40of name/name. So essentially it's just
- 6:25:42saying we can change out this name for
- 6:25:44another official name if we want to.
- 6:25:47Okay. So next it says search by
- 6:25:49country's full name. It can be common or
- 6:25:51official value. And you can see we have
- 6:25:54Aruba over here. So, let's just do
- 6:25:56another HTTP request. I'm going to pick
- 6:25:58this one off and we'll just build out a
- 6:26:00brand new one. So, a different way to
- 6:26:02search it
- 6:26:04and we'll go over here and let's say we
- 6:26:06want to just search for country based
- 6:26:08off of this. So, you can see Aruba full
- 6:26:10text equals true and we have all of this
- 6:26:13information over here. So, another way
- 6:26:15we could do this the difference right we
- 6:26:19have either a name or a full name. So it
- 6:26:22says common or official value and just a
- 6:26:25little bit different instead of just
- 6:26:26putting name we put name name and we put
- 6:26:28question mark at the end equals full
- 6:26:30text equals true. Uh there's other
- 6:26:32options that we could do. I believe this
- 6:26:34would be over here as a query parameter
- 6:26:37and we could take a look at that as
- 6:26:39well. So see this question mark and it
- 6:26:41says full text equals strobe. So in a
- 6:26:43URL when you see a question mark this is
- 6:26:45going to be considered a query
- 6:26:46parameter. So we have this already. Let
- 6:26:49me show you how we could send in a query
- 6:26:51parameter. So I'm just going to copy
- 6:26:52this over here. And we're going to use
- 6:26:54the same exact thing. So I'm going to go
- 6:26:56over here and click send query
- 6:26:58parameters. And first thing I'm going to
- 6:27:00do is remove all this. I'm going to go
- 6:27:02over here. We're going to keep that full
- 6:27:04name. And then we're going to keep this
- 6:27:06true. So our value over here, and it's
- 6:27:09sorry, it's full text, not full name. So
- 6:27:11the value of this query parameter, if
- 6:27:13you go back over here, it says full text
- 6:27:15equals true after this question mark. So
- 6:27:17we just go into send query parameters,
- 6:27:19we put full text and we put true to
- 6:27:21emulate what we have and you'll see
- 6:27:22we'll get the same exact results. So it
- 6:27:25works by keeping it in the URL or you
- 6:27:28could have it even cleaner. So if you
- 6:27:29see that question mark that is a
- 6:27:31specific query parameter. Let's keep
- 6:27:33moving forward. Over here we have this
- 6:27:36code. So this does not change like you
- 6:27:38see we have the three different codes
- 6:27:40over here. This is our URLs. So we
- 6:27:42cannot change that out. List of codes.
- 6:27:45So it says you can search any over here
- 6:27:48and we can go through that example as
- 6:27:50well if we want to. This again will not
- 6:27:53be a query perimeter but we can just go
- 6:27:54through a HTTP request. We can test that
- 6:27:58out. So get just paste that in. Super
- 6:28:01easy. And you can see we have four items
- 6:28:03over here because we're taking a look at
- 6:28:04the matches of these specific codes. And
- 6:28:07I actually I lied. You can see over here
- 6:28:09there's a question mark. Um so we
- 6:28:11actually do have codes we could search
- 6:28:13by which would be our query parameter. I
- 6:28:14missed that because my mic was in the
- 6:28:16way. Uh, but this turned multiple items
- 6:28:18back. So, you can see it brought back
- 6:28:20over here Estonia. It brought back
- 6:28:22Norway, it brought back Peru, and then
- 6:28:25it also brought back Colombia. So, what
- 6:28:28I want you to do right now is pause this
- 6:28:32and see if you can turn this into a
- 6:28:34query parameter. So, I'm just going to
- 6:28:36say change the above. So change the
- 6:28:40above to a query par. So pause the
- 6:28:45video. 3 2 1 and I'll be back with the
- 6:28:49solution. All right, I am back. So all
- 6:28:52we're going to do is just copy this
- 6:28:53over. We're going to go in over here and
- 6:28:57what we're going to do is click send
- 6:28:59query parameters. We're going to grab
- 6:29:01everything from that question mark
- 6:29:02outwards. Move that. So we're going to
- 6:29:05say our codes equal. I'm going to grab
- 6:29:07the codes. I'm going to paste that over
- 6:29:08here. I'm going remove that. I'm going
- 6:29:10to keep this fixed. Um, I'll show you
- 6:29:12expressions here in a second. But now
- 6:29:14you can see we have these different
- 6:29:15codes we're searching by and we still
- 6:29:18get the same four results. So again,
- 6:29:20just to reiterate that question mark, we
- 6:29:22can send that into the query parameter
- 6:29:23side of things. Um, currency, pretty
- 6:29:26easy over here. Uh, what we have over
- 6:29:28here, I actually I want to run this for
- 6:29:30USD. I'm curious how many countries run
- 6:29:32on the dollar. I believe a lot do.
- 6:29:36And I'm sure I'm getting some cringe
- 6:29:38from people saying, "How do you not know
- 6:29:40this?" There's enough to know out there.
- 6:29:43All right. USD,
- 6:29:45let's see,
- 6:29:4720 items. So, not bad over there.
- 6:29:53United States miner lang items,
- 6:29:54Caribbean,
- 6:29:56US. I'm surprised US wasn't number one
- 6:29:59on this one. Puerto Rico, which is not a
- 6:30:02country, but I guess it's showing things
- 6:30:04like that as well.
- 6:30:06W again, not a country, etc. Bahamas,
- 6:30:09school. So, that is working over there.
- 6:30:12Let's see if there's anything else we
- 6:30:13could throw in. Again, there's a lot
- 6:30:15that I would just recommend that you
- 6:30:16guys mess with. So, you can see there's
- 6:30:19sub regions,
- 6:30:21translation.
- 6:30:22This has a lot of different fields. So,
- 6:30:24this filters a response. Let's actually
- 6:30:26cover that one as well. So, it mentioned
- 6:30:28in the documentation earlier, you can
- 6:30:30search up to 10 fields. So, let's do the
- 6:30:33default one and then I'll just have a a
- 6:30:37question for you guys to run with this.
- 6:30:40So, let's take a look at that. What
- 6:30:42we're going to do is go over here is an
- 6:30:45HTTP request
- 6:30:48and we'll just populate that in. So,
- 6:30:51great. And you can see this is shortened
- 6:30:53quite a bit. All we do is name, capital,
- 6:30:55and currency. So, this brought 250 items
- 6:30:59which is in their database. So, I
- 6:31:01actually want you to do something over
- 6:31:02here. First thing I want you to do is
- 6:31:06set up a query pram. So, we're going to
- 6:31:08say
- 6:31:10I'll just put this over here. I guess
- 6:31:11we'll do it side by side. It doesn't
- 6:31:13matter. So, number one,
- 6:31:16turn into query param. And then what I
- 6:31:21want you to get for fields wise, let's
- 6:31:23say we're a big sports fan and we want
- 6:31:27to get
- 6:31:29FIFA.
- 6:31:31We want to get Olympics.
- 6:31:34What else was already in here?
- 6:31:36Feel like we need to get the name. Yeah,
- 6:31:38let's get name and currencies.
- 6:31:43Name and currencies. So, pause the
- 6:31:46video, try it out, and uh All right, I'm
- 6:31:50back. We're going to try this first
- 6:31:51example. So, we're going to go over here
- 6:31:53and do that. So, now what we're going to
- 6:31:55do is change this out. We're going to
- 6:31:57send our query parameters.
- 6:32:00We're going to grab this and we're going
- 6:32:01to go to fields. So, you'll see fields
- 6:32:04over here and we're going to put in
- 6:32:06those values. So, name, currencies. This
- 6:32:09will work pretty easily and uh we'll
- 6:32:12test it out. And I want to expand this
- 6:32:13out. Now, we're going to do a part two.
- 6:32:16Um, so actually, sorry. I wanted to put
- 6:32:19an Olympic in FIFA, all that stuff. So,
- 6:32:22we're going to go over here. Our
- 6:32:23Olympics was
- 6:32:25Where is that?
- 6:32:27FIFA is what? Just FIFA. Yeah, FIFA.
- 6:32:31Where is this? Olympic one at
- 6:32:35Olympics.
- 6:32:37CIO. So, because of that, I would have
- 6:32:40never guessed that, but we'll say CIO
- 6:32:42FIFA. This should work. Just make sure
- 6:32:44that you keep it exactly how they want
- 6:32:46it. They just don't want any spaces.
- 6:32:48Separate by comma.
- 6:32:51Cool. So, we have CISC. We have name. We
- 6:32:55don't need that. We needed the currency,
- 6:32:56which I accidentally deleted,
- 6:32:59unfortunately. I apologize.
- 6:33:02All right. So, it's currencies like
- 6:33:04that. Obviously, some countries have
- 6:33:05multiple currencies. All right.
- 6:33:07Currencies, CIO, FIFA. So, that is
- 6:33:11working over here. Great. Hey, we have
- 6:33:12turn 50 items. But you know what? I want
- 6:33:14to consolidate this. So I just want you
- 6:33:17to filter this in any sort of way. So
- 6:33:20part two is to filter this in any way.
- 6:33:25This in any way because we've already
- 6:33:27talked about different ways that you
- 6:33:28could filter. I just literally want you
- 6:33:30to filter something out. So pause the
- 6:33:32video, give it a shot, and I'll give you
- 6:33:34the solution. Ready? Three, two, one.
- 6:33:38All right, I'm back. Let's cover that
- 6:33:40solution. So, I'm just going to
- 6:33:41literally copy the same thing. And I
- 6:33:42want to go to my dollar example. Where's
- 6:33:45my dollar? I'm looking for 20 items. And
- 6:33:46I guess all these kind of go down. So,
- 6:33:50I'm just going to go into our API. I'm
- 6:33:53going to find that dollar one as well.
- 6:33:57It was Well, actually, let's do
- 6:33:59language. We'll do language instead. So,
- 6:34:01I'll go over here and go to our HTTP
- 6:34:04request. How about for every English
- 6:34:05country? So, we're going to go over here
- 6:34:07and go to this URL. And I'm just going
- 6:34:10to copy that. And instead of lang cop,
- 6:34:13I'm going to say English. Hopefully
- 6:34:15that's exactly what it should be. And I
- 6:34:17want to get the name currencies uh
- 6:34:18Olympic and FIFA for all the
- 6:34:20English-speaking countries. So this is
- 6:34:22running. It's a little slow right now.
- 6:34:24So maybe there's something on the API
- 6:34:25side of things. You saw some of them
- 6:34:26were pretty instant. This one is taking
- 6:34:30a little bit. So when [snorts] this is
- 6:34:32done, I'll be right back. I might pause
- 6:34:34it and restart this just because of
- 6:34:37that. And this does happen time to time.
- 6:34:40I think a little bit later on in the
- 6:34:41course, well, I know later on in the
- 6:34:42course, we're going to be talking about
- 6:34:44what happens if an API fails, a little
- 6:34:47bit outside the side of things, but you
- 6:34:48can see we got 91 items back. So, really
- 6:34:50cool. I showed you how to filter with
- 6:34:52this URL. Showed you how we can send
- 6:34:53query parameters to specify the specific
- 6:34:56fields. Um, you know, the other thing
- 6:34:59that's interesting is some of these are
- 6:35:00empty. So, we could take this a step
- 6:35:02further and we're like, hey, we just
- 6:35:04want to get the Olympics countries.
- 6:35:06Maybe not all these countries compete in
- 6:35:08the Olympics. So what you would want to
- 6:35:10do to add in a filter and what we're
- 6:35:13going to do is look for our CIOC.
- 6:35:18We have native name. We don't care about
- 6:35:20CIOC. So we're going to go over here
- 6:35:22value and we're going to say string is
- 6:35:25not null.
- 6:35:27So is not empty. And you can see we kept
- 6:35:3068 items and these 23 do not uh compete.
- 6:35:34I've never heard of Hollywood of Jersey.
- 6:35:37I don't know everything obviously, but
- 6:35:39never heard of that.
- 6:35:42Interesting. Um, but yeah, so we have
- 6:35:44all that over here. These got filtered
- 6:35:45out. These 68 compete in Olympics. So
- 6:35:48that's the way uh we've taken the API.
- 6:35:50We've taken the API, we filtered it
- 6:35:52down, and then we even filtered it again
- 6:35:54after a note. Very, very common to do in
- 6:35:57real workflows. Trying to see if there's
- 6:35:58anything else that's really worth
- 6:35:59mentioning. I mean, we learned a lot
- 6:36:01already with this first example. I'm
- 6:36:04just going to save this as like API one.
- 6:36:07We'll just go through the other APIs and
- 6:36:09just build this out so that way it
- 6:36:12doesn't get confusing. So when you guys
- 6:36:14download this, if you download this in
- 6:36:16our school group, uh all of that will be
- 6:36:18over there. So I'm just going to say um
- 6:36:20countries API
- 6:36:22countries API part one. And then I'll
- 6:36:26save this and we'll cut into part two
- 6:36:28shortly.
- 6:36:30All right, we're going to be taking a
- 6:36:31look at part two now. So, I'm just going
- 6:36:34to say HTTP requests
- 6:36:36um 13 part two and we're going to be
- 6:36:39taking a look at dog CEO. So, I'm going
- 6:36:42to go over here and grab this
- 6:36:47and uh let's throw this in.
- 6:36:51Cool. So, I'm going to close out our
- 6:36:53country's data and we're going to take a
- 6:36:55look at this for the first time. So,
- 6:36:58some APIs are going to return back
- 6:36:59images, and you might want to know how
- 6:37:01to work with them in workflows. We've
- 6:37:03talked about binary files before. So,
- 6:37:05this over here says, "The internet's
- 6:37:06biggest collection of open- source dog
- 6:37:07pictures. Read our documentation to find
- 6:37:09out more." And it says, "Want to add
- 6:37:11your dog to the collection? Submit
- 6:37:13photos as a poll request here." And need
- 6:37:16more dog in your life? Get issue one dog
- 6:37:18CEO design early business and lifestyle
- 6:37:20magazine for modern dog. It's crazy. Um,
- 6:37:23and you can see over here we can fetch a
- 6:37:25random dog every time that we populate
- 6:37:27this, which is going to be pretty cool.
- 6:37:28And then we have our documentation
- 6:37:31over here. And we have our JSON based
- 6:37:34around all of this. So we can actually
- 6:37:36paste in JSON, which is amazing. We can
- 6:37:39get all of the dog breeds over here. We
- 6:37:41can get a random image as another thing
- 6:37:44by breed, by subre, browse breed list.
- 6:37:46So a lot going on over here and it's
- 6:37:50going to be a little bit different. So,
- 6:37:51I think just basic, we're going to go
- 6:37:53back over here to the dog API. Let's
- 6:37:56first try this out and get a random. So,
- 6:38:00all we should do, and feel free to test
- 6:38:02this out yourself. We're go over here
- 6:38:04and grab this HTTP. So, we're going to
- 6:38:06say http.
- 6:38:09Obviously, I can't spell today, but
- 6:38:11that's fine. Uh, we'll grab that and
- 6:38:13we'll get going. So, what we're going to
- 6:38:16do is it's fine. We can have our manual.
- 6:38:18We can grab this and paste in our image
- 6:38:22at random. And uh we see a message and
- 6:38:26we got our random image. It says
- 6:38:28success. So let's actually take a look
- 6:38:30at what this image looks like. And you
- 6:38:32can see it looks like this right over
- 6:38:34here. That is a weird dog. Sorry if
- 6:38:37that's your dog, but probably not. Um
- 6:38:39okay. So that's cool and all, but like
- 6:38:42we don't really get anything out of it.
- 6:38:44How how can we actually view this?
- 6:38:46There's a few things we can do. We can
- 6:38:47actually go to HTTP requests like here
- 6:38:49and check this out. This is pretty cool.
- 6:38:51Um, we can pass in this message over
- 6:38:53here. So, we have this link to an image
- 6:38:57and if I execute this data, we have
- 6:38:59binary data. So, this is pretty amazing
- 6:39:02because check this out. Instead of
- 6:39:03having to go to that URL, we get that
- 6:39:05URL directly in over here. So, if I want
- 6:39:08to run this again, we're going to
- 6:39:10execute this workflow and go back in
- 6:39:14view it. We have another dog. we uh do
- 6:39:17the same thing again. We'll go back over
- 6:39:20here,
- 6:39:21get a new dog as well. So just in two
- 6:39:24nodes, what we did is we went into this
- 6:39:26API, we got a random image of a dog, and
- 6:39:29then we have binary data that we can
- 6:39:31mess with. And you know, we could change
- 6:39:32our binary name data name. We can go to
- 6:39:35edit set and let's say we go over here
- 6:39:39and manual mapping. We'll go over here
- 6:39:41and say binary data. And this is called
- 6:39:44data. And let's change this into dog. So
- 6:39:48I actually had it flipped. We're going
- 6:39:49to call this data over here. We're going
- 6:39:50to call this dog as the new name. And
- 6:39:53you can see we reabeled this over here.
- 6:39:55So this is now dog. Again, same image
- 6:39:57back and forth. We've labeled this over
- 6:40:00here. And we can pass obviously binary
- 6:40:02files into a Google Drive or wherever
- 6:40:05else we want to populate them. But now
- 6:40:07we have our binary file. We go to this
- 6:40:10URL. We get image of a dog. We get this
- 6:40:14into our workflow by just pasting in
- 6:40:16this image URL. And this is another hack
- 6:40:18of an HTTP request. I don't think I
- 6:40:20talked about it in the previous videos,
- 6:40:22but you can just paste in an image URL.
- 6:40:25And now you have a binary file within
- 6:40:27your workflow. Pretty cool. All right,
- 6:40:29so that's our random, which is the basic
- 6:40:31one. This is super super easy. But let's
- 6:40:33take a look at the documentation. So
- 6:40:36what we first have is list all breeds.
- 6:40:38Let's take a look at that. So maybe you
- 6:40:40want to see what all the breeds are
- 6:40:42like. We'll go to our HTTP request
- 6:40:45and we'll just paste this in. So, we're
- 6:40:47going to see all of our specific breeds
- 6:40:49and we have all the names over here. So,
- 6:40:52a lot of these I've never heard of
- 6:40:54before. I have an Australian Shepherd
- 6:40:57like that. And I also have a golden
- 6:41:00retriever. And uh where's our golden
- 6:41:03retriever at?
- 6:41:07Maybe it's under retriever.
- 6:41:11I don't see. Oh, yeah. Retriever right
- 6:41:13over here. And you see golden. So, we
- 6:41:16can also search by those specifically if
- 6:41:18we really wanted to. And you know,
- 6:41:21there's some that are easier than
- 6:41:22others. If we go into this list,
- 6:41:26I don't know why you have these over
- 6:41:27here or you have the ones that are in
- 6:41:30particular down below on that side of
- 6:41:32things. So, again, a few different
- 6:41:34options over there. And uh yeah, so
- 6:41:38let's take a look also at our
- 6:41:40documentation. So this lists all the
- 6:41:42different breeds and you can see how
- 6:41:44that is built out. So this can be pretty
- 6:41:47helpful if you want to just search for a
- 6:41:49specific breed. You have the random
- 6:41:51image which we've already covered. You
- 6:41:53also have by breed. So you can take a
- 6:41:56look at this and maybe let's start
- 6:41:57trying to figure out how we could change
- 6:41:59this out.
- 6:42:01So, I'm going to close that out over
- 6:42:03here and we're going to go to another
- 6:42:04HTTP request. So, HTTP request like
- 6:42:08that. And uh yeah, we'll jump in over
- 6:42:11here. So, taking a look at this, let's
- 6:42:14just paste in our URL. Again, this is a
- 6:42:16get because we're just grabbing an
- 6:42:18image. We're not generating anything.
- 6:42:20And this gives us a bunch of different
- 6:42:21images based around hounds. And
- 6:42:23actually, there's so many I didn't
- 6:42:25expect all this to populate. 87
- 6:42:27different images that have been
- 6:42:29uploaded. And obviously you can change
- 6:42:31out the different breed. We already saw
- 6:42:34how we can get all these type of breeds.
- 6:42:36Um going back over here, you can see
- 6:42:38this is hound Afghan. And if we go back
- 6:42:40over here to breeds, um we can do this
- 6:42:43also another way. But you can see hound
- 6:42:45Afghan. So maybe I want to change this
- 6:42:47into a Australian shepherd. So we'll go
- 6:42:50to Australian like that and go to
- 6:42:53shephardd and uh go over here and just
- 6:42:56make this Australian first. So you can
- 6:42:58execute the step. Then we have all of
- 6:43:00these over here for the Australian side
- 6:43:02of things. So you can see Australian
- 6:43:03Kelpy or Australian Kelpy. Then we have
- 6:43:06Australian Shepherd over here. So we
- 6:43:08have all these over here. Maybe we want
- 6:43:10to break these out and then filter them
- 6:43:12out. So we go into our nodes and I've
- 6:43:15already taught you the data
- 6:43:16transformations on these. So we can just
- 6:43:18split all these out from the message. So
- 6:43:20now instead of having one binary file or
- 6:43:24it's not one binary file but one item
- 6:43:26for all these across the board now we
- 6:43:29have 13 different URLs. So you can see
- 6:43:33right over here we go to table we have
- 6:43:35these 13 and maybe I want to filter it
- 6:43:37out. So just show Australian shepherds.
- 6:43:39So I can filter on this side of things
- 6:43:41and we'll say our message over here text
- 6:43:44string it needs to contain and we're
- 6:43:46going to say it has to contain shepherd.
- 6:43:47So shepherd like this. And now uh we
- 6:43:51don't have any of them because I
- 6:43:52obviously
- 6:43:54misspelled shepherd which is
- 6:43:56embarrassing. But now we have five
- 6:43:58Australian shepherds over here. Forest
- 6:44:00Leroy Pepper Pepper 2 and then also
- 6:44:03Saddy. So we've taken essentially our
- 6:44:07API that has all these images. We split
- 6:44:10this out based off of a filter on
- 6:44:12Australian dogs. We got 13 items and
- 6:44:15then we just filtered for Australian
- 6:44:17Shepherd. So we have that and this is by
- 6:44:20breed. We could also have done this
- 6:44:22easily with
- 6:44:25by subre. So you can see over here it
- 6:44:28says breed images. We can go over here
- 6:44:31by subre. We can take a look at a little
- 6:44:32bit more information over here. List all
- 6:44:34subread images. So instead of using what
- 6:44:38I just did over here
- 6:44:40and I want to go to an HTTP request,
- 6:44:43just jump over here and we'll go over
- 6:44:46here. I'll say Australian.
- 6:44:49Then I'll grab Shepherd, which I
- 6:44:52obviously misspelled it the first time,
- 6:44:54so I don't want to misspell it again.
- 6:44:56I'll just go over here like that and
- 6:44:58paste that in. Get our images. You'll
- 6:45:02see we have our five. And again, if you
- 6:45:03want to split these out so that they are
- 6:45:05their own URLs, you have this like that.
- 6:45:07So there's always multiple ways to do
- 6:45:09things. Like I think this is the more
- 6:45:11efficient route rather than passing in
- 6:45:13all 13 and then just filtering it out
- 6:45:15for uh shepherds like I put over here.
- 6:45:18Like documentation tells us how we could
- 6:45:21go for the subreeds. Obviously I didn't
- 6:45:23see that initially but we have that over
- 6:45:26here. You can also get a single random
- 6:45:28image from a subre. So we can grab that
- 6:45:30if we wanted to. Might as well do that
- 6:45:33one really fast.
- 6:45:35This is like a very very easy API.
- 6:45:37Again, we're just kind of getting our
- 6:45:39feet wet. We went through a basic one
- 6:45:41for our countries, and this one over
- 6:45:44here just lets us work with binary
- 6:45:46files. Wish there was a little bit more
- 6:45:48um advanced stuff with this one, but
- 6:45:50that's okay. And you can see we get a
- 6:45:52random image every time for this one
- 6:45:54over here. Um again, you could go and
- 6:45:58this into a binary file if you want to.
- 6:46:01I'm not really going to work with that
- 6:46:03that side. Um multiple images. So, you
- 6:46:06can grab multiple images as well. just
- 6:46:08paste in that extra number here at the
- 6:46:10end. It's pretty easy there. Um, browse
- 6:46:14breed list. So, we already kind of taken
- 6:46:16a look at this with our API on that side
- 6:46:18of things. And this is pretty
- 6:46:19self-explanatory. That is going to be
- 6:46:21the dog API. I don't really have any
- 6:46:23challenges with this. I guess the only
- 6:46:25challenge like if you want to and I'm
- 6:46:28not going to do it, but like I'll just
- 6:46:30put this as an extra credit assignment.
- 6:46:32So,
- 6:46:34lot of note like extra credit. If you
- 6:46:37want to be a a good student, you'll say
- 6:46:40extra credits, you know, build a
- 6:46:42workflow
- 6:46:45where we pass
- 6:46:47this data into a Google Drive.
- 6:46:52See if you can do that. I think it would
- 6:46:54be
- 6:46:55fun for you to learn how to do it. It's
- 6:46:57honestly just a few extra nodes and uh
- 6:46:59this will tell you if you're really
- 6:47:01picking up stuff. I mean I already did
- 6:47:02bulk of the effort over here and maybe
- 6:47:04you want to do this by a specific subre
- 6:47:07like choose a random one or you want to
- 6:47:09send all of them it doesn't really
- 6:47:10matter. Choose your approach. Um oh one
- 6:47:14other thing I wanted to show you really
- 6:47:15fast and this will be extra after the
- 6:47:18extra credit or before. So we've
- 6:47:22ideally gone through all this. So we've
- 6:47:24gone through breeds. So you might be
- 6:47:26wondering like, okay, how do we make
- 6:47:28this a little bit more dynamic? Because
- 6:47:30like we have this breed over here,
- 6:47:32Australian. So let me grab this over
- 6:47:35here.
- 6:47:36It's this one.
- 6:47:38Like, okay, you've been hard coding all
- 6:47:41this extra stuff. Well, all we have to
- 6:47:43do is have an edit set. So I'm going to
- 6:47:46go and use a retriever for an example.
- 6:47:49So let's say I go over here by breed.
- 6:47:52I'm going to search for broadbreed list.
- 6:47:56Where's our retriever is at? This isn't
- 6:47:59in order. Or is this? No, it's not in
- 6:48:00order. That's annoying. We'll go back
- 6:48:02over here. List all breeds. I'm just
- 6:48:05going to search for retriever really
- 6:48:06quick. I know I could just over here.
- 6:48:09We're going to get our golden retriever.
- 6:48:11So,
- 6:48:13what I'm going to do is
- 6:48:15go into this. I'm going to set something
- 6:48:17called breed.
- 6:48:19And we can imagine like you could have a
- 6:48:20form that lets someone choose something.
- 6:48:22And maybe we'll do that as like a part
- 6:48:24two here in a second. So now what I want
- 6:48:26to do is go in here. I'm going to set
- 6:48:29this as an expression. I'm going to
- 6:48:30execute the previous node. And instead
- 6:48:33of this Australian over here, what I'm
- 6:48:35going to do is paste in this JSON
- 6:48:37retriever.
- 6:48:40So you can see we can pass in JSON in
- 6:48:42these URLs. And we can do the same thing
- 6:48:44with query parameters, body, headers. We
- 6:48:46can pass in JSON from previous nodes.
- 6:48:49And you can see we now have retrievers.
- 6:48:51So to take this a step further, right?
- 6:48:54And I'm just going to deactivate this
- 6:48:56and delete it. Uh let's imagine we have
- 6:48:57a form. So you can go any end form.
- 6:49:01And uh we'll do a trigger. We'll say um
- 6:49:06dog image creator.
- 6:49:08Creator.
- 6:49:11Obviously, it's not a creator, but it's
- 6:49:12fine. Field name, we'll say like breed.
- 6:49:15And then we'll put dog breed over here.
- 6:49:18We'll have that as text. So, I'm just
- 6:49:21going to copy that. I'm going to paste
- 6:49:23this in over here.
- 6:49:26And what we're going to say this time
- 6:49:29is, let me just grab this over here. I
- 6:49:31don't want to misspell it. And then have
- 6:49:33it not work. I'm going to execute the
- 6:49:35step. Dog breed. I'm going to say it's a
- 6:49:37retriever. So, we have our retriever
- 6:49:39over here as breed. And then I'm just
- 6:49:42going to p paste that in. So it' be the
- 6:49:44same thing over here, right? The
- 6:49:45JSON.breed. I'll just show you that like
- 6:49:47it's not changing. Um, but now we get
- 6:49:49this on the form. And now we have this
- 6:49:51dynamic. So anytime this form is
- 6:49:54submitted, we can change the dog breed.
- 6:49:56I can go over here and let's say I want
- 6:49:58to run this now for Australian. So we're
- 6:50:00going to say Australian.
- 6:50:03Submit it. You'll see now we have our
- 6:50:06five Australian shepherds. We put that
- 6:50:09over there. So this really kind of just
- 6:50:11expands it out when you add in that
- 6:50:12dynamic element to the HTTP request.
- 6:50:15Again, I would recommend you do this as
- 6:50:16like extra credit, feel free like if you
- 6:50:18want to start with an edit set or a form
- 6:50:20or chatbot, like whatever you want
- 6:50:22really. And uh just uh build this out
- 6:50:25where you can save it into Google Drive.
- 6:50:27It's really easy. I'm not going to show
- 6:50:29it to you because I want you to try and
- 6:50:31do this on your own. And we'll be back
- 6:50:34with our next API which is going to be
- 6:50:37open weather. So, what we're going to do
- 6:50:39with this one, it's going to be pretty
- 6:50:40cool, is we're actually going to build
- 6:50:41out even more of a an end workflow.
- 6:50:43We're going to send an email based off
- 6:50:45of the weather and yeah, we'll have some
- 6:50:47fun with it. All right, I will see you
- 6:50:49in the next part, which is part three.
- 6:50:51All right, so we're on example three
- 6:50:53now. So, let me make that note. Section
- 6:50:5813,
- 6:50:59example three. And what we're taking a
- 6:51:02look at is the open weather API. and you
- 6:51:05know based off of what we have in here.
- 6:51:07We're actually going to build a workflow
- 6:51:09around it. So let's take a look at
- 6:51:12what's going on. So first we have how to
- 6:51:15get started. This page is comprehensive
- 6:51:17guide to get access to capability to
- 6:51:18open whether it's APIs from initial
- 6:51:20registration to making API calls. You'll
- 6:51:22find detailed instructions. All right.
- 6:51:24So first thing it says how to start with
- 6:51:26our API. Uh start with our services
- 6:51:28easy. So sign up and get API key. So, we
- 6:51:31need to actually sign up.
- 6:51:34And uh we'll just test these out over
- 6:51:37here.
- 6:51:41Not a robots. Great. And I'm going to
- 6:51:44just fill this out. And uh this is going
- 6:51:46to get cut out, but I'll be right back.
- 6:51:48All right. So, now we have how and where
- 6:51:51you'll use our API.
- 6:51:53And uh let's see if we have an option
- 6:51:56over here.
- 6:51:59guess other because it's like there's
- 6:52:01nothing for Oh, education and science.
- 6:52:06I'm just gonna click save.
- 6:52:09Cool. All right. And now what we need to
- 6:52:11do is just check the email
- 6:52:15or go to Gmail really quick. And I'm
- 6:52:17going to check my email to see if I got
- 6:52:19this or not. And I did get our
- 6:52:23confirmation.
- 6:52:25So you'll get your confirmation like
- 6:52:27this. And then I'll just verify my
- 6:52:29email. Right, we've been verified.
- 6:52:33I don't know what the pricing is. I
- 6:52:35would assume there's free pricing.
- 6:52:39Okay, first 10,000 API calls per day are
- 6:52:42free. Great. So, this should be fine for
- 6:52:44us. Um, but obviously there's historical
- 6:52:47data up to 46 years. Like note that the
- 6:52:50subscription requires
- 6:52:53pay as you go.
- 6:52:57Obviously, there's other things over
- 6:52:58here. I think we should be fine with our
- 6:53:01first one for free.
- 6:53:04Hopefully, it allows us to go.
- 6:53:08I don't want to pay. This is the thing
- 6:53:10with trying to find like free APIs and
- 6:53:12things like that. I don't want you to do
- 6:53:14some billing. So, maybe we're not going
- 6:53:17to use this open weather. All right. So,
- 6:53:20actually, this is free access right
- 6:53:21here. So we can get current weather and
- 6:53:24forecast or current forecast and
- 6:53:26historical data for education. So I
- 6:53:28think we should be able to get our API
- 6:53:30key for this one for current weather. So
- 6:53:33I'm going to click get API key alert.
- 6:53:35You're already signed in.
- 6:53:38All right. Let's see if we have an API
- 6:53:40key over here.
- 6:53:47Um where is this at? All
- 6:53:52right, let's see if I have an API key.
- 6:53:54Go to my API keys.
- 6:53:57And we have our API key here. It's
- 6:53:59blurred out on my screen so you guys
- 6:54:01cannot see it. My editor will do that.
- 6:54:05And we will
- 6:54:07test this out and see if we can get that
- 6:54:10free version. Hopefully that's the case.
- 6:54:12Obviously, I don't want you guys to pay.
- 6:54:14So, we're going to do an HTTP request,
- 6:54:17and we'll set this up here in a second
- 6:54:19based off of the documentation. Um, all
- 6:54:22I did again is I went to the API. I
- 6:54:24found that free section, which it looks
- 6:54:26like it's gone from my side now
- 6:54:31for like the current weather,
- 6:54:35but unless it was on the pricing page.
- 6:54:39I think it was the pricing page.
- 6:54:42All right. So, current weather and
- 6:54:44forecast. We need to find that
- 6:54:46documentation. So, we're going to go to
- 6:54:48guides, open link,
- 6:54:53and let's find the current weather.
- 6:55:03All right. So,
- 6:55:06current weather and forecast, real time
- 6:55:08updates every 10 minutes.
- 6:55:11Current weather data. This is the one
- 6:55:13that we want to take a look at. So,
- 6:55:15we're going to look at the API doc.
- 6:55:17Great. I think we're in the right spot.
- 6:55:18And you can see like this is an example
- 6:55:19of a much more comprehensive API. So,
- 6:55:23what we have over here is our example.
- 6:55:25So, it says HTTP
- 6:55:28equals we need to put our lat long and
- 6:55:30our API key. So, these are all required
- 6:55:32parameters. So, you can see it says
- 6:55:34required latitude over here. Required
- 6:55:37longitude
- 6:55:39and uh this is an example of the API
- 6:55:41call. So, typically what I like to do is
- 6:55:44start with an example. And you'll see we
- 6:55:46get a JSON response associated with it.
- 6:55:49Um, where is this at? Let's do a flat
- 6:55:53and longitude of a city. So, you know,
- 6:55:57obviously it's 12:31. New Year's is
- 6:55:59about to hit in uh the states
- 6:56:03in less than 12 hours. There's the big
- 6:56:05New Year's ball in New York. So, let's
- 6:56:07say the long and long of New York City.
- 6:56:12that is going to be this. So, this is
- 6:56:15the Latin long of NYC. Let's uh paste
- 6:56:18this in over here. So, what we're going
- 6:56:21to do is take a look at that.
- 6:56:27Cool. So, this is the Latin long of New
- 6:56:29York City. We're going to get this
- 6:56:31example over here. So, this is an
- 6:56:32example of an API call
- 6:56:36and we'll grab that over here as well.
- 6:56:39So, we'll just throw that in
- 6:56:44that. Great. So, this is our URL and
- 6:56:46we've already kind of covered our
- 6:56:48specific URLs. We can change this up as
- 6:56:51needed, but let's uh grab that first.
- 6:56:55And you can see also with the example,
- 6:56:57let me just go back over here. All we're
- 6:57:00doing is changing these parameters
- 6:57:02because if you go
- 6:57:05to this,
- 6:57:08you'll see all they're doing for the lat
- 6:57:10is putting this lat with two decimal
- 6:57:13places. This is ann
- 6:57:16with two decimal places. So with our New
- 6:57:18York example, it' be 40.71
- 6:57:22that. And then I'll just put like a a
- 6:57:25bracket or not bracket but a colon like
- 6:57:28that column I say colon like that. Okay,
- 6:57:32cool. So now let's test that out with
- 6:57:35our thing. So I'm going to go over here
- 6:57:40and change that up. So we're going to do
- 6:57:4240.71. I just find this easier just to
- 6:57:44manipulate this out over here for a
- 6:57:46second just so you guys see what I'm
- 6:57:48doing. 74
- 6:57:51in like that. Then I need to put in my
- 6:57:53API key, which I will put in a second.
- 6:57:55If I can delete my API key, I'll
- 6:57:57probably just use the API key for this
- 6:57:59example. Just going to go to API key
- 6:58:02really fast.
- 6:58:09Let's see. Okay, I'm just going to
- 6:58:12deactivate my key after this section.
- 6:58:14So, it's showing. That's fine. I don't
- 6:58:16really care. I'm going to grab my key
- 6:58:18like this, and I'm just going to paste
- 6:58:20it in over here.
- 6:58:22So you'll see that is my API key
- 6:58:25and uh yeah we'll test this out and
- 6:58:27obviously this is not secure like if we
- 6:58:29share this workflow with any other
- 6:58:30person they can access our API key
- 6:58:33because any end will save this over
- 6:58:35here. So I'm going to have to show you
- 6:58:36how we can get rid of this API key
- 6:58:39within this section. Um yeah we'll we'll
- 6:58:42cover that here in a minute. So I'm
- 6:58:43going to execute this step and it says
- 6:58:46invalid API key. Unfortunately we have
- 6:58:49something going on with our API key. Uh,
- 6:58:51that's annoying.
- 6:58:54All right, let's see
- 6:58:57why this is not working.
- 6:59:05The status is active.
- 6:59:10Why is this not working though?
- 6:59:13There are API key.
- 6:59:16We did the exact example.
- 6:59:20Let's see this error. So, it tells us
- 6:59:21where we can see this error. 401, you
- 6:59:24did not specify your API key and API
- 6:59:26request. Your API key is not activated
- 6:59:27yet. Within the next couple of hours,
- 6:59:29it'll be activated, ready to use. Well,
- 6:59:32we are
- 6:59:34might have to wait. You're using free
- 6:59:36subscription. Try requesting data
- 6:59:39available in your subscription for
- 6:59:40example.
- 6:59:44All right. Maybe it's we have to go to
- 6:59:462.0.
- 6:59:48Let's try 2.0. No,
- 6:59:51no, this API is not ready.
- 6:59:54Unfortunately, we're going to wait on
- 6:59:55this.
- 6:59:57All right. So, essentially, I did a
- 7:00:00little bit more research on this 401
- 7:00:02error. I'm going to keep this in the
- 7:00:04video because this is kind of real world
- 7:00:07debugging, like what's happening with an
- 7:00:09API key. I found this on Stack Overflow,
- 7:00:11which if you're not familiar with Stack
- 7:00:13Overflow, it's a really great place for
- 7:00:14developers to take a look at
- 7:00:16information. So I literally just Google
- 7:00:18search open weather map error 401
- 7:00:21and uh someone has already said this is
- 7:00:23a duplicate error. They have code over
- 7:00:26here to specifically jump into the API
- 7:00:29and someone says check this out. Reasons
- 7:00:32why your API key is not working. Also it
- 7:00:34takes two hours for key activation. Um
- 7:00:38take a look at this. This is from 10
- 7:00:40years ago and someone also mentions that
- 7:00:42it takes two hours for our key to work.
- 7:00:46So unfortunately
- 7:00:49or fortunately
- 7:00:51and this is not going to work for us for
- 7:00:532 hours. I want to get this course to
- 7:00:57keep moving forward. So I'm going to
- 7:00:59pretend like this actually works and
- 7:01:01we'll still work walk through the
- 7:01:03documentation. Maybe you want to wait
- 7:01:05the two hours and come back to this
- 7:01:06lecture. Um we're going to still cover
- 7:01:08another API in that next side. I think
- 7:01:10this was a good example though of
- 7:01:12showing you like some things are out of
- 7:01:14your control like waiting two hours is
- 7:01:16out of my control on this because I
- 7:01:18wanted to go into these APIs a little
- 7:01:20bit blind but
- 7:01:23that's a bummer as you can see I was
- 7:01:25looking at the 401 errors and things
- 7:01:27like that. So going back into like what
- 7:01:31we expect to receive, you know, we could
- 7:01:34still build out a workflow just based
- 7:01:36off of predictions. Like we can
- 7:01:38obviously just edit our values and
- 7:01:40things like that. We can still talk
- 7:01:41about other stuff as well. Um so
- 7:01:44documentation wise, let me kind of
- 7:01:46explain a few things. When you are
- 7:01:48looking at um documentation for an API,
- 7:01:51if they mention that a parameter is
- 7:01:53required, you have to put that in there.
- 7:01:55Otherwise, you're going to get an error.
- 7:01:56As you can see over here, lat long app
- 7:01:59ID is required. Optional means you don't
- 7:02:01necessarily need to pass it on, but you
- 7:02:03can do that if possible. Uh so you can
- 7:02:06see this is lat long. It's easy. App ID
- 7:02:09is unique API key. It shows you where
- 7:02:11you can get your API keys. Mode optional
- 7:02:14is a response format. Possible are XML
- 7:02:16or HTML. If you don't use the mode
- 7:02:18format is JSON by default. I'm fine with
- 7:02:20JSON. So that's good there. I wouldn't
- 7:02:22pass in mode. Optional, units of
- 7:02:24measurement, standard, metric, or
- 7:02:25imperial. Obviously, this depends on the
- 7:02:27country that you're at. And then it says
- 7:02:29language optimal, you can change this
- 7:02:30output in your language. So, if you're
- 7:02:32overseas and you don't want to have this
- 7:02:33in English, you can change that
- 7:02:35language. And you would just keep
- 7:02:36passing these on. So, you can see what
- 7:02:38we have over here is this question mark.
- 7:02:40So, we can pass that data specifically
- 7:02:42on in our our query parameter section.
- 7:02:46So, to show you how that would work,
- 7:02:48we'll go over here
- 7:02:50and
- 7:02:52next. And you can take a look. We have
- 7:02:54our question mark. So what we want to do
- 7:02:56is send query parameters and we'll add
- 7:02:58in multiple parameters this time because
- 7:03:00we didn't cover that on the last side of
- 7:03:02it. So we're going to take that question
- 7:03:04mark and we're going to paste that over
- 7:03:06here. And first thing we have is lat. So
- 7:03:09we're going to keep this to 40.71.
- 7:03:12Then we're going to do our long width is
- 7:03:1474. So I'll just put name long should be
- 7:03:18long like that. Put the value over here
- 7:03:2174.00.
- 7:03:24And then we have our app ID, which is
- 7:03:26our uh API key. Now, I do not recommend
- 7:03:29you put your API key over here. I'm just
- 7:03:32going to clean this up. Just show you
- 7:03:34that. So, I do not recommend that you
- 7:03:37put your API key here. And I'll explain
- 7:03:40here in a second. I'm just clean that
- 7:03:41up. I noticed I had an error. So, you
- 7:03:43can see I took lat, I put a value 4071,
- 7:03:45lawn, I put a value 74, and then app ID.
- 7:03:48And again, we saw that because there was
- 7:03:49a question mark in here, we could use
- 7:03:51these as specific query parameters. So
- 7:03:54what I would recommend that we do is set
- 7:03:57some sort of authentication up for this
- 7:03:58app ID because it's just not the best
- 7:04:01approach to use when we share this
- 7:04:02workflow. Someone else will be able to
- 7:04:04get our value even if it's right here or
- 7:04:07if it is right down below over here. So
- 7:04:11same if you do headers or body um if you
- 7:04:14have your API key in over there
- 7:04:15typically won't be in body but you
- 7:04:17sometimes you'll see header anyone can
- 7:04:18access it. So what we want to do is go
- 7:04:20into authentication, set up a generic
- 7:04:23credential type, and then what we're
- 7:04:25going to do is look for a query off.
- 7:04:27Okay. Then what we're going to do is
- 7:04:29create a new credential
- 7:04:31and we're going to say like this is open
- 7:04:33weather. So open weather.
- 7:04:37And then we need the name. So we go back
- 7:04:40into our stuff and we'll edit this here
- 7:04:42in a second. I'm just clicking save.
- 7:04:44You'll notice it says name is app ID. So
- 7:04:46going to open weather, we'll call this
- 7:04:48app ID like that. Save it again. And
- 7:04:50then we grab our value. So we go back in
- 7:04:53over here. And then we paste in our
- 7:04:55value there. So now we have our
- 7:04:57credentials to open weather saved. And
- 7:05:00you can see it obviously saves over
- 7:05:01here. Um we have this saved directly in
- 7:05:04our HTTP request. And now I would
- 7:05:06recommend that you delete this over
- 7:05:08here. So now all we have to pay paste in
- 7:05:10every time is our lat and long to get
- 7:05:13this API working. Whereas we just have
- 7:05:16to choose this query authentication over
- 7:05:18here. We choose a generic type a query
- 7:05:20off because that's where it defined it
- 7:05:22in the API. We saw that with the
- 7:05:24question mark. We just go over to query
- 7:05:26off like that and then set it up. Okay.
- 7:05:29Again, app ID. It tells us this directly
- 7:05:32in our documentation. So if we go to our
- 7:05:34documentation again, wherever that's at
- 7:05:38here, it says and app ID like this. We
- 7:05:41have this after a question mark. So we
- 7:05:43know that that's a query. Uh we put the
- 7:05:45app ID and we paste in our specific
- 7:05:47value. Obviously I would show it to you
- 7:05:49guys but we can't work on this for two
- 7:05:51hours. So is why this is not currently
- 7:05:54working. And uh happy to take a look at
- 7:05:56this a little bit later after the video
- 7:05:57uploads if there's any issues on that
- 7:06:00side of things. But yeah so I wanted to
- 7:06:02show you that. The other question you
- 7:06:03might have is like okay well if I save
- 7:06:05this over here as a actual a query off
- 7:06:08and a generic credential if I share my
- 7:06:09workflow will other people have access
- 7:06:10to it? And the answer is no. This is
- 7:06:13based off of your specific credentials.
- 7:06:16So if you share this, all they'll have
- 7:06:18access to now is this LAT and long. They
- 7:06:20will not have access to your API key. So
- 7:06:23this is the most secured way to do it.
- 7:06:24Uh you set up a credential type.
- 7:06:27Obviously you want to see if something's
- 7:06:29available in predefined. Otherwise you
- 7:06:30do a generic credential and uh like
- 7:06:33let's say predefined. I don't think open
- 7:06:35weather is going to be over here. It's
- 7:06:37the exact name, right? Open weather.
- 7:06:39Yeah. So, I'd look first to see if open
- 7:06:41weather is here or not. Um, it actually
- 7:06:44is. So, you can see open weather map API
- 7:06:47create a new credential and you can just
- 7:06:49paste this in up over here. That is the
- 7:06:52same thing or the route that I did. And
- 7:06:56just to create the credential here, put
- 7:06:57my access token that side of it which I
- 7:07:02have that do I have it saved over here?
- 7:07:04I do.
- 7:07:05So, two different routes that you could
- 7:07:07go if it's not available.
- 7:07:10It's not available in a predefined
- 7:07:11credential.
- 7:07:13Paste that. There it says couldn't
- 7:07:16connect with these. We already know why
- 7:07:17it's not going to connect because of the
- 7:07:19two hours. We'll assume it does.
- 7:07:22You can set that up as a predefined.
- 7:07:24Otherwise, if it is not in predefined, I
- 7:07:26recommend you do generic. You see based
- 7:07:28off the documentation. This
- 7:07:30documentation said it's a query. And
- 7:07:31then I just set it up directly in here.
- 7:07:33just following app ID and then value.
- 7:07:35Hopefully that makes sense. That was
- 7:07:37kind of one of the big things I wanted
- 7:07:38to cover on the side because I knew we
- 7:07:40had to log in some capacity. The other
- 7:07:42thing is I wanted to build a workflow.
- 7:07:43So you can imagine on the side of it
- 7:07:46like we get our values back.
- 7:07:50We'll get some JSON. So what I want to
- 7:07:53do is just copy this JSON.
- 7:07:57We're going to do is pretend to paste
- 7:07:59this in a HTTP request. So we're going
- 7:08:02to go here and I'm going to click edit
- 7:08:05and I'm g just paste this in.
- 7:08:10So you can see this would be our
- 7:08:13example. So it says this data is test
- 7:08:15for pinned executions. We have our
- 7:08:16coordinates. We have the weather
- 7:08:18temperature feels like which seems way
- 7:08:22off. Temp 282.
- 7:08:28I'm reading that right? Temp 280
- 7:08:31284. What the heck?
- 7:08:37That's weird. That seems off.
- 7:08:42Is this just like a fake thing?
- 7:08:47No, this is a real thing in Italy. I'm
- 7:08:49sure I'm getting roasted. Why is it
- 7:08:51showing the temp in 284? Let's take a
- 7:08:54look. Temperature unit
- 7:08:58default is Kelvin. That explains a lot.
- 7:09:00I'm like, man, why is it
- 7:09:02so off
- 7:09:04Kelvin to Fahrenheit?
- 7:09:07I'll do Celsius in a second, too. Uh,
- 7:09:11yeah, Kelvin Zero is the coldest thing
- 7:09:14possible. Uh, 48 degrees Fahrenheit.
- 7:09:16It's freezing. Um, okay,
- 7:09:22cool. and we'll do 282 for those that
- 7:09:25are in Celsius 8 degrees Celsius cold
- 7:09:28weather at least here in Florida. All
- 7:09:30right, regardless, not to go on a
- 7:09:32tangent, I don't know why Kelvin didn't
- 7:09:34click for me in a second. I know what
- 7:09:36Kelvin is, but you just I I would have
- 7:09:38expected that this would have populated
- 7:09:40either in Celsius or Fahrenheit. All
- 7:09:42right, so we have all this data over
- 7:09:43here, and you can imagine like we can
- 7:09:47essentially have, let's say, a database
- 7:09:50of all of our customers. So, this is
- 7:09:53what I was going to work on
- 7:09:54specifically, and obviously like it's
- 7:09:55it's not possible based off of this.
- 7:09:57Right now, we have a database of
- 7:09:58customers, which I'm just going to put
- 7:10:00in um Google Sheets. So, we'll say
- 7:10:04Google Sheets. And then what I was going
- 7:10:07to do is run this API based off of
- 7:10:12location. So, let's say if they're in
- 7:10:14Florida or like Orlando, Florida, I'm
- 7:10:16out. Okay. What's the temperature over
- 7:10:18here? What's the temperature where else?
- 7:10:20and then either get this data would have
- 7:10:23like some sort of if node. So let's I
- 7:10:26don't know why I type in if node. We
- 7:10:28would have an if node over here
- 7:10:30and then like one route like okay if
- 7:10:33this is going to be based off of the
- 7:10:34temperature or weather. So temperature
- 7:10:37or if it's raining
- 7:10:40and then based off of this we can
- 7:10:43promote a product. So like imagine if
- 7:10:45it's cold so for example if it's
- 7:10:47freezing in Florida.
- 7:10:49in Florida promotes a jacket.
- 7:10:54Hey, so essentially this was my goal for
- 7:10:56this side of it. Obviously, it's not
- 7:10:57going to happen for the two hours. Um,
- 7:10:59we have database of customers. Let's
- 7:11:01imagine this is in Google Sheets. We
- 7:11:02build this out. Then we run the HTTP
- 7:11:04request to get the current weather and
- 7:11:06locations. So now we have the customer,
- 7:11:08we have okay, how cold is it in their
- 7:11:10specific area. I'll just convert this
- 7:11:12from Kelvin into Fahrenheit. Um, I
- 7:11:15believe the API also mentioned we could
- 7:11:17change that out. So, uh, we would go
- 7:11:19into the temperature or if it's raining.
- 7:11:22I didn't decide which one I was going to
- 7:11:24do for this video, but we can go with
- 7:11:25the temperature idea. So, if it's like
- 7:11:27under 50° Fahrenheit, I have a
- 7:11:29e-commerce store that sells jackets. I
- 7:11:32want to promote that. So, I'm going to
- 7:11:34say um, an email to these customers.
- 7:11:36Hey, it's freezing in Orlando. Um, buy a
- 7:11:39jacket, which it is cold today. It's
- 7:11:40actually, uh, 45° out, which is very
- 7:11:43cold for us here in Florida. And yeah,
- 7:11:46that was essentially the workflow I was
- 7:11:47going to build out for this video with
- 7:11:49you guys. Unfortunately, that's not the
- 7:11:50case. If you want to test it out, go for
- 7:11:52it. Uh, see what you can build. I think
- 7:11:54you have all the skills to build this
- 7:11:55out. As of now, I showed you how to set
- 7:11:57this up. Uh, other thing I just want to
- 7:11:59quickly go through to see if there's
- 7:12:00anything else that's interesting. I
- 7:12:02remember how I mentioned we're going to
- 7:12:04get these fields. So, you can see over
- 7:12:06here, unit default, Kelvin, metric,
- 7:12:08Celsius, imperial, Fahrenheit. Found out
- 7:12:10really fast when I went into this
- 7:12:12documentation, right? Like I had Why is
- 7:12:14this 280? That seems off and I thought
- 7:12:16they were going to give us some
- 7:12:17fictitious information at first. Well,
- 7:12:19it's in Kelvin. Uh you can see feels
- 7:12:22like temperature parameter accounts for
- 7:12:23the perception of weather in Florida. It
- 7:12:26can get really really hot based off of
- 7:12:28that. Also, we're super humid over here.
- 7:12:31You see wind values, cloud values. So,
- 7:12:33if you really want to get some more
- 7:12:34information about how this API works is
- 7:12:37all available over here. I just
- 7:12:39recommend that you get your responses
- 7:12:40back in JSON. Uh there's other
- 7:12:42information over here as well. A list of
- 7:12:44weather condition codes. So if you want
- 7:12:46to see the codes, they're all over here.
- 7:12:49Gives you some other icons and
- 7:12:50information as well. And uh yeah,
- 7:12:54there's also options for bulk
- 7:12:55downloading that site too. A little bit
- 7:12:58more info. Uh what else do we have?
- 7:13:01Built-in API request by city name. So
- 7:13:04this is pretty cool. We can actually do
- 7:13:06uh city as well and instead of long that
- 7:13:08long. So this would just say over here
- 7:13:12the Q is required. So city name, state
- 7:13:16code and country code divided by a
- 7:13:17comma. So this seems like a little bit
- 7:13:19extra work. There's probably an example
- 7:13:22here. Oh actually we just had to put in
- 7:13:24London I guess London UK like that is
- 7:13:26there's I think a London Canada. Um
- 7:13:29built an API request by city ID. If you
- 7:13:31know the city ID on top of your head and
- 7:13:33maybe we want to build this out in a
- 7:13:34database and go through again you can
- 7:13:36see required versus optional which you
- 7:13:38now learned about in this section
- 7:13:41and uh yeah I think this is pretty good
- 7:13:44examples of API calls. So this is great
- 7:13:46tells you about different languages.
- 7:13:48This is a well doumented API. It's just
- 7:13:50a bummer. It's going to take two hours
- 7:13:53if not more. Um some of the people that
- 7:13:55I saw in Stack Overflow mentioned that
- 7:13:57they had to wait overnight for their API
- 7:13:59keys at times. Again, this is three
- 7:14:01years ago, so things can change. Um, but
- 7:14:04I think it was kind of helpful for that.
- 7:14:06So, you know, just to kind of a recap on
- 7:14:09here, if your API key doesn't work and
- 7:14:11you do get an error code, obviously try
- 7:14:13to research it. We saw that this takes
- 7:14:15two hours. Um, not planned by any means
- 7:14:18like that. Uh, we also learned about
- 7:14:22putting an API key over here in either
- 7:14:24the URL or query parameters. It is not
- 7:14:27secured. So your best set is to set
- 7:14:30either a predefined credential or
- 7:14:31generic. By default, you should try to
- 7:14:33take a look at predefined if it's
- 7:14:35existing. If not, you build out the
- 7:14:37generic credential.
- 7:14:39And then I just kind of showed you an
- 7:14:40example over here. Albeit it just sticky
- 7:14:43notes of a workflow that I wanted to
- 7:14:45build for this particular video. The
- 7:14:48next one's going to be taking a look at
- 7:14:49a movie database. Hopefully that doesn't
- 7:14:51take too. If so, just go to a different
- 7:14:55API that I've already done with
- 7:14:56pageionation. But I think that's another
- 7:14:58important concept to teach you guys and
- 7:14:59I'll see you in part four now. All
- 7:15:01right, here is our fourth one and what
- 7:15:03we're taking a look at is the movie
- 7:15:05database. So I'm going to populate this
- 7:15:08in over here
- 7:15:11and let's jump into it. So
- 7:15:14let's set up our API key. So it says you
- 7:15:17don't have permissions. You have to log
- 7:15:19in. So I'm going to create an account
- 7:15:20over here. And uh register an account is
- 7:15:24free and simple. Okay. Obviously, again,
- 7:15:27my first time trying this out. I'm going
- 7:15:29to just pause the video really quick,
- 7:15:32and once I get signed up, we'll be ready
- 7:15:33to go. Then, it's going to say confirm
- 7:15:35I'm human. We'll begin. Choose all the
- 7:15:38beds. We'll choose these beds over here.
- 7:15:40No complaints there.
- 7:15:42And uh got that correct. Okay, you're
- 7:15:44verified. So, sorry, I'm not verified
- 7:15:47yet. So, I need to verify. I'm just
- 7:15:49going to verify on my other screen.
- 7:15:55activate my account.
- 7:15:58Cool. All it was is a uh
- 7:16:02basic thing like this. I just called my
- 7:16:04username right Ann. So you can see
- 7:16:06movie. Great. All right. So now I just
- 7:16:09need to log in.
- 7:16:12Logged in over here. And we have uh
- 7:16:15TMDB.
- 7:16:18So we have all this information over
- 7:16:20here. And now we need to access the API.
- 7:16:24So let's go back in over here and let's
- 7:16:27look at the API. All right. So offers a
- 7:16:30API free for personal use. Please ensure
- 7:16:33you attribute TMDB for images data use.
- 7:16:36You can find the logos. So obviously
- 7:16:39this is what I'm using for the video
- 7:16:40teaching you guys how to set this up. If
- 7:16:42you're going to use this there uh
- 7:16:44generate API key click here. Is intent
- 7:16:47for personal use? Yep, it is personal
- 7:16:50use. I'm teaching you guys how to do
- 7:16:52this. And uh yes,
- 7:16:56developer plan, no free thing. We'll
- 7:16:59just say over here
- 7:17:02if there's any billing, I'm just going
- 7:17:04to literally say um API tutorial.
- 7:17:09I'm going to go YouTube.com.
- 7:17:14It's literally just education
- 7:17:17teaching
- 7:17:20people how to use API.
- 7:17:23All right, it's literally going to make
- 7:17:25me do the rest of this. I'm just going
- 7:17:27to
- 7:17:29go over here, subscribe.
- 7:17:31All right, that's annoying. I have to
- 7:17:32put in my address and stuff like that.
- 7:17:34So, I'm going to do that really quick.
- 7:17:37We're going to cut from the screen once
- 7:17:38it is ready to go. So, I filled out that
- 7:17:40form and then it says access your API
- 7:17:42key details here.
- 7:17:45So now we have our API key both on that
- 7:17:48side of things. Um I definitely want to
- 7:17:51blur this out so you guys cannot see
- 7:17:54these API keys just in case I can't
- 7:17:57actually delete these API keys.
- 7:18:01Doesn't look like there's a way to
- 7:18:05delete them. So
- 7:18:07yeah, we're going to have to probably do
- 7:18:09that. But it says primary documentation
- 7:18:11is over here. So, we're going to look at
- 7:18:12the documentation now and uh yeah, these
- 7:18:16keys are going to be blurred out. Okay,
- 7:18:18so getting started. So, we have a little
- 7:18:20bit of a different guide over here for
- 7:18:22the API. It says, "Welcome to version
- 7:18:24three. We already registered. Please
- 7:18:26note the API registration process is not
- 7:18:28optimized for mobile devices." Uh, agree
- 7:18:31to terms of use
- 7:18:33configuration methods and uh we have our
- 7:18:36FAQ.
- 7:18:38What do I apply for an API key? What is
- 7:18:40an SLA? Rappers.
- 7:18:43They're a commercial service. Obviously,
- 7:18:44if you're building out some type of app
- 7:18:46that uses it, you're going to have to go
- 7:18:47to the commercial side of things.
- 7:18:50API is free for non-commercial purposes.
- 7:18:52Obviously, this is TMDB's stuff. Does
- 7:18:55the API change? Yep, it talks about
- 7:18:58changes. Can I make changes? Nope. All
- 7:19:01right.
- 7:19:02And let's take a look at some other
- 7:19:05stuff. Popularity,
- 7:19:07movies. So popular is a fairly important
- 7:19:09metric,
- 7:19:13number of votes, trending. Cool. So this
- 7:19:16is going to talk about road maps,
- 7:19:18rappers, and libraries. Like there's a
- 7:19:20lot of stuff over here. And this might
- 7:19:22seem overwhelming at first. There's
- 7:19:24authentication. Uh you can see over here
- 7:19:27we have a bearer token that's mentioned.
- 7:19:29So it says the default method to
- 7:19:31authenticate is with your access token.
- 7:19:33If you head into your account page under
- 7:19:35API settings, you'll see a new token API
- 7:19:37access token. The token is expected to
- 7:19:39be sent along over here. A simple curl
- 7:19:41using this method looks like the
- 7:19:42following.
- 7:19:44So, we can use a curl request as well.
- 7:19:47Um, it's not curl request, but use a
- 7:19:50curl. So, let's start with that because
- 7:19:52I feel like that's probably the easiest
- 7:19:54way to get started. So, we have our HTTP
- 7:19:56request and we'll take a look at it. So
- 7:20:01jumping in over here, let's import in
- 7:20:04curl. So it's going to start with a get
- 7:20:08and great. So we have our API movie
- 7:20:12authentication and then you can see over
- 7:20:14here we have a header parameter this
- 7:20:16time. So the previous ones that we've
- 7:20:18taken a look at are great parameters and
- 7:20:21that was with our API key in the last
- 7:20:23one. This one actually you have to put
- 7:20:25this in a header parameter. So, it's
- 7:20:27interesting that it's over here. So, if
- 7:20:30we want to take a look and define this
- 7:20:33every time, what we're going to do is
- 7:20:35first take a look at predefined. Uh,
- 7:20:37we're looking at the movie DB. So, let's
- 7:20:39see if the movie DB is over here. So,
- 7:20:41I'm just going to type in movie. And you
- 7:20:43can see like there's no movie in here.
- 7:20:45So, we're going to have to use a generic
- 7:20:47credential. Then, we're going to go into
- 7:20:49header. Okay. So, now I'm going to
- 7:20:52create a brand new header. So, create
- 7:20:54this over here. I'm going to call this
- 7:20:56movie DB like that. Movie DB. All right.
- 7:21:00I'm going to actually save that. I
- 7:21:03apologize for moving out. I'm going to
- 7:21:05say movie DB like this. I'm going to
- 7:21:09save it. And now we need to call this
- 7:21:12authorization. So, I'm going to go over
- 7:21:14here, name this authorization. We'll
- 7:21:16save that. And then it says my bearer
- 7:21:18access token. And that was back on our
- 7:21:20first page because it says over here the
- 7:21:23default method authenticate. If you head
- 7:21:24to your account page under API settings,
- 7:21:26you see a new token listed API read
- 7:21:28access token. This token is expected to
- 7:21:30be sent as authorization header. So that
- 7:21:33is our first one over here. It's
- 7:21:35obviously blurred on my screen right
- 7:21:36now. I'm going head back into n. I'm
- 7:21:39going to go back into this movie off
- 7:21:41head and I paste this over here into
- 7:21:43value. It's a very long one and I saved
- 7:21:46it. So we have that over here and now we
- 7:21:48can remove this authorization
- 7:21:51and don't have to send any specific
- 7:21:53headers. So, this is just our first test
- 7:21:55to see if this is working correctly. I
- 7:21:57have no idea what this endpoint actually
- 7:21:59does, but we're just going to execute
- 7:22:00step. And uh fortunately, you must be
- 7:22:03granted a key. We have a status code
- 7:22:05issue. Wonder if we have the same thing
- 7:22:07where this takes a little bit longer to
- 7:22:10uh take a look at. I'm going to just
- 7:22:12search this really fast. Would I have an
- 7:22:14error?
- 7:22:17I wonder also if they sent an email
- 7:22:19based around it.
- 7:22:21All
- 7:22:22right, we're gonna
- 7:22:24try the other key here in a second.
- 7:22:29So, I'm just going to go over here and
- 7:22:30do another HTTP request.
- 7:22:33We're going to import in that curl.
- 7:22:36So, go back over here
- 7:22:42through this. All right. So,
- 7:22:45importing this over here. First thing
- 7:22:48we're going to just try is pasting in
- 7:22:50our key like that. Again, it's blurred
- 7:22:53so you guys can't see. And actually, you
- 7:22:56know what the error is? I guarantee this
- 7:22:58is the error.
- 7:23:02Yep, I know exactly what the error is.
- 7:23:04All right, so this is a weird quirk and
- 7:23:06let me show you in a brand new one.
- 7:23:09Okay, this sometimes happens and
- 7:23:12obviously I wasn't paying attention too
- 7:23:15well. So going back over here, if we
- 7:23:18grab that curl request, you'll notice
- 7:23:21that it says bearer, there's a space,
- 7:23:23and then it says access token. So when
- 7:23:25you set up your credentials, you need to
- 7:23:28make sure at the beginning there's
- 7:23:29bearer space and then paste it in. So um
- 7:23:33I need to go back over here and then
- 7:23:36edit this. So you see where this value
- 7:23:38is? We're going to go all the way to the
- 7:23:40left. I'm going to say bearer space. And
- 7:23:43then we're going to save this. And now I
- 7:23:45bet you if I run this, it actually
- 7:23:47works. Well, let me uh copy our exact
- 7:23:52one that we had over in this other one
- 7:23:54that we knew worked correctly. So, I'm
- 7:23:56going to copy my API key. It's a little
- 7:23:57bit easier to read. And then I'm going
- 7:24:00to go in here and paste that in. I'm
- 7:24:02going to click save. And now we're going
- 7:24:04to test it again. And you can see it
- 7:24:07works properly. So, when you go in over
- 7:24:09here, make sure API key looks like this.
- 7:24:12So, it's
- 7:24:14and I'll show you one more time.
- 7:24:17So,
- 7:24:19because this does happen time to time
- 7:24:22and it sometimes it does stump people.
- 7:24:25It stumped me right there for a second.
- 7:24:26Well, I wouldn't say stumped. I figured
- 7:24:28out within like five minutes. But, all
- 7:24:30right. So, imagine your API key is like
- 7:24:33this.
- 7:24:35All right. So, we have our bearer access
- 7:24:36token. That's our example, right? And
- 7:24:38let's imagine our API key equals 1 2 3 4
- 7:24:434 5. So essentially as your saved
- 7:24:46credential. So saved credential you need
- 7:24:49to have this equal to bearer like this
- 7:24:54space
- 7:24:561 2 3 4 5. So whatever that key is that
- 7:24:59long string you need to paste that in
- 7:25:01over here. And that is what is being
- 7:25:03saved over here in value. Obviously, the
- 7:25:07name is authorization. You need to make
- 7:25:09sure that's the same. All right, so
- 7:25:10hopefully that makes sense. I'm going to
- 7:25:12clearing these out. And again, do not
- 7:25:14save your stuff in this headers because
- 7:25:17anyone that can access your workflow
- 7:25:19will get those values and you don't want
- 7:25:20to leak your key. So hopefully that
- 7:25:23makes sense. And uh I know I said that
- 7:25:26twice, but super super important that
- 7:25:28you set this up. Again, this does happen
- 7:25:30time to time. So I'm actually really
- 7:25:31glad I made that error. And uh yeah,
- 7:25:34we'll keep going forward. Great. So
- 7:25:36authentication we've already covered
- 7:25:38that as well and using the API. So now
- 7:25:42what we're going to have is different
- 7:25:44examples over here and what we can take
- 7:25:47a look at is append to the responses and
- 7:25:49easy way efficient to expend extra
- 7:25:51results. I want to see where we have
- 7:25:54different TV shows and things like that.
- 7:25:56So I want to say we have different
- 7:25:57examples like that. Let me also check
- 7:25:59what our output was on here. So going to
- 7:26:02table wise,
- 7:26:05we have Star Wars.
- 7:26:08Is that the only thing that populated?
- 7:26:12I guess this is like one of the most
- 7:26:13popular things over there. All right,
- 7:26:18it's a pend to response.
- 7:26:26This API reference
- 7:26:29can get better. Okay, so welcome to
- 7:26:31version three of the API. This is where
- 7:26:32you find definitive list of currently
- 7:26:34available methods for our movie, TV, and
- 7:26:36actor image API. Honestly, I should have
- 7:26:38gone this approach over here. I
- 7:26:40apologize. So, first thing that you'll
- 7:26:42notice over here, and I'm blurring out
- 7:26:45my credentials over here. You can see we
- 7:26:47have get, we have over here, a post to
- 7:26:50add a favorite, add to a watch list, we
- 7:26:52have get, favorite TVs that are get, we
- 7:26:55have posts, get. So, it tells you what
- 7:26:58you need to set up over here, like add
- 7:27:01in a movie, clear, create. You have a
- 7:27:04delete option also over here. Lots and
- 7:27:06lots of really cool stuff we can play
- 7:27:07with. Obviously, I don't have unlimited
- 7:27:10time to walk you guys through every
- 7:27:12single element of this API. Uh, but we
- 7:27:16can take a look at some of this stuff.
- 7:27:18So, let's go look at TV seasons and
- 7:27:21we're going to go details and we'll see
- 7:27:23what's going on over here.
- 7:27:25All right. So, it says TV series ID,
- 7:27:30which we need to find a series ID,
- 7:27:32season, and season number. I'm going to
- 7:27:33try to grab Stranger Things because I'm
- 7:27:35excited to see the last episode tonight.
- 7:27:38Obviously, my token is kind of blocked
- 7:27:40over here on the screen. Um, but yeah,
- 7:27:43let's find that. So, create details of a
- 7:27:45TV season.
- 7:27:49So, series ID,
- 7:27:52we have a response over here.
- 7:27:56name. Okay. So, I believe this is the
- 7:27:59same barrier key that I populated. I
- 7:28:02just want to see where these um series
- 7:28:05ID is located at.
- 7:28:08That's what I want to figure out. We see
- 7:28:10we have the curl request here as well.
- 7:28:12Um so, I can just copy this curl
- 7:28:14request,
- 7:28:16go in here, do another HTTP request,
- 7:28:21import in curl. You can see it actually
- 7:28:24pastes in our bearer token as well. So
- 7:28:27I'm going to actually delete this out,
- 7:28:29but the curl request will put that in
- 7:28:31there.
- 7:28:32So be careful with that.
- 7:28:36CSPS or JSON, but now we just need to
- 7:28:39figure out. Okay, so we have the season,
- 7:28:43season number, and series ID.
- 7:28:47I want to find where the series ID is.
- 7:28:50So,
- 7:28:53where can we find a series idea?
- 7:28:59So, it
- 7:29:01it doesn't have a lot of stuff. Maybe
- 7:29:04it's in the getting started side.
- 7:29:08So, we have a try it. We have our API
- 7:29:12over here.
- 7:29:15Apologize for the dog barking.
- 7:29:20We have a search as well. Let me just
- 7:29:23look this up. TMDB TMDB
- 7:29:26series ID.
- 7:29:28All right. So, someone says, "How to get
- 7:29:30series ID?" I'm looking this up. There
- 7:29:33are two ways when you via the website
- 7:29:35interface or via API. Okay. So, look,
- 7:29:38you can search directly in the API. This
- 7:29:41is great. This is exactly what we want
- 7:29:42to see. So, I don't want to look on the
- 7:29:45website. I just want to go over here and
- 7:29:47search this. So maybe make another HTTP
- 7:29:50request.
- 7:29:53And uh
- 7:29:55this is a get.
- 7:30:00I guess this is a little bit different.
- 7:30:01Ah, it doesn't matter. We can do a
- 7:30:03request or we can go on the website.
- 7:30:07So it says that would be 4614.
- 7:30:10All right. Let's find Stranger Things.
- 7:30:17Stranger Things and we're going to look
- 7:30:19in TV shows.
- 7:30:22All right. So, Stranger Things, we have
- 7:30:23a ID of 66732.
- 7:30:26So, let's see if we can solve that.
- 7:30:28We'll go back over here. Don't need that
- 7:30:30one. All right. So, we need to have a
- 7:30:33series ID.
- 7:30:36Do we have to have the season number as
- 7:30:38well or that was optional? Let's go back
- 7:30:40over here and take a look.
- 7:30:43Season number is required. Okay. So,
- 7:30:47let's put in five. That's what's going
- 7:30:50on right now.
- 7:30:53This did not work because I actually
- 7:30:54didn't set up my authentication. Go back
- 7:30:56to generic. Go back to header.
- 7:30:59And uh what we're going to do is grab
- 7:31:02where's the movie one? Movie DB.
- 7:31:06All right. So, this return back our
- 7:31:08data. And take a look. So what we have
- 7:31:12is the ID of that show, the air dates,
- 7:31:15episode, the name, the network, which is
- 7:31:20interesting. Origin country is empty. I
- 7:31:21would have just probably put that as US.
- 7:31:23Obviously, I don't have all this over
- 7:31:25here. Overview, ID, season number, vote,
- 7:31:28average.
- 7:31:31A lot of other details associated with
- 7:31:33each of these. We have another episode
- 7:31:35over here.
- 7:31:39all the crew and things like that
- 7:31:41associated with it. A lot of data on
- 7:31:44that side of things. So now that's only
- 7:31:47one thing over here for a season. Let's
- 7:31:50take a look at another
- 7:31:52thing we can find.
- 7:31:57So let's go back to TV shows.
- 7:32:03And
- 7:32:05where are we going to find TV?
- 7:32:08We have lists and movies
- 7:32:14trending TV. I guess we could do that as
- 7:32:16well. And then it says time window. So
- 7:32:20this is interesting. This will be
- 7:32:21another request that we could do. It's a
- 7:32:23get request. So I still wanted to find I
- 7:32:26think this is a pretty good one. I still
- 7:32:28want to find a TV series. Maybe the
- 7:32:31details. All right. So this will
- 7:32:32actually give me more information. So,
- 7:32:34let's copy this one cuz we don't need
- 7:32:37the exact season. Maybe this will give
- 7:32:39us all like the episodes.
- 7:32:41I think there's other ways though. I'm
- 7:32:44trying to find a pageionation example.
- 7:32:49Maybe it's this. I'm trying to get to us
- 7:32:51like where we can have multiple pages
- 7:32:53worth of episodes. And I know Stranger
- 7:32:55Things might not be the best idea. We
- 7:32:56want to take a look at something a lot
- 7:32:58longer. Maybe like a cartoon show like a
- 7:33:01Simpsons [snorts] Family Guy South Park.
- 7:33:03But let's try this out. This might not
- 7:33:07be the best over here, but we will
- 7:33:12try it.
- 7:33:15This images list. What's list associated
- 7:33:18with it? List actually might be a better
- 7:33:20one.
- 7:33:21Get the list at the Oh, this is going to
- 7:33:23be perfect because I feel like there's
- 7:33:24so many list. I really This has
- 7:33:28pageionation. So, I chose this because I
- 7:33:30was hoping that would be the case. All
- 7:33:33right. Um, we're series ID is 66732.
- 7:33:38Hopefully, I'm not boring you guys to
- 7:33:40death as well.
- 7:33:42All right.
- 7:33:45I think this is going to be perfect.
- 7:33:49Maybe not.
- 7:33:55Okay, this probably is going to be a
- 7:33:58good example. So, we have a page over
- 7:34:00here. Doesn't give us all of our
- 7:34:02examples. There's 105 total pages. So,
- 7:34:05we need to get into that next page. So,
- 7:34:08we're going to have to do this through
- 7:34:10pageionation
- 7:34:12and uh we'll have to figure out how we
- 7:34:14can build that out here in a second. So,
- 7:34:17we'll go into our ad option and then
- 7:34:20we're going to go into pageionation and
- 7:34:22update a parameter in each request. So
- 7:34:27we need to say response contains an
- 7:34:31externation
- 7:34:33mode is off. There's a way we can get
- 7:34:35into here
- 7:34:40a way to get to the second page.
- 7:34:43So I'm trying to figure this out really
- 7:34:44quick
- 7:34:47because we can
- 7:34:50change a lot of different approaches
- 7:34:52over here.
- 7:34:54I'm trying to figure that out in a
- 7:34:55second.
- 7:35:01Should be documentation on how we could
- 7:35:03get there.
- 7:35:06So list
- 7:35:08path prams. Okay. So query prams. You
- 7:35:11can see we change this now to two.
- 7:35:18All right. We have a query pram where it
- 7:35:19changes. So
- 7:35:23let's try that.
- 7:35:28We have this as page over here.
- 7:35:32So page and then let's try page two. But
- 7:35:36it should be different because you can
- 7:35:37see this is page one. Let's see if that
- 7:35:40works.
- 7:35:42The return response was identical 5x. So
- 7:35:44it stopped. check if pagionation
- 7:35:46complete when
- 7:35:49um
- 7:35:51to specify that as well. All right, I'm
- 7:35:54back. I took a quick break to figure out
- 7:35:56the pageionation. So, as you saw by
- 7:35:58default when we ran this over here
- 7:36:00without any pageionation,
- 7:36:03one item, but we know that there's a lot
- 7:36:06of other pages. You can see have one
- 7:36:08page, there's 105 total pages. So how
- 7:36:11this was set up first I kind of went
- 7:36:13back and forth across the board. So what
- 7:36:17we're doing for pageionation mode is
- 7:36:18update a parameter in each request we're
- 7:36:20doing a query and we're going with the
- 7:36:22name um page because we see over here
- 7:36:25under query parameters there's something
- 7:36:27called page and it says by default it's
- 7:36:29one. So we have that. Okay. And then the
- 7:36:32value over here if we want to update
- 7:36:34this we go to the body page plus one. So
- 7:36:37we want to get to page two we add one.
- 7:36:39We add one more to get page three etc.
- 7:36:42So all we do is paste in this
- 7:36:44response.body.page
- 7:36:46which we see if we execute step again.
- 7:36:50Oh sorry I meant to I should have pinned
- 7:36:52this data. Let me pin this data. Both of
- 7:36:55these we're going to pin that data. I'm
- 7:36:57going to pin this data because I'm tired
- 7:36:58of calling the API. All right. So the
- 7:37:00response.body.page.
- 7:37:03So that's what we're grabbing over here.
- 7:37:05Okay.
- 7:37:08just use this one over here. Cool. So,
- 7:37:10we have that. We're just gonna keep
- 7:37:12adding one. I know it says nan over
- 7:37:14here. It's just a weird quirk of
- 7:37:15pageionation in N. Then I said
- 7:37:18pageionation complete when I typically
- 7:37:20use other. I build some type of
- 7:37:21expression and I do response. Page is
- 7:37:25greater than or equal to response total
- 7:37:26pages. So, obviously if this page is at
- 7:37:30105,
- 7:37:31it's done. Um, so we can say that. And
- 7:37:34we can also limit the amount of pages.
- 7:37:36So I don't want to have all these
- 7:37:38populate. So I only did 20 and I put max
- 7:37:40pages over here as 20. And you can see I
- 7:37:42only have 20 pages that are getting
- 7:37:44populated for pageionation. Pagionation
- 7:37:47is different on everything. And if you
- 7:37:50are still confused about pageionation as
- 7:37:52well. Let me show you an example. I'm
- 7:37:54going to go to Amazon real quick.
- 7:38:00All right. So I'm on Amazon and let's
- 7:38:02say I want to search for um I don't
- 7:38:05know. Let's go and search for a
- 7:38:09gym piece of equipment. Let's say we
- 7:38:12want to get a new
- 7:38:15it's like a weight sled. I don't know
- 7:38:17the official name. I want to get one of
- 7:38:18these eventually, but weight sled like
- 7:38:21this. So, by default, Amazon is not
- 7:38:24going to show you everything. So, you'll
- 7:38:26see that we have this page over here
- 7:38:30to another page
- 7:38:32which goes to page two. So essentially
- 7:38:34with our API, our API to save resources
- 7:38:37does not want to show us everything. So
- 7:38:38it only shows us this one page with 20
- 7:38:41items. Well, if you want to get more,
- 7:38:43you have to use pageionation. And this
- 7:38:46one over here, I put 20 pages of 20
- 7:38:49items. Some APIs allow you to change how
- 7:38:52many results are shown. Some will have
- 7:38:54like the next URL on this page.
- 7:38:56Everything's going to be a little bit
- 7:38:57different on them. So to really hone in
- 7:38:59on pagionation, I highly recommend you
- 7:39:01check out my pagionation video because
- 7:39:02both of those were completely different
- 7:39:04setups than this example. But hopefully
- 7:39:07that kind of makes sense on
- 7:39:08pageionation. Like all we're trying to
- 7:39:10do is get more data. It's kind of a
- 7:39:12weird way to get data. Um it's going to
- 7:39:15only give us partial data if we don't
- 7:39:17set this up. So we have to set up this.
- 7:39:19Typically there's some sort of
- 7:39:20expression. And by the way, this is
- 7:39:22really one of the most complicated
- 7:39:23things in my personal opinion when
- 7:39:25working with GTP requests. You also have
- 7:39:27other options over here too, which we
- 7:39:29didn't really cover too much in this
- 7:39:31video, but timeout might be a little bit
- 7:39:33helpful. This is not pageionation, but
- 7:39:35just how long you want to try for an API
- 7:39:37before it times out. All right. Um,
- 7:39:40let's go into a different direction now
- 7:39:42and just really quick show you an
- 7:39:44example of like a a post or not. Yeah,
- 7:39:48let's do like a post or let's do a
- 7:39:51delete or something like that because we
- 7:39:53have all these examples. And there's
- 7:39:55just so many. And uh yeah, we'll just
- 7:39:59grab one of these over here for example.
- 7:40:01So we can add in a rating for a TV
- 7:40:04episode. And this is going to be a post.
- 7:40:06So I don't think we've done post with
- 7:40:08the actual APIs as of yet. So what we're
- 7:40:11going to do is just copy in the scroll
- 7:40:13and copy that over here. you see bottom
- 7:40:17left and all we need to do is series ID,
- 7:40:19series number and it looks like there's
- 7:40:20another request section. So what's cool
- 7:40:23if I go over here importing curl it will
- 7:40:25change this to post automatically as
- 7:40:27well. Obviously, I just blurred this so
- 7:40:29you don't see my key, but you can see we
- 7:40:30have posts. We have the URL. It says
- 7:40:33series ID, season, and season number,
- 7:40:38episode, episode number, and then slash
- 7:40:40rating. And then we're going to remove
- 7:40:42our authorization over here for my code.
- 7:40:45And we're going to just going to say
- 7:40:47over here authentication generic
- 7:40:51header
- 7:40:52to our API key. and it's movie DB and
- 7:40:57then raw it says content type body and
- 7:41:01we'll have to fill this out here in a
- 7:41:02second. So let's take a look at that
- 7:41:05example in the documentation says rate a
- 7:41:07TV episode save it to your rated list.
- 7:41:09So path parameters it's required to put
- 7:41:11in uh series ID, series number and
- 7:41:15episode number. So going back to our
- 7:41:17Stranger Things example, was this the
- 7:41:19Stranger Things or was it the next one?
- 7:41:21I think it was the next one.
- 7:41:24Yeah, it's 66732 season 5. So, let's go
- 7:41:28here. We'll just write the first
- 7:41:30episode. So, series ID.
- 7:41:35So, let's jump into this expression.
- 7:41:41So, season number, series ID, and going
- 7:41:45back over here to add rating. Where do
- 7:41:47we change this? TV. First thing we do is
- 7:41:50series ID. So, we'll put that over here.
- 7:41:54Then it says slash season
- 7:41:57and it says slash season number
- 7:42:01episode
- 7:42:04episode number. We'll just put one over
- 7:42:05here. So that's saved.
- 7:42:09And then what says query parameters
- 7:42:12guest session ID and then session ID.
- 7:42:14Not sure what the guest session ID is.
- 7:42:18um raw body this is required
- 7:42:22and uh let's take a look at that here in
- 7:42:25a second.
- 7:42:29All right. So
- 7:42:32going back into
- 7:42:34this. So we're going to have to send in
- 7:42:38our JSON
- 7:42:40body I think. Let's double check.
- 7:42:44A TV show. So, it rates the TV show and
- 7:42:47adds it to our rated list.
- 7:42:52>> We have that. Okay.
- 7:42:54I wish there was. We have to send in a
- 7:42:57raw body, but there's not an example of
- 7:43:00that body
- 7:43:05header, which we have that over here.
- 7:43:10And you know what? Sometimes if you
- 7:43:11don't know things, you can also
- 7:43:14ask. So
- 7:43:17I'm gonna literally ask flaad. So I'll
- 7:43:21go over here and say based off this
- 7:43:24documentation, can you give me the JSON
- 7:43:27based off this documentation?
- 7:43:33You give me the JSON I need to rate.
- 7:43:41I think that's what it's telling me to
- 7:43:42do is is send in JSON. It should be able
- 7:43:44to access over here.
- 7:43:48That's all I have to do is value like
- 7:43:50that.
- 7:43:51Already have everything else. That is so
- 7:43:53easy. We're just going to use value 8.5.
- 7:44:03I guess all we have to do is put 7.5
- 7:44:06here
- 7:44:08because I mean we can put the JSON here,
- 7:44:10but let's try the 75 here. Otherwise,
- 7:44:13we're going to put in the JSON. Um
- 7:44:17I don't know how I'd rate episode one. I
- 7:44:19think 75 is fine.
- 7:44:22Bad request undefined method each pair
- 7:44:24for an instance of float.
- 7:44:27All right, let's try JSON.
- 7:44:31using JSON. We're gonna try this.
- 7:44:37It worked. So, all we had to do is
- 7:44:38change it up. Obviously, like I wish
- 7:44:41they sometimes in APIs they'll give you
- 7:44:43an example. So, like you know says the
- 7:44:45response, we have the response over
- 7:44:47here. We don't actually have the example
- 7:44:49of the role body JSON. Um, unless I'm
- 7:44:53missing it, but I just don't see it in
- 7:44:55here. So don't be afraid to ask in a
- 7:44:58large language model like I did right
- 7:44:59over here or Google search. So and that
- 7:45:02was an example of a post and I can see
- 7:45:05all requests over here too and should
- 7:45:08have a request. I don't know why it's
- 7:45:10not in here yet but because it said it
- 7:45:11was a success. You can see status code
- 7:45:13and success. So we did rate that over
- 7:45:16here. All right. What else can we do?
- 7:45:18Delete rating. So let me just do the
- 7:45:20opposite now and we're going to delete a
- 7:45:22rating. So again, we could use a curl if
- 7:45:26we want to or we could set this up by
- 7:45:28itself. Just copying this over here.
- 7:45:32I'll go into a notes and we'll take a
- 7:45:34look at what this looks like.
- 7:45:37So
- 7:45:40it looks like it's nearly identical. So
- 7:45:43all we have to do is go over here and
- 7:45:45delete this time. So we're going to do
- 7:45:48deletes
- 7:45:50series.
- 7:45:52And we don't send any any body.
- 7:45:56See, it says defaults to zero. So, we
- 7:45:59don't need to send
- 7:46:02this over here for the body. And I don't
- 7:46:05think we need to. Let's check our header
- 7:46:06parameters.
- 7:46:08Headers content type defaults.
- 7:46:11Yeah, that should be fine. Yeah, I don't
- 7:46:13think we need to send the headers this
- 7:46:15time either. So, we're just doing a
- 7:46:16delete. So, we're going to remove this
- 7:46:17rating that we've already set up and it
- 7:46:20should be fine. So, execute the step.
- 7:46:22The item was deleted successfully.
- 7:46:24Awesome. Uh, I'm sure there's there has
- 7:46:27to be a patch or a put also on here.
- 7:46:31Maybe not. Maybe you can't update it.
- 7:46:32You have to delete it.
- 7:46:35Post get.
- 7:46:39You know, I'm shocked that they don't
- 7:46:40have a put or patch. But either way,
- 7:46:43that is the movie DB. I mean, we just
- 7:46:46touched the surface on it, and I really
- 7:46:48want you to explore it, but really what
- 7:46:50we did, we set up another API key. This
- 7:46:53time, this API key was set as a header
- 7:46:56off this time instead of the query O.
- 7:46:58So, I showed you how to set that up. We
- 7:47:01took a look at pageionation. We also
- 7:47:04took a look at finding where these
- 7:47:05values are at. Sometimes you're going to
- 7:47:06have to search Google or look for other
- 7:47:08places. So, showed you that example.
- 7:47:11Then we really went in depth into the
- 7:47:13pageionation side of things. So like if
- 7:47:15it doesn't give you all the examples,
- 7:47:17how do you get more? Obviously
- 7:47:19pageionation is different for everything
- 7:47:20else. Then we covered a post where we
- 7:47:23posted a rating to the website.
- 7:47:25Obviously we didn't see what the JSON
- 7:47:27body needed to be look like. So I
- 7:47:29literally just asked our large language
- 7:47:31model to get what this is and it gave me
- 7:47:34that example based off the
- 7:47:35documentation. And lastly, we did a
- 7:47:37delete which showed you um you know we
- 7:47:40could remove our specific rating. So
- 7:47:42that is our API section for the HTTP
- 7:47:46request. Now we're going to have our NEN
- 7:47:48workflow act like an API in the next
- 7:47:50section which is going to be for web
- 7:47:52hooks. Um it is going to be a little bit
- 7:47:55more technical again and these are
- 7:47:57honestly some of the toughest sections
- 7:47:59and initially right between the HTTP
- 7:48:01requests and web hooks but you're
- 7:48:04staying strong. Promise you the more and
- 7:48:06more you see this uh you'll get used to
- 7:48:08it. And really using LMS helps you a
- 7:48:12ton. As you saw like didn't know what I
- 7:48:14was doing in a small section. I asked an
- 7:48:15LLM and it helped me out. So use that as
- 7:48:18a resource. You don't have to know
- 7:48:20everything. The internet exists for a
- 7:48:21reason. Stack Overflow exists for
- 7:48:23reason. So does large language models.
- 7:48:25So use those to your unfair advantage.
- 7:48:28Awesome. And uh I will see you in web
- 7:48:30hooks now. So this section is going to
- 7:48:32be very similar to the previous two. So
- 7:48:35last two sections we talked about APIs
- 7:48:37and how we could use any to get data
- 7:48:40from some sort of external service and
- 7:48:43then uh we could also technically update
- 7:48:46that data. We could delete that data. Uh
- 7:48:48we could send data outwards etc. Right?
- 7:48:52And that was done through the HTTP
- 7:48:54request node and APIs. Well, what if we
- 7:48:58wanted to have that external service be
- 7:49:00any end? So I'm going to be showing you
- 7:49:02guys how we could do that through web
- 7:49:04hooks. And when inside any end, there's
- 7:49:07two things to know about web hooks. You
- 7:49:09have the web hook trigger as well as the
- 7:49:12respond to web hook node. So essentially
- 7:49:15with our web hooks, what we have is an
- 7:49:18an app outside of any end has some sort
- 7:49:20of action and then essentially because
- 7:49:23of that action, a workflow starts
- 7:49:26directly in any. We use the same
- 7:49:28principles that we covered before. Our
- 7:49:31get, our post, our put, patch, delete.
- 7:49:35Essentially, we just have our workflow
- 7:49:37based around it. So, it's going to be
- 7:49:38pretty exciting stuff. Kind of like what
- 7:49:41I mentioned last time. I do have a full
- 7:49:43in-depth web hook video with different
- 7:49:45examples. So, please watch that in
- 7:49:49addition to this if you are confused a
- 7:49:51little bit. I understand web hooks will
- 7:49:52take a little bit to understand. So
- 7:49:55let's jump into this and uh learn a
- 7:49:58little about web hooks. So before we
- 7:50:00jump into the actual node, I just want
- 7:50:02to show you that any end does have
- 7:50:03native web hooks. The easiest example is
- 7:50:06going to be Google Sheets. So if you go
- 7:50:08here and I'm just going to show you
- 7:50:09sheets
- 7:50:11and you'll see that we have three
- 7:50:13triggers on row added, row updated or
- 7:50:16row added or updated. Well, when we make
- 7:50:18a change in Google Sheets, we can start
- 7:50:20a specific workflow. And that's kind of
- 7:50:23one of the benefits of having this as a
- 7:50:25trigger. In fact, any type of external
- 7:50:28app that has a trigger. Well, that is a
- 7:50:30web hook because we have an action and
- 7:50:32another app. And because of that action,
- 7:50:34we want to have something happen
- 7:50:36directly in an end. Let's take a look at
- 7:50:39a HubSpot example. So, we go to HubSpot
- 7:50:41and this is a CRM a lot of people use
- 7:50:44and there's 18 different triggers. So,
- 7:50:46someone creates a company or deletes a
- 7:50:47company, we want to have a workflow in
- 7:50:49any end. Uh same with the contact, same
- 7:50:51with a conversation or a deal created or
- 7:50:53a ticket created. So any of these type
- 7:50:55of properties like we change something
- 7:50:57in HubSpot, we want to have a an end
- 7:50:59workflow start because of that. So if
- 7:51:01you see like, hey, we're going to have a
- 7:51:03ticket created, you know, a customer has
- 7:51:05some sort of issue or we want to reach
- 7:51:07out to a customer because we notice
- 7:51:08something on their account, this could
- 7:51:10start a full workflow. And obviously
- 7:51:12there's settings for every single node
- 7:51:14internally like, hey, this is what we
- 7:51:16should do with this workflow and you'll
- 7:51:17have to design it. But this is just the
- 7:51:19very basic level of a web hook. Uh just
- 7:51:22again think of it as a trigger in
- 7:51:23external app. But what happens if the
- 7:51:26app that you want to use externally
- 7:51:28doesn't have anything natively in an
- 7:51:31end? Well, you're going to have to set
- 7:51:33up a web hook. And let me just show you
- 7:51:35this over here. We can go to web hook
- 7:51:37and we'll have two different nodes. So
- 7:51:39this is the trigger. And what we should
- 7:51:42do as well is say respond respond to web
- 7:51:45hook. So you'll see that we have this
- 7:51:47over here and this is our node that we
- 7:51:49respond back and this is our web hook
- 7:51:51that starts our workflow just like these
- 7:51:54over here this is not branded exact same
- 7:51:56thing as the HTTP request if there's
- 7:51:58something natively in any end take
- 7:52:00advantage of it if there's not use the
- 7:52:02HTTP request so you go into the web hook
- 7:52:05first thing you'll notice here at the
- 7:52:06top is you have two different URLs test
- 7:52:08and production we'll cover that here in
- 7:52:10a second but just know there's a URL we
- 7:52:12have all of our HTTP methods delete get
- 7:52:15patch post put. Then we jump into our
- 7:52:17path. So this is our URL. We can change
- 7:52:20this if we want. So you can see I'm just
- 7:52:22typing in random stuff that changes.
- 7:52:24Then we have authentication. And this is
- 7:52:27a very critical thing. So right now
- 7:52:29we're in test mode. We're not into
- 7:52:30production. However, if I published our
- 7:52:33workflow over here and uh everything's
- 7:52:36ready to go, you're going to use our
- 7:52:38production URL for our web hook. And
- 7:52:40there's two different URLs, right? You
- 7:52:42have the test one over here and you have
- 7:52:44the production. test has test in the
- 7:52:46name. The the production is the same
- 7:52:47exact one without test and name. Why
- 7:52:50this specifically matters? Well, with
- 7:52:53your production URL, anything online
- 7:52:55could access this URL if you are
- 7:52:57published. So, I could go out there on a
- 7:53:01different browser in a different country
- 7:53:03and use this URL, the production URL if
- 7:53:05I'm live and access my N instance. Um,
- 7:53:10the instance being this specific
- 7:53:12workflow. Again, why this matters is if
- 7:53:14you have sensitive data in this
- 7:53:15workflow, if you have an AI agent or you
- 7:53:18have APIs that are going on that cost
- 7:53:20you money or cost you security, um this
- 7:53:24is wide open in the web. So, that is a
- 7:53:27very scary thought. Now, the one way
- 7:53:29that we could handle this and actually
- 7:53:31there's a lot of different ways we could
- 7:53:32handle this, some of them may be outside
- 7:53:34the scope of this video, is through
- 7:53:36authentication. So, you can see over
- 7:53:38here we have basic off, header off, and
- 7:53:41JWT O. So as you saw in the last two
- 7:53:44examples, we had an API key. So someone
- 7:53:46essentially had to have a specific
- 7:53:48password to access their API. Uh we can
- 7:53:51set up these over here with the basic or
- 7:53:53eder. So that way not everyone online
- 7:53:56could access our uh workflows. In
- 7:53:59addition, there's other things as well.
- 7:54:00So you can do an IP whitelist. You can
- 7:54:03allow origins over here, which I haven't
- 7:54:06used this one before. I do believe it's
- 7:54:08a little bit new. I believe you can
- 7:54:09ignore bots, which is right over here.
- 7:54:11And there's some other pretty cool
- 7:54:12things you can do as well on these
- 7:54:14options outside the video of course, but
- 7:54:17you have to think about security a lot
- 7:54:19more when you're working with web hooks
- 7:54:20because anyone can essentially go into
- 7:54:22your NAN workflow and especially if you
- 7:54:24have private info or anything that will
- 7:54:26cost money. So respond to web hook.
- 7:54:29Sometimes when you're going to have an
- 7:54:31external service, they're going to kind
- 7:54:33of make sure that your web hook works
- 7:54:35correctly. And let me just show you an
- 7:54:37example. monday.com
- 7:54:40has like a really great example of
- 7:54:42responding to web hook. I actually
- 7:54:44covered this in a full video. If you
- 7:54:46want to learn a little bit more about
- 7:54:47it, I'd watch my Monday video. But we
- 7:54:49essentially built this one out. So we
- 7:54:52would have a test web hook. It would go
- 7:54:54into any pass through this data and then
- 7:54:57we would have to respond back and we
- 7:54:59would have to send back a challenge
- 7:55:00token. So monday.com wanted a challenge
- 7:55:03token to confirm like, hey, you can
- 7:55:05actually handle this web hook. And once
- 7:55:06that challenge token was sent back, the
- 7:55:08rest of the workflow could be built out.
- 7:55:10But because money.com
- 7:55:12doesn't have what's needed, that's why
- 7:55:14we had to go and build this out. So you
- 7:55:16can see money.com
- 7:55:18and there is no triggers. So if you want
- 7:55:21to have something happen based off of a
- 7:55:23board change, you're going to have to
- 7:55:24have a web hook. So while there's some
- 7:55:27good stuff on here, it just didn't do
- 7:55:28the trick and we had to have that
- 7:55:30specific custom web hook built for it.
- 7:55:33So, what I want to do really fast is
- 7:55:36show you how we could test web hooks.
- 7:55:39And the easiest way to do this is
- 7:55:42through Postman.
- 7:55:43So, what we're going to do is test that
- 7:55:47and then we're going to go and use a
- 7:55:49real application called Type Form. So,
- 7:55:52first let's go into our web hook on
- 7:55:54Postman. So, I'm going to go over here,
- 7:55:57open browser, and I'm all I did really
- 7:56:00quick is create a Postman account. Uh,
- 7:56:03so then when you get to your homepage
- 7:56:06over here, I went into I believe is your
- 7:56:10workspace. So you can see my workspace
- 7:56:12over here. So just to go back home, I
- 7:56:15went to workspaces. I clicked on my
- 7:56:17workspace. And then you see where it
- 7:56:19says mock data generation. I just went
- 7:56:22over here for that. So very basic on
- 7:56:26that side of things. And we're going to
- 7:56:27be testing directly in over here. and
- 7:56:30we're going to send information back
- 7:56:33into nan. So, I'm just going to save
- 7:56:36this really fast. I'm going refresh it
- 7:56:38because it looks like my instance is
- 7:56:39running and it's not. Um, and I should
- 7:56:43say instance my web hook node. So, what
- 7:56:45I'm going to do is test with this test
- 7:56:47URL first. So, we're going to go over
- 7:56:48here and we're not even going to send
- 7:56:51any information. We're just going to go
- 7:56:52over here. I'm going to go and say
- 7:56:55listen for test events and I'm going to
- 7:56:57send information. So you can imagine
- 7:56:58this is an action in some sort of app
- 7:57:01and I'm going to go there and it says
- 7:57:03this web hook is not registered for post
- 7:57:05request and you can see there's a
- 7:57:06mismatch because right now if I stop
- 7:57:08listening this is a get whereas this
- 7:57:11over here is a post. So you want to make
- 7:57:13sure that things are working properly.
- 7:57:16So let's change this up and put this
- 7:57:18into a post request. Let's imagine we're
- 7:57:20creating some sort of data. So now this
- 7:57:22is a post and this is going to be a
- 7:57:24post. So if I listen for a test event,
- 7:57:27it should work. And this is good to show
- 7:57:28you that we need to make sure things
- 7:57:30line up. And then it says workflow has
- 7:57:32started. And then you can see over here
- 7:57:34our workflow started. We have our user
- 7:57:36agent which is from Postman. And again,
- 7:57:38that's the website we're using for
- 7:57:39testing. We have no parameters. We have
- 7:57:42no queries. We have a body that was sent
- 7:57:44over here. And then um which I don't
- 7:57:47know why we have Crystal Mills. That's
- 7:57:50weird. Either way, um, or Chester, I
- 7:57:54don't know what that is. Um, either way,
- 7:57:56we have this sent over and it is
- 7:58:00working. So, we can also send in some
- 7:58:03stuff as well. So, we can name a key.
- 7:58:06Enter in a value and a description. So,
- 7:58:08let's say we want to put over here a I
- 7:58:12don't know, we'll put a band and we'll
- 7:58:14put in the value over here of north
- 7:58:17lane. And then we'll say we have a jam
- 7:58:20band. And the jam band I was listening
- 7:58:22to today was, and I'll put this over
- 7:58:25here, jam band, widespread panic. So
- 7:58:28we'll put widespread panic in here.
- 7:58:30Widespread
- 7:58:32panic. Cool. We're going to send both of
- 7:58:34these values now into nan. So I'm going
- 7:58:37to just listen for a test event. Again,
- 7:58:39we're going to send over this data.
- 7:58:43Said workflow was started. And then you
- 7:58:45can see over here in our query we have a
- 7:58:47band north lane and then a jam band
- 7:58:50whites panic. So we can have an edit set
- 7:58:52after this and we can extract these
- 7:58:55values. You can see exactly where these
- 7:58:58are at.
- 7:59:00So you can see query band and query jam
- 7:59:03band. And now we have these values.
- 7:59:06These values originally were over here
- 7:59:09in Postman which again you can think of
- 7:59:11this as an external service. Doesn't
- 7:59:12necessarily need Postman. It's just for
- 7:59:14testing and uh we sent this into any end
- 7:59:17through a web hook and now we have those
- 7:59:20particular values
- 7:59:22and why I did post is we're obviously
- 7:59:24we're going to use this data over here
- 7:59:26and we're going to create something out
- 7:59:28of it a little bit later. Maybe you want
- 7:59:29to do some like web scraping or whatever
- 7:59:31the case may be. But if you just want to
- 7:59:33get a data set back um you would want to
- 7:59:35probably use like get. So try to use the
- 7:59:37exact things that you're used to like
- 7:59:40get or post which is going to be web
- 7:59:42hooks probably like 95% of the time
- 7:59:43because I don't see like deleting data
- 7:59:46that often within an end workflow and I
- 7:59:49don't really see you updating it. So no
- 7:59:50put or patch. Um post would be like
- 7:59:53creating something and getting would be
- 7:59:55returning some sort of data that's
- 7:59:56automatically ready to go. Um this data
- 7:59:58is obviously not ready to go. So I would
- 8:00:01probably just recommend most of the time
- 8:00:02you're going to set this to post
- 8:00:05regardless. That's just a a very very
- 8:00:07basic demo. Uh we can set some sort of
- 8:00:10authorization though over here so
- 8:00:12someone can't access it. So let's do
- 8:00:14that. We're going to go to
- 8:00:16authentication and let's set a header
- 8:00:18off. And what we can do is set a
- 8:00:20specific credential as well if we want
- 8:00:22to. Um or we can do a basic O and set a
- 8:00:26credential. So we can set a thing over
- 8:00:29here. And I'm just going to say web hook
- 8:00:32long ne video.
- 8:00:35And you can set a username and a
- 8:00:37password for this one over here for the
- 8:00:38basic o. So let's say we're going to say
- 8:00:42the username is um we're going to say
- 8:00:46jam and then the password is strings
- 8:00:50like that. So
- 8:00:52username jam password strings. I'm just
- 8:00:54going to make that as a note
- 8:00:56just in case I forget that.
- 8:00:59to jam strings and we are taking a look
- 8:01:03at a basic O. So you can think of this
- 8:01:06as a username and a password.
- 8:01:09So basic O like that. So now let's go
- 8:01:12back over here and you'll notice that
- 8:01:15there's the authorization over here. So
- 8:01:17there's different options. So this is a
- 8:01:19basic O over here. So if we try this
- 8:01:21without the basic O, we are going to get
- 8:01:23an error. So we can still try to send
- 8:01:26the same values or we can change these
- 8:01:27values up. Uh let's change them up.
- 8:01:29We'll say currents. We'll say fish over
- 8:01:32here.
- 8:01:34Both of those. And we'll try this again
- 8:01:37with this O. And you'll notice that this
- 8:01:39is going to fail. So if I go over here,
- 8:01:42I say listen for test events. Again, we
- 8:01:44haven't set any authorization. And I'm
- 8:01:46going to send this over. It says
- 8:01:48authorization data is missing. So we
- 8:01:51need to actually set this up for this to
- 8:01:53work properly. And you can see it's
- 8:01:54still listening. Like obviously it did
- 8:01:57not work. We're going to listen for test
- 8:01:58events. We're going to go over here.
- 8:01:59We're going to put our username as jam.
- 8:02:02And then we're going to put strings. So
- 8:02:04strings like that. Now we're going to
- 8:02:06send it. Workflow has started because we
- 8:02:08put the correct username and password.
- 8:02:11And now you can see we have currents and
- 8:02:13fish and our values over here are
- 8:02:16currents and fish. So that is a basic
- 8:02:19way of authentication which is our basic
- 8:02:21o. We go to header o it's even easier.
- 8:02:24So if I create over here and I say long
- 8:02:26ne video long ne any ne
- 8:02:30and a value. So um we can put like I
- 8:02:34don't know it doesn't really matter on
- 8:02:35the side of things. We'll say n api and
- 8:02:39then we'll say key1 123. So key one two
- 8:02:42three. We'll use any API and then we'll
- 8:02:44use key1 123. So that is saved. It says
- 8:02:49yeah don't use key13.
- 8:02:53We'll go over here and say header off
- 8:02:56header off n API key123. All right. So
- 8:03:04have essentially our header off this
- 8:03:07time and I have n API and key12. So then
- 8:03:10I go into Postman. I go to our API key.
- 8:03:13I set the value over here to N API and
- 8:03:16then I set the value to key one two3. I
- 8:03:19specified that this is a header off. As
- 8:03:22you can see, we have header off right
- 8:03:24here. That's our API key. We have the
- 8:03:27value any API. Obviously, you can change
- 8:03:29these up as you want. And I just put key
- 8:03:31one, two, three. We can change up our
- 8:03:33values that we want to send in over
- 8:03:34here, too. Um, so I'll put goose over
- 8:03:39here. And then I'll put bear tooth. So,
- 8:03:42bear to like that. We'll send this over
- 8:03:45here in a second. Once this is listening
- 8:03:47for test events,
- 8:03:49send that over and boom, there we go. We
- 8:03:52have bear tooth and goose. Great in
- 8:03:54there. And uh it works. We have this
- 8:03:58also weird body that we keep getting
- 8:04:00different names and things like that.
- 8:04:02Believe it's probably just testing
- 8:04:03purposes. And you can see obviously we
- 8:04:05have this over here in our edit. So
- 8:04:08on the basic side of things, right? Once
- 8:04:10again, you're going to have your two
- 8:04:13URLs. Test is when your workflow is not
- 8:04:15live. Production is when your workflow
- 8:04:17is live. Then we have our different
- 8:04:19methods. You're going to probably use
- 8:04:21post or get only when you're creating
- 8:04:23your own web hooks. Personally, I'd
- 8:04:24probably just keep it as post um because
- 8:04:27you're going to be doing something with
- 8:04:28that specific data whereas get, you
- 8:04:31know, you're just going to grab that
- 8:04:32data. We can change our path, which is
- 8:04:34going to change our URL. So, you can
- 8:04:36change this to whatever you want. You
- 8:04:38can set up authentication. So I showed
- 8:04:40you basic O which is like a username
- 8:04:42password and then header O which is like
- 8:04:44our API key and then we can define those
- 8:04:48down below over here. Give it to people
- 8:04:50only that have access. We have different
- 8:04:52ways to respond. You can respond
- 8:04:53immediately or you can respond through
- 8:04:55that web hook node as I showed you with
- 8:04:57monday.com. They were asking for like
- 8:04:59some sort of token. So essentially we
- 8:05:01need to send a token backwards to
- 8:05:03confirm their web hook works. And then
- 8:05:05uh yeah, we have different options down
- 8:05:06here as well to block bots, which I'll
- 8:05:09just ignore this by default. And
- 8:05:11obviously, I'm just testing. Another
- 8:05:13thing is like when you're testing stuff
- 8:05:14out and building it out, I wouldn't put
- 8:05:16your authentication right away. I would
- 8:05:17just put your authentication at the very
- 8:05:19end. You should be pretty much fine if
- 8:05:21it's a test URL. As soon as you push it
- 8:05:24into live production, you're going to
- 8:05:26have to move over some sort of
- 8:05:27authentication. Also, when you're
- 8:05:29testing and if you're building out an
- 8:05:30app or anything like that, be very
- 8:05:32careful with your URLs over here. Once
- 8:05:34you're good to go with your test and
- 8:05:35you're going to push things into
- 8:05:36production, just make sure you switch it
- 8:05:38out because your test URL is different
- 8:05:40from your production URL as you can see.
- 8:05:42So, u be very careful on that side of
- 8:05:44things because I have seen people just
- 8:05:45put their test URL and they're why is
- 8:05:48this not working and they should have
- 8:05:49been using their production URL when
- 8:05:50they're when their workflow was live.
- 8:05:52So, that's the first part of this
- 8:05:54lesson. And the second part, we're going
- 8:05:56to actually go through a type form and
- 8:05:58kind of set this up as an example. So, I
- 8:06:02just created literally a type form
- 8:06:04account maybe 30 minutes ago right
- 8:06:06before recording this uh lesson. So, I'm
- 8:06:08just going to continue with Google and
- 8:06:11I'm going to choose my account over here
- 8:06:13and uh we'll jump into it. So, all I did
- 8:06:16is I I just created my account and I
- 8:06:20think I built like a very basic
- 8:06:23uh form. I'm trying to even see where
- 8:06:25this is at. So, forms.
- 8:06:29Yeah, here we go. my new form. I'll show
- 8:06:31you what it looks like. I think all I
- 8:06:33did is
- 8:06:35just ask for people's information. First
- 8:06:38name, last name, phone number, email,
- 8:06:39company. This was like a default choice.
- 8:06:41Obviously, you can choose whatever you
- 8:06:44want, but I just built out this form
- 8:06:46over here just to test it out. So, to go
- 8:06:49backwards to forms, what I'm going to do
- 8:06:50is now click these three dots and I'm
- 8:06:53going to go over I want to say it's
- 8:06:55either connect or something like that or
- 8:06:57workflow.
- 8:06:58And I just started this. So we're gonna
- 8:07:01say connect. Okay. So it is connect. And
- 8:07:04what we're going to do is take a look at
- 8:07:06web hooks. And it says trigger web
- 8:07:08hooks. Not familiar with web hooks? Just
- 8:07:10ask your tech team for a hand. Well, I
- 8:07:12am your tech team on the side of things.
- 8:07:13We're going to figure this out together.
- 8:07:15So I am going to say add a web hook. And
- 8:07:18it says find an endpoint. We'll send
- 8:07:20your web hook to this URL. So we're
- 8:07:22going to use our example. Well, let's
- 8:07:24add in a new web hook. So we'll say web
- 8:07:26hook over here.
- 8:07:28We'll put this as post
- 8:07:31and we'll grab this over here. Okay. So,
- 8:07:35I'm just going to copy this and I don't
- 8:07:38think it mentions anything if it needs
- 8:07:40to be a post or a get.
- 8:07:44Let's just click to learn about web
- 8:07:46hooks
- 8:07:48to see if it mentions.
- 8:07:52Look, here we go. Type form web hooks
- 8:07:54are sent with a HTTP post request in the
- 8:07:56request body. It's in JSON format.
- 8:07:58Perfect. So, I was right when I said
- 8:08:00post. So, grab our web hook. Make sure
- 8:08:03that you are in post. And then we're
- 8:08:06going to say save web hook over here.
- 8:08:08And you'll notice that we have our web
- 8:08:10hook. Great. So, I think we're in the
- 8:08:1277. I'm going to listen for test events.
- 8:08:15And we're going to go over here and
- 8:08:17we're going to say view deliveries. No
- 8:08:19deliveries. Send test request. And now
- 8:08:22we sent a test request with our form. So
- 8:08:25first name, last name, phone number,
- 8:08:27email, uh, short text, and then thank
- 8:08:31you screen. So now what you'll see over
- 8:08:34here is we have this directly in over.
- 8:08:36And obviously like the properties are
- 8:08:38empty. So like you can see title,
- 8:08:40property, it's empty, empty, empty like
- 8:08:42no one's filled this out, but we now
- 8:08:44have this information directly in here.
- 8:08:47And again, like always, we can just go
- 8:08:50and do an edit set and clean up our data
- 8:08:53and we can just grab specifically what
- 8:08:55we want. So like obviously over here, we
- 8:08:58don't really have our exact names and
- 8:09:01things like that, but you could imagine
- 8:09:03uh if this side was filled out. Okay,
- 8:09:05this is someone's first name. This is
- 8:09:08someone's Well, actually going back over
- 8:09:10here, I take back what I said. I think
- 8:09:12when they have like this title, I think
- 8:09:15that's exactly the example they give us.
- 8:09:18I could be wrong. Short text, title,
- 8:09:22company.
- 8:09:23Yeah. So,
- 8:09:25I want to say
- 8:09:29we've went through an exact copy. This
- 8:09:31would be the data we give us. Could be
- 8:09:34wrong. Like obviously I could test this
- 8:09:37and send some other data.
- 8:09:41I'm not live. But either way, it's going
- 8:09:43to be one of these over here. Like
- 8:09:44whether it's like a type idle
- 8:09:46properties, it's probably this title if
- 8:09:48you're going to push this into
- 8:09:49production. We're not testing this in
- 8:09:51production wise, but you get the point.
- 8:09:52I can just go over here, grab what
- 8:09:55people actually are filling out, and
- 8:09:57make these fields and then do whatever I
- 8:09:59want with it later on. And I would
- 8:10:01recommend just renaming these, which is
- 8:10:02why we're using our edit set. You could
- 8:10:04say like first name
- 8:10:08that and then I already duplicated that
- 8:10:11twice and then last name. Again, feel
- 8:10:14free to change up as you want. And uh
- 8:10:17yeah, that is type form.
- 8:10:19I also, by the way, I covered web hooks
- 8:10:22in another video too. If you know a
- 8:10:23little bit about Python programming, we
- 8:10:24have a streamllet video. Uh we're going
- 8:10:26to cover streamlet when we talk about
- 8:10:28you user interfaces for applications as
- 8:10:30well. But essentially in streamllet I
- 8:10:33created a payload that got sent to a nan
- 8:10:36web hook and it was working. So that was
- 8:10:39type form. I just wanted to show you
- 8:10:41like there's going to be documentation
- 8:10:43about it. No matter where you find your
- 8:10:46web hooks, this was our documentation.
- 8:10:47It was super easy sent via HTTP post
- 8:10:50request. You saw we just went over here,
- 8:10:52found a way to test it. All websites
- 8:10:54will have some sort of way to test your
- 8:10:56web hooks. Just make sure it comes in
- 8:10:58over here. see what the data looks like
- 8:11:01and I would also test it with real data
- 8:11:03as well beyond that but uh you know
- 8:11:05testing is half the battle and when
- 8:11:06you're ready to go make sure that you
- 8:11:08push this into production and you use
- 8:11:11the production URL so that is it for web
- 8:11:15hooks be safe with them don't have a
- 8:11:18workflow that's live without any type of
- 8:11:20security with your web hooks I would
- 8:11:22also recommend in the future too with
- 8:11:24your web hooks like you can really
- 8:11:26expand this out you can add an if node
- 8:11:28codes and stuff like that to make sure
- 8:11:30the data is correct. Make sure they're
- 8:11:32correct people are accessing your web
- 8:11:34hooks. Like there's a lot of other ways
- 8:11:35that you could secure outside of just
- 8:11:37this basic and header off. So, um, spend
- 8:11:41some time if you really worry about the
- 8:11:43security. This is just a brief
- 8:11:44introduction. And yeah, that is
- 8:11:47essentially it for this section. Next
- 8:11:49section we're going to be taking a look
- 8:11:50at, I'm just going to look over at my
- 8:11:52sheet,
- 8:11:54is going to be web scraping. So, this is
- 8:11:56going to be really fun because we're
- 8:11:57actually going to grab data online in
- 8:11:59some capacity. So, we'll be taking a
- 8:12:02look at how we can scrape social media
- 8:12:03sites, scrape websites, and uh blog
- 8:12:06posts, and you guys are going to be have
- 8:12:08a blast for that section. So, I will see
- 8:12:10you there. Great work so far. So, this
- 8:12:12section is going to be pretty fun
- 8:12:13because we're going to dive into web
- 8:12:15scraping. Now, historically, web
- 8:12:17scraping has been difficult. You have to
- 8:12:19write a lot of code in Python and you
- 8:12:21have to hope that a website does not
- 8:12:23change because if it changes your code,
- 8:12:26it's outdated and you're going to have
- 8:12:27to rewrite sections of it. Tedious
- 8:12:30process. Um, a lot of people struggle
- 8:12:32with it and there was a ton of freelance
- 8:12:34jobs out there just to build scrapers to
- 8:12:36check on competitor sites. The landscape
- 8:12:39of scraping has changed a ton over the
- 8:12:41last few years and we're going to be
- 8:12:43covering revolutionary tools like
- 8:12:45Firecrawl that make web scraping super
- 8:12:47simple. Um, other things we're going to
- 8:12:49cover in this is going to be uh Appify.
- 8:12:52So, I use Appify for social media
- 8:12:54scraping. We're going to use Rapid API
- 8:12:56as well. I'll show you an example of a
- 8:12:58workflow that I just built with it. And
- 8:13:00then we're going to also talk about RSS.
- 8:13:03And now RSS technically isn't scraping.
- 8:13:05It's going to get us the latest articles
- 8:13:07that a website will populate. Um, but I
- 8:13:10wanted to throw it in over here because
- 8:13:12some people might just want that
- 8:13:13information and might go a much more
- 8:13:15complicated route. So, let's take a look
- 8:13:17at that now. All right. So, this isn't
- 8:13:20technically web scraping, but we're
- 8:13:21going to start with it, and it's going
- 8:13:23to be RSS. And what RSS essentially
- 8:13:26allows us to do is stay up to date with
- 8:13:29different websites. So, often websites
- 8:13:32are going to be posting blog posts. And
- 8:13:34you might want to read these or put them
- 8:13:37in a newsletter or whatever the case may
- 8:13:39be. You want to say up to date. And
- 8:13:42there's two different nodes that allow
- 8:13:44you to do this. So if you have a middle
- 8:13:46of a workflow and you want to read a
- 8:13:49website, we have this RSS read. However,
- 8:13:52you can actually start a actual workflow
- 8:13:55with RSS trigger. So the RSS feed
- 8:13:58trigger monitors a website and when
- 8:14:01there's a new post, we can actually
- 8:14:03start a full workflow based around it,
- 8:14:06which is pretty awesome. Whereas this
- 8:14:08RSS read, we have something else that
- 8:14:10starts the workflow and then it
- 8:14:12eventually goes into this RSS read. The
- 8:14:15one tricky thing with RSS is actually
- 8:14:18finding RSS URL. So sometimes going to
- 8:14:22take a little bit of research. Where I
- 8:14:24find RSS URLs, I'll just Google search
- 8:14:28or I'll use Perplexity or a large
- 8:14:29language model and say, "Hey, this is a
- 8:14:31website I want to find information
- 8:14:33about. Do you happen to know what the
- 8:14:35RSS link is?" because it's not always
- 8:14:38obvious. So for example, I searched AI
- 8:14:42RSS and I came on this GitHub that this
- 8:14:46person created a repository over here
- 8:14:48and you can see it says all AI news
- 8:14:50sources a list of online news and info
- 8:14:52about AI, ML, big data and their
- 8:14:54websites. This is an extract of all the
- 8:14:56sources aggregated on all AI news
- 8:14:57website defunct in 7204 update. You can
- 8:15:00find a live web page from the source
- 8:15:01below at and uh there's a media site. I
- 8:15:04don't even know if it's actually
- 8:15:05accurate or not. Let's take a look.
- 8:15:09So, we have all this over here. A giant
- 8:15:12feed of data,
- 8:15:14but if we go in here, you can see we
- 8:15:16have all of this. All this tons and
- 8:15:20tons, which is pretty cool. And you can
- 8:15:22see there's some with YouTube over here.
- 8:15:25And actually, I'm curious if I could be
- 8:15:29added in here.
- 8:15:31Probably definitely not in over here.
- 8:15:36Not that it matters. I don't know a lot
- 8:15:37of people are searching through this,
- 8:15:38but you can see YouTube channels have
- 8:15:40RSS feeds. And we'll just grab uh one
- 8:15:44over here. Remember when I was studying
- 8:15:46for first aid analyst job, I was
- 8:15:49watching Alex the analyst. He's grown a
- 8:15:51huge following. So imagine if I get RSS
- 8:15:53feed from there. Again, we'll just
- 8:15:56populate this and execute step. And you
- 8:15:58can see his latest videos. So you have a
- 8:16:00title, a link, publish date, author, the
- 8:16:04ID, and then ISO date. Uh, so you can
- 8:16:06see all this information over here. What
- 8:16:08does a data analyst do? Meetings, data,
- 8:16:11Excel, SQL, day in life of a data
- 8:16:13analyst, meetings, SQL, so much food.
- 8:16:15It's a lot of day in life videos it
- 8:16:17seems like right now. Data analyst
- 8:16:19salary in 2025, 50K to 75K. So that's on
- 8:16:24like the YouTube side. Going to go
- 8:16:25there. Um, we can go to websites as
- 8:16:27well. So, in podcasts. So, let's take a
- 8:16:30look at a podcast. For example, we'll
- 8:16:32grab something over here called the
- 8:16:34machine learning podcast. Well, let's
- 8:16:36actually grab a different one. Let's go
- 8:16:39fireside. The artist of data science.
- 8:16:42Grab this. Never heard of this podcast.
- 8:16:45It's probably pretty good. And uh we'll
- 8:16:47just grab RSS. So, we'll duplicate this.
- 8:16:49I'm just going to right click and over
- 8:16:52here, duplicate.
- 8:16:54And what we'll do is paste that in.
- 8:16:58This actually did not work. No big deal.
- 8:17:01We'll grab another one. AI in business
- 8:17:04podcasts. Let's see if that one works.
- 8:17:08And URLs can change and things like
- 8:17:10that, too. So, not a big deal. And you
- 8:17:14can see this one brought 168 results
- 8:17:17back over here. Why post merger
- 8:17:19integrations fail without data
- 8:17:20governance. I agree. Um, data governance
- 8:17:23is something that I was exposed to at my
- 8:17:26current job. I had no idea it existed
- 8:17:28and it's actually pretty important. It's
- 8:17:29boring, but it's important. Um, so
- 8:17:32that's a podcast example
- 8:17:34and uh just go over here and copy again.
- 8:17:37Let's find a website this time. So
- 8:17:39that's a podcast.
- 8:17:41Oh, where there I see TensorFlow.
- 8:17:44That would be a good one. TensorFlow
- 8:17:46blog. Perfect.
- 8:17:48So let's grab that
- 8:17:53and we'll use that as an example. Cool.
- 8:17:57So, and what's nice too is with RSS
- 8:18:00feeds, they're already sorted. Like
- 8:18:01there's a sort node in any N, but and
- 8:18:04I'll show you the sort node as well. I
- 8:18:06think we've covered that in the
- 8:18:07beginning, but if not, you can go over
- 8:18:10here and do sort. You can sort to change
- 8:18:12the item order, a simple random code.
- 8:18:15Again, I'm I'm like 95% sure we covered
- 8:18:18this already. But regardless,
- 8:18:21YouTube, podcast, and website, we just
- 8:18:24covered all that over here. Typically,
- 8:18:26what ends up happening is I find that
- 8:18:28people stack these together. So, like
- 8:18:31imagine you had three right here. And
- 8:18:34then ideally, what you want to do
- 8:18:36afterwards is have edit sets. So, we'll
- 8:18:39do like edit set over here. And people
- 8:18:43often just make sure that the name is
- 8:18:45going to be the same for each of these
- 8:18:47and then there's like some sort of
- 8:18:48merge. So like go through here
- 8:18:53and then we'll have a merge associated
- 8:18:56with it. So because typically I want to
- 8:18:59get all these together and I see the
- 8:19:02merge like this not being too that
- 8:19:05often. So maybe we'll do like a merge of
- 8:19:07three. Play all these over here. I'll
- 8:19:09just show you this in a second. Okay, so
- 8:19:11we have this going on. Oh, the other
- 8:19:14thing, let's limit these. So, we're
- 8:19:17going to do a limits
- 8:19:19and let's say we just want to limit each
- 8:19:21of these to like a three.
- 8:19:24And it could be up to you how many you
- 8:19:25want to limit,
- 8:19:27but I do see this happening.
- 8:19:30So, set those across over here.
- 8:19:34I'm going to keep whatever is default.
- 8:19:35It says one. I'm just going to keep that
- 8:19:37default because I really don't want to
- 8:19:38change all these. add these in here. So,
- 8:19:41next what we want to do is and I guess
- 8:19:43we're building out a workflow for RSS.
- 8:19:46Didn't really plan on doing that, but
- 8:19:47that's okay. So, we have one YouTube
- 8:19:50over here. We have a podcast and there
- 8:19:53me zoom out. So, what we're going to do
- 8:19:57is execute the previous step.
- 8:20:02All right. And we'll do like oh no,
- 8:20:04title and link for each of these. Title,
- 8:20:06link, and pub date. We'll just keep that
- 8:20:08the same. So, just make sure we have
- 8:20:11those. Execute previous node.
- 8:20:16Title
- 8:20:18link update. That's easy. That's the
- 8:20:21same there. Is it going to be the same
- 8:20:23on this one? Sometimes I've seen it
- 8:20:25differently.
- 8:20:28I guess they're all same on this one.
- 8:20:30Maybe it was just like a one-off that I
- 8:20:31had before. That was a little bit
- 8:20:32different.
- 8:20:34know, like most of this is like the
- 8:20:35same, like 95%.
- 8:20:38Either way,
- 8:20:40we have all these. Now, if I run this
- 8:20:42workflow,
- 8:20:46we're going to have three items.
- 8:20:48And uh you'll see we have a title, link,
- 8:20:51and pub date across the board. And we
- 8:20:54just got one from YouTube, one from a
- 8:20:56podcast. And you know what we could also
- 8:20:58do too? I thought of one more idea.
- 8:21:01Let's call this platform
- 8:21:04platform like this and we can hardcode
- 8:21:06something in. So this is YouTube
- 8:21:11and we'll do the same for the other
- 8:21:12ones. I think I misspelled YouTube but
- 8:21:14the monitor is like right down here and
- 8:21:15I want to stress my neck out. So we'll
- 8:21:18do platforms. This is podcast.
- 8:21:22And then lastly
- 8:21:24we'll say platforms and this is website
- 8:21:28blog. So we'll say web blog. Cool.
- 8:21:31run this all again
- 8:21:34and uh yeah that's essentially RSS
- 8:21:38pretty basic you can see platforms my
- 8:21:40nice spelling YouTube podcast and my
- 8:21:42blog
- 8:21:44very simple so if you want to monitor
- 8:21:46stuff you have that option for you so in
- 8:21:49addition there's the trigger so let's
- 8:21:51imagine I'm a huge fan of Alex analyst
- 8:21:54YouTube channel and I want to just
- 8:21:57monitor his channel and say like hey
- 8:22:00anytime he uploads a new video. I want
- 8:22:02to get alerted. So that's what a trigger
- 8:22:04would allow you to do. You can put in
- 8:22:06the feed URL over here and then you pull
- 8:22:08to see like, hey, is there new content?
- 8:22:10I would just do this like every day. Set
- 8:22:13a specific time. If you know someone
- 8:22:14uploads in the morning, maybe do this in
- 8:22:16the afternoon. Doesn't really matter.
- 8:22:17You can fetch a test and when he when
- 8:22:20this polls and it notices that there's a
- 8:22:22new piece of content, it starts the
- 8:22:24workflow and you can see what does a
- 8:22:26data analyst do? Meetings, data, Excel,
- 8:22:28SQL. And honestly, I might build out an
- 8:22:31RSS feed trigger for my YouTube own
- 8:22:33YouTube channel uh and really automate
- 8:22:36some social media posts. So, still on
- 8:22:38the fence how I want to build this out
- 8:22:39yet, but this is one of the triggers I'm
- 8:22:41thinking about for utilizing that
- 8:22:43workflow. Either way, that is RSS. I
- 8:22:46know it's not technically web scraping.
- 8:22:48It does get us web content. So, I wanted
- 8:22:50to throw this in here as that first
- 8:22:52example because I think it's pretty
- 8:22:54impactful. The next is going to be a
- 8:22:56service. Uh, and we're going to be
- 8:22:58setting this up and it's called Appify
- 8:23:01and I love Appify. So, I've used it for
- 8:23:05customers and I think it's phenomenal
- 8:23:08because it allows us to scrape social
- 8:23:10media super super easy and yeah, now it
- 8:23:15is expensive. I'm not going to sugarcoat
- 8:23:17that. So, if I go to app.com,
- 8:23:20I think it's $39 a month. So you can see
- 8:23:23pricing and it's $39 a month. And
- 8:23:27essentially what this allows us to do is
- 8:23:29to buy scrapers on the website and we
- 8:23:33can have $39 worth of scraping credit.
- 8:23:35So people or ampify build out scrapers
- 8:23:38and then you could utilize them. So why
- 8:23:40this is really helpful, let's imagine
- 8:23:41you want to scrape Instagram accounts or
- 8:23:43you want to scrape Tik Tok accounts or
- 8:23:45whatever the case may be, there's
- 8:23:46probably a scraper on Apify that you
- 8:23:48could use. And what it really allows us
- 8:23:51to do is to kind of expand out our data.
- 8:23:56So imagine, and it's probably easier to
- 8:23:59demonstrate over here, we have some sort
- 8:24:01of a CRM system and we have influencers
- 8:24:04in our CRM, but we just we aren't
- 8:24:06tracking how many followers that they
- 8:24:08have. Well, we can scrape for that. And
- 8:24:10I just want to give you guys like a a a
- 8:24:12quick example
- 8:24:14of something that I built for a
- 8:24:16customer. And essentially what I do
- 8:24:21is, and I'll just only grab partial part
- 8:24:24of this workflow. All right. So, this is
- 8:24:26one of the scrapers that I use for a
- 8:24:28customer of mine. And under their social
- 8:24:31media roster, they have different
- 8:24:33YouTubers and they just want to track
- 8:24:35like how is the YouTube channel
- 8:24:37progressing over time. Is it getting
- 8:24:38more subscribers? Are they linking to
- 8:24:40our service on their YouTube channel?
- 8:24:43And you can see over here it says
- 8:24:46crafted by streamers but it's maintained
- 8:24:48by ampify. You can also see on this side
- 8:24:52of things as well um how you can run it.
- 8:24:54So there's a form or you can run JSON. I
- 8:24:57would recommend that you build this out
- 8:24:58in nan. And I'll just show you a quick
- 8:25:01workflow that I built out. And uh I'm
- 8:25:04just going to remove some of the
- 8:25:06sensitive information so you don't see
- 8:25:07that. But this is one of the different
- 8:25:09scrapers. So we can post in YouTube
- 8:25:11channels and we get a lot of
- 8:25:12information. You can see in the
- 8:25:14information side of things, you know,
- 8:25:16what YouTube channel can I extract with
- 8:25:17this tool. You get the channel name,
- 8:25:19number of subscribers, which is great if
- 8:25:20you want to monitor it. URL, the channel
- 8:25:23description, so if you're targeting
- 8:25:24specific things, the location, uh video
- 8:25:27titles, video URL, date of posting,
- 8:25:30thumbnail URLs, total view count, and
- 8:25:32links in video description. So a lot of
- 8:25:34data, and there's a lot of different use
- 8:25:36cases for this specific stuff. It says
- 8:25:38how to use for YouTube channels, keeping
- 8:25:40track of competitors channels, etc. Like
- 8:25:42there's quite a bit of information.
- 8:25:45I'll show you how to use this here in a
- 8:25:46second in nan. But yeah, so let me also
- 8:25:49show you really fast essentially how I
- 8:25:52built this out. And this unfortunately
- 8:25:54will not be in the final product of, you
- 8:25:59know, JSON that I give you guys. So this
- 8:26:01is going to be deleted out over here.
- 8:26:03But this is an example of a customer
- 8:26:06workflow. So there's also a manual
- 8:26:08trigger associated with this and I'm
- 8:26:10just going to kind of walk you through
- 8:26:12how this is built out. So ideally in
- 8:26:15this workflow what happens is there's a
- 8:26:17schedule trigger and a manual trigger.
- 8:26:19We have a metabase query that's already
- 8:26:23been built out. Now metabase is
- 8:26:25essentially a a BI layer and it's
- 8:26:28usually used for like reporting
- 8:26:29purposes. And essentially what I did is
- 8:26:32I built out a question metabase where we
- 8:26:35just want to have specific influencers
- 8:26:36where we want to track. So there's some
- 8:26:39information on there like what's their
- 8:26:40Instagram account, what's their YouTube
- 8:26:42account, um, and what is I'm trying to
- 8:26:44think of the other platform. Oh, Tik
- 8:26:45Tok. So that's the three platforms we're
- 8:26:47tracking. All I do over here is clean up
- 8:26:50this data because I have different
- 8:26:52branches. One for YouTube, one for Tik
- 8:26:53Tok, one for Instagram. And I I filter
- 8:26:55out anyone that doesn't have that
- 8:26:57particular account because every
- 8:26:59influencer won't have a YouTube channel.
- 8:27:00every influencer won't have a Tik Tok or
- 8:27:02Instagram. Then what I do is I aggregate
- 8:27:05all the influencer URLs and I send them
- 8:27:08to an actor. So when you're using
- 8:27:10Amplify, you're going to want to use
- 8:27:11this run an actor and get a data set.
- 8:27:13We're actually going to cover this node
- 8:27:15here in a minute. Then I'm just going to
- 8:27:17merge everything back together. So this
- 8:27:20merges uh the following account back
- 8:27:22into that specific ID. We edit the
- 8:27:25fields. we populate it just based off of
- 8:27:27how HubSpot wants their data and it gets
- 8:27:30sent to HubSpot. Um, this code also
- 8:27:32allows us to look through URLs and make
- 8:27:34sure that service is actually linked on
- 8:27:37their profile. Do the same thing as well
- 8:27:39over here for Instagram. One of these is
- 8:27:40an Instagram scraper and one of these is
- 8:27:43a Tik Tok scraper. Again, all we do
- 8:27:45essentially is we have a list of
- 8:27:47influencers which we have specific
- 8:27:49filters based around uh let's say
- 8:27:51revenue that is being brought in. Then
- 8:27:53we filter if they have that specific
- 8:27:55accounts or not. Then we aggregate all
- 8:27:58those influencers together just to
- 8:28:00populate this specific node. And just to
- 8:28:02kind of show you over here, we go into
- 8:28:07input. You can see in the JSON, we can
- 8:28:10use multiple URLs. So since it cost 30
- 8:28:13cents every time to run, it's best to
- 8:28:16optimize it and run for all these
- 8:28:18channels at once or profiles or whatever
- 8:28:20the case is. So that's why we have this
- 8:28:22built in.
- 8:28:23uh merges it back. As I told you,
- 8:28:25sometimes you'll want to have merges
- 8:28:27just because it's easier to work with
- 8:28:28the data. And then we just clean up
- 8:28:31everything here at the very end and uh
- 8:28:33populate that into HubSpot. So, pretty
- 8:28:35easy. Let me show you amplify now as a
- 8:28:38particular node.
- 8:28:41So, I'm going to go into amplify
- 8:28:44and you'll see that there's a lot of
- 8:28:46different things in over here. Honestly,
- 8:28:49the one that I use 99% of the time is
- 8:28:51run an actor and get data set. So,
- 8:28:54essentially what this allows us to do
- 8:28:55and I'll just zoom in over here
- 8:28:59is
- 8:29:01run the run the actor which each of
- 8:29:03these are considered an actor and then
- 8:29:05at the very end it gives us the results
- 8:29:07like how many followers, how many posts
- 8:29:08and things like that. So, it runs the
- 8:29:10actor and then gets that back. So if you
- 8:29:13think about this in terms of like an
- 8:29:15HTTP request, this is essentially the
- 8:29:18the post like our post runs the actor
- 8:29:21runs the actor and then get we get the
- 8:29:26data back.
- 8:29:28And in in the past you would actually
- 8:29:30have to use an HTTP request, multiple
- 8:29:32HTTP requests to get this working. But
- 8:29:35since this is a node and any and
- 8:29:37community node, you're gonna have to go
- 8:29:39through this route now. It's much
- 8:29:40easier. All right. And then we just jump
- 8:29:41into this node. So essentially what we
- 8:29:43do is create a account. So this is my
- 8:29:46personal account over here. All you have
- 8:29:49to do is set in an API key. I'll show
- 8:29:51you where you can get your API key here
- 8:29:52in a second. Choose a resource. I'm
- 8:29:54using an actor on that side of things.
- 8:29:56Operation run actor. Get a data set. You
- 8:29:58can use recently used actors or you can
- 8:30:01go to ampify store actors. Uh you can
- 8:30:03grab an actor from a list by URL or ID.
- 8:30:07So you can see an example URL over here.
- 8:30:10and then example ID of an actor. This
- 8:30:12input JSON, all I do is if you see for
- 8:30:15example, you see how we have this JSON
- 8:30:17there. All I do is copy in this JSON.
- 8:30:20So, copy then paste it directly in on
- 8:30:23that side of things. And it's it's
- 8:30:25literally just as easy as that, right?
- 8:30:28Uh to get your API key, let me go and
- 8:30:32show you. We go to API. We go to API
- 8:30:34endpoints. And then essentially what we
- 8:30:37do and you can see it says the URLs
- 8:30:39below contain your API token. Don't
- 8:30:41share them with this. And essentially
- 8:30:44when you click on this I and I'm not
- 8:30:46going to do it here. It's going to give
- 8:30:48you a token which is your API key. All
- 8:30:50you have to do is paste that directly
- 8:30:54into
- 8:30:56our account. So you see this API key?
- 8:30:58Whatever this is over here that's
- 8:31:00hidden. That's all you have to post.
- 8:31:02It's so easy. Use the Appify node, label
- 8:31:06it, paste in your key like that, and you
- 8:31:11are good to go. I just want to quickly
- 8:31:13see if I can share. Yeah, I can share
- 8:31:15really quick one of these examples of
- 8:31:17what the JSON looks like for an actor.
- 8:31:20So, in this case,
- 8:31:23all I did for this input JSON is I have
- 8:31:26this over here, and it's obviously an
- 8:31:27expression. So, usernames and I have
- 8:31:31JSON profile, Instagram, and I just map
- 8:31:34these out. I had to clean up a little
- 8:31:35bit of the data. I got a little bit of
- 8:31:37help with cloud code on this side of
- 8:31:39things, but that is an example of an
- 8:31:42Instagram scraper. I just used that. Um,
- 8:31:45if I go into another one,
- 8:31:48this is an example for
- 8:31:50what? This is YouTube. So, let me grab
- 8:31:52this show you what this looks like. So,
- 8:31:55if we go to YouTube this time, you can
- 8:31:57see I say max result streams, max
- 8:31:58result, max shorts. Like, I don't care
- 8:32:00about this stuff. All I cared about is
- 8:32:02the YouTube channel. So, I just grabbed
- 8:32:04our YouTube channel a little bit earlier
- 8:32:05and I specified those specific URLs. And
- 8:32:09then Instagram or sorry, Tik Tok is the
- 8:32:12last one over here.
- 8:32:15And it's going to be slightly different
- 8:32:16for every single actor that you use. And
- 8:32:19you can see over here, exclude pin post.
- 8:32:21We have the profiles, results per page,
- 8:32:24um, downloads, things like that as well.
- 8:32:26So, very straightforward. That is how I
- 8:32:30essentially do this with Appify. It's
- 8:32:33phenomenal because you can literally
- 8:32:34just go in over here, you can find an an
- 8:32:36actor. So, you go to the Appify store,
- 8:32:39you search for something that you want.
- 8:32:40You can see Tik Tok is here at the very
- 8:32:42top, Facebook posts, tweets. So, if
- 8:32:45you're trying to grab something from
- 8:32:47social media, I would probably re and
- 8:32:49you have the budget because it is $39 a
- 8:32:51month, I would just recommend that you
- 8:32:54go over here and utilize it. You can see
- 8:32:56my usage for this month is is $10 and I
- 8:32:59only have $5 my account. So, I'm already
- 8:33:00over and I believe it gives you like $5
- 8:33:03by default. So, I technically can't run
- 8:33:05this right now and I'm not going to put
- 8:33:06it on my customer billing. So, for I'm
- 8:33:10not going to show you that in the video
- 8:33:11and that's why I showed you a specific
- 8:33:13workflow. But, it's really easy. It's
- 8:33:15just one node. You can set things up and
- 8:33:17get going. What I am going to show you
- 8:33:19and we're going to build this together
- 8:33:21or actually I'm going to kind of walk
- 8:33:22through this with you guys is rapid API.
- 8:33:27So I'm going to load this up on my
- 8:33:29second screen
- 8:33:31and I'm going to show you what I built
- 8:33:34out. All right. So
- 8:33:36another service that there are tons of
- 8:33:39APIs and it might work out for you is
- 8:33:42rapid API. So it doesn't have a native
- 8:33:45node in nan. So you can see if I just
- 8:33:48search rapid, it's not going to be in
- 8:33:50here. So you can see that's not the
- 8:33:52case. So we're going to have to actually
- 8:33:53set up an API call. And let me just put
- 8:33:56a note over here and say rapid API
- 8:34:01and go rapid API. And we're going to
- 8:34:04have to do an HTTP request. So HTTP
- 8:34:07request like this.
- 8:34:09Pretty straight.
- 8:34:11So, what's really cool about Rapid API
- 8:34:14is it's actually quite cheaper than
- 8:34:16Appify. Although, you know, depending on
- 8:34:19what scraper you want, Appify may have a
- 8:34:21better scraper. Rapid API might have the
- 8:34:23scraper for a specific use case. Uh,
- 8:34:25each person charges whatever they want
- 8:34:27for their scrapers. So, one of the
- 8:34:29examples I recently built out is a
- 8:34:32workflow to get all of the YouTube
- 8:34:34transcripts from my YouTube channel
- 8:34:36because I wanted to start adding in
- 8:34:38timestamps because I know it's good for
- 8:34:40YouTube SEO. So, I found this scraper
- 8:34:42over here. It says YouTube captions,
- 8:34:43transcripts, subtitles, video combiner,
- 8:34:46and they have different costs associated
- 8:34:48with it. So, you can see out of the box
- 8:34:49like it's $0 and you get 100 requests.
- 8:34:52Now, I'm paying this pro for 5,000. I'm
- 8:34:55going to pay for it once. I'm
- 8:34:56essentially going to get all the videos
- 8:34:58that I want and then I'm going to go
- 8:34:59back into this basic for free because I
- 8:35:01don't upload more than 100 videos. So,
- 8:35:03I'm not doing transcripts for other
- 8:35:04people. Uh you can see there's obviously
- 8:35:07a rate limit of a,000 requests per hour.
- 8:35:09Not going to pass that off. And uh yeah,
- 8:35:11so we're pretty good on this side of
- 8:35:13things initially because I have like
- 8:35:15three 400 videos need to use pro and
- 8:35:17then jump back into basic. But you can
- 8:35:20see who the creator was if you want to
- 8:35:22take a look at their information. It
- 8:35:23says sign up to contact provider if you
- 8:35:25have any specific questions. Um, and you
- 8:35:27can also, you know, test endpoints and
- 8:35:29things like that. So, I'll show you how
- 8:35:31we set this up and I'm actually going to
- 8:35:33give you guys this full workflow. I'll
- 8:35:35put it in over here since I couldn't
- 8:35:37share that last one minus just showing
- 8:35:39like I don't want to give away something
- 8:35:40I built for a customer. However, I am
- 8:35:44happy to provide the one over here. So,
- 8:35:46I'm just going to pause the video really
- 8:35:48quick. I'm going to grab it. Just make
- 8:35:49sure I don't have an API key that is
- 8:35:51being shared and then we will kind of
- 8:35:53explore it. All right. So, I loaded in
- 8:35:56this workflow. I'm going to walk you
- 8:35:58through all of it. If I went node by
- 8:36:00node, this would take too long. And uh
- 8:36:03next section has a pretty long and
- 8:36:05thorough example. So, there is going to
- 8:36:08be one node in here that you guys aren't
- 8:36:10familiar with, which is loop over items.
- 8:36:12We're going to talk about that a little
- 8:36:14bit later on in the course, but I felt
- 8:36:16like this was a good area um to kind of
- 8:36:18present everything else. So, what we're
- 8:36:20doing is taking a spreadsheet of videos
- 8:36:23as well as URLs. So, these are different
- 8:36:26videos on my YouTube channel that don't
- 8:36:28have any timestamps on them. So, you can
- 8:36:31see title and video.
- 8:36:34And essentially, I'm generating the
- 8:36:36description as as well as the time
- 8:36:37stamp. I'm filtering out anything over
- 8:36:39here that has um a non-time stamp. So,
- 8:36:43I'm looking for it to be empty. Then
- 8:36:45what I do is I start looping over all of
- 8:36:47these. I believe I loop one or two at a
- 8:36:49time. I do a batch size of one. And the
- 8:36:51reason why is I'm getting rate limited.
- 8:36:52Again, we'll cover this when we talk
- 8:36:54about the loop over items node a little
- 8:36:56bit later. Next thing I'm doing is I'm
- 8:36:58transforming the URL. So, you see how
- 8:37:01this has a video URL. Ideally, I just
- 8:37:03want to have this section because that's
- 8:37:05in the API documents. So it says only to
- 8:37:08pass in this video ID. So this over here
- 8:37:11just strips it out and gets me the video
- 8:37:13ID and uh then I use my HTTP request. So
- 8:37:19I just follow the documentation that is
- 8:37:21based around over here. So it gives me
- 8:37:25examples and then I did a curl request
- 8:37:27as well. So you can see the endpoint
- 8:37:30says download all and then you paste in
- 8:37:32that video ID which you can see download
- 8:37:34all and then I paste in that video ID.
- 8:37:37Let me close that out and close that
- 8:37:40out. So we already know where the
- 8:37:41endpoint is. So just grab that
- 8:37:45and then I have to send specific query
- 8:37:46parameters and they talk about some
- 8:37:48examples over here.
- 8:37:51You can see all the different stuff you
- 8:37:53can grab.
- 8:37:54I believe when I was building this out
- 8:37:56initially, I just did a test endpoint. I
- 8:37:59would show this to you guys, but it is
- 8:38:01going to leak my API key and I generally
- 8:38:04don't want to have that leaked in this
- 8:38:06video. So, I'm not logged in on purpose.
- 8:38:09And uh all I did when I was testing it
- 8:38:12is importing the curl. You just have to
- 8:38:14build in this endpoint. Um, also
- 8:38:17obviously like you are going to get this
- 8:38:18workflow. So you'll have availability to
- 8:38:22just paste in your API key right here
- 8:38:25and test this out. So there's two sides
- 8:38:27of it. There's the description as well
- 8:38:29as the timestamp. This will get me the
- 8:38:31all the subtitles for the video and the
- 8:38:34captions or whatever you want to call
- 8:38:35it. Now we need to build out a
- 8:38:37description. I am going to actually
- 8:38:40parts of this description as well. And I
- 8:38:43don't want to be super mean, but I spent
- 8:38:44a lot of time to try to build out a
- 8:38:46really great prompt on the side of
- 8:38:48things and some of the examples I don't
- 8:38:49want to share, but you can see you're a
- 8:38:51YouTube description agent. The best
- 8:38:53video descriptions have average of 250
- 8:38:55words. They should include the keyword
- 8:38:57of the video and you include your
- 8:38:58keywords early in the first 70
- 8:38:59characters. So, I'll keep that. But you
- 8:39:01can see I have quite extensive one. All
- 8:39:03we're doing is passing in the subtitles
- 8:39:05as the prompt and then we essentially
- 8:39:07get our description which will be over
- 8:39:09here. The second one is the timestamps.
- 8:39:12So, I just go over here. You are a
- 8:39:13timestamp creator. A user uploads
- 8:39:16subtitles with time. You need to review
- 8:39:17all of them. Suggest a number of
- 8:39:18timestamps based on the video. Again,
- 8:39:20it's a pretty thorough prompt. I won't
- 8:39:22be sharing all of it, but I will give
- 8:39:23you a good amount to start with. And I
- 8:39:25would recommend you tweak it for your
- 8:39:26own specific use case. So, we have that
- 8:39:28over there. Again, I just go to edit
- 8:39:30fields. One of the things I found is we
- 8:39:33need to get our initial like video URL
- 8:39:36and things like that. You can see the
- 8:39:38URL in this loop over items before it
- 8:39:41passes over here just to get that
- 8:39:42string. So I just do a merge later on to
- 8:39:46get that exact YouTube video URL. Now we
- 8:39:48have all three things. We can actually
- 8:39:50match on this YouTube URL. And based off
- 8:39:54this match, we add in the description as
- 8:39:56well as the timestamp. So that is a
- 8:40:00little bit more of a complicated build.
- 8:40:01Like I obviously explained this in what
- 8:40:03like five minutes or so, but this took
- 8:40:05me a lot longer, especially with
- 8:40:08building out a good description,
- 8:40:09building out good timestamps. So we go
- 8:40:13from this Google sheet, we filter out
- 8:40:16everything, we loop just because I was
- 8:40:18hitting rate limits over here just based
- 8:40:20off of the amount of text.
- 8:40:23So we loop over these. We extract just
- 8:40:26the video ID. We go to an HTTP request
- 8:40:29which we set up going through over here.
- 8:40:33There's also discussions. Um so if you
- 8:40:35ever see errors, you can take a look at
- 8:40:37that and um really go through the
- 8:40:39documentation on that side of things.
- 8:40:44First build a description, then we build
- 8:40:45out the timestamps. Could you build out
- 8:40:47both at the same time? Sure. But I feel
- 8:40:50like in this opinion, the time stamp and
- 8:40:52the description are different. So I I
- 8:40:55just let each of them be generated on
- 8:40:56their own. Just clean this up a little
- 8:40:59bit. You can see I just reabeled this as
- 8:41:01timestamps. I reabeled this as
- 8:41:04description. Merge everything together
- 8:41:06including the initial YouTube URL. And
- 8:41:08then you can see over here I map
- 8:41:11everything. So you can see video used to
- 8:41:13match is this JSON.video.
- 8:41:15The title I'm not doing anything with.
- 8:41:16We're keeping that the same. I use the
- 8:41:19description, use the timestamps, and
- 8:41:21then once that's done, it goes back over
- 8:41:22here and loops over the next one. And
- 8:41:24you can see like I have hundreds of
- 8:41:26videos. All these are just going to get
- 8:41:27populated over here. I'm not going to
- 8:41:29run it again because it was expensive to
- 8:41:32run. And uh they have been mostly added
- 8:41:34to our YouTube videos. This one's going
- 8:41:36to be an expensive one to run as well.
- 8:41:37It's it's going to be a long video. So
- 8:41:40that is Rapid API. And again, you can
- 8:41:43just take a look at their platform and
- 8:41:44see what's available out there. people
- 8:41:46build out a lot of different APIs and
- 8:41:49you can see there's MCP for APIs,
- 8:41:51there's top categories. So, tons and
- 8:41:55tons of stuff. This is a little bit more
- 8:41:57complicated than Appify. Like Appify is
- 8:41:59basic to set up one node.
- 8:42:03I just show you here. Whereas Rapid API,
- 8:42:05you're going to have a bunch of
- 8:42:06different HTTP requests depending on the
- 8:42:07API service that you use. Uh different
- 8:42:10pricing as well for every single API. Uh
- 8:42:12let's just take a look at this one over
- 8:42:15here. So, real time LinkedIn. I'm not
- 8:42:17going to set this up, but I'm curious
- 8:42:19what the cost is. See what subscription
- 8:42:22plans this API provides.
- 8:42:27I guess it's
- 8:42:32it's interesting. Yeah, maybe have to
- 8:42:35have like a rapid API plan. The one I
- 8:42:37was paying on was just pay for results.
- 8:42:39And there's probably a filter for that,
- 8:42:40too. Let me go back to homepage.
- 8:42:46I'm sure you could filter by that as
- 8:42:48well if you really wanted to. Um, but
- 8:42:50there's so many APIs. YouTube API, real
- 8:42:53time, Amazon data. So, start on one of
- 8:42:56these sites before you want to
- 8:42:58specifically
- 8:43:00write Python code to scrape because like
- 8:43:03chances are you're going to get blocked
- 8:43:04in some capacity and unless it's like
- 8:43:07really customer niche site, chances are
- 8:43:09it's going to be either in Rapid API or
- 8:43:11apply. I wish I could give you guys a
- 8:43:13little bit more details. I just don't
- 8:43:15want to leak my API key here and be
- 8:43:17honest, I'm out of spend and I don't
- 8:43:19want to spend another $40 to get this
- 8:43:21video going. All right, we're going to
- 8:43:23cover one more which is going to be fire
- 8:43:26crawl. So firecrawl is pretty amazing. I
- 8:43:28was initially going to do an example
- 8:43:30over here, but in the next video we're
- 8:43:32going to be going through a pretty
- 8:43:34extensive example of firecrawl. But let
- 8:43:37me show you. It's a node over here and
- 8:43:39you can see a check mark maintained by
- 8:43:41firecol. So um and it says a new node
- 8:43:44package is available as well. So I might
- 8:43:46as well update this. This is a community
- 8:43:48node. So I'm going to update this over
- 8:43:50here. I'm going to confirm that update
- 8:43:52and confirm update.
- 8:43:57Cool. So package has been updated and
- 8:44:00we're just going to load firecrawl in
- 8:44:01over here and we're going to take a look
- 8:44:02at some of the different options that
- 8:44:04are available. So first what we have is
- 8:44:07search and optionally scrape search
- 8:44:08results. So I use this one frequently
- 8:44:12and the reason why I want to use this
- 8:44:14one specifically is in Google maybe I
- 8:44:17want to get the top five or top 10
- 8:44:19results and get those URLs. So when I
- 8:44:22want to do research for a brand I'll
- 8:44:25want to do this. So you can search
- 8:44:26whatever query that you want and you'll
- 8:44:28get those specific results. So, we can
- 8:44:32test this out on anything like we want.
- 8:44:35Um, let's go and search I don't know.
- 8:44:40All right. So, let's go and search
- 8:44:42cheese steaks
- 8:44:45in Philly.
- 8:44:48We'll execute this step. And you'll see
- 8:44:51we have these different URLs associated
- 8:44:53with it. Um, so we have the URL, the
- 8:44:55title, the description, and the
- 8:44:56position. Obviously, I only did five
- 8:44:58over here. You can expand this out as
- 8:45:00well. And we have a guide to Philly
- 8:45:02cheese stakes, Reddit talking about
- 8:45:04ranking 14 tasting table, this other
- 8:45:07one, top 20, and then visit Philly
- 8:45:09talking about Philly cheese stakes. So
- 8:45:11really cool that we can get our search
- 8:45:13results. And there's a lot of different
- 8:45:14services that you could do this as well.
- 8:45:16It's like SER API, the same exact thing
- 8:45:18where you could go and get the Google
- 8:45:19results. So next is mapping a website
- 8:45:22and getting all the URLs. So
- 8:45:24essentially, if you want to see what
- 8:45:25URLs are available on a site, this can
- 8:45:27get expensive if you have a very large
- 8:45:29site. I believe there's limits over here
- 8:45:31as well. So you can limit like there's
- 8:45:325,000 URLs over here. But if you go to a
- 8:45:35large e-commerce site like a Best Buy or
- 8:45:37something like that, they might have 20,
- 8:45:3930, 40,000 different items available. So
- 8:45:41this works with smaller businesses. When
- 8:45:43you get pretty large or even extensive
- 8:45:45blogs, might not be the best approach to
- 8:45:47take. You can see scrape a URL and get
- 8:45:49its content. So you can literally just
- 8:45:52paste in a URL over here and it scrapes
- 8:45:55all the information on that side of it.
- 8:45:57Then you have crawling a website. So you
- 8:46:00can go over here and search for specific
- 8:46:02information I believe with crawling
- 8:46:04sites. Then you have batch scrape for
- 8:46:06multiple URLs. So we have the one URL or
- 8:46:10you can go multiple over here. There's
- 8:46:12batch scrape status. So essentially like
- 8:46:15a little bit more advanced side is
- 8:46:16polling. So if you're scraping a lot of
- 8:46:18things, maybe you want to see if it's
- 8:46:20ready or not, if there's any errors, you
- 8:46:22have that as well. You could have
- 8:46:24specific crawls going on, preview
- 8:46:26crawls, cancel a crawl job. So like a
- 8:46:29lot of different options on that side of
- 8:46:30things, but really where Fire crawl is
- 8:46:33helpful at is two things. Number one or
- 8:46:36three things. Number one, grabbing
- 8:46:38Google search results. So if you want to
- 8:46:40get additional data, Google search
- 8:46:42results and you can send this data
- 8:46:44elsewhere. Number two, it's really great
- 8:46:46at going on to a website so you can find
- 8:46:49all the URLs that you specifically want
- 8:46:50and scrape a specific URL or just
- 8:46:52researching what is on that site.
- 8:46:55Firecrawl is really awesome on that
- 8:46:57side. I think things also their icon
- 8:46:58really pops in any and we'll jump
- 8:47:01through a a bit of an example in the
- 8:47:03next video. I initially was going to do
- 8:47:05it in this video, but I actually
- 8:47:08recorded uh section 16 before 15 and I
- 8:47:11ended up making a 50-minute video uh on
- 8:47:14a workflow where we build it out from
- 8:47:15scratch and use this firecross. So,
- 8:47:17don't fret if you're confused and I kind
- 8:47:19of flew through it, but yeah, we're
- 8:47:22going to do this in greater detail. So,
- 8:47:24just to kind of cover scraping in any
- 8:47:26end, right, we have the first one over
- 8:47:27here, which is RSS, which can get new
- 8:47:30blog posts. It can get new YouTube
- 8:47:32videos, new podcasts. So you can either
- 8:47:34set this as a trigger to start a
- 8:47:35workflow or you can grab a source and
- 8:47:37take a look at the x amount of their
- 8:47:40last uploads. Then if you want social
- 8:47:42media, you have two different options on
- 8:47:44that side of things. You have ampify
- 8:47:46which is super easy to set up. Throw in
- 8:47:47an API key. Just grab your actor. Uh
- 8:47:50obviously you have to set the JSON which
- 8:47:52sometimes can be a little challenging if
- 8:47:54you have a lot of things you want to
- 8:47:54search but honestly it's really easy. It
- 8:47:57is expensive. And then you have ampifi
- 8:48:00or not appi but a rapid API down below.
- 8:48:03Rapid API is a little bit more custom.
- 8:48:06Had different pricing plans specifically
- 8:48:08based off of the scraper that you want.
- 8:48:10There's a ton of different options on
- 8:48:12there. I'm paying individually for a
- 8:48:14scraper like $3 a month as I showed you
- 8:48:16guys. And this was an example of a
- 8:48:17workflow which you guys can download and
- 8:48:19start using. Lastly, what we have over
- 8:48:21here is firecrawl. So firecrawl helps
- 8:48:24you on an individual website. So if you
- 8:48:26want to grab data from an e-commerce
- 8:48:28website that typically would block a
- 8:48:30Python scraper, uh Firecol is great for
- 8:48:33it. In addition, if you want to grab
- 8:48:34search results. So that's why I didn't
- 8:48:36really show like a SER API because
- 8:48:38Firecol already has this built in. And
- 8:48:40personally, I'd rather just pay for one
- 8:48:42service rather than multiple. But you
- 8:48:44have those options because I know I
- 8:48:46don't believe we've talked about ChatHub
- 8:48:48yet, but Firecall is not available in
- 8:48:49ChatHub yet whereas the other one SER
- 8:48:51API is. But I could see that changing
- 8:48:54over time. So that is web scraping here
- 8:48:57in nan and uh I know this was a little
- 8:49:01bit different than some of the other
- 8:49:02sections of the course. Hopefully you
- 8:49:04guys still learned a lot and just
- 8:49:07remember you can you can play with this
- 8:49:08whole workflow. It'll be available to
- 8:49:10download and yeah that's the link over
- 8:49:12here to that specific scraper. A lot of
- 8:49:15your time scraping is honestly today
- 8:49:16just searching to see if the scraper
- 8:49:18exists and it still works or is in the
- 8:49:20past you would really write a lot of
- 8:49:22Python code. So, up next, we're going to
- 8:49:26be diving a lot deeper into AI agents
- 8:49:29and really going into
- 8:49:32what makes good prompts. And we're going
- 8:49:34to learn a lot more about this system
- 8:49:35message as well as what the user message
- 8:49:38is over here. I just realized also you
- 8:49:40guys don't know a little bit about that,
- 8:49:41but next video you're going to learn a
- 8:49:44lot more. Maybe I should have switched
- 8:49:46these initially, but too late now. See
- 8:49:48you in section 16. And uh great work.
- 8:49:52Now, it's time for us to really jump
- 8:49:54into the nuances of AI agents. So far,
- 8:49:57throughout this course, we've done some
- 8:49:59very basic, simple prompts, but
- 8:50:01realistically in the real world, that's
- 8:50:03not going to be the case. You're going
- 8:50:04to have some advanced AI agents, and you
- 8:50:08know, a lot of the principles of
- 8:50:09designing workflows with AI agents,
- 8:50:12they're going to matter. So, I need to
- 8:50:14teach you all this essentially now that
- 8:50:16we have a lot of the basics and
- 8:50:18understandings of how like any N works.
- 8:50:20Um, also to note, this isn't going to
- 8:50:22cover everything. There's other AI nodes
- 8:50:24which we'll talk about a little bit
- 8:50:25later. There's other AI settings and
- 8:50:28things like that which we'll be
- 8:50:29sprinkling through some of these other
- 8:50:31lectures. I do expect this one to be
- 8:50:33pretty long and, you know, there might
- 8:50:35be a few things that trip up people. But
- 8:50:38if it does trip you up, rewatch it and
- 8:50:40it should click. Also, we're going to
- 8:50:42probably do two or three different
- 8:50:43examples at the end. So, um, don't worry
- 8:50:46about that side of it. we just uh try to
- 8:50:48reiterate what we've learned. All right,
- 8:50:50let's uh jump into NEN and yeah, so
- 8:50:54let's start this off. And I just have a
- 8:50:57bunch of notes on my second screen, so
- 8:50:58I'm going to reference those. But first
- 8:51:00thing is we're going to grab our AI
- 8:51:02agent. So we'll go over here and we'll
- 8:51:06take a look at this. And really we'll
- 8:51:08we'll dissect each of these sections.
- 8:51:11Let's do a quick recap of what we've
- 8:51:13learned so far with an AI agent. So, so
- 8:51:15far, and again, I haven't been super
- 8:51:17explicit. There's two ways that you
- 8:51:19could work with an AI agent. Well,
- 8:51:21there's been more than two. The first
- 8:51:23one is with a chat trigger. So, you can
- 8:51:25see it says connected chat node. So, we
- 8:51:27go from the chat node into our AI agent.
- 8:51:30And you can see there's no option for us
- 8:51:33to set a prompt because what we have
- 8:51:35directly in here is the prompt. But
- 8:51:37whatever we put in over here in this
- 8:51:39chat message, it gets sent to our AI
- 8:51:41agent and then some sort of action is
- 8:51:44taken. Well, there's the other side of
- 8:51:46it is like that's not always the case.
- 8:51:48You could have an AI agent in the middle
- 8:51:50of a workflow. So just duplicating this,
- 8:51:52all you have to do if it's in the middle
- 8:51:54of a workflow, you go over here and you
- 8:51:56define below. And you can see it says
- 8:51:59prompt user message and you could type
- 8:52:01in your prompt over here. So when
- 8:52:03someone talks about a user prompt,
- 8:52:06they're either talking about something
- 8:52:07that gets sent from, for example, a chat
- 8:52:09message or something that is defined
- 8:52:13directly in over here. This isn't the
- 8:52:15only type of prompt that you'll be
- 8:52:17using. So I want to teach you something
- 8:52:20that is called the system prompt. And
- 8:52:24why the system prompt matters? Well, the
- 8:52:26system prompt does not change. It's
- 8:52:29static. Whereas the user prompt will
- 8:52:31change every time. So, let me just write
- 8:52:33this out so it's a little bit more
- 8:52:34explicit. User prompt
- 8:52:37equal changes every time.
- 8:52:43System prompt.
- 8:52:46You can change this occasionally
- 8:52:52to get better results.
- 8:52:57And let me show you where we could
- 8:52:58access this. So, first if we go into our
- 8:53:01AI agent and we bring this over here,
- 8:53:06you have to go into your options
- 8:53:08settings and then you'll see it has a
- 8:53:10system message and it all it says over
- 8:53:13here is you are a helpful assistant.
- 8:53:16Well, that is not helpful. In fact,
- 8:53:18there is a full guideline on how you
- 8:53:21actually want to set up prompts for your
- 8:53:24system message versus your user message.
- 8:53:26And in reality, what you need to do is
- 8:53:29you need to spend more time on your
- 8:53:31system prompt. So I'd say like spend 80%
- 8:53:34of your time
- 8:53:37on your system message.
- 8:53:40And this is why because even a great
- 8:53:43system message
- 8:53:45can help with poor user prompts.
- 8:53:47Sometimes you're going to be building
- 8:53:48out programs and you cannot control what
- 8:53:51someone is going to enter in. And we'll
- 8:53:54learn about this a little bit in
- 8:53:55ChatHub, which is our next lecture. But
- 8:53:57you're not always going to be able to
- 8:53:58control what someone puts into a
- 8:54:00program. And what's expected is you
- 8:54:03write a phenomenal system message that
- 8:54:06explains like what is going on and let
- 8:54:10someone put their user message over
- 8:54:12here. So this is one of the most basic
- 8:54:16fundamentals is like getting your system
- 8:54:18prompt correct and also your user
- 8:54:20message. And again, we'll cover this a
- 8:54:23little bit more in detail shortly, but
- 8:54:26super super important. So, like what are
- 8:54:29examples
- 8:54:30of things that you would want to put in
- 8:54:33your system prompt? Well, you know what
- 8:54:35the biggest example is and really really
- 8:54:38helps is multiple examples. So, a good
- 8:54:44prompt is going to give examples. And in
- 8:54:47the AI space, this is going to be called
- 8:54:50something called fewot prompts. So zero
- 8:54:54shot prompts, they give no examples. And
- 8:54:56zero shot prompts can work, but they're
- 8:54:59not the best. Then you have a oneshot
- 8:55:02prompt, which is one example. Then you
- 8:55:04have something called a fewot prompts,
- 8:55:06which is two or more examples. So, if we
- 8:55:11go here and do something like very
- 8:55:12basic. Let's say we're creating a
- 8:55:15translator AI agent. And let's just call
- 8:55:18this over here translator
- 8:55:22AI agent. And let's say we just want to
- 8:55:26translate um I don't know, let's think
- 8:55:29of English to Spanish, right? As basic
- 8:55:32as it is. So, instead of writing here,
- 8:55:34first you are a helpful assistant, let's
- 8:55:36get rid of that junk. And we're going to
- 8:55:38say you are an AI agent that solely I'm
- 8:55:43probably misspelled solely. So that I'm
- 8:55:46just going to write here an agent that
- 8:55:48translates
- 8:55:50messages
- 8:55:52from English
- 8:55:55to Spanish. And I don't know Spanish. I
- 8:55:57just know it's the second most spoken
- 8:55:59language here in Florida. But I'll just
- 8:56:01put this over here. And I felt like this
- 8:56:03would be a good example for you guys. So
- 8:56:06up first we defined in our system
- 8:56:08message like what is the purpose of this
- 8:56:12AI agent and I know we're talking about
- 8:56:14few shot examples but first thing first
- 8:56:18you need to describe to the AI agent
- 8:56:20what it actually does then what we
- 8:56:23should do and doesn't necessarily need
- 8:56:25to be next but here are some examples
- 8:56:28we'll define something like that here
- 8:56:30are examples
- 8:56:32we say user and let's say Hello
- 8:56:36AI example user
- 8:56:40AI
- 8:56:41user AI. So we can do three different
- 8:56:46examples over there. We can say welcome
- 8:56:50to AI agents
- 8:56:53and then
- 8:56:55thanks for subscribing.
- 8:56:58And all I'm gonna do because I do not
- 8:57:00know Spanish, I'm gonna load up Claude
- 8:57:02really quick. And I'm just gonna ask,
- 8:57:05and this is gonna be an example of a
- 8:57:08bling this out. We're going to just say,
- 8:57:16check this out.
- 8:57:18Your name in Spanish Danish, please fill
- 8:57:21out.
- 8:57:27All right. So, I'm just asking it to
- 8:57:29fill up this AI section over here. This
- 8:57:31is fine. This would be super easy.
- 8:57:36All right. I did know. Hola.
- 8:57:45Okay. And lastly,
- 8:57:47boom. So, we have all three over here
- 8:57:50now.
- 8:57:52And obviously, we could we could change
- 8:57:53this up if we really wanted to. Uh, but
- 8:57:56regardless, I think we could actually
- 8:57:58expand this. It' be kind of interesting.
- 8:58:00We'll we'll cover it here in a second.
- 8:58:02But we have these over here. Let's keep
- 8:58:04this very basic. And then what we're
- 8:58:06going to say is user.
- 8:58:09And then what we're going to do is pass
- 8:58:11in some information. So, let's actually
- 8:58:13build this one out. Again, there's way
- 8:58:16more principles of building out
- 8:58:18effective system user prompts, but we're
- 8:58:20just going to start very basic. Also,
- 8:58:22I'm going to just add in a chat model.
- 8:58:24I'm going to go over here, add an open
- 8:58:26AI
- 8:58:28should do. Okay. And we're going to go
- 8:58:30to GPT5 mini.
- 8:58:34All right. So, GPT5 mini.
- 8:58:40What we're going to do as well,
- 8:58:42we actually don't need to define that
- 8:58:44since we're just going to have this over
- 8:58:46here. And whatever we write now is going
- 8:58:50to be translated. As you can see, we
- 8:58:52have this chat input over here. And I'll
- 8:58:54still show you the other way how we
- 8:58:55could do this. Um, and let me actually
- 8:58:58define this translator AI agent chat.
- 8:59:04So, we're actually do another one in a
- 8:59:05second. Cool. So, let's open this chat
- 8:59:09and then let's write something else. I'm
- 8:59:12going to write free ne templates
- 8:59:19school group.
- 8:59:22I don't know if this will translate
- 8:59:23correctly or not, but you know what?
- 8:59:25Let's give it a shot. So, it's going to
- 8:59:27go over here and we're giving it the
- 8:59:30user message free any templates to my
- 8:59:32school group. And then uh we go. I'm not
- 8:59:36going to even try to pronounce it. It's
- 8:59:38a little bit in my way because the
- 8:59:39microphone right over here. though I
- 8:59:40could technically see the output and
- 8:59:43hopefully that it's the correct way. But
- 8:59:44you can see because we have this system
- 8:59:47message over here that explicitly
- 8:59:50defines what this AI agent needs to do.
- 8:59:53We already know our example.
- 8:59:56Let's uh expand this out a little bit
- 8:59:58more. And I want to just make this a
- 9:00:01little bit more interesting. So I want
- 9:00:04to do a manual trigger one.
- 9:00:07And we're going to actually pass in a
- 9:00:08few things this time around. So, what I
- 9:00:11want to do is let someone choose what
- 9:00:14language that they want to translate in
- 9:00:16into. And what I'm going to do is go
- 9:00:18into edit set.
- 9:00:22And we're going to put in over here,
- 9:00:24let's say
- 9:00:27translation string.
- 9:00:29Translation
- 9:00:31string. And then we'll put over here
- 9:00:34language.
- 9:00:36Okay, I misspelled that
- 9:00:49and we're going to put language. All
- 9:00:51right. So, for the translation string,
- 9:00:53I'm going to say free and end templates
- 9:00:55in my school group. We're still going to
- 9:00:56put this over here. And then for
- 9:00:59language, I'm going to put Hindi because
- 9:01:01I know a lot of people in India watch
- 9:01:02the YouTube channel. So, I'll put that
- 9:01:04over there. All right. And then we're
- 9:01:06going to use our translator AI agent
- 9:01:09over here. And uh going to change this
- 9:01:12up slightly. So this time what we're
- 9:01:15going to do is we're going to define our
- 9:01:17prompt below. And what we're going to
- 9:01:20say on here is actually let me run this
- 9:01:25here first. So we have this pinned for
- 9:01:27testing. Cool. We're going to go in here
- 9:01:31and we're going to define our stuff. So,
- 9:01:32I'm going to just put an expression or
- 9:01:34make this full screen. We're going to
- 9:01:36put a a translated string and then we're
- 9:01:39going to put a message. So, now I need
- 9:01:40to think this through and we'll say
- 9:01:44message
- 9:01:45to translate
- 9:01:48and then we're going to say language.
- 9:01:52Cool. And now,
- 9:01:55so you can see we have message to
- 9:01:56translate and then language. So what I'm
- 9:01:59doing is essentially building this out
- 9:02:00where people can choose different
- 9:02:02languages to translate. So now I need to
- 9:02:04update our system message. So I'm going
- 9:02:06to say you're an agent that translate
- 9:02:07messages from English to another
- 9:02:10language.
- 9:02:12Here are some examples and
- 9:02:17we're going to say is message to
- 9:02:19translate instead of user. Then we're
- 9:02:22going to say language
- 9:02:27Spanish.
- 9:02:29And then it's going to go through there.
- 9:02:30So
- 9:02:32we will just rewrite these really fast.
- 9:02:35Honestly, I should just expand this out.
- 9:02:39Okay,
- 9:02:42cool. And uh just fix these out.
- 9:02:46So we're going to see my message
- 9:02:48translate. Thanks for subscribing.
- 9:02:52crates.
- 9:02:57Yeah. So, we have our message to
- 9:03:00translate here first and all we need to
- 9:03:03do is define that our language
- 9:03:08there and then we just have the example
- 9:03:09what the AI responds back with. So,
- 9:03:11let's try that out and uh see what
- 9:03:14happens. And this is just an example of
- 9:03:16it being in the middle of a workflow.
- 9:03:17But what's really cool is I can just
- 9:03:19change this edit set and let's say I put
- 9:03:21Chinese over here or I put Spanish or I
- 9:03:24put whatever else. It it doesn't really
- 9:03:25matter or Portuguese. This AI agent will
- 9:03:27automatically translate it. And uh I
- 9:03:31have no idea if this is correct or not.
- 9:03:33So what I'm going to say is Hindi to
- 9:03:35English
- 9:03:38and we're going to put that over here
- 9:03:40and see
- 9:03:42N templates in my school group. There we
- 9:03:45go. So, we can change this now. And
- 9:03:47let's say over here instead of Hindi,
- 9:03:51what's another language? We'll put
- 9:03:53Portuguese.
- 9:03:55I think that's how I spell it. No, it's
- 9:03:57obviously not because I misspelled it.
- 9:03:58Let's go over here and spell it. Here we
- 9:04:00go. Don't uh butcher me too much in the
- 9:04:03comments. We'll put Portuguese here.
- 9:04:05Great. And then we'll run this. And uh
- 9:04:08it says this over here. So we're going
- 9:04:10to say Portuguese,
- 9:04:12English,
- 9:04:14and prian templates in my school group.
- 9:04:17So very basic on that side of things.
- 9:04:21However, we can expand this out even
- 9:04:24further. So one of the things that's in
- 9:04:28N that I think is really really helpful
- 9:04:30and this is even outside. um it's been
- 9:04:32around for a very long time and also
- 9:04:35we're going to say
- 9:04:37this is transa agent not chat but yeah
- 9:04:42so one of the things that's really
- 9:04:43powerful is you can actually define how
- 9:04:46we want our output and we can structure
- 9:04:48that with JSON which is really cool
- 9:04:52because now we force our AI agent to
- 9:04:55specify an output and why that's
- 9:04:57important is we can have extra nodes
- 9:04:59later on in the workflow and we could
- 9:05:02essentially take our results from the AI
- 9:05:03agent and then perform more uh actions
- 9:05:06based around it. So let's say you need
- 9:05:08to have a specific format for a CRM or
- 9:05:12you want to send specific data into an
- 9:05:15API of some sort. We can format it
- 9:05:18directly over here. And let me show you
- 9:05:19how we could do that as well. So I'm
- 9:05:22just going to go over here and call this
- 9:05:25a version two. And I guess this is fine.
- 9:05:28And I'm gonna click in and I'm gonna go
- 9:05:30and choose over here require a specific
- 9:05:33output format which is really cool. So
- 9:05:36it says connect an output parser in the
- 9:05:38canvas to specify the format that you
- 9:05:40require. So what we can do is go over
- 9:05:44here and choose an output parser. Now
- 9:05:46the one I like using is the structured
- 9:05:48output parser. And you'll see this is an
- 9:05:51example that they give us. So, they say
- 9:05:53state, California, cities, LA, San
- 9:05:55Francisco, as well as San Diego. You
- 9:05:58also can choose a JSON schema like this,
- 9:06:01but I'll be honest, I use this probably
- 9:06:02about 95% of the time. So, I'm not going
- 9:06:05to bother changing this up. Um, feel
- 9:06:08free to use the schema if you wanted to,
- 9:06:10but I kind of just prefer this approach.
- 9:06:12So thinking about this now, the
- 9:06:14translator AI agent, you know, maybe I
- 9:06:16want the final output to say, hey, this
- 9:06:19is uh English before and then after
- 9:06:23different language. So we can do
- 9:06:26something like that. Let's go over here
- 9:06:28and say new language.
- 9:06:33I'm going to put over here as Spanish.
- 9:06:39And then what I want to do as well is
- 9:06:41say translations
- 9:06:45and we'll put one of these examples over
- 9:06:48here.
- 9:06:50And we're going to also want to modify
- 9:06:52this as well. So show you really fast.
- 9:06:56All right. So
- 9:06:58actually what we're going to do is row
- 9:07:00this in like this. All right. Let me
- 9:07:03make this full screen. This can be
- 9:07:04easier. Cool. So, we're going to say
- 9:07:09language.
- 9:07:11This I want it to print out Spanish for
- 9:07:14the language.
- 9:07:17We'll have message to translate and then
- 9:07:19translate a message. I don't need that
- 9:07:21anymore. So, I'm going to remove that.
- 9:07:27Then, we're going to say
- 9:07:30message to translate,
- 9:07:33thanks for subscribing.
- 9:07:35And then we're gonna say
- 9:07:38translated
- 9:07:42message.
- 9:07:45Cool. So now
- 9:07:49when we look at this, we'll have that
- 9:07:51there. There's one error. And it's kind
- 9:07:53of weird. Your first time using it, but
- 9:07:54with JSON, just don't put a comma here
- 9:07:56at the end. So comma there. I'm also
- 9:07:59just going to format this so this looks
- 9:08:01way better. So we say language Spanish
- 9:08:03message to translate and then translated
- 9:08:05message. So that's exactly how we want
- 9:08:06our output to look like. I already kind
- 9:08:08of defined it over here. We could
- 9:08:10obviously tweak our system message and
- 9:08:13maybe if we have a little bit more time
- 9:08:14we do that, but uh screw it. Let's see
- 9:08:17what happens. We go over here. We'll run
- 9:08:20it.
- 9:08:24We'll see what happens. We I think we're
- 9:08:26on the Portuguese one still. So we'll
- 9:08:29see.
- 9:08:31Okay. So you can see language Portuguese
- 9:08:33message to translate and then it has the
- 9:08:36translation right over there and it's
- 9:08:38it's really cool. So you can see that in
- 9:08:40the schema our output is like that. And
- 9:08:42what's nice now and so we have an edit
- 9:08:45set after
- 9:08:47this is why I'm saying this is really
- 9:08:48great. You can see
- 9:08:51can just grab all this
- 9:08:57right. We can grab this wherever we
- 9:08:59want. Very, very basic. Um, obviously I
- 9:09:03just showed you edit set. There's a lot
- 9:09:04of other nodes out there that we could
- 9:09:06work with. However, I I just shown you
- 9:09:08really fast like drag and drop. We have
- 9:09:10all this formatted rather we're over
- 9:09:13here. Obviously, we just had our single
- 9:09:15output with the results. Uh now we kind
- 9:09:17of have it broken down and we don't have
- 9:09:19the option of like uh our AI agent
- 9:09:21saying here is the translated response
- 9:09:24because sometimes you'll get some extra
- 9:09:25stuff in there like here's the
- 9:09:27translated response from English to
- 9:09:28Spanish. And really like all we cared
- 9:09:30about is like what language was it? What
- 9:09:32message? What translated message? And we
- 9:09:35did all that through a structured output
- 9:09:38parser. Uh which we have that right over
- 9:09:41there. Really cool. Uh, again, there's a
- 9:09:43lot of sections into the prompt. So,
- 9:09:45we're just going to keep adding on in
- 9:09:48that side of things, but I just wanted
- 9:09:49to show you another
- 9:09:51quick win when it comes to specifically
- 9:09:55building out AI agents. So, we're going
- 9:09:56to keep going forward. I'm actually
- 9:09:59going to delete some of this other
- 9:10:00stuff, and I just don't want to bore you
- 9:10:04guys with all the prompting
- 9:10:05fundamentals. So, another thing that's
- 9:10:07really cool is you can actually enable a
- 9:10:09fallback model. And I think we already
- 9:10:10touched on this a little bit in the
- 9:10:12course, but you know what happens if
- 9:10:14Open AI is down? We can add in a second
- 9:10:16model. So you want to change these up
- 9:10:18and just in case you have like Anthropic
- 9:10:20over here. Uh so Open AI is down, you
- 9:10:23have Anthropic as a backup or vice
- 9:10:26versa. Like choose your first model that
- 9:10:28you want in this first position, then
- 9:10:31have a second one over here just in
- 9:10:33case. Especially in production builds,
- 9:10:35you'll want to do this. I know we'll
- 9:10:37talk about it a little bit more also
- 9:10:38when we have pair handling and things
- 9:10:41like that but topic for another day. So
- 9:10:45in reality you can have up to five
- 9:10:48different things this AI agent right you
- 9:10:50could have fallback models you can also
- 9:10:52have memory and we'll talk about memory
- 9:10:55here in a second because you'll want to
- 9:10:56use this with the chat trigger but you
- 9:10:58have memory now then let's say you have
- 9:11:00an a specific tool and tools are really
- 9:11:04cool because what they allow you to do
- 9:11:06is attach some type of service into your
- 9:11:09AI agent and you can see there's a lot
- 9:11:11of different tools we can scroll down
- 9:11:14all the way. So, you can add in like the
- 9:11:16Google suite or you can add in other
- 9:11:18things like that. And, you know, I think
- 9:11:19we're going to have probably a section
- 9:11:20just talking about tools with AI agents.
- 9:11:22Maybe we'll put it here. I don't know.
- 9:11:24Um, we'll see how long this specific
- 9:11:26lecture goes. And then you have your AI
- 9:11:28agent. So, let me just add in a a
- 9:11:30generic tool. And you can see if we go
- 9:11:33and uh put Gmail as a tool. So, you can
- 9:11:36see it's Gmail and it use the same
- 9:11:39credentials that you had a little bit
- 9:11:40earlier. You can see we have five uh
- 9:11:43different things attaching to our
- 9:11:45particular AI agent. In fact, I do think
- 9:11:47we're probably going to talk about
- 9:11:48tools. I'll put that on my list. I
- 9:11:50didn't know if I was going to put in
- 9:11:51this video or another one, but we'll put
- 9:11:53this over here in a second. Okay. So, we
- 9:11:56talked about the system prompt and user
- 9:11:59prompts. That's good. There talked about
- 9:12:01structured outputs. Let's also talk
- 9:12:04about some of the limitations associated
- 9:12:06with these AI agents and and large
- 9:12:08language models themselves. So, one of
- 9:12:11the things that's kind of a drawback
- 9:12:13that most people don't realize, a lot of
- 9:12:15these AI agents are trained on old data.
- 9:12:18So, let me explain what is going on over
- 9:12:21here. And I'm just going to load up
- 9:12:24Sonnet 45 and uh we'll grab this. So,
- 9:12:29it's probably in the press release,
- 9:12:32but let's take a look at what it says.
- 9:12:38We're going to look for um a knowledge
- 9:12:40cut off date.
- 9:12:46And I guess we don't see that. Let me
- 9:12:48look up another one.
- 9:12:53Okay. So,
- 9:12:56here we go from Anthropic Transparency
- 9:13:00Hub.
- 9:13:02And they have different types of models
- 9:13:04over here. And I didn't expect us to
- 9:13:06talk about different model um options as
- 9:13:10well right now, but we're going to cover
- 9:13:11a little bit. The first thing I want to
- 9:13:14look for is your knowledge cutoff dates
- 9:13:16on here because this will tell us its
- 9:13:20memory. So if we're using Opus, it says
- 9:13:22cloud opus 45 has knowledge cutoff date
- 9:13:24of May 2025. This means the model of
- 9:13:26knowledge is most extensive on reliable
- 9:13:28information and events up to May 2025.
- 9:13:31Why this is important? If you ask a
- 9:13:33question out of the box to the LM
- 9:13:37without any tools, without any other
- 9:13:40additional API or services or anything
- 9:13:41like that and you ask a question of
- 9:13:44something like I don't know, right now
- 9:13:46we have all the different college
- 9:13:47football bowl games going on in the
- 9:13:49playoffs. So if you ask like what
- 9:13:51happened in a bowl game recently, it's
- 9:13:52not going to have that information. It
- 9:13:54just wasn't trained on that data because
- 9:13:56it's May 2025. And this is different for
- 9:13:59all models. If you go to sonnet, which
- 9:14:00is one of the models I use all the time
- 9:14:02and it's cheaper than opus and it still
- 9:14:04gets pretty good results. So if you take
- 9:14:07a look at the knowledge, you can see
- 9:14:10January 2025 and there's ways to cut
- 9:14:14around it and we'll we'll talk about
- 9:14:17perplexity open AAI responses. There's
- 9:14:19another tool called Tavly. I haven't
- 9:14:21used it as of yet, but you need to find
- 9:14:24a way to to essentially supplement
- 9:14:27knowledge if you know the process that
- 9:14:30your AI agent is going to be used
- 9:14:32through needs up-to-date information.
- 9:14:33Hopefully that makes sense. So to kind
- 9:14:35of reiterate it, your AI agent needs to
- 9:14:38access real-time information or near
- 9:14:40real-time information. Something that
- 9:14:41happened a month ago, two months ago,
- 9:14:42three months ago, you need to supplement
- 9:14:44your AI agent with either a a tool or b
- 9:14:48with like another API. For example,
- 9:14:49OpenAI has a responses API. We'll be
- 9:14:52covering that here in this video. Um,
- 9:14:54responses allows us to get newer
- 9:14:55information, but it's just super
- 9:14:57important that you do that. Um,
- 9:14:59tool-wise, you could use perplexity or
- 9:15:01tablet. Otherwise, you're going to be
- 9:15:03missing information and what happens
- 9:15:05sometimes is our AI agent will
- 9:15:08hallucinate and think of an answer which
- 9:15:10is not correct. So, really important.
- 9:15:12Okay. The next thing I wanted to talk
- 9:15:14about really fast is like choosing a
- 9:15:16model
- 9:15:17and kind of part of it is understanding
- 9:15:21what models are used for. Like Opus is a
- 9:15:24very expensive model. It's really good
- 9:15:27for deep research, but you're going to
- 9:15:29pay for it. So if budget does not matter
- 9:15:32to you, maybe you want to use Opus.
- 9:15:34However, if you're a little bit more
- 9:15:35budget friendly and you still want
- 9:15:37something that performs pretty good and
- 9:15:39you might want to use Claude Sonnet 45
- 9:15:42and these numbers are just based off of
- 9:15:44the updates. So, for example, GPT
- 9:15:46started with GPT 5, then there's GPT
- 9:15:485.1, then there's GPT 52. So, larger
- 9:15:51updates uh will continue to happen. I'm
- 9:15:53sure at some point there will be a GPT
- 9:15:5553, 54, 55, and then it'll update.
- 9:15:58There's a massive overhaul. It'll go to
- 9:16:00the next number. So, like this is
- 9:16:01halfway between Sonnet 4 and Sonnet 5.
- 9:16:05Maybe not exactly halfway, but um on
- 9:16:07here you can see also the release date,
- 9:16:09but I want to go and also take a look at
- 9:16:12some of the pricing. So, I'm just going
- 9:16:14to take a look at that and explain how
- 9:16:16this is working. So, Sonnet 45 pricing
- 9:16:20and uh hopefully we have it on this side
- 9:16:25of it.
- 9:16:27Nope, that is not on this one.
- 9:16:30Okay, let's
- 9:16:33see if it's in this one.
- 9:16:36So, we're going to say pricing.
- 9:16:39All right, so it says Opus 45 is
- 9:16:41available. We're just going to use the
- 9:16:42Opus for pricing over here. Pricing is
- 9:16:45now five and then also 25 million tokens
- 9:16:49and uh Cloud Developer Platform actually
- 9:16:51might have our full pricing list. I
- 9:16:54don't know why I didn't think about
- 9:16:55that, but let's take a look at our API
- 9:16:58pricing.
- 9:17:00Sweet. Okay, so
- 9:17:04if you want to start really learning
- 9:17:05about like what models you want to use,
- 9:17:08I would recommend start taking a look at
- 9:17:10the exact API pages that Claude has,
- 9:17:14that Gemini has, that OpenAI has because
- 9:17:16it's going to really tell you some
- 9:17:18stuff. So, for example, what you have
- 9:17:20over here is your input, and it says $5
- 9:17:23per million tokens. Now, what does that
- 9:17:26mean? Well, this is your prompt that
- 9:17:29you're sending to uh clot. So, if we go
- 9:17:33back into our deeper AI agents, we go
- 9:17:35into this example over here.
- 9:17:39We're sending our prompt and our system
- 9:17:42message over, right? And these are going
- 9:17:44to count as tokens that count up to your
- 9:17:48million. And you're getting charged $5
- 9:17:50per million tokens. Our output is $25
- 9:17:53per million tokens. So that is our
- 9:17:55response, right? This is our output over
- 9:17:57here. So we're getting charged $25 per 1
- 9:18:00million if we're using opus over here.
- 9:18:02Now why I like using I use a lot of
- 9:18:06short prompts. I don't believe in large
- 9:18:08prompts and we're going to talk about
- 9:18:09that in uh this lecture as well. But you
- 9:18:12can see if prompts are under 200 tokens,
- 9:18:14you're getting charged $3 per million
- 9:18:16tokens. If it's over, you're getting
- 9:18:18charged $6 per million tokens. Um, and
- 9:18:21then the output over here for prompts
- 9:18:23under 200k tokens, you're paying $15.
- 9:18:26Otherwise, you're paying $22. So, you
- 9:18:28can see, um, if you have larger outputs
- 9:18:32and things like that based off of
- 9:18:33prompts, maybe you want to start using
- 9:18:34Opus, um, because it can get quite
- 9:18:37pricey, right? $6 per million which is
- 9:18:39more expensive than here and you're
- 9:18:40paying $2250 comparison to $25. You also
- 9:18:44have prompt caching pricing based off of
- 9:18:46write and read. Going to not cover that
- 9:18:49here but regardless your input is what
- 9:18:52is being sent to the model. Your output
- 9:18:54is those particular results. You can see
- 9:18:56over here most intelligent model for
- 9:18:57building agents and coding. Sonnet has
- 9:18:59optimal balance of intelligence costs
- 9:19:01and speed. And then haiku says fastest
- 9:19:04most costefficient model. So, if you're
- 9:19:05looking for something that's just super
- 9:19:07costefficient and very cheap, you can
- 9:19:10see it's $1 per million and then $5 per
- 9:19:13million on that output. And it doesn't
- 9:19:15even mention uh input and output. One
- 9:19:17other thing to note, and I want to I
- 9:19:20want to really cover this over here as
- 9:19:23well. Each of these models have a
- 9:19:26different limitations with what you're
- 9:19:28going to be sending as your input. Uh,
- 9:19:31so whether you're using like a Gemini or
- 9:19:33OpenAI or whatever that you use, if you
- 9:19:37will have to send a lot of texts, which
- 9:19:39again I don't recommend, take a look at
- 9:19:41the documentation because you might be
- 9:19:42getting cut off in some sort of
- 9:19:44capacity. Um, I can also load up Gemini
- 9:19:47prices or OpenAI API prices. So let me
- 9:19:51look this up so we can have that.
- 9:19:55Okay, so here is pricing for Open AI.
- 9:19:58So, I use GPT5 Mini a lot and you can
- 9:20:01see the input price is quite cheap. 0.25
- 9:20:04per million tokens. Output is $2 per 1
- 9:20:07million tokens. So, if you guys ever
- 9:20:09wonder why I use GPT5 Mini in a lot of
- 9:20:11YouTube videos, um here the price like
- 9:20:15it is significantly cheaper. Uh which is
- 9:20:18why like I don't always use Sonet 45. I
- 9:20:20think Sonic 45 is way better model and
- 9:20:22results and great for coding but um this
- 9:20:25is quite cheap and when we're really
- 9:20:27doing demos and things like that rather
- 9:20:29save the money when I can. Uh you can
- 9:20:31see GPT 52 the best model for coding at
- 9:20:33Gentic Task and Industries even 52
- 9:20:36inputs 1.75 so already input is cheaper
- 9:20:40and the output's $14 and output is like
- 9:20:43$15 here. So um 52 is still cheaper than
- 9:20:47sonnet 45. So I am spinning a lot
- 9:20:50sometimes in videos when I use this but
- 9:20:53you know it is what it is right. Uh you
- 9:20:55have also fine-tuning models over here
- 9:20:58and then you can see other additional
- 9:21:00information over here. We're going to
- 9:21:01talk about image generation a little bit
- 9:21:03later. This is the responses API. So it
- 9:21:06says our newest API combining simplicity
- 9:21:07of chat completions with the built-in
- 9:21:08tools of assistance. We're going to be
- 9:21:10using this a little bit later in the
- 9:21:12video. There's built-in tools over here
- 9:21:15as well. Uh this is going to be used in
- 9:21:17our rag section and uh yeah there's
- 9:21:20there's quite a bit and also what model
- 9:21:22should I use? We recommend the
- 9:21:23developers use our large and mini GPT
- 9:21:25models for everyday tasks. Our large GPT
- 9:21:27models generally perform better on a
- 9:21:28wide range of tasks while our mini
- 9:21:29models are fast and expensive for
- 9:21:31simpler tasks. So, one of the things
- 9:21:33that's pretty cool to do is when you're
- 9:21:36building out your workflows and you're
- 9:21:38testing, see if you have a big result
- 9:21:42difference between using a cheaper model
- 9:21:44and a larger model. Sometimes it does
- 9:21:46not matter. So, if you're really looking
- 9:21:48for cost savings, what you'll want to do
- 9:21:51is first test with a cheaper model, then
- 9:21:53test with a larger model or more
- 9:21:55expensive model, and just see what the
- 9:21:57results are. Um, I find sometimes that
- 9:22:00the cheaper models work perfectly and
- 9:22:02sometimes you need to change your model
- 9:22:04for something that's a little bit better
- 9:22:05with coding or something else. Again, we
- 9:22:09have this option to go over here and you
- 9:22:11can always set fallback models as well.
- 9:22:14Uh, another thing to briefly mention and
- 9:22:16man, there's there's just so much. One
- 9:22:19of the things that people do is stuff
- 9:22:21way too many tasks, way too much context
- 9:22:24into an AI agent.
- 9:22:27And that's just an issue. What I like to
- 9:22:31personally do, and I'll just write this
- 9:22:32out for you guys, is one task per agent.
- 9:22:38Now, this doesn't mean exactly one task
- 9:22:40for agent, but don't ask your agent to
- 9:22:43do a million tasks because what some
- 9:22:46people want to do is like, hey, I want
- 9:22:48you to, I don't know, extract this
- 9:22:50information. Then, I want you to
- 9:22:51summarize it, and then I want you to
- 9:22:53build out a social media post all at
- 9:22:55once. And it's like, man, you're st
- 9:22:56you're confusing your agent. You're
- 9:22:58giving it too many tasks. So, I try to
- 9:23:00break down these to like one simple task
- 9:23:03at a time. If it's like a supplementary
- 9:23:05task that you think it could do both at
- 9:23:07the same time, sure, try it. But really
- 9:23:10focus on one task per agent and you can
- 9:23:12chain things together. So if you go to
- 9:23:15agents, you can always send the output
- 9:23:17of one agent into another agent. And
- 9:23:20guess how we have officially done that?
- 9:23:23Well, if you go back to your structured
- 9:23:24output parser,
- 9:23:27look, we already have our specific
- 9:23:29stuff. And we could literally just let
- 9:23:32me just pin this data.
- 9:23:35I don't know what I'm going to do with
- 9:23:36this here in a second, but we go over
- 9:23:38here, you know, we can send our output
- 9:23:42over here directly in to our prompts,
- 9:23:47right? Because we have these
- 9:23:49expressions.
- 9:23:53I'm going to say Laura Misfit as I
- 9:23:55didn't really think about this when I
- 9:23:57was prep prepping this video, but you
- 9:24:00can see we can send the results from the
- 9:24:02previous AI agent into this agent. So,
- 9:24:05it's not unheard of for sometimes you
- 9:24:07have like two or three A agents together
- 9:24:09in a row. Again, super important. I'd
- 9:24:14focus on like one task per agent and
- 9:24:17limit your context because
- 9:24:20although these agents will say you can
- 9:24:23upload one million context and tokens
- 9:24:26and let me show you why I say that.
- 9:24:28Gemini
- 9:24:29context window and that's what it's
- 9:24:31called as well.
- 9:24:35And uh
- 9:24:38where is this at?
- 9:24:43All right, let's see if this is on here.
- 9:24:46It's like there's a lot of stuff over
- 9:24:48here. Let's look for context window.
- 9:24:51Yeah, 1 million tokens, which means up
- 9:24:54to 1500 pages of text or 30k lines of
- 9:24:56code. Like that is a ton. However,
- 9:24:59there's research papers and let me find
- 9:25:01you this research paper lost in the
- 9:25:03context. I think it's called loss in the
- 9:25:05context or it's like needle and hay
- 9:25:07stack. I can't remember the exact paper
- 9:25:09name. But what ends up happening if you
- 9:25:12stuff too much information into your AI
- 9:25:15agent like too many tasks or too much
- 9:25:18text things are get are going to get
- 9:25:20forgotten and you're going to have to
- 9:25:21deal with something that is called a
- 9:25:23hallucination. And we haven't covered
- 9:25:25really hallucinations too much in
- 9:25:27detail. And I'll just put this as a
- 9:25:29note, but hallucination
- 9:25:33equals that know-it-all
- 9:25:36class
- 9:25:38that think he knows his answer that
- 9:25:40thinks
- 9:25:41he knows the answer. It's wrong.
- 9:25:46And
- 9:25:48it kind of goes back into what we're
- 9:25:50talking about with knowledge cutoff.
- 9:25:51Your AI agent will always try to get you
- 9:25:53the answer unless you prompt it and say
- 9:25:55if you don't know the answer right I
- 9:25:57don't know and obviously you can build
- 9:25:58out your orchestration based around it
- 9:26:01but your AI agent is always going to try
- 9:26:02to get you the correct answer because of
- 9:26:05that there's something called
- 9:26:06hallucinations and you know it's common
- 9:26:08to get you know 2% hallucination 5%
- 9:26:11hallucination 10% hallucination and our
- 9:26:14goal is to limit hallucinations and we
- 9:26:16can do that by writing a phenomenal
- 9:26:19system message as well as a really great
- 9:26:22user message when applicable. So, this
- 9:26:25is some of the basics. We have a lot
- 9:26:27more to still talk about. I'm just going
- 9:26:29to take a quick break and we'll be right
- 9:26:31back. All right, so let's jump into the
- 9:26:34next topics. So, the first is going to
- 9:26:36be how to write a good prompt and some
- 9:26:38of the different details associated with
- 9:26:40it. I actually go through kind of a
- 9:26:42checklist each time. So, let's cover
- 9:26:46each of these sections and uh we could
- 9:26:48just grab an AI agent, honestly. I'm not
- 9:26:51too sure what prompt we're going to
- 9:26:52write, but we'll just open this up and
- 9:26:54I'll give you examples through it. And
- 9:26:57uh let's go into our system message and
- 9:26:59expand this out. All right, so the first
- 9:27:02part of it is the role and identity. So
- 9:27:04this is kind of what we have over here,
- 9:27:06your helpful assistant.
- 9:27:08So what we want to do is like what is
- 9:27:11the role or the identity? And I'll just
- 9:27:13put this over here. what is the role or
- 9:27:17the identity
- 9:27:19of the AI agent like what is its
- 9:27:22objective right the next side of it is
- 9:27:26what tools
- 9:27:29do we have available and I know we
- 9:27:31haven't covered setting up tools with
- 9:27:32our AI agent I did say I was going to
- 9:27:34bring it on in this section but after we
- 9:27:37go over a few other things we'll cover
- 9:27:39tools so what tools do we have available
- 9:27:42next what I would recommend is um how do
- 9:27:45you want to handle errors? So, how do
- 9:27:48you want to handle errors
- 9:27:54both
- 9:27:55as an agent
- 9:27:57and for the tool?
- 9:28:01Okay. Another thing that you can define
- 9:28:03in over here is going to be your tone.
- 9:28:06So what
- 9:28:09tone response
- 9:28:12should the agent of? And some models are
- 9:28:16better with tone. Some are kind of bland
- 9:28:18or vanilla, which is fine. Obviously
- 9:28:21depends what you want. what rules and
- 9:28:24restrictions do you have in place?
- 9:28:31And I should also mention externally uh
- 9:28:34you can also specifically
- 9:28:37have restrictions based off of
- 9:28:39guardrails. So guardrails is a little
- 9:28:42bit later on in this course. I'm just
- 9:28:44going to check my outline really fast.
- 9:28:47So this guard rails, where do I have it?
- 9:28:50In the security and compliance section.
- 9:28:52So, um, still like five or six sections
- 9:28:55away. So, let me give you a little bit
- 9:28:58of a sneak peek on guardrails and, uh,
- 9:29:01not to ex out over here, but if we go
- 9:29:05into guardrails,
- 9:29:07you can see check text for violations.
- 9:29:10So, what we can do is either go over
- 9:29:12here and add in a guardrail like, hey,
- 9:29:14if this text is specific keywords or
- 9:29:17NSFW or PII, like don't run this agent.
- 9:29:20And you can see like for example I put
- 9:29:23jailbreak
- 9:29:25and you'll see
- 9:29:28we either have a pass or fail. So if it
- 9:29:30passes and go into our AI agent
- 9:29:33otherwise it fails and goes down that
- 9:29:35way. A little bit about guardrails
- 9:29:38and we'll cover this in greater detail.
- 9:29:40All right going back to our AI agent.
- 9:29:42Didn't want to um explicitly say this
- 9:29:45but you can also add on with guard. All
- 9:29:48right. Um, what do we have next over
- 9:29:51here? Oh, our our shot prompting
- 9:29:54examples. So, we've already covered that
- 9:29:57shot prompting examples.
- 9:30:02We'll have additional context.
- 9:30:06So, like what other information
- 9:30:11should an AI agent know?
- 9:30:16All right. And then let's say our
- 9:30:19formats last formats.
- 9:30:23And what we're going to say on the
- 9:30:25format is you can define it in here
- 9:30:31if you don't care
- 9:30:34about passing it along.
- 9:30:38Also, also add in output parser
- 9:30:43which we've already covered, right?
- 9:30:47So let me give you a few of these
- 9:30:49examples. What is the role or identity
- 9:30:50of the AI agents? And obviously like you
- 9:30:53shouldn't include all my all these notes
- 9:30:55in the AI agent itself. Like don't have
- 9:30:58this and then write what is next. You'll
- 9:31:01want to have this on its own. So for
- 9:31:03this example, right, and I'll just put
- 9:31:05maybe like a line so that way you know
- 9:31:09are an AI agent
- 9:31:12that helps craft
- 9:31:16viral
- 9:31:19posts based on YouTube videos. All
- 9:31:24right, now let's think about the next
- 9:31:27thing. So, what tools do we have
- 9:31:29available?
- 9:31:32Let's say we added in a tool, and this
- 9:31:34is all hypothetical. Um, but let's say
- 9:31:36we have a
- 9:31:38um let me actually think about what
- 9:31:40tools.
- 9:31:43All right. Next. How do you want to
- 9:31:45handle errors about the agent or the
- 9:31:46tool? I haven't really thought about the
- 9:31:48tool that I want to use for this
- 9:31:50scenario. So, we'll leave that out over
- 9:31:52here. What tone? So, we're going to say
- 9:31:56use an excited tone
- 9:32:00tone as this post should be for people
- 9:32:08who are interested
- 9:32:11in evolving AI technologies,
- 9:32:18the rules and restrictions that you have
- 9:32:20in place. This also guardrails. So, a
- 9:32:22lot of this is impactful if you have
- 9:32:25like a chat trigger and people can
- 9:32:27message,
- 9:32:30but
- 9:32:31you know, kind of my rules and
- 9:32:33restrictions all have to think about
- 9:32:35like what do I want to have as a
- 9:32:37restriction for an agent that drives a
- 9:32:40viral LinkedIn post based off of YouTube
- 9:32:42videos. So, um
- 9:32:45it's pretty self-explanatory,
- 9:32:49but well, I actually have some ideas.
- 9:32:52We'll say like do not
- 9:32:55include the YouTube URL
- 9:33:00in the social media post
- 9:33:03media post text.
- 9:33:08That could be just one example, right?
- 9:33:10Obviously, there's more things we could
- 9:33:11do. shot prompting examples. So, I'll
- 9:33:15just say here are some examples
- 9:33:19of working
- 9:33:21posts that you should
- 9:33:24should emulate. I would say like one
- 9:33:28example, two example. Obviously, you're
- 9:33:31filling this out as you go. Three
- 9:33:34example.
- 9:33:36Next, additional context. You know, I'd
- 9:33:38put over here a viral post has a hook
- 9:33:42as a hook like XYZ.
- 9:33:47Then I'd say
- 9:33:51a
- 9:33:52post asking someone to comment.
- 9:33:57So this is just more information, right,
- 9:33:59that you want to feed into your large
- 9:34:02language model or your AI agent in this
- 9:34:04case to give you what you want. format
- 9:34:06it, define it here, and then you could
- 9:34:08also add an output parser. I' I'd
- 9:34:11obviously want to put an output parser,
- 9:34:12but I'm also say the final results
- 9:34:17should only
- 9:34:19include the text. All right. So,
- 9:34:24what tools do we have available? I don't
- 9:34:27Let me think of a tool that we might be
- 9:34:28able to use on the side of things. Like,
- 9:34:30this probably wasn't the best for a
- 9:34:32tool. um you know obviously there's
- 9:34:35things that we could utilize.
- 9:34:38However, on the tool side because we
- 9:34:41don't really need any up-to-date
- 9:34:42information. This is pretty
- 9:34:44straightforward like
- 9:34:47so in this case you won't need a tool in
- 9:34:49my personal opinion. However, if you
- 9:34:52have a tool that you would want, you
- 9:34:53would define it like use tool X to
- 9:34:59achieve Y.
- 9:35:02And then over here we're going to handle
- 9:35:03both uh the errors. So like if tool X
- 9:35:08does not work
- 9:35:11right and then I would say if you cannot
- 9:35:14write a post cannot write this post
- 9:35:18or aren't confident
- 9:35:23about this post
- 9:35:25right
- 9:35:30this will not work
- 9:35:33redo I don't know you have some type of
- 9:35:35escape cost. So to break all these
- 9:35:37sections up of what takes like a a
- 9:35:40really good system message first what is
- 9:35:42the role of uh the AI agent in this case
- 9:35:46right helping craft a viral LinkedIn
- 9:35:48post what tools do you have available in
- 9:35:50this case I didn't set up any tools but
- 9:35:52you would define it right over here and
- 9:35:54again we'll talk about this in the tool
- 9:35:56section
- 9:35:58how do you want to handle errors in both
- 9:35:59as agent as as well as the tool so if
- 9:36:02this tool does not work do why do you
- 9:36:04cannot write this post or aren't
- 9:36:06confident about the post, write
- 9:36:07something. So that way you kind of have
- 9:36:08some sort of fallback. What tone
- 9:36:11response should be the agent, right? So
- 9:36:13like what tone are you going to use?
- 9:36:15That's defined there. What rules and
- 9:36:18restrictions should be in place? This
- 9:36:20example include YouTube URL. Also, you
- 9:36:23can use guardrails. Um another example
- 9:36:26would be like imagine you have a runner
- 9:36:28AI agent that just focuses on short
- 9:36:30distances. Well, someone should not be
- 9:36:32asking that agent uh questions about
- 9:36:34ultramarathons. So someone's running a
- 9:36:355K. Uh so that would be an example over
- 9:36:38here like I just talked about do not
- 9:36:39include URL. You put your examples in
- 9:36:41over here which really um decreases the
- 9:36:44hallucinations. You put an additional
- 9:36:47context. So what other information
- 9:36:48should the AI agent know um that is not
- 9:36:51available all over here and won't be
- 9:36:53available in that user message.
- 9:36:56And then lastly, how do you want to
- 9:36:58specifically format your prompt? So
- 9:37:01we'll just leave this one like that. And
- 9:37:03that is an example of a a pretty good
- 9:37:06basic understanding of writing a good
- 9:37:08prompt. So I'll just put like this
- 9:37:11because you guys are going to be using
- 9:37:12these um as notes. So like write a
- 9:37:15prompt and obviously like I would
- 9:37:18recommend that you just practice and
- 9:37:20write some good prompts because it is
- 9:37:22something that it takes a while to
- 9:37:24ingrain all these individual elements.
- 9:37:25And every prompt doesn't need to have
- 9:37:28every single element that we just
- 9:37:30covered. Like depends scenario to
- 9:37:32scenario, but that is essentially
- 9:37:35looking at the prompt side of things.
- 9:37:38All right. Now, let's jump into some of
- 9:37:40the different settings that are
- 9:37:41available. Now, settings are going to
- 9:37:43change slightly LM to LM, but we're just
- 9:37:46going to go over here. We're going to
- 9:37:48grab an AI agent and we're going to talk
- 9:37:50through some of these. And uh yeah,
- 9:37:52let's get started. So, we have our AI
- 9:37:55agent. All we're going to care about is
- 9:37:56just adding in OpenAI for now and choose
- 9:38:02your account. Just going to choose GPT5
- 9:38:05Mini over here. Although I don't believe
- 9:38:06it actually matters. Um, and you can see
- 9:38:09over here we have different options. So,
- 9:38:11we have quite a lot of different
- 9:38:12options. I'm not going to cover every
- 9:38:15single one of these. So, some of these
- 9:38:18are good if you're generating text. Some
- 9:38:20of these are good um
- 9:38:23if you want to have slightly different
- 9:38:25results. I think like if you believe in
- 9:38:27like the 8020 principle really 80 to 90%
- 9:38:31of your results your agent are going to
- 9:38:33matter based off of this prompt in the
- 9:38:36system message and um probably like 5
- 9:38:4110% really focus on these different
- 9:38:44options. So let's talk about some of
- 9:38:46them. the frequency penalty over here.
- 9:38:49This is a discouragement if the model
- 9:38:51uses the same phrases over and over
- 9:38:54again. And that's very similar to like a
- 9:38:56presence penalty as well. Uh so you can
- 9:38:59see a presence penalty on there. So
- 9:39:00that's a penalty for reusing the same
- 9:39:03word over and over again. Uh next you
- 9:39:07have something called timeout. Now this
- 9:39:08one is actually pretty powerful. So this
- 9:39:11is like how long you should wait for a
- 9:39:13response from OpenAI and this is I
- 9:39:16believe in milliseconds if I remember
- 9:39:17correctly. So like this one I would say
- 9:39:20matters a lot more than penalties over
- 9:39:22here. Again just depends on your use
- 9:39:24case. Like if you're doing some sort of
- 9:39:26writing these matter like timeout I
- 9:39:29think is pretty important over there.
- 9:39:32Another thing that's important too is
- 9:39:34the maximum number of tokens. So on this
- 9:39:37side of things you can see it says
- 9:39:38maximum number of tokens to generate in
- 9:39:40completion for models that have a
- 9:39:41context of 2048 tokens except the newest
- 9:39:44models which supports 32768.
- 9:39:46So that is also important negative one
- 9:39:49means this does not matter. Um but if
- 9:39:51you want to set hard limits if you're on
- 9:39:53a specific budget or you know like it
- 9:39:55should not send a response that's a
- 9:39:57certain length. I think this one matters
- 9:39:59quite a bit. uh you have something
- 9:40:01called the sampling temperature also
- 9:40:03over here and um that's kind of the
- 9:40:05randomness associated with it. Um then
- 9:40:08you have uh where is this one at
- 9:40:12top P which is very similar and you can
- 9:40:15see it says control diversity 0.5 and so
- 9:40:18we generally recommend altering this or
- 9:40:19temperature but not both. But here's the
- 9:40:21thing I want to say GPT5 got rid of
- 9:40:23sampling temperature. So like this
- 9:40:26doesn't even really matter. I don't know
- 9:40:27if top P has been removed as well. And I
- 9:40:31can see a lot more of these. Like
- 9:40:32there's a lot of different options over
- 9:40:34here. I don't know every single one of
- 9:40:35these. Um but some of these over here I
- 9:40:38don't think are going to really matter
- 9:40:39too much here in the long term. So I
- 9:40:42just want to cover a few of these like I
- 9:40:44think maximum number of tokens I think
- 9:40:46that's important. I think your timeout
- 9:40:49is important. I'd focus more on those
- 9:40:51than some of the other stuff that I have
- 9:40:53specifically shared. We're going to
- 9:40:55cover the responses API here in a
- 9:40:56second. Obviously, this is just uh very
- 9:40:59small section of the settings. And uh
- 9:41:02yeah, so up next we're going to talk
- 9:41:04about tool calling and then we'll cover
- 9:41:07responses because perplexity is going to
- 9:41:09be a tool that we add in. So let's jump
- 9:41:12into there. So we've already talked
- 9:41:14about kind of how you can prompt an AI
- 9:41:17agent. I just want to show you the very
- 9:41:19basics behind tools. So we can go into a
- 9:41:21tool and like click over here and we can
- 9:41:25have our agent do some sort of action.
- 9:41:28So one of the basic examples is we could
- 9:41:31go and update a spreadsheet or we can go
- 9:41:34and send an email. So if I go over here,
- 9:41:36you can see there's a Gmail tool. And
- 9:41:39essentially what we can do if you set up
- 9:41:40your right Gmail account, you could send
- 9:41:43a message, you can delete a message, you
- 9:41:45can reply, you could you have a lot of
- 9:41:47different options um that your AI agent
- 9:41:49can act based around. So you could have
- 9:41:51a message to your AI agent and say,
- 9:41:53"Hey, send an email to X person about
- 9:41:56something." And let me show you how we
- 9:41:58could do that. Let me grab our chat
- 9:42:00trigger, which I believe is like way up
- 9:42:02over here. Drag that all the way down
- 9:42:05here.
- 9:42:07and uh let's build out something basic.
- 9:42:09So, we have our connected chat trigger
- 9:42:12over there into our AI agent. And great,
- 9:42:15next thing we have our tool. And here's
- 9:42:19something that kind of trips people up
- 9:42:20initially. It's like, how do I go and
- 9:42:24automatically populate information in
- 9:42:27here? Well, if you see this over here,
- 9:42:29it says let the model define this
- 9:42:30parameter. So, you could actually let
- 9:42:33the model choose, okay, who do I want to
- 9:42:35send the email to? You can also set the
- 9:42:38subject automatically and the message
- 9:42:41automatically if you prompt it
- 9:42:42correctly.
- 9:42:44You can add another options as well. So
- 9:42:46like I want to turn off the nan
- 9:42:47attribution by default. You can let the
- 9:42:49model choose this parameter as as well
- 9:42:51as if you want. Um so there's your Gmail
- 9:42:54tool. You should also update the
- 9:42:56description. So I'm going to say send
- 9:42:58instead of send a message in Gmail. Like
- 9:43:00I think that's fine. Sometimes certain
- 9:43:02tools are a little bit ambiguous and the
- 9:43:04model won't know what to do. Uh but this
- 9:43:07is just sending and you can obviously
- 9:43:09like there's a lot of things that you
- 9:43:10could do based around this and we
- 9:43:12already covered a lot about Gmail but
- 9:43:14all those are applicable to your AI
- 9:43:16agent now which is really really
- 9:43:18powerful if you if you think about it.
- 9:43:20Um we've set up Google and obviously we
- 9:43:22don't have to change our credentials
- 9:43:23over here and now we can have an AI
- 9:43:25agent automatically send emails. That's
- 9:43:27pretty crazy. So to do this, let's go
- 9:43:30over here and I'm going to say send an
- 9:43:34email to Ryan Nolan [email protected].
- 9:43:43So use the subject
- 9:43:47live AI agent.
- 9:43:50I'm going to also say over here,
- 9:43:55right in the body,
- 9:43:59this was live from a YouTube video.
- 9:44:05We're going to send all that over.
- 9:44:08And I actually have an error. And the
- 9:44:10error is because I actually didn't set a
- 9:44:11chat model. Oh, man. All right. We're
- 9:44:14going to go and add in uh Ladden Sonnet.
- 9:44:17So, we'll go anthropic.
- 9:44:20It's cool. We have that over here. I'm
- 9:44:22going to close that out. We're going to
- 9:44:23try this again.
- 9:44:27And you know what? Of course, I uh Cool.
- 9:44:31We're going to go back to our editor.
- 9:44:32We're going to send this again.
- 9:44:36Now it's working.
- 9:44:38You can see everything that's going on.
- 9:44:42And let's see if we actually got that
- 9:44:43email or not. So, I'm going load up my
- 9:44:45Gmail account.
- 9:44:48And I'm going to just go over here.
- 9:44:51Check it out. Live AI agent. This was a
- 9:44:54live from a YouTube video. That's pretty
- 9:44:57sweet.
- 9:45:00So, you know, we could going back over
- 9:45:03here. There's a lot of other tools. We
- 9:45:06can update a spreadsheet as well. So,
- 9:45:08I'm going to just duplicate this.
- 9:45:12Show you a spreadsheet. And I can
- 9:45:14literally like there's so many tools in
- 9:45:15the end you could literally spend days
- 9:45:17just exploring all these tools to no
- 9:45:20end. And oh to mention as well like you
- 9:45:22can add in multiple tools from some
- 9:45:24things. So like this sends a message in
- 9:45:25Gmail and I would also recommend that
- 9:45:29you like define these. So like send a
- 9:45:31message in Gmail. Guess I have that
- 9:45:34somewhere else. Oh, you know where it's
- 9:45:36at? I already have this here. All right,
- 9:45:37that makes sense. Why? Um you can
- 9:45:40duplicate this, right?
- 9:45:44And then instead of send a message,
- 9:45:46maybe we want to create a draft
- 9:45:51draft in Gmail and resource. You just go
- 9:45:54over here to draft and now you have two
- 9:45:56Gmail tools over here for this AI agent.
- 9:45:59One sends a message, one creates a
- 9:46:01draft. And obviously there's a lot of
- 9:46:03different options in Gmail and you can
- 9:46:04keep building them out. One thing to
- 9:46:06mention though, when you add a lot of
- 9:46:09tools in here, it can confuse an AI
- 9:46:12agent. So, think about what you want to
- 9:46:15add in if it's 100% necessary or you
- 9:46:17want to add it to another AI agent
- 9:46:19because you don't want to overload it.
- 9:46:20And like you think, oh, I can send 100
- 9:46:22tools to this AI agent. Like, come on.
- 9:46:25Don't don't do that. Um, be uh specific
- 9:46:29as much as possible. Like, do I need
- 9:46:31this or not? Just to show you
- 9:46:33spreadsheet really quick. Let's say like
- 9:46:34we want to add in a new row. Whoops. So
- 9:46:37we want to add in a new row into a
- 9:46:39spreadsheet. So I'm going to do this
- 9:46:41really quick. I'm going to go find
- 9:46:43spreadsheets.
- 9:46:45Should be sheets, not spreadsheets. So
- 9:46:47you can see there's a Google Sheets tool
- 9:46:50and just add in your account that you
- 9:46:52want resource. Instead of get rows, I'm
- 9:46:55going to say uh append row. I'm going
- 9:46:58add in a documents
- 9:47:00and I'm going to go into this sheet
- 9:47:02five. I want to say that was the one
- 9:47:04that we were doing yesterday. Cool. So,
- 9:47:06we're going to add in an expense
- 9:47:09and be explicit. So, tool description,
- 9:47:13append a row in Google Sheets.
- 9:47:16This is when someone asks
- 9:47:19to add an expense. Great. So, I'm going
- 9:47:23to prompt it and say add an expense of
- 9:47:25100. And it's going to go through and do
- 9:47:27that. So, if I open the chat, I'm going
- 9:47:29to clear this one out. I'm going say add
- 9:47:32an expense
- 9:47:33of and what's one that we haven't
- 9:47:35covered yet? 51 100 12. Um, so let's add
- 9:47:39in expense of 75. And obviously like I
- 9:47:43didn't write a great prompt
- 9:47:45by any means. And I actually have an
- 9:47:48error over here.
- 9:47:51So
- 9:47:53what is my specific error? It says
- 9:47:55problem nan at least one value has to be
- 9:47:57sent. And if you go over here, you can
- 9:47:59see values as send. I never actually
- 9:48:01explicitly put something over here.
- 9:48:03Again, an error that most people make.
- 9:48:05So, I didn't mean to make that error,
- 9:48:06but that's okay. We will run it again.
- 9:48:13It's good that you guys see me make
- 9:48:15because everyone's human like no one's
- 9:48:17going to get things off the bat 100%.
- 9:48:19You can see we have the green check
- 9:48:20mark. It's running still. Says workflow
- 9:48:23was successful. Go back over here. we
- 9:48:26have 75 automatically added into our
- 9:48:28spreadsheet. Again, there is so many
- 9:48:30tools
- 9:48:32like and we'll we'll be covering stuff
- 9:48:34as well when we get into vector
- 9:48:35databases a little bit later. Um, so you
- 9:48:38can even have like AI agents as tools,
- 9:48:40generate an action plan, execute it, can
- 9:48:42use external tools, you can have
- 9:48:44workflows as tools, you can apply for
- 9:48:47web scraping, which um really like
- 9:48:51there's just so much over here. It's
- 9:48:53there's just too much to to cover in one
- 9:48:56video. However, you can think of like a
- 9:48:58lot of different APIs and services. You
- 9:49:00can even add in external APIs over here.
- 9:49:03If you go to HTTP, look at this. Makes
- 9:49:07an HTTP request and returns a response
- 9:49:09data. So,
- 9:49:11uh, I'm recording this actually after
- 9:49:12the HTTP section, but you'll learn this
- 9:49:16already a little bit earlier on in the
- 9:49:17course and I don't know if I'll put this
- 9:49:20specifically in that HTTP request aside.
- 9:49:23I might however that which is pretty
- 9:49:27amazing. All right. So, we covered uh
- 9:49:30tools now.
- 9:49:32And uh next thing we should talk about
- 9:49:35is essentially how do you get new data?
- 9:49:38Because we talked about that issue where
- 9:49:41it's like, man, this is great and all,
- 9:49:44but I I can't grab up-to-date
- 9:49:45information. So, we'll go over here and
- 9:49:47say how to add up-to-date information.
- 9:49:51How to add up toate information.
- 9:49:55There's like there's a few different
- 9:49:57ways, a few different approaches.
- 9:50:00We're going to go here very basic. We're
- 9:50:02go to our AI agent. I'm just going to
- 9:50:04define this below. H actually we'll do a
- 9:50:07chat tracker and we'll just keep
- 9:50:10expanding this on.
- 9:50:12So, one thing that's really nice is
- 9:50:14OpenAI has a responses API and that
- 9:50:18allows you to get real-time information.
- 9:50:20So, make sure you're on a newer model.
- 9:50:23And I should just delete this open AAI
- 9:50:24account 3. That was for old client. But
- 9:50:27we'll go over here to GPT5 mini. And you
- 9:50:30can see by default we have responses
- 9:50:31API. And there is built-in tools because
- 9:50:34of the responses API. So what we can do
- 9:50:37is add in web search. And you'll see it
- 9:50:40says med search context size. So high
- 9:50:42level guidance for the amount of context
- 9:50:43window space to use for the search. I
- 9:50:45would probably just recommend keeping
- 9:50:46this at medium. If you're conscious
- 9:50:48about price, do low. If you don't care,
- 9:50:51which might overload your context
- 9:50:52window, put high. I'm just going to keep
- 9:50:54in medium. And we can ask a question.
- 9:50:58People always love the Pop Tart Bowl.
- 9:51:00So, believe that was recently. Who won
- 9:51:03the Pop Tart
- 9:51:06Bowl in 2025? And this is for college
- 9:51:09football. We'll throw this in over here.
- 9:51:12And normally this wouldn't get the
- 9:51:14answer because GPT5 was not trained up
- 9:51:17through data um in December 2025, but
- 9:51:20since we're using this specific tool, it
- 9:51:23says BYU won the 2025 Pop-Tarts Bowl and
- 9:51:26has a link over to CBS Sports. Uh so you
- 9:51:29can click on that and double check that
- 9:51:31piece of information. So that's one way
- 9:51:33if you just want to search the web in
- 9:51:34general. However, there's other things
- 9:51:37as well. So you can actually define a
- 9:51:39domain if you want to search that. So,
- 9:51:41let's say I just want to search ESPN for
- 9:51:43college football scores. You can go to
- 9:51:45ESPN.com and say that's like the only
- 9:51:47one available. But, as I mentioned, you
- 9:51:49could throw in multiple domains if you
- 9:51:51want. Uh, so if there's multiple
- 9:51:53websites you want to scrape to get
- 9:51:54uptoate information, you can put that
- 9:51:55in. So, you can see web search. Uh, you
- 9:51:58can also specify what country. I could
- 9:52:00go over here and say US. You could
- 9:52:03specify what city as well as region. And
- 9:52:05this is good if you want to do research
- 9:52:07on businesses. So maybe you don't want
- 9:52:09to have the specific domain over here,
- 9:52:11but you want to search a business that's
- 9:52:14maybe in Orlando, Florida or Sarasota,
- 9:52:16Florida or Miami, Florida, and you could
- 9:52:18put all this in over here and just
- 9:52:20search for a local business news because
- 9:52:22you want to do some research for a
- 9:52:24potential customer and have stuff to
- 9:52:26bring to a cult. So you could actually
- 9:52:27fill out all this information over here.
- 9:52:30And I find it pretty helpful on that
- 9:52:32side of things. So that is one way that
- 9:52:34you could get up-to-date information.
- 9:52:36Another way that you could do this is
- 9:52:38through a perplexity tool. So you're
- 9:52:40going to actually have to set up a
- 9:52:42perplexity API key. And honestly, it's
- 9:52:44really easy. It says interact with the
- 9:52:45pro complexity API to generate AI
- 9:52:47response with citations. So why
- 9:52:50perplexity is nice is it'll actually
- 9:52:52give you links to real-time information.
- 9:52:55So you can think of this as like a
- 9:52:56mixture of Google search with large
- 9:52:59language model. And it's it's
- 9:53:01phenomenal. So, just to show you, I'm
- 9:53:03going to load up Perplexity on a tab to
- 9:53:06show you what this kind of looks like.
- 9:53:09And uh here you go. So, take a look at
- 9:53:13this. You can ask the same question and
- 9:53:14it'll get answers. So, we're going to
- 9:53:17say like, I don't know, who won the
- 9:53:21Pop-Tarts
- 9:53:24in 2025?
- 9:53:27And you'll see it searches the web and
- 9:53:29literally 10 sources of information. So
- 9:53:32you could attach this as a tool directly
- 9:53:35into our AI agent
- 9:53:38directly in our AI agent over here to
- 9:53:40get real-time information. So it's kind
- 9:53:42of overkill if you use both of these
- 9:53:44over here. So I just recommend one or
- 9:53:46the other. Like if you want to just have
- 9:53:47everything natively directly in the
- 9:53:48OpenAI ecosystem, you know, use this.
- 9:53:51However, if you're going to use another
- 9:53:52model that obviously won't have access
- 9:53:54to the OpenAI responses, I would just
- 9:53:56recommend use perplexity.
- 9:53:58You can obviously message the model. I
- 9:54:00would set a a description of why you're
- 9:54:03using perplexity. The text you can
- 9:54:06define that over here as well. So,
- 9:54:08defined automatically by the model. And
- 9:54:10I would just also mention over here like
- 9:54:13in our where's our system message
- 9:54:17use perplexity
- 9:54:22to research
- 9:54:24any related news
- 9:54:27in 2025.
- 9:54:29Obviously this is very short but I would
- 9:54:31just recommend that you fill out this
- 9:54:32information really go in depth of like
- 9:54:34why should your AI agent use perplexity
- 9:54:37as a tool like give that exact scenario
- 9:54:41now you think it's going to be possible
- 9:54:42and then uh yeah so there's perplexity
- 9:54:45and honestly all you have to do is set
- 9:54:46up the perplexity API takes two seconds
- 9:54:49so I'm going to go over here and say
- 9:54:51perplexity
- 9:54:55and you go to the Perplexity API
- 9:54:57platform obviously they have a lot of
- 9:54:59things over here and you just have to
- 9:55:01set up your API key. You should be very
- 9:55:03familiar with how to set up an API key
- 9:55:05as of now with uh all the stuff I've
- 9:55:07taught you guys. And just to go back
- 9:55:10into any and like if we go into
- 9:55:12Perplexity credentials,
- 9:55:14you can see it's literally just an API
- 9:55:15key. Um couldn't connect with these
- 9:55:17settings. So I actually need to update
- 9:55:19my Perplexity account. I guess I deleted
- 9:55:21my key. Add some time and you know we'll
- 9:55:24have to update that. But regardless, all
- 9:55:25you have to do is throw in an API key
- 9:55:27and you're good to go with perplexity.
- 9:55:29So that is up to date information
- 9:55:33responses perplexity. The other tool
- 9:55:35that people use and I've never used it,
- 9:55:37but it's called Tavi. Um,
- 9:55:40where is it?
- 9:55:42Let me find it really fast.
- 9:55:47Thought it was called Tavi.
- 9:55:50How do I can't find it?
- 9:55:54I don't know why I can't find it right
- 9:55:55now, but I believe it's tavly to get up
- 9:55:56to date information.
- 9:55:58Um, so that's another one over here.
- 9:56:00Maybe it's a custom HTTP request right
- 9:56:02now. Again, I just haven't messed with
- 9:56:04it, but I just wanted to call that out.
- 9:56:06All right. And, uh, going back over
- 9:56:08here. Lastly, just really quickly wanted
- 9:56:11to talk about memory before we jump into
- 9:56:14two or three examples. Memory can be a
- 9:56:16little bit complicated in any end. And
- 9:56:19all I'm specifically talking about
- 9:56:20memory is like the back and forth
- 9:56:22conversation. Uh, so you can see chat
- 9:56:24message received with the AI agent. I'm
- 9:56:26just going to show you simple memory
- 9:56:27really fast. I might actually expand out
- 9:56:30and talk about a little bit more
- 9:56:31complicated memory another time either
- 9:56:34in this course or on the YouTube
- 9:56:35channel. For sure on the YouTube
- 9:56:36channel. Um, but let me clear this out
- 9:56:39and we'll just grab a fresh AI agent. So
- 9:56:43if you want to remember all these past
- 9:56:44conversations with an AI agent, you're
- 9:56:47going to have to set up memory. And if
- 9:56:50you click over here, the quickest way to
- 9:56:52do this is simple memory. So it says
- 9:56:53stores any end memory. No credentials
- 9:56:55are required. You have credentials. You
- 9:56:57would use one of these over here.
- 9:56:59Honestly, the most popular ones that I
- 9:57:00see people use is MongoDB as well as
- 9:57:04Postgress. That does deal with external
- 9:57:06databases though, and it's a little bit
- 9:57:08complicated. So it's not going to be in
- 9:57:10this section. Again, it's probably going
- 9:57:11to be a little bit later on in this
- 9:57:12course or it's just another video. Uh,
- 9:57:14but simple memory allows you to just
- 9:57:16save those conversations back and forth
- 9:57:18over here. And just to show you like if
- 9:57:22I asked the question. So like what is
- 9:57:2630 times 11? Just 3:30. It's quick math.
- 9:57:31You don't need it. But we'll go over
- 9:57:34here and go into Where's my Open AI?
- 9:57:37There. Cool. We have OpenAI.
- 9:57:40go to account one GPT5
- 9:57:43mini
- 9:57:45great and uh we'll just ask this
- 9:57:48question
- 9:57:52and you can see by default we have
- 9:57:54memory of five but
- 9:57:57I'm going to say now I did 20 it's going
- 9:58:01to know that it already said 330 now
- 9:58:04it's going to say 350. So, if you want
- 9:58:06to have a conversation back and forth
- 9:58:08with your chat, you need to add in
- 9:58:10simple memory over there. Man, I know
- 9:58:12this is a long section. I think like
- 9:58:14we're well over an hour and we still
- 9:58:16have to do our two to three examples
- 9:58:18which I'll think about before we uh
- 9:58:21quickly jump into those. But to kind of
- 9:58:23just recap everything that we've done is
- 9:58:26like this is just a a very very long
- 9:58:30section for the course and it's really
- 9:58:33critical that you um memorize these
- 9:58:35components. So not everything in detail
- 9:58:38but kind of just you know where to go.
- 9:58:40So you have two different types of
- 9:58:41prompts. So you have a system prompt as
- 9:58:43well as the user prompt. You can think
- 9:58:44of the system prompt as something that's
- 9:58:45not going to change unless want to tweak
- 9:58:48it and make it a little bit better.
- 9:58:50Whereas the user prompt will change
- 9:58:51every time you run a specific model.
- 9:58:54Once you ask something a little bit
- 9:58:55slightly different. Uh next you want to
- 9:58:58include as in there examples. Examples
- 9:59:01is one way to stop hallucinations. It
- 9:59:03also provides some context on like how
- 9:59:06you are you expecting specific
- 9:59:08responses. If you want to get a specific
- 9:59:10response so that way you can keep
- 9:59:12passing it forward with the
- 9:59:13orchestration that you're building out
- 9:59:15structured output uh parser, you're
- 9:59:17going to have to set up some example
- 9:59:18JSON. But really pairing that with your
- 9:59:21examples that you're going to provide
- 9:59:22with fus comps is going to help a ton uh
- 9:59:25and really stop incorrect results and
- 9:59:28hallucinations.
- 9:59:29You can add in a lot of things. So we
- 9:59:32talked about adding in your main model,
- 9:59:34your fallback model, memory as well as a
- 9:59:36tool and output parser. So, um, you can
- 9:59:39al also have multiple tools, not just
- 9:59:41one, but I just showed that over there.
- 9:59:43Typically, I want to set one task per
- 9:59:45agent. Obviously, it's like
- 9:59:47complimentary tasks. That's perfectly
- 9:59:49fine. But I find a lot of people will
- 9:59:50stuff too many tasks within the context
- 9:59:52window of an AI agent and it gets
- 9:59:54confused or they just send a bunch of
- 9:59:56text. And really, you should build out a
- 9:59:58rag application for that. We'll talk
- 10:00:00about rag a little bit later.
- 10:00:02You can kind of chain together multiple
- 10:00:04agents to get results. So, this was just
- 10:00:07an example of that. Over there, we
- 10:00:09covered hallucinations, which you know,
- 10:00:11hallucination is that know-it-all person
- 10:00:13in class that seems they think they know
- 10:00:15everything and they really don't. And
- 10:00:17hallucinations, you know, they're part
- 10:00:18of the process with AI. You just have to
- 10:00:21be as careful as possible and try to
- 10:00:22limit hallucinations as much as
- 10:00:24possible. I showed you how to write a
- 10:00:27prompt and the framework on it. So,
- 10:00:29first thing I always define is like
- 10:00:30what's the role of the AI agent? If
- 10:00:33we're using any tools, what tools do we
- 10:00:35have available? and why do we want to
- 10:00:37use that tool? How do we handle errors
- 10:00:39within the AI agent as well as those
- 10:00:40external tools that we've provided? What
- 10:00:43tone of response should we have back?
- 10:00:45What rules and restrictions should we
- 10:00:47have in place? Obviously, there's ways
- 10:00:49to restrict outside of the AI agent as
- 10:00:51well, such as guardrails, but you can do
- 10:00:52that directly in over here. Uh shop
- 10:00:55prompting we've covered already so many
- 10:00:56different times. Hopefully, you
- 10:00:57understand that. additional context like
- 10:00:59what other information should this AI
- 10:01:01agent know to get the exact result and
- 10:01:03how do you want to format uh your final
- 10:01:05results as well. So make sure you
- 10:01:07include those when possible and when
- 10:01:09applicable. We covered tools. There's
- 10:01:11hundreds of tools available in a
- 10:01:13thousands if you really include all the
- 10:01:15HTTP requests that you could use for
- 10:01:18external APIs. Be super explicit. Why is
- 10:01:20this tool used and what should it do
- 10:01:23specifically? Make sure you put that in
- 10:01:25the prompt as well as the tool
- 10:01:26description. You can click that star and
- 10:01:29it'll automatically populate things. It
- 10:01:31says defined automatically by the model.
- 10:01:33Um up-to-date information really tavly
- 10:01:36perplexity and open AI responses. Use
- 10:01:38one of those three if you need to get
- 10:01:40information. Remember knowledge cutoff
- 10:01:42dates. A lot of models aren't even
- 10:01:43trained on 2025 data or if they're
- 10:01:45trained like halfway through the year.
- 10:01:46So if you need real-time information or
- 10:01:48near real-time information, you have to
- 10:01:50specifically do that. If you want to
- 10:01:52have messages kind of saved, set up a
- 10:01:54simple memory. And you can change this
- 10:01:56like the context window length. So how
- 10:01:58many pass interaction the model receives
- 10:02:00as context and uh look up the pricing
- 10:02:03for the models. You go to their API
- 10:02:04you'll see all the specs as well like um
- 10:02:07the first part is your input. How many
- 10:02:08what are you sending to the model and
- 10:02:10then what is that specific output and
- 10:02:12typically output is going to be way more
- 10:02:14expensive than your input and every
- 10:02:17model has different limits on how much
- 10:02:19context you can include and we could we
- 10:02:21could really turn this into a three four
- 10:02:22hour video. I'm trying to condense a ton
- 10:02:24of knowledge all at once, but hopefully
- 10:02:26you have found uh this section valuable.
- 10:02:29So, we have two different examples to go
- 10:02:30through in uh this section. Let's start
- 10:02:34with the first one, which is going to
- 10:02:35utilize multiple AI agents together. So,
- 10:02:38essentially what we want to do is have
- 10:02:41agent number one do a content
- 10:02:44summarizer. And there's going to be a
- 10:02:46better way to do this here in the
- 10:02:47future, but we're going to use our AI
- 10:02:49agent now for that. So you can like
- 10:02:52summarize this blog post in three
- 10:02:53points, bullet points of main ideas. And
- 10:02:56then the second agent is going to be a
- 10:02:58social media writer. So you can use
- 10:03:00tweets, you could use LinkedIn post, um,
- 10:03:02whatever social media account that you
- 10:03:04specifically want. Obviously this better
- 10:03:06than what I have over here. And we're
- 10:03:08going to input in agent ones summary. So
- 10:03:12uh, maybe we want to also have an edit
- 10:03:14set for the article. Edit set for the
- 10:03:17article. I want you to try this
- 10:03:19yourself. I think this is pretty
- 10:03:21self-explanatory.
- 10:03:23Um, obviously I'll I'll show you how to
- 10:03:24build it here in a second. So, pause the
- 10:03:26video. Three, two, one. Give it a shot
- 10:03:29for yourself and then uh we'll jump
- 10:03:31right into it. All right. So, let's uh
- 10:03:34build this out. First thing I want to
- 10:03:36make sure that we have is our manual
- 10:03:37trigger. And I just want to make sure I
- 10:03:39didn't use a manual trigger up here. I
- 10:03:41did. So, we're just going to drag this
- 10:03:43down.
- 10:03:45Great. So, we have our manual trigger.
- 10:03:47Going to zoom in a little bit. And the
- 10:03:49first thing I want to do is get our
- 10:03:50response API. So what we're going to
- 10:03:53have to do is set this up in OpenAI
- 10:03:55again. So let's grab an AI agent and
- 10:03:59have that over here. And also we need
- 10:04:01our edit set. So let's grab our edit
- 10:04:04set. We're actually going to paste our
- 10:04:06article over here on that side of
- 10:04:08things. And uh yeah, so we have our edit
- 10:04:12sets. Well, the article I'm going to
- 10:04:14grab on this side is this famous
- 10:04:16cricketer named Morani. It was also like
- 10:04:18a prince or something like that. I
- 10:04:20actually have this as a card. Um, it's
- 10:04:22from like 1902. I didn't even realize
- 10:04:24that there is this was built in 1897,
- 10:04:26which is kind of cool. So, we have that
- 10:04:29over here. We're going to throw that
- 10:04:32into our edit fields and we're going to
- 10:04:34say this is the article we want to
- 10:04:35summarize. Obviously, choose whatever
- 10:04:37article you want. I just felt like
- 10:04:38Wikipedia would be pretty easy to do.
- 10:04:40Uh, so we could just execute the step
- 10:04:42and we have our article. Nothing really
- 10:04:43too crazy there. Then, we're going to
- 10:04:45use our chat model. Let's do OpenAI
- 10:04:48because we're going to use the OpenAI
- 10:04:49responses for this use case. We can see
- 10:04:52responses is available. So add a
- 10:04:54built-in tool. We're going to do web
- 10:04:55search select and we're going to do a
- 10:04:59web search allowed domains. Um we're
- 10:05:00going to actually paste this in over
- 10:05:02here in a second. Um so what we have
- 10:05:05over here is this. We have that attached
- 10:05:07into our AI agent. You can see the
- 10:05:09article and uh what I can do is just
- 10:05:11paste this in right there. Awesome. So
- 10:05:14we have that. Obviously, we want to
- 10:05:16change our model. So, I'm going to go
- 10:05:17into GPT5 Mini. And
- 10:05:22so, now what we're going to do is use
- 10:05:24this terrible prompt. Obviously, we'll
- 10:05:25make this a little bit better.
- 10:05:28And uh we're going to go and change this
- 10:05:31to define below. I'm going to just put
- 10:05:32this article over here again just in
- 10:05:34case. We're going to say article this.
- 10:05:38And then what we're going to do is build
- 10:05:40out our system prompt. So go over here,
- 10:05:43add in a system message,
- 10:05:46and we're going to just write this off
- 10:05:48over here. So let me make this a little
- 10:05:50bit larger
- 10:05:52like that. And we're saying summarize
- 10:05:55this blog post in three points. So we're
- 10:05:58going to start off as you are a
- 10:06:01blog post summarizer.
- 10:06:05The goal is to write
- 10:06:10three key points
- 10:06:14about an article.
- 10:06:17Beise
- 10:06:21or have an escape. If you cannot
- 10:06:25write three key points, write as many as
- 10:06:30possible.
- 10:06:32Right.
- 10:06:35One or two.
- 10:06:39Right. Zero, one or two in
- 10:06:47the other
- 10:06:49points
- 10:06:51state
- 10:06:54no available
- 10:06:57to. All right. So, this is like a very
- 10:07:00basic one.
- 10:07:01It's kind of hard to give an example but
- 10:07:04um without the full article but I'll say
- 10:07:06over here example
- 10:07:10and uh WG Grace
- 10:07:14founded
- 10:07:17Bricket
- 10:07:20in we'll just put an exact date 1860. I
- 10:07:23don't know if that's accurate or not.
- 10:07:25Um,
- 10:07:27Babe Ruth
- 10:07:30was both a pitcher
- 10:07:34and
- 10:07:36hitter.
- 10:07:39Can just throw another one over here as
- 10:07:41an example. Um, but we have those over
- 10:07:44here as two examples.
- 10:07:46So, we have our example side of it. We
- 10:07:49have the task. We're going to add in the
- 10:07:51article as context. Um let's put over
- 10:07:54here the goal to write three coins about
- 10:07:56an article concise the article
- 10:08:02will be passed
- 10:08:04in the user message post
- 10:08:10and going back to our framework
- 10:08:12which we had where was our framework
- 10:08:18I want to say it was like one of these
- 10:08:20up over here
- 10:08:22right ro identity Hey, we covered that.
- 10:08:24What tools? We're not really using any
- 10:08:26tools. We're going to use the responses
- 10:08:28API. We talked about handling errors.
- 10:08:30Didn't really mention tone. We're just
- 10:08:31going to be pretty concise on that side
- 10:08:33of it. Um, we don't really have any
- 10:08:36restrictions on that side of things.
- 10:08:38Maybe we'll say do not include the
- 10:08:40article URL. Maybe we can put that over
- 10:08:42there. I put it some examples.
- 10:08:45It doesn't really need additional
- 10:08:46context. We talked about the format
- 10:08:48being three sentences or three quick
- 10:08:50things. And I'll just put over here
- 10:08:54um one extra thing
- 10:08:58examples
- 10:09:01do not include the article URL
- 10:09:08only output the three key points
- 10:09:13on
- 10:09:15I think that's fine. So let's test this
- 10:09:17out and see what happens.
- 10:09:19And we got a bad request,
- 10:09:23which is interesting. Invalid domain.
- 10:09:26Oh, you know what it is going to be? I
- 10:09:29know exactly what's happening. It's just
- 10:09:30asking for Wikipedia on this side of
- 10:09:33things because we're just searching
- 10:09:35Wikipedia. Um, that's fine. Do
- 10:09:38Wikipedia.
- 10:09:40Let's just go back over here to web
- 10:09:41search allowed domains. And you can see
- 10:09:43it says Wikipedia.org.
- 10:09:45Wikipedia.org.
- 10:09:48I wonder if we could also pass in the
- 10:09:50rangie. That's fine.
- 10:09:53Cool. So, let's test this again. This
- 10:09:55should work.
- 10:09:57I just put extra stuff. I didn't follow
- 10:09:59the instructions.
- 10:10:01All right. So, let's see what our
- 10:10:02results are. And you can see Indian
- 10:10:05cricketer played 15.
- 10:10:07It actually referenced the link. It did
- 10:10:09not listen to me. Oh, that's annoying.
- 10:10:13So, do not include the article URL. I
- 10:10:16did not listen to that.
- 10:10:19Obviously, I can try to fine-tune this
- 10:10:21prompt, but I still think this should be
- 10:10:23able to be used for our next AI agent.
- 10:10:25So, we're just going to skip into that.
- 10:10:28So, what we're going to do is build
- 10:10:29another agent. This is going to be our
- 10:10:31social media writer. So, I'd also re
- 10:10:34label our agents as well. So, this is
- 10:10:36content summarizer. Just get a good
- 10:10:38habit of that. I've haven't been really
- 10:10:40doing that throughout the series, but
- 10:10:42that's fine. Social media writer.
- 10:10:45Cool. And obviously like if I wanted to
- 10:10:47spend more time, I could write this to
- 10:10:48be a better prompt and tweak it so it
- 10:10:50doesn't actually paste out the URL. And
- 10:10:52it could be also a responses API. It
- 10:10:54forces you to have a URL based around
- 10:10:56that. That might be the case. We could
- 10:10:59always scrub it with another node or
- 10:11:02code node. It doesn't really matter too
- 10:11:03much. So I'm going to just lally keep
- 10:11:06this over here like this. Again,
- 10:11:09terrible prompt, but we'll change this
- 10:11:13up a little bit.
- 10:11:17We'll have to give some examples.
- 10:11:21I'm going to keep the do not include
- 10:11:22this.
- 10:11:24I'll put the three
- 10:11:27tweets. We're going to split this up in
- 10:11:30a second. All right. So
- 10:11:36you are a
- 10:11:40Twitterx
- 10:11:43tweet
- 10:11:46creator. Take these three key points and
- 10:11:48write three engaging tweets. Use emojis
- 10:11:50and hashtags. Example. And let's
- 10:11:57put an example over here. Now I'm not
- 10:12:00the best at Twitter. I don't have a
- 10:12:02large following. So obviously I haven't
- 10:12:03figured out the platform. We'll just
- 10:12:05give an example.
- 10:12:07Dr.
- 10:12:09WG Grace
- 10:12:12founded
- 10:12:14cricket. Do you know his amazing
- 10:12:19backstory?
- 10:12:23Read more. I don't know. We can do
- 10:12:25something like that. And then we could
- 10:12:27have another one over here.
- 10:12:30Most people know
- 10:12:34Babe Ruth
- 10:12:36as a hitter, but he was an excellent
- 10:12:42pitcher.
- 10:12:45Let's look at his unknown
- 10:12:50pitching
- 10:12:52career.
- 10:12:53Again, these are probably pretty poor,
- 10:12:55but you get the point. Put some examples
- 10:12:57over here. role additional information
- 10:13:00we have some examples do not include the
- 10:13:02article URL I'll put the three tweets
- 10:13:05and uh let's find over here
- 10:13:09and we should say like separate these
- 10:13:11tweets
- 10:13:12these tweets
- 10:13:17oh you know what we need to do we need
- 10:13:20to um actually put an output parser over
- 10:13:23here so the reason why I want to put
- 10:13:25output parser oh this is actually really
- 10:13:28All right, cool. Cool. So, check this
- 10:13:30out. What we're going to do
- 10:13:34is something like this.
- 10:13:37It probably won't make sense to you
- 10:13:39right away.
- 10:13:45And if you are paying attention, maybe
- 10:13:47it will.
- 10:13:49Not to discredit people who aren't
- 10:13:51paying attention because this is a
- 10:13:52little abstract.
- 10:13:54I don't even know if it'll work
- 10:13:55correctly. I think it will. All
- 10:13:58right.
- 10:14:03Go
- 10:14:05put over here
- 10:14:07and say key points.
- 10:14:11Pass that in the output over here. Cool.
- 10:14:15I hope this works. Also, I need to pin
- 10:14:17this data because I don't want to run
- 10:14:18that again. All right. So, let's see if
- 10:14:21this works. I'm really hoping it works
- 10:14:2450/50. I might have to rework the prompt
- 10:14:26a little bit. [snorts]
- 10:14:28Honestly, a lot of the time spent on
- 10:14:31builds is kind of reworking the prompt
- 10:14:33to be honest with you because there's
- 10:14:34always so many nuances based off of what
- 10:14:37a customer wants and what their expected
- 10:14:39output is. So, you have to like
- 10:14:41constantly fine-tune it. Oh, it did
- 10:14:43work. Awesome. Awesome. Awesome. Check
- 10:14:46that out. Yes. All right. So, all right.
- 10:14:48Here's the deal. Why I included it like
- 10:14:51this? Essentially, what I want is an
- 10:14:53array of tweets because we can break
- 10:14:55this out. We can now have each of these
- 10:14:57become an item afterwards. So, I just
- 10:14:59said tweets, tweet one, tweet two, tweet
- 10:15:01three. And what we can do now, if we go
- 10:15:04into our nodes, and I believe it's under
- 10:15:06data transformations.
- 10:15:08Yeah, split out. So, check this out. We
- 10:15:12haven't used split out in a while. Oh,
- 10:15:14this is perfect. This is perfect. Let me
- 10:15:16pin this data as well.
- 10:15:18Sweet, sweet, sweet, sweet.
- 10:15:23Yeah, there we go. Okay, so we have our
- 10:15:26initial article over here. We tell our
- 10:15:29content summarizer to read our article
- 10:15:31and uh specifically give us three key
- 10:15:33points. Obviously, I'm just using
- 10:15:34Wikipedia for this example. You could
- 10:15:36change this up. Then what we do is we
- 10:15:39create the tweets. Obviously, I would
- 10:15:40want to have some type of winning tweet
- 10:15:41on the platform and really build out a
- 10:15:44thorough system message. This is like a
- 10:15:46very mediocre like a C minus system
- 10:15:48message. So, and then I essentially put
- 10:15:51a structured output format or structured
- 10:15:53output parser over here. So, that way we
- 10:15:55have an array of different tweets which
- 10:15:57makes it really easy for us to split
- 10:15:59this out. As you can see over here, all
- 10:16:01I did is pass in tweets. And now we have
- 10:16:03three things. So, the first one, Rangi,
- 10:16:05an Indian prince who played 15 tests for
- 10:16:07England and later ruled I'm not going to
- 10:16:09try pronouncing this. Um, rain from 1907
- 10:16:12to 1933. From royal palaces to cricket
- 10:16:14pitches, his life reads like a novel. I
- 10:16:16actually kind of like that. Over here we
- 10:16:18have some hashtags as well which we can
- 10:16:19define like hey do we want hashtags or
- 10:16:21not that can go all go in the system
- 10:16:22prompts
- 10:16:25batting the daring back foot play and
- 10:16:26popularized maybe even invented the
- 10:16:28silly leg lands a first class average of
- 10:16:3056.37
- 10:16:32says it all and then it says his legacy
- 10:16:34complex the rangy trophy carries his
- 10:16:36name yet he was criticized for not
- 10:16:37promoting cricket in India and his
- 10:16:39secession to again I'm not going to
- 10:16:41pronounce that sparked controversy so we
- 10:16:44have that over there and boom we
- 10:16:46essentially split this out. And what's
- 10:16:48nice is we can essentially go into
- 10:16:49sheets if we really wanted to. I'm not
- 10:16:51going to do it just to save some time,
- 10:16:53but we can go into sheets and upload
- 10:16:55each item individually as tweets or
- 10:16:57however you want to schedule these on
- 10:16:59social media. So, that's pretty awesome.
- 10:17:01We have emojis in here. We have
- 10:17:03hashtags. We have this over here as
- 10:17:05well. And again, I would just recommend
- 10:17:08for the social media side of things
- 10:17:10really build out a prompt a little bit
- 10:17:14more complicated than this. I would take
- 10:17:16a look at what works in the platform and
- 10:17:18try to emulate that specifically into
- 10:17:21the system message. So that way it can
- 10:17:22give you those specific results. Like I
- 10:17:24would mention what is considered a good
- 10:17:26hook. Give some examples of that. How
- 10:17:28many characters you want in your tweet
- 10:17:31spacing like really build this out and
- 10:17:34this is something I'm going to be doing
- 10:17:35in the future probably for repurposing
- 10:17:38my content because I I'll be honest my
- 10:17:39Twitter kind of sucks and I need to
- 10:17:41research the platform. So I'll really
- 10:17:43build something in depth based around
- 10:17:44that. Like instead of this content
- 10:17:46summarizer, I'll have something with a
- 10:17:47YouTube video and then the social media
- 10:17:49writer for each platform because there's
- 10:17:50things that work on Twitter that might
- 10:17:52not work on LinkedIn.
- 10:17:54That is essentially it for our first
- 10:17:56one. Let's take a look at our second
- 10:17:58example now. All right. So, our second
- 10:18:01example, it's going to be a little bit
- 10:18:03more complicated.
- 10:18:05And this is actually going to involve an
- 10:18:07API as well. be honest with you, I have
- 10:18:10not taken a look at this API, so I have
- 10:18:12no idea if it's a complicated API or
- 10:18:14not. We're going to go through it
- 10:18:16together. So, essentially what we're
- 10:18:18going to do over here is we're going to
- 10:18:20do a comparison. So, like we input
- 10:18:22compare iPhone 17 to Samsung S25. These
- 10:18:26are newer phone models. I assume models
- 10:18:28don't have that information. We're going
- 10:18:30to use Perplexity this time to search
- 10:18:32for uh news for iPhone 17. We're going
- 10:18:35to use another side of Perplexity to
- 10:18:37search for the Samsung S25.
- 10:18:40Then we're going to use an HTTP request
- 10:18:41to fetch prices from Best Buy's API.
- 10:18:45We're going to use all three of these
- 10:18:46and use another AI agent. I know it says
- 10:18:50open AAI chat model, but it's fine. And
- 10:18:52then we have all this context from
- 10:18:54Perplexity on those to open AI results.
- 10:18:57And then we'll just write a summary. So
- 10:19:00again, if you guys want to give it a
- 10:19:01shot first, this is the API by the way,
- 10:19:04developer.b best buy.com. I found it for
- 10:19:07here.
- 10:19:09And you can see there's documentation as
- 10:19:11well.
- 10:19:13And we're just going to fall through.
- 10:19:15This could be like a super fast
- 10:19:18example or this is going to be something
- 10:19:21that bites me back and uh it might take
- 10:19:24a while to figure out and might make
- 10:19:26some errors. But either way, I thought
- 10:19:27this would be kind of cool to go
- 10:19:28through. So feel free to try this out
- 10:19:30for yourself to change the products if
- 10:19:32you want and I will work on the solution
- 10:19:35here shortly. All right, let's get
- 10:19:37going. So I know I put manual trigger
- 10:19:40over here. We could start with that or
- 10:19:41we could do a form and just put in each
- 10:19:43of these. So um let's do the manual
- 10:19:47trigger or first and we're going to go
- 10:19:49manual trigger
- 10:19:53and actually we have already manual
- 10:19:55trigger above. So we are off to a great
- 10:19:57start. All right. Then we're going to do
- 10:19:59just an edit set.
- 10:20:02Obviously, you could do a chat trigger
- 10:20:03for this, but I'm just going to go edit
- 10:20:05set for this route.
- 10:20:07And we're going to do a manual mapping.
- 10:20:09And we're going to just call this
- 10:20:11compare.
- 10:20:14And we'll use the same exact string over
- 10:20:16here.
- 10:20:18iPhone 17 to Samsung S25.
- 10:20:22So, we'll use that. Then, what I want to
- 10:20:25do is build out an AI agent. So, we're
- 10:20:27going to say AI agent like this. This is
- 10:20:30a pretty easy one. We're not really
- 10:20:31going to have to do much with this AI
- 10:20:34agent. I'm just going to pin this data.
- 10:20:36Oops. To
- 10:20:39and pin it. Cool. So, all we're doing on
- 10:20:43this, we should use a very cheap model
- 10:20:45because this task is simple. All we're
- 10:20:47doing is asking to extract the two
- 10:20:50products. So, we're going to also put
- 10:20:53structured output formats. Let's go
- 10:20:56output parser. Great. And uh we'll say
- 10:21:01products.
- 10:21:07Product one.
- 10:21:11We'll put product two. Next.
- 10:21:14Two. We need to have that double quotes.
- 10:21:18Great. So, we're in a good start.
- 10:21:21We're going to use OpenAI. Okay, we're
- 10:21:23going to use the cheapest model, GPT5
- 10:21:25Nano. Uh, I'm sure there's cheaper
- 10:21:28models out there. Well, there is, but
- 10:21:30I'm going to use US cheapest
- 10:21:34that side of things. Cool. Turn off
- 10:21:36responses. We don't need that. Go to our
- 10:21:38agent. All I want to say on here is for
- 10:21:41our prompts,
- 10:21:44add option system prompt. or you are an
- 10:21:47AI agent
- 10:21:50that takes
- 10:21:53the comparison text
- 10:21:57which I misspelled comparison that's all
- 10:21:59right and extracts
- 10:22:04the two products
- 10:22:08can say example
- 10:22:11tops
- 10:22:14versus panini
- 10:22:18Um, we'll say Yankees or Red Sox.
- 10:22:26And I should just say for and not. Man,
- 10:22:28look at that spelling. Terrible. All
- 10:22:31right. So, we have both these. We'll say
- 10:22:33user for these. User
- 10:22:37is what we're trying to do is just give
- 10:22:39a few examples. We'll say AI.
- 10:22:43Right.
- 10:22:54But
- 10:22:58just literally giving the example what
- 10:23:01it should be.
- 10:23:03This is pretty self-explanatory.
- 10:23:06Simple prompt. So all we should get is
- 10:23:08iPhone 17 and Samsung S25.
- 10:23:13Hopefully that works.
- 10:23:17Cool. It works. You can see over here we
- 10:23:20products. Great. Next thing what we need
- 10:23:22to do is split this apart.
- 10:23:25So
- 10:23:27do essentially what we covered over here
- 10:23:29with the split out.
- 10:23:32Paste that there.
- 10:23:35Lot of action today with the split out.
- 10:23:37Not on purpose by any means like that.
- 10:23:39Um, we're going to pin this also just to
- 10:23:41save some costs. Not that we need it.
- 10:23:45Then we're just going to go the
- 10:23:46products. We should have two products.
- 10:23:49Great. We have both of those.
- 10:23:52And uh, actually, I'm trying to think.
- 10:23:56Should we
- 10:23:58Maybe we don't need to split these out.
- 10:24:05Hold on.
- 10:24:07We might actually need to split these
- 10:24:08out. I'm I'm just thinking about this
- 10:24:10architecture really quick or we might
- 10:24:12need to for the best by API. I'm going
- 10:24:14to save this really quick over here. I
- 10:24:16don't know if we need to
- 10:24:19let me think of this. All right, this is
- 10:24:21on the fly thinking. So, we need to do a
- 10:24:23perplexity node.
- 10:24:26Perplexity
- 10:24:28run message a model. Obviously, we could
- 10:24:31use this in AI agent. I just wanted to
- 10:24:32change things up.
- 10:24:39All right. So then we're going to do I
- 10:24:41think this is my Perplexity account.
- 10:24:43Maybe it's not. Maybe it's this one.
- 10:24:45We're going to go over here. Let me
- 10:24:46text. So let me just click this.
- 10:24:50Couldn't connect. It's Plexity 2.
- 10:24:57All right. I think it's Perplexity 2.
- 10:24:58That's my actual account. All right.
- 10:25:00We're going to say based on the product
- 10:25:06and we're going to feed in a product
- 10:25:08over here.
- 10:25:13Search for its specs and latest reviews.
- 10:25:17Based on the product
- 10:25:19and say search for specs.
- 10:25:27Okay. So,
- 10:25:29we're going to have a product that goes
- 10:25:31through here.
- 10:25:32Right now, if I build it like this,
- 10:25:36each product goes individually one at a
- 10:25:38time into this, which I think it's
- 10:25:40probably the route we want to take.
- 10:25:44Yeah. Yeah. What we're going to do is
- 10:25:45we're going to we're going to split this
- 10:25:47out and then we're going to put
- 10:25:48everything. That's what I'm kind of
- 10:25:50thinking right now. So, we were split
- 10:25:52out. This is fine. Then what we're going
- 10:25:55to do is go into perplexity based on the
- 10:25:57product. We're going to put this product
- 10:25:58over here.
- 10:26:03This gets us our newest information.
- 10:26:06Um obviously like we can make this way
- 10:26:08better as well. Can add an options over
- 10:26:12here.
- 10:26:14I think this is fine. Let's just see
- 10:26:16what the results are look like.
- 10:26:21Search at specs and latest reviews.
- 10:26:24Yeah, that's fine
- 10:26:29because we're going to need the best by
- 10:26:30API still. And I think what we're going
- 10:26:32to do is probably split this apart. So,
- 10:26:34we have two items. We have citations
- 10:26:37over here. Search result choices.
- 10:26:42Have a lot of text. Cool. All right.
- 10:26:44This should be fine.
- 10:26:47So, this is probably where the best by
- 10:26:50API is going to go. I'm gonna say like
- 10:26:52best by API.
- 10:26:54Both of these
- 10:26:57best buy API goes here. We should
- 10:27:00probably solve that. I'm going to say
- 10:27:02it's a HTTP request
- 10:27:06again. I've never looked at the head
- 10:27:07best by API. So I have no idea what in
- 10:27:10stores for us. We're going to have to
- 10:27:12merge after that because we're doing
- 10:27:14perplexity
- 10:27:18and then HTTP request specify API. Then
- 10:27:21we're going to have another agent that
- 10:27:23essentially takes everything. Also, you
- 10:27:24don't need an agent here. You could use
- 10:27:26a basic LM chain, but we haven't really
- 10:27:28covered that yet. Cover it a little bit
- 10:27:30later. All right. I need to have another
- 10:27:33AI agent after we do a merge.
- 10:27:37So, we're going to have this AI agent
- 10:27:38over here. We're going to have a merge.
- 10:27:41Also, since we're going to be doing a
- 10:27:43summary on this side of things, I would
- 10:27:44probably recommend to use a little bit
- 10:27:47of a better model that side of things,
- 10:27:51but uh we'll cover that here in a
- 10:27:53second. All right, let's take a look at
- 10:27:55Best Buy. So, we have all the
- 10:27:57documentation over here. We should
- 10:27:59probably get an API key and look at the
- 10:28:01documentation. So, I wonder where we
- 10:28:04have like pricing, things like that.
- 10:28:10All right, there's pageionation as well.
- 10:28:13A lot going on.
- 10:28:17I think the first thing we should do is
- 10:28:18sign up. Hopefully, it's a fast API to
- 10:28:21sign up for. It's not uh
- 10:28:24garbage. I wouldn't say garbage, but you
- 10:28:26know what I mean. Um, okay. So,
- 10:28:30only returns SQ name and price for the
- 10:28:33products. All right. Well, we we'll go
- 10:28:35through the documentation. Let's
- 10:28:36actually sign up for this really fast.
- 10:28:43I need to create an account.
- 10:28:47All right, let me do this. We're going
- 10:28:49to just cut this out. Then I got this
- 10:28:52email just to verify my email
- 10:28:57and apparently it doesn't work. We're
- 10:28:58going to try it again.
- 10:29:02Okay, apparently this link does not work
- 10:29:05from Best Buy.
- 10:29:07Let me see if I can go to my dashboard.
- 10:29:10Free email and edge is not allowed at
- 10:29:12this time.
- 10:29:16Well,
- 10:29:18I could use my actual email for my
- 10:29:21website. However, the problem is not all
- 10:29:25of you guys are going to be able to get
- 10:29:27access to this API.
- 10:29:29So,
- 10:29:31I wonder if like another website has
- 10:29:37we could use. I apologize because
- 10:29:40essentially what I was going to try to
- 10:29:42do and maybe we can just mock this up. I
- 10:29:45was trying to get us to use an API to
- 10:29:48get real-time prices.
- 10:29:50So, maybe let me let's ask Claude really
- 10:29:53quick. I'm going to put Claude in
- 10:29:54another screen. I know this is a little
- 10:29:56bit off and some of you guys might not
- 10:30:00like this, but you know what? It's okay.
- 10:30:04We're going to try to go through this.
- 10:30:08Cool. I'm literally just going to say
- 10:30:10I'm trying to use the Best Buy API to
- 10:30:13use the Best Buy API to compare prices
- 10:30:19of phones.
- 10:30:21However, it doesn't allow free email
- 10:30:26addresses.
- 10:30:31Are there any alternative sites
- 10:30:40we use
- 10:30:42that will allow
- 10:30:44for this?
- 10:30:47And why I'm doing that, just to show you
- 10:30:49guys like what happens if I have a
- 10:30:50problem. Maybe a customer said I should
- 10:30:52use the Best Buy API and they can't
- 10:30:54access it as well. So do some research.
- 10:30:56I'm using Claude here. Obviously, I
- 10:30:58could use Perplexity, but I feel like
- 10:31:01this might help. All right, so it says
- 10:31:04fake store. No, I don't want that. Dummy
- 10:31:06JSON
- 10:31:08potential. We could use Amazon. It says
- 10:31:10use web scraping.
- 10:31:13And uh man, that's that's really
- 10:31:16annoying. I mean, I can do web scraping
- 10:31:18as well. Did we cover web scraping? I
- 10:31:21just want to double check. I think web
- 10:31:23scraping was last section. I'm recording
- 10:31:25these a little bit out of order. We
- 10:31:27could use web scraping. Um
- 10:31:33will fire crawl allow me to web scrape
- 10:31:36by?
- 10:31:38It might.
- 10:31:40We could try it.
- 10:31:42They have a native node.
- 10:31:46So,
- 10:31:48we could extract from a page.
- 10:31:53And I know for you guys, you're like,
- 10:31:54"Oh, you explained it last lesson, but
- 10:31:56I'm literally recording this section 16
- 10:31:58before our web scripping one." So,
- 10:32:01should be able to extract data. I don't
- 10:32:03use firecrawl every single day.
- 10:32:06URLs. All right. I have an idea. Yeah.
- 10:32:10Let's see if this works.
- 10:32:13So, we're going to look for Best Buy
- 10:32:15iPhone or Best Buy.
- 10:32:19What was the model? S25
- 10:32:23Galaxy
- 10:32:25S25.
- 10:32:26Best Buy. We might actually change this
- 10:32:29up a little bit, but
- 10:32:32let's see
- 10:32:35what it has over here. I will grab one
- 10:32:37of these. Um,
- 10:32:39all right. We'll grab this.
- 10:32:42I think this is like a standard model.
- 10:32:46I'm very curious if
- 10:32:48Fire Call will get this or not. Let's
- 10:32:51just test it out. So, let's say we have
- 10:32:54to figure out how to get these product
- 10:32:56URLs still.
- 10:32:58And um,
- 10:33:02let me just double check I'm in here as
- 10:33:04well. Connection tested is successfully.
- 10:33:06This is going to extract our data.
- 10:33:07There's different operations as well.
- 10:33:09Just double check. Have a website. You
- 10:33:11get URLs. Scrape a URL and get its
- 10:33:12content. We should probably just scrape
- 10:33:14instead. So, here's the URL because we
- 10:33:17can always clean this up after. Um,
- 10:33:20crawl website. We're not going to use
- 10:33:21that. List of crawlers. Again, all this
- 10:33:23will be covered in uh the previous
- 10:33:26video. Extract data. We might use
- 10:33:28extract data there, too. Let's uh scrape
- 10:33:30first and see if this is actually even
- 10:33:32possible. We scraped it. And you can see
- 10:33:34we have a value over here as well as
- 10:33:36this price.
- 10:33:38So that's the scraping example.
- 10:33:42Fortunately, the best buy API did not
- 10:33:44work. Let's see the other one if we can
- 10:33:47try the other URL.
- 10:33:49Instead of scrape, we're going to
- 10:33:50extract data.
- 10:33:53We're going to add in that URL
- 10:33:56prompt. I will just say extract
- 10:34:00the final price of the phone.
- 10:34:04All right. And then
- 10:34:07property, we should put like price.
- 10:34:11So we'll just say price like that.
- 10:34:15That's all we care about. Let's see if
- 10:34:17we can get
- 10:34:20No.
- 10:34:21Oh, the URL is off. I don't know why
- 10:34:23that was off there. That's kind of
- 10:34:25weird. All
- 10:34:27right, let's try it again.
- 10:34:32Check your parameters
- 10:34:36having something else. We have the URL
- 10:34:39there. It looks correct.
- 10:34:43Extract the price of the phone
- 10:34:46schema. Define the structure of the
- 10:34:48extract data. I mean, that's
- 10:34:50really all we need.
- 10:35:01I mean, I think this should be fine. We
- 10:35:03might just use the scrape of the URL. I
- 10:35:05mean, we'll test this one more time.
- 10:35:08We're going to have 400 code. Obviously,
- 10:35:10something's wrong on my side.
- 10:35:13That's fine. This uh
- 10:35:17we can feel free to test this out, but
- 10:35:20this will essentially do that. So now I
- 10:35:23need to think this through. It's like
- 10:35:24okay, we have
- 10:35:27we have this information.
- 10:35:29Now I need to get the URLs. So how do I
- 10:35:32get the URLs now? So that way I can pass
- 10:35:35it in. And if I test this again, like I
- 10:35:38just want to pin this. Can I from this
- 10:35:40markdown? Can I get the actual final
- 10:35:42price? So what I want to test as well is
- 10:35:46that we're going to use another cheap AI
- 10:35:48agent over here. pass that over here
- 10:35:51like that
- 10:35:53and we're going to test. So let's
- 10:35:57try it out. So what I'm going to do is
- 10:36:00pass this in here. We're going to pass
- 10:36:03in this markdown. That's the only thing
- 10:36:04we care about right now. Now I'm just
- 10:36:07going to say based on the markdown can
- 10:36:08you provide the final price
- 10:36:12based
- 10:36:14on the markdown
- 10:36:17in the user message. Can you extract
- 10:36:23final price? All right, let's test this
- 10:36:25out.
- 10:36:27We need to
- 10:36:30change this up. And we'll say price.
- 10:36:35And what we're going to do is just put
- 10:36:37something over here like 500
- 10:36:4364.
- 10:36:46Let's see if that works. All right,
- 10:36:48let's test this out. We're going to
- 10:36:50unpin it.
- 10:36:58again. I wish we could have used the
- 10:36:59API. Look at that. $8.99.
- 10:37:03Sweet. Okay, so
- 10:37:06that's fine. We don't need the API. We
- 10:37:10used fire call. We extracted it out. So
- 10:37:12now we need to think about like, all
- 10:37:14right, how how do we get these URLs?
- 10:37:17Like because I don't want to manually
- 10:37:19get these URLs. So we get our AI agent
- 10:37:22over here.
- 10:37:23Great. Then we message a model
- 10:37:27perplexity.
- 10:37:28I'm just wondering now it's like okay
- 10:37:31and there's a lot of different ways we
- 10:37:33could find this price.
- 10:37:36I'm just trying to think like what would
- 10:37:38be the easiest. So
- 10:37:41I know fire crawl has other nodes as
- 10:37:43well. I'm wondering if we go fire crawl
- 10:37:46again and search something for a site.
- 10:37:48They might have that. Search and
- 10:37:50optionally scrape each search result.
- 10:37:52That actually might be it.
- 10:37:55Map a website and get URLs. There's too
- 10:37:57many URLs on Best Buy for that.
- 10:38:00Oh, a website. Might be able to do that.
- 10:38:02Like crawl the site and then get the
- 10:38:04URLs there. But I feel like there'd be a
- 10:38:06more efficient way.
- 10:38:10Cancel a crawl job,
- 10:38:12extract data. I feel like Perplexity
- 10:38:14would be really good at just finding the
- 10:38:17URL.
- 10:38:19So, let's try that.
- 10:38:23So, this we might want to change as well
- 10:38:25based on the product searched specs and
- 10:38:26latest reviews. We might try this again
- 10:38:28on the other side. So, I'm going to say
- 10:38:32and we're going to try this out. And
- 10:38:33again, I don't know if it's going to
- 10:38:34work yet or not. based on the product.
- 10:38:39Find
- 10:38:42on Best Buy that is not out of a stock.
- 10:38:48All right,
- 10:38:50this might work. And maybe we might have
- 10:38:53to put an AI agent here instead of just
- 10:38:54this perplexity node. I'm going to say
- 10:38:58only return the URL.
- 10:39:02So thinking through this, we're going to
- 10:39:04have the product here. I'm asking it to
- 10:39:06find it on Best Buy. It's it's like a
- 10:39:08web search and then I'm saying to only
- 10:39:10return the URL.
- 10:39:13Simplify output rather only return
- 10:39:15essential fields, ID, citations,
- 10:39:16message. Let's simplify that out. Add
- 10:39:19options.
- 10:39:22Search domain filter.
- 10:39:27Ooh, this is good.
- 10:39:29So, we can only search Best Buy. We
- 10:39:31might as well throw that in.
- 10:39:35So, we throw that there.
- 10:39:37That might not work. But
- 10:39:41search recency filter.
- 10:39:43Yeah, it should be the last month.
- 10:39:48Output randomness. We don't need the
- 10:39:49temperature using sonar. Let's try this
- 10:39:53again. And we might have to actually use
- 10:39:55an AI agent.
- 10:39:57But
- 10:40:00we have the iPhone 17 here.
- 10:40:03Does this work?
- 10:40:08We need to get the actual product page
- 10:40:10though.
- 10:40:15That did not work
- 10:40:18for that one. And then
- 10:40:23I mean, it's close. It's close, right?
- 10:40:26But this isn't the exact piece of
- 10:40:29information I want.
- 10:40:32And I need to prompt this better. So,
- 10:40:34and I need to prompt this better. So, we
- 10:40:36said based on the product, find one euro
- 10:40:38on Best Buy that is not out of stock.
- 10:40:40The URL
- 10:40:44should be that of where I could I can
- 10:40:48purchase the phone and not show a phone
- 10:40:54plan. For example,
- 10:40:58buying an iPhone
- 10:41:04for $1,000. I don't know. We're just
- 10:41:08gonna try this and see if that works.
- 10:41:10Probably not the best, but we'll test it
- 10:41:12out.
- 10:41:14All right, so we have another two URLs.
- 10:41:17Let's see what happened this time.
- 10:41:19That link, it does not work.
- 10:41:24See this link?
- 10:41:27Okay, that does work. We should also
- 10:41:30mention these are base models or
- 10:41:32something like that. Or maybe we need to
- 10:41:33look at unlocked version. I think that
- 10:41:35might be the best approach. All right.
- 10:41:36So, find one URL on Best Buy that is not
- 10:41:39out of stock. The URL should be that of
- 10:41:43an unlocked
- 10:41:46version of the phone. And obviously,
- 10:41:49this is going back into, you know,
- 10:41:51you're fine-tuning this for a specific
- 10:41:53domain. Maybe we're doing phone
- 10:41:54searches. So, based on the provide one
- 10:41:56URL, Best Buy does not should be that of
- 10:41:58an unlocked version of the phone.
- 10:42:01It should have a price to purchase it at
- 10:42:08and is the base model only return the
- 10:42:13All right, let's try this again.
- 10:42:16At least you guys get to see some prompt
- 10:42:18engineering. All right, so it says no
- 10:42:20matching indicate iPhone unlocked
- 10:42:22models. There are carrier locked. Is
- 10:42:26that the case? I I don't know enough
- 10:42:28about phones. And if it is the case,
- 10:42:30maybe we just compare Verizon to
- 10:42:32Verizon. Like this gets me the unlocked
- 10:42:35one.
- 10:42:36Does iPhone really not have an unlocked
- 10:42:38version
- 10:42:44or is it only iPhone 17 that there's
- 10:42:47specific ones?
- 10:42:49It looks like maybe iPhone 16's the
- 10:42:51reason why. Let's just change this to
- 10:42:53iPhone 16 and see what happens.
- 10:42:57And obviously it I'm glad there's the
- 10:42:59fallback which tells us what happened.
- 10:43:02This is a little bit annoying, but is
- 10:43:05what it is. All right, so we're going to
- 10:43:07compare the iPhone 16 to Samsung there.
- 10:43:12We're going to unpin that. Well, we can
- 10:43:14just change that to 16 there.
- 10:43:18Cool.
- 10:43:21We're going to unpin that. Execute step.
- 10:43:24Pin it again.
- 10:43:26Oh, let's try this.
- 10:43:30So, we have iPhone 16. Let's check that
- 10:43:32out.
- 10:43:36It was wrong again.
- 10:43:41Wow. I mean, there's other ways to take
- 10:43:44a look at it.
- 10:43:48I would have thought uh Perplexity would
- 10:43:50be the best one right out of the gate.
- 10:43:51It's the product. Find one URL in Best
- 10:43:53Buy that is not out of stock.
- 10:43:56The URL should be that of an unlocked
- 10:43:58version. It should be.
- 10:44:01Double check the results. Double check
- 10:44:04the results and make sure
- 10:44:08there is a price on the page before
- 10:44:13returning
- 10:44:18the URL. Let's try it one more time.
- 10:44:22I might think like SER API where we
- 10:44:25scrape the Google search results and I
- 10:44:27think there's a way to do in fire call
- 10:44:28also might be the best approach now if
- 10:44:31this doesn't work.
- 10:44:35Wow. I mean I wonder if this used to be
- 10:44:38the URL.
- 10:44:40Let's check one. No.
- 10:44:43All right. We need to think this through
- 10:44:45again. So
- 10:44:48let's
- 10:44:50go to firecrawl because firecrol does
- 10:44:52have an option to search Google I want
- 10:44:55to say.
- 10:44:57So
- 10:44:59search and scrape search results. All
- 10:45:01right, this is what we want to look at
- 10:45:03now.
- 10:45:06And we might not even need to scrape and
- 10:45:08get his content, but we'll double check
- 10:45:10this. All right, so fire call search and
- 10:45:12we're going to have a query. So,
- 10:45:16let's
- 10:45:18search that. We're going to put our
- 10:45:20product.
- 10:45:22We're going to say
- 10:45:25unlocked
- 10:45:26Best Buy.
- 10:45:29All right. So,
- 10:45:31expanding this out. Let's just see what
- 10:45:33the search results look like. Right now,
- 10:45:39we're just going to go to the first one.
- 10:45:41All right. So, that doesn't work.
- 10:45:50It's interesting that these always go to
- 10:45:52the plans first before it actually goes
- 10:45:54to the model.
- 10:45:56All right, so what does this look at?
- 10:45:58Apple iPhone
- 10:46:00unlocked.
- 10:46:03All right, so let's see what the search
- 10:46:04results look like. Web timeout limit.
- 10:46:07We'll do limit 10
- 10:46:11and we'll test it out.
- 10:46:17Use a custom body if we want.
- 10:46:23All right, let's try this off.
- 10:46:34So, we have all these web URLs now.
- 10:46:37And essentially what we'll have to do is
- 10:46:40figure out what in that URL would have
- 10:46:43that result that we care about.
- 10:46:48So let's look at these URLs.
- 10:46:54We have the title description.
- 10:46:57We I think this is the one that we want,
- 10:46:59right? It's unlocked.
- 10:47:02Or was it one of these
- 10:47:08unlocked black? That might be it.
- 10:47:15All right. So, it gave us two items.
- 10:47:18That's an example of a URL that we want
- 10:47:21this notes.
- 10:47:30So, that's an example.
- 10:47:34because we need to have some sort of
- 10:47:36filter before it goes over here to get
- 10:47:38that price because obviously we don't
- 10:47:39get the price here. I'm just going to
- 10:47:41pin this as well. All right. And then
- 10:47:44Best Buy.
- 10:47:49So, I'm looking at this. We honestly
- 10:47:51might need something that just has
- 10:47:52unlocked with dashes next to it. You can
- 10:47:56see this doesn't work. So, let's add in
- 10:47:59a filter. I think this might be it.
- 10:48:03I have an idea. This won't always work,
- 10:48:06but
- 10:48:07imagine we're just scraping Best Buy and
- 10:48:10let's figure this out together. So,
- 10:48:12we're going to put in a filter
- 10:48:16and what we're going to take a look at
- 10:48:17is this URL. We're going to say contains
- 10:48:22and we're trying to find unlocked,
- 10:48:23right? So, we'll say unlocked like this
- 10:48:26because if you look at the URLs, that's
- 10:48:28not correct.
- 10:48:30That's not correct.
- 10:48:33Obviously, we want best buy.com. So,
- 10:48:35we'll have to make sure bestbuy.com is
- 10:48:38in one of these. So, let's just add
- 10:48:40another condition. And we're going to
- 10:48:42say
- 10:48:44this URL
- 10:48:47going to say also string
- 10:48:50contains
- 10:48:53bestb.com.
- 10:49:00slash product. All right. So,
- 10:49:07all right. So, we have the Samsung
- 10:49:09Galaxy here.
- 10:49:12Okay. So, we need to split out these
- 10:49:13URLs first.
- 10:49:17Before we do that, you can see it. Okay.
- 10:49:20I know. I know what we need to do. Let's
- 10:49:23split out these URLs.
- 10:49:26first before we actually do that. This
- 10:49:29is turning into a more complicated build
- 10:49:31than I anticipated. I thought it was
- 10:49:33going to be pretty easy. That's all
- 10:49:35right. Okay. So, give this split out.
- 10:49:38Let's split out
- 10:49:44web if this is or not.
- 10:49:51Right. So, we split these out. I only
- 10:49:54care about the URL now. So, let's do an
- 10:49:56edit set
- 10:49:58set.
- 10:50:00We're going to pass in just the URL,
- 10:50:05right? So,
- 10:50:09have that
- 10:50:12have iPhone
- 10:50:14and the Galaxy. Great, great, great.
- 10:50:16Okay. So, now let's try this filter.
- 10:50:22We need to change this out though.
- 10:50:28Let's use URL.
- 10:50:32I think this should be it though because
- 10:50:34we only want the product page because we
- 10:50:37don't want slash site one slash product.
- 10:50:40I think that will give us these two URLs
- 10:50:45and then we'll do a limit for each of
- 10:50:47these. All right, we've got three URLs.
- 10:50:49We're pretty good. Um, let's remove
- 10:50:52duplicates because you can see this is a
- 10:50:53duplicate. Oh, actually it's not a
- 10:50:55duplicate.
- 10:50:57Almost there. We are almost there. Okay.
- 10:51:01So,
- 10:51:03we need to figure out a way to remove
- 10:51:07that third product.
- 10:51:11Okay,
- 10:51:13that is not too bad. Almost there. At
- 10:51:17the final stretch.
- 10:51:20Let's think about this for a second. So,
- 10:51:23we have Galaxy S25 120 AC Blue. I just
- 10:51:28want to see why there's two different
- 10:51:30ones there. So, this is $6.99. Okay.
- 10:51:36What's the difference between these?
- 10:51:39Okay. This item is no longer available
- 10:51:41in new condition. So maybe we actually
- 10:51:44want to have all of these
- 10:51:48and we'll have three items just in case
- 10:51:50like one is out of stock. Like again,
- 10:51:52we're scraping Google.
- 10:51:55We have only like five URLs for each of
- 10:51:58these. And obviously we can expand this
- 10:51:59out. I think this is a good fail safe
- 10:52:01system just in case. All right, let's
- 10:52:05test this out. So what we're going to do
- 10:52:06now is paste each of these URLs into
- 10:52:10over here. It's going to filter out
- 10:52:11automatically. You watch what's going to
- 10:52:13happen. So we have this URL and what I'm
- 10:52:17going to say based on the final markdown
- 10:52:18can you extract the final price if there
- 10:52:22is no price
- 10:52:25only output zero.
- 10:52:29So we have a fail safe and we're just
- 10:52:31going to filter out the zeros at the
- 10:52:32very end because if you look we put a
- 10:52:35final price there. So watch what's going
- 10:52:38to happen now. We go to this extractor
- 10:52:41and pin this. I execute the step. We're
- 10:52:44gonna get the markdown now for each of
- 10:52:46those URLs.
- 10:52:50And obviously, like I apologize for this
- 10:52:52being so long. I still hope you guys
- 10:52:54find value. So, we have markdown for
- 10:52:55each of these. And you can see this
- 10:52:57third one's just not going to work.
- 10:53:01And now we're going to test this in our
- 10:53:03AI agent. Obviously, I want to pin this
- 10:53:05again so we don't run music cost.
- 10:53:10Just double check that this is correct.
- 10:53:11Okay, execute the step.
- 10:53:16Feel like we're almost there.
- 10:53:20And to mention as well for production,
- 10:53:22there's things I would change 100% for
- 10:53:24this, but we're just going to test these
- 10:53:26two phones.
- 10:53:29All right, take a look. 659, 699, and
- 10:53:32zero. Wow. I'm almost there. Let's just
- 10:53:35double check. I think it was correct.
- 10:53:38That's $6.99.
- 10:53:41All right. 659. That was correct there.
- 10:53:43And then we said $6.99.
- 10:53:49Oh, we got it. Even with the discounts.
- 10:53:51Look at that. So, let's pin this data.
- 10:53:54And then what we're going to do Oh, you
- 10:53:56know what we need as well? This is
- 10:53:59annoying. All right. We need to update
- 10:54:02this as well
- 10:54:06because I don't know what each of these
- 10:54:08are and we need to make sure that they
- 10:54:11match. Well, actually, no, because we
- 10:54:13have I guess we have this information
- 10:54:15here.
- 10:54:17If I execute this step again, however,
- 10:54:22there could be a scenario.
- 10:54:27There could be the scenario where these
- 10:54:29are out of order in some capacity. It
- 10:54:31was always going to be iPhone then
- 10:54:33Android for this one just based off of
- 10:54:35the search. However, down over here,
- 10:54:38like what happens if there's two iPhones
- 10:54:42and then Android? Like the the order is
- 10:54:44going to be out. It's not going to be
- 10:54:45sorry. It's going to be out of order. So
- 10:54:47we need to pass also
- 10:54:52the phone
- 10:54:54or like
- 10:54:57oh man you can see like when you start
- 10:55:00building these advance there's always
- 10:55:01like these edge cases. All right. So,
- 10:55:03we're going to say phone
- 10:55:07iPhone 16.
- 10:55:15Great.
- 10:55:17And should we put the URL? I feel like
- 10:55:19we should put the URL as well.
- 10:55:24URL.
- 10:55:28Feel like it has the URL. All
- 10:55:31right, let's try this one more time. I
- 10:55:34did like these results, but we just want
- 10:55:37to
- 10:55:38specify that.
- 10:55:47I might have to change that prompt
- 10:55:49though for the output.
- 10:55:52I might it might literally just be one
- 10:55:54extra line that says also prints out the
- 10:55:56the phone type as well as you know.
- 10:56:00Well, and maybe I want to print colors.
- 10:56:03I want to see if this works though out
- 10:56:05of the box. If it does, fantastic.
- 10:56:08And we'll just throw that here.
- 10:56:13That is empty. Weird.
- 10:56:18All right. So we need to write this as a
- 10:56:20prompt.
- 10:56:22Also
- 10:56:25output the phone
- 10:56:29brand
- 10:56:31and the URL
- 10:56:36you're unsure
- 10:56:39both the phone rand
- 10:56:45as an IDF.
- 10:56:47All right, let's try this again.
- 10:56:51I think I'm also using the cheapest
- 10:56:53model here. If I remember correctly,
- 10:56:55we're using Nano. I would I if it
- 10:56:57doesn't get it correct, I'm going to
- 10:56:58change this into mini because it is such
- 10:57:01a bad model. Okay, I'm not going to say
- 10:57:03it's a bad model. It's a cheap model.
- 10:57:04Um, so you get what you get with it.
- 10:57:10That's that's fine. I should have been
- 10:57:12more explicit and said like the brand
- 10:57:14and the phone type, but for now this is
- 10:57:17fine because we have Samsung, we have
- 10:57:19the URL
- 10:57:21there. This is a header skip which is
- 10:57:23interesting enough. All right, we're
- 10:57:24good. We're good. This we have the phone
- 10:57:26URL as well as the price. So now what we
- 10:57:29need to do is filter out the zero.
- 10:57:32Also should think about like
- 10:57:36how we want to only have one of these.
- 10:57:39Maybe a more advanced case would be to
- 10:57:42use a code node and loop through these
- 10:57:45and just grab, you know, the one of
- 10:57:48these that looks correct. We're not
- 10:57:49going to cover the code node yet, so I'm
- 10:57:51not going to worry about that. We're
- 10:57:52just going to filter this out for zero
- 10:57:54and assume that every time we get these,
- 10:57:56it's going to be correct. All right, so
- 10:57:59filter this out
- 10:58:01over here.
- 10:58:03I say value
- 10:58:06number has to be greater than and a
- 10:58:10phone should not be less than 100 bucks.
- 10:58:11So we'll execute that step and you can
- 10:58:14see it keeps the two items. All right,
- 10:58:16we have iPhone in there. Next, what
- 10:58:19we're going to do is attach that over
- 10:58:21here. So this input goes there. This
- 10:58:25input goes over here.
- 10:58:29We're going to do now these
- 10:58:32combine by position.
- 10:58:34We could combine by other stuff, but
- 10:58:36it's fine.
- 10:58:40Have all this
- 10:58:42great. We have our our thing over here.
- 10:58:48We should also probably clean this up
- 10:58:50really quick. So, I go to edit sets just
- 10:58:54because there's a lot of junk.
- 10:58:57like we should clean up the junk first
- 10:58:58before it goes into the merge.
- 10:59:01So, what do we have over here that we
- 10:59:04actually need?
- 10:59:06So,
- 10:59:08we don't need all the usage
- 10:59:12there. You just need to have the
- 10:59:14content.
- 10:59:17That's it.
- 10:59:20That's all we need. All right. So, now
- 10:59:23we merge these in over here.
- 10:59:27execute step.
- 10:59:30We have the choices which is from
- 10:59:32perplexity and we have our output there.
- 10:59:36And what we're going to do now
- 10:59:40is summarize.
- 10:59:43Let's think this through. So we have
- 10:59:47our choices there and our output.
- 10:59:53So we have the final price.
- 10:59:56So I'm thinking we do two nodes. We do
- 10:59:59one that just does like a five sentence
- 11:00:01summary about the price and URL.
- 11:00:07Then we'll combine them together at the
- 11:00:09very end and do a comparison. I don't
- 11:00:11know. I'm trying to think this through.
- 11:00:14Um
- 11:00:16I think we might be fine.
- 11:00:19Might be fine.
- 11:00:25All right, let's just do a summarize
- 11:00:29over here.
- 11:00:32We're going to do is
- 11:00:35paste in both of these.
- 11:00:41We're going to append, not append,
- 11:00:44concatenate. We're going to do a new
- 11:00:46line or actually let's do a custom
- 11:00:49other.
- 11:00:50We'll do a space slashn
- 11:00:54like that.
- 11:00:56I think this is how we want to do it.
- 11:01:04Do the same thing here.
- 11:01:06Just want to see what this looks like.
- 11:01:16other. All right, let's execute this
- 11:01:18step.
- 11:01:20Concatenated. Great. You can see these
- 11:01:22are new lines
- 11:01:24slash new lines. And then what we're
- 11:01:26going to do,
- 11:01:30let's use a better model. Let's use
- 11:01:31sonnet over here.
- 11:01:34So it's you're paying a little bit more,
- 11:01:36but you're going to get better results.
- 11:01:38And now we need to write our message.
- 11:01:42Again, you did not expect this to be
- 11:01:43this long. I really apologize. So,
- 11:01:48we're going to say reviews and specs.
- 11:01:57Going to say pricing
- 11:02:01for all.
- 11:02:03Now,
- 11:02:07are a phone. You're an iPhone. I don't
- 11:02:10know. You're an iPhone. Not iPhone.
- 11:02:13You're a phone
- 11:02:15comparison
- 11:02:18article writer.
- 11:02:22I don't know if I like that.
- 11:02:24You are to compare
- 11:02:28two phones
- 11:02:31and talk about their specs and pricing.
- 11:02:35Specs
- 11:02:37pricing.
- 11:02:39Let's go back over here and say the
- 11:02:42phones are separated by this.
- 11:02:48The phones
- 11:02:50are separated by this.
- 11:02:55Okay.
- 11:02:59Make sure
- 11:03:01comparison
- 11:03:04is three to five sentences.
- 11:03:08for each phone.
- 11:03:11And then
- 11:03:20the link,
- 11:03:24this is like not the best prompt, but
- 11:03:28to compare our two phones, talked about
- 11:03:29their specs and pricing. I talked about
- 11:03:30how they're getting separated. Make sure
- 11:03:32to the comparison is three to five
- 11:03:34sentences. We're just going to fix the
- 11:03:36spelling mistakes really fast and we're
- 11:03:39going to test this out.
- 11:03:42A lot going on over here. Maybe paying a
- 11:03:45pretty penny from Claude for this one,
- 11:03:47but that's fine. We just want to test
- 11:03:50this out.
- 11:03:51And uh let's take a look. iPhone 16
- 11:03:54versus Samsung Galaxy S25 comparison.
- 11:03:58iPhone 16 delivers Apple signature
- 11:04:00premium experience powered by A18 chips.
- 11:04:03It offers excellent performance 30%
- 11:04:06better at 170 grams. It maintains
- 11:04:09comfortable lightweight design. Price
- 11:04:11$6.99. Buy at Best Buy. It gives me the
- 11:04:13link as well over here. Then it says
- 11:04:16Samsung S25.
- 11:04:18Talks about that over here. Top
- 11:04:21performance. Take a look. Price by Best
- 11:04:23Buy.
- 11:04:26I think that's our workflow. Obviously,
- 11:04:30there's things I would change like first
- 11:04:32over here like I would make a note and
- 11:04:34say what happens if there's multiple
- 11:04:37like this is something that would have
- 11:04:39to change. What happens
- 11:04:41if multiple
- 11:04:44have over $0?
- 11:04:46Like we haven't figured that out. So
- 11:04:49that would be another step to work out.
- 11:04:52Obviously, I want to get through this
- 11:04:54pretty fast, but the overall we take in
- 11:04:57our string, which could be a chat
- 11:04:59trigger. We split out the products,
- 11:05:01which is a split out. Uh, first we use
- 11:05:03Perplexity to do some research on
- 11:05:05reviews and what the models have. And
- 11:05:07maybe we could have factored in reviews
- 11:05:08a little bit more towards the very end
- 11:05:10for that three to five sentences. Then
- 11:05:12what we want to do is scrape Google to
- 11:05:13try to find specific URLs uh from Best
- 11:05:16Buy. Uh, we do that over here. We get
- 11:05:19the top five for each of those searches.
- 11:05:20So, we split this out. We clean up the
- 11:05:23data. We filter for only Best Buy URLs
- 11:05:25as well as ones that are for product.
- 11:05:27Then, we scrape each of those because,
- 11:05:29as we saw, some of those URLs were just
- 11:05:31offline. We go to the AI agent. If it
- 11:05:34can't find that URL, it's going to just
- 11:05:35give us $0 for it. We filter out the $0.
- 11:05:39Uh, we take our perplexity results. We
- 11:05:42just grab what we want, which I could
- 11:05:43have just simplified the output, but
- 11:05:45that's fine. We merge these together by
- 11:05:46position because we do iPhone first,
- 11:05:48then Android off of there. We put a
- 11:05:51summarize so that way we throw
- 11:05:52everything into the AI agent at once.
- 11:05:54Turns multiple items into one. And we
- 11:05:56have our AI agent right over there.
- 11:05:58Obviously, like we could have other
- 11:05:59areas where we want to print this out at
- 11:06:01and things like that. But I think
- 11:06:04this is a well enough example for you
- 11:06:06guys. And that just became way more
- 11:06:08complicated than I wanted it to be.
- 11:06:10Damn, that Best Buy API. And it was a
- 11:06:13good refresher on firecrop because I'm
- 11:06:14literally going to be recording section
- 11:06:1615 now. I wanted to get the AI agent
- 11:06:20stuff out of the way, but guess I'll be
- 11:06:22going backwards at doing that. Either
- 11:06:23way, if you were able to follow along
- 11:06:25and you understood like 70 or 80% of
- 11:06:28this, you are doing a fantastic job. If
- 11:06:32not, I apologize for kind of rambling
- 11:06:34through this, but I felt like it'd be a
- 11:06:35kind of a good idea to show you guys
- 11:06:37like sometimes you're going to have to
- 11:06:38pivot in workflows even if you have an
- 11:06:40idea in your head. And uh I think this
- 11:06:42series is going to help me on that side
- 11:06:44of things, at least presents it in a way
- 11:06:46that you guys can understand. All right.
- 11:06:48Uh next section is going to cover I want
- 11:06:50to say chat hub. So we'll jump into
- 11:06:52that. So this part of the course we're
- 11:06:54going to be talking about a relatively
- 11:06:56new feature that N rolled out which is
- 11:06:58going to be chatub. You can think of
- 11:06:59chatub as your interface kind of like
- 11:07:02with chat GPT but just for nan the best
- 11:07:05part is we can change different models.
- 11:07:07So we don't necessarily are tied to like
- 11:07:09let's say for example GPT5 maybe you're
- 11:07:11watching this future 6 or whatever else
- 11:07:13is out but we can switch the models. So
- 11:07:15we can go from GPT to Sonnet to Gemini,
- 11:07:18whatever we want as long as we authorize
- 11:07:21it. Another really great benefit is
- 11:07:23Cathub has enabled us to have different
- 11:07:25levels of users. We can now have users
- 11:07:27that interact with our flows but cannot
- 11:07:30access them and this is in one place.
- 11:07:33They can just talk back and forth uh
- 11:07:35conversationally with that workflow.
- 11:07:38There's some nuances that you're going
- 11:07:39to have to know to set this up properly,
- 11:07:42but I want to go into the UI, explain
- 11:07:44everything, and yeah, let's jump right
- 11:07:46into it.
- 11:07:48All right, so I just have a blank canvas
- 11:07:50over here, but what we're going to do
- 11:07:53first is we're going to actually show
- 11:07:54you where ChatHub is. You might remember
- 11:07:56this pretty early on in the course, and
- 11:07:58if you didn't, no worries. You can see
- 11:08:00it over here. If we go to the left, it
- 11:08:01says chat beta. I'm just going to
- 11:08:04control-click it to open up in a new
- 11:08:05screen because we are going to be
- 11:08:06building out a workflow over here or
- 11:08:08multiple workflows in in that case. And
- 11:08:12what you'll see is we have this chat hub
- 11:08:14over here. We have a new chat that we
- 11:08:16could have. We have personal agents. We
- 11:08:19have workflow agents. You can see also
- 11:08:21some of my older chats that I had over
- 11:08:23here. These were essentially basic for
- 11:08:27my uh initial ChatHub video. We're going
- 11:08:29to be building out brand new stuff as I
- 11:08:31mentioned for this particular video. And
- 11:08:34then you can go back over here and go
- 11:08:35into settings as well. But this shows
- 11:08:37you all the settings, right? So you
- 11:08:39would have to go to chat settings which
- 11:08:40we're going to cover here in a second as
- 11:08:41well. Uh but just going over here, you
- 11:08:43know, you can have a normal conversation
- 11:08:46like you would have with the chat GPT.
- 11:08:48So first thing to notice is if you go to
- 11:08:50the top left over here, you'll notice
- 11:08:52that I have kind of a robot emoji. That
- 11:08:55means I'm on a workflow agent. I can go
- 11:08:58over here. If I go to a personal agent,
- 11:09:00you'll see it has this icon which just
- 11:09:02said chat and this is one that I built
- 11:09:04out for SQL queries. And then if I want
- 11:09:07to go to a specific model, let's say I
- 11:09:08want to go to OpenAI and I want to use
- 11:09:12uh we'll go over here and say GPT5 Mini
- 11:09:14will actually have the logo of the
- 11:09:16particular platform. So I could see this
- 11:09:18tripping up people where you think
- 11:09:19you're actually talking to a specific
- 11:09:21model and you're talking to a personal
- 11:09:23agent or a workflow agent. So, make sure
- 11:09:25that you choose your model as required.
- 11:09:28You can see also, let's say I want to go
- 11:09:30over here and go to Gemini,
- 11:09:32Gemini Pro Preview. You can see it has
- 11:09:34the Gemini logo. I want to go to
- 11:09:36anthropic. Let's say I want to use a
- 11:09:39Sonet 45. You can see it changes to the
- 11:09:41the logo. So, let's just test something
- 11:09:44out here in the chat. I believe I have
- 11:09:46all these set up. If not, I'll just show
- 11:09:47you how to set this up really quickly.
- 11:09:50I'm going just going to ask in general
- 11:09:53what were the different guitarists? What
- 11:09:55were the different
- 11:10:00guitarists?
- 11:10:01Man, I can't spell today. In the band
- 11:10:06Red Hot Chili Peppers, I want to say
- 11:10:09they've had like three or four
- 11:10:10guitarists. And uh you can see we have
- 11:10:15our conversation and this looks very
- 11:10:18very similar into
- 11:10:21our our interface over here. So uh it
- 11:10:23says red hot chili peppers had several
- 11:10:25guitarists throughout their history.
- 11:10:27Main guitarist over here original
- 11:10:29guitarist and co-founder played on the
- 11:10:31albums for here. He tragically died over
- 11:10:34there. Uh John obviously the guitarist
- 11:10:38that just recently came back. talked
- 11:10:41about that. Dave Navaro gains addiction
- 11:10:43about that over there. And then Joshua,
- 11:10:46he now plays curled man. You can see
- 11:10:49early brief members also brought up over
- 11:10:51here. And I think I said there was four
- 11:10:53guitars. That's pretty spot on. And uh
- 11:10:56yeah, so we have all this information.
- 11:10:58Now, if I wanted to change this chat and
- 11:11:00go over here and let's use OpenAI this
- 11:11:03time. Use OpenAI Mini.
- 11:11:06What's
- 11:11:08or say who are all the different
- 11:11:10drummers
- 11:11:16tribute? And this might actually get it
- 11:11:18wrong because one of their recently
- 11:11:19drummers left, but we'll see what
- 11:11:22happens. Over there, we have GPT5 Mini.
- 11:11:25You can see it's thinking right now and
- 11:11:28uh we should be able to get a response
- 11:11:30assuming I already set this up.
- 11:11:32All right, so we have the drummers over
- 11:11:34here and as I mentioned it would get it
- 11:11:36wrong. Alex Bent just left and they
- 11:11:38actually got another Alex in the band
- 11:11:40but you have the original drummer and
- 11:11:42you have a bunch of replacements that
- 11:11:44happened over a few year period and then
- 11:11:46you have Bent and uh yeah so you can see
- 11:11:50got it mostly correct except for the new
- 11:11:52information which was kind of expected.
- 11:11:54One of the things with these models, and
- 11:11:56we talked about it in our section, is
- 11:11:58they don't do a great job of getting
- 11:12:00up-to-date information. You're going to
- 11:12:02have to supplement it in some sort of
- 11:12:04capacity. So, this kind of just shows
- 11:12:05you that side of things. Now, let's we
- 11:12:08can continue to do chats like this and
- 11:12:10change the models. Um, as you can see
- 11:12:13also in this chat, one really cool thing
- 11:12:15I forgot to bring up, we started the
- 11:12:17chat in Sunonnet 45 and we switched over
- 11:12:20to GPT4 or GPT5 mini. So, what's really
- 11:12:23cool is you can switch models directly
- 11:12:26here in the chat. You don't have to
- 11:12:28create new chats. And I just think
- 11:12:29that's really just an added benefit.
- 11:12:31Now, let's talk about personal agents.
- 11:12:33So, I'm going to create a new agent over
- 11:12:35here. You can actually prompt uh an
- 11:12:38agent. You can set an icon in name,
- 11:12:41enter in a description, uh specify a
- 11:12:43specific model. So, let's say I would
- 11:12:45just want to use Sonnet 45 with this
- 11:12:48agent. You can also add in tools
- 11:12:51depending on the model. So let's think
- 11:12:53of something on the fly. Uh my last
- 11:12:56video I did one particularly about uh
- 11:12:59BigQuery and metabase SQL. Know my
- 11:13:01full-time job I do write a lot of
- 11:13:03Redshift SQL. Not to access my an
- 11:13:06instance here, but let's go and build
- 11:13:08out something for a Redshift SQL
- 11:13:10debugger. So first we can change our
- 11:13:13icon. We can choose whatever we want.
- 11:13:15I'm just going to give me a check mark
- 11:13:17over here. And I'm gonna say red shift
- 11:13:20SQL debugger.
- 11:13:23And uh we can enter in a description. So
- 11:13:26this
- 11:13:28and actually I said enter agent
- 11:13:30description. So I say this agent helps
- 11:13:34debug red shift SQL. And by the way if
- 11:13:37you're watching this you're like why are
- 11:13:38you making another SQL um agent? Well,
- 11:13:41the thing is with SQL probably 80 to 90%
- 11:13:43is the same language language, but
- 11:13:45there's just some weird quirks and
- 11:13:47things like that. So sometimes you just
- 11:13:48need to define what SQL you're writing
- 11:13:51in. All right, so you are a debugger
- 11:13:56or writer that solely
- 11:14:00focuses
- 11:14:02on writing
- 11:14:04red shift SQL.
- 11:14:07no
- 11:14:10other SQL variations.
- 11:14:13Now, you would want to choose the model
- 11:14:14that you think would perform best on
- 11:14:16this task. Honestly, I've I've used a
- 11:14:18lot of the cloud models for coding and I
- 11:14:21do like using Sonnet over there. And
- 11:14:23then you can also add in tools. So, we
- 11:14:26can add in tools that are available to
- 11:14:28us. There's only two available tools
- 11:14:30right now. So, it says use SER API to
- 11:14:32search the web for relevant information.
- 11:14:33So, we could actually do that. In fact,
- 11:14:35I actually have a video or my first HTTP
- 11:14:39video, we talked about SER API. Here's
- 11:14:41the deal though. This isn't really going
- 11:14:43to help with coding. And then we have
- 11:14:45GINA AI for web relevant information. So
- 11:14:47when I talked about we weren't getting
- 11:14:49up-to-date information. Well, these
- 11:14:50tools would supplement it. So if I use
- 11:14:52SER API and that trivia search, it would
- 11:14:55tell me that Alex Ben left the band a
- 11:14:57few months ago and they added a new
- 11:14:58drummer. Um, so you can create these
- 11:15:00credentials over here and this allows us
- 11:15:03for a Google search. If we set this on
- 11:15:05and obviously like we need to choose our
- 11:15:07SER API and choose that and actually
- 11:15:09let's probably do this as a second
- 11:15:11version. I'll just show you how to do
- 11:15:12that here in a second. So I'm not going
- 11:15:14to set that up. I'm just going to say
- 11:15:16cancel. And this is one without a tool.
- 11:15:18So you click save and then [snorts] you
- 11:15:21can see now we have this icon so it
- 11:15:22stands out as a personal agent. And then
- 11:15:25it just knows like hey I want to debug
- 11:15:28or write shift SQL. I don't have to put
- 11:15:31that context in here in the
- 11:15:32conversations. So normally when I debug
- 11:15:35I'm have to paste in code. I'm also
- 11:15:37going to say hey this is redshift SQL
- 11:15:39only write in red shift SQL. I don't
- 11:15:40have to do that every single time
- 11:15:42because I already put in this as a
- 11:15:44system prompt and that should be very
- 11:15:45familiar with you because we just talked
- 11:15:47about that in the last lecture. So it's
- 11:15:49really cool that we can put in a system
- 11:15:50prompt over here. This has been around
- 11:15:51for a while by the way. This isn't
- 11:15:53anything brand new but it's a nice
- 11:15:55addition into any end. Let's create one
- 11:15:58new agent as well. And I'm going to say
- 11:16:00up-to-date news. Up to date.
- 11:16:06Let's just change an icon.
- 11:16:08What icon are we going to use? Let's use
- 11:16:11like the DM icon. It does not matter.
- 11:16:13Use this agent
- 11:16:16if we want
- 11:16:18up toate news. All right. And then we're
- 11:16:21going to put you are a research
- 11:16:27assistant.
- 11:16:28Use the SER API
- 11:16:33when you
- 11:16:35need to search
- 11:16:39your
- 11:16:41information.
- 11:16:43Obviously, this is a terrible prompt.
- 11:16:45And this time, let's use Gemini. So,
- 11:16:48we're going to go over here. Actually,
- 11:16:49let's go back and use OpenAI GPT5 Mini
- 11:16:52because we used that earlier. We're
- 11:16:53going to set up a tool. We're going to
- 11:16:55use SER API account. And I'm gonna use
- 11:16:58this over here. Um, you would obviously
- 11:17:00want to set up your SER API account.
- 11:17:01It's honestly really, really easy. Like,
- 11:17:05go to SER API. Let me just show you this
- 11:17:07really fast. Go to SER API,
- 11:17:11register, and literally on the front
- 11:17:13screen, it's going to give you your API
- 11:17:14key. Like, I kid you not, it takes you
- 11:17:17like two seconds to go over here. I
- 11:17:20already have mine, but you would want to
- 11:17:21register. I honestly just signed in with
- 11:17:23Google. gonna give the API key and
- 11:17:25you're gonna have to set that up. Um,
- 11:17:27all right. So, I'm just showing you this
- 11:17:29really fast. You don't have to follow
- 11:17:30every single step. I just want to show
- 11:17:32you really quick with tools. I do think
- 11:17:34there's going to be a lot more tools in
- 11:17:35the future, but right now, like probably
- 11:17:37a week or two weeks after this is
- 11:17:39released, there's only two tools. So,
- 11:17:40I'm going to click confirm. Your
- 11:17:42researcher use SER API tool. You need to
- 11:17:44search information.
- 11:17:47I might actually rewrite this. your
- 11:17:49research assistant. Use SER API tool
- 11:17:52to find the latest information
- 11:17:57or a query that someone writes.
- 11:18:01My only concern was if I put that trivia
- 11:18:04question again, it's not going to
- 11:18:05register uh that it should use the tool.
- 11:18:08So, I'm going to click save. Hopefully,
- 11:18:09I have some credits on there. I think I
- 11:18:11do. And then we're going to literally
- 11:18:13ask the same question. So, who are all
- 11:18:16the different drummers for Trivia? This
- 11:18:17could fail. uh this might not fail. So,
- 11:18:20let me show you also how we can get to
- 11:18:21the here. Let's imagine you're at a new
- 11:18:22chat. So, instead of going over here and
- 11:18:25hey, I want to go take a look at this
- 11:18:27up-to-date news. I'm going to go new
- 11:18:28chat, go over here to personal agents,
- 11:18:30and I'm going to click update news. And
- 11:18:32you can see it changes. And you can see
- 11:18:33we have one tool attached over here. So,
- 11:18:38let's try it out. So, who are all the
- 11:18:39different terms for Trivia
- 11:18:42again? Hopefully, I have some SER API
- 11:18:44credits. I probably do not, and that's
- 11:18:46why it went wrong. All right, let's try
- 11:18:48it again.
- 11:18:50Nope, I don't have any SER API credits.
- 11:18:52I never paid for the tool, so um minus
- 11:18:54the one HTTP video, but you're going to
- 11:18:56have to trust me on this one that
- 11:18:59essentially what happens is it would
- 11:19:00search. I would go scrape Google, find
- 11:19:03the information, and it would tell us
- 11:19:05what it is. Let me just try one other
- 11:19:08thing. Let's try a different model just
- 11:19:11in case. Like 99% sure I'm just out of
- 11:19:14credits. Um, maybe I'll just double
- 11:19:16check that. But I don't want to pay for
- 11:19:17extra credits because I only just used
- 11:19:19it for a demo API video. All right,
- 11:19:22let's just use Sonnet and see if we get
- 11:19:24that. Nope. So, something wrong. That's
- 11:19:26all right. But you understand now the
- 11:19:28basics behind personal agents. You
- 11:19:30essentially were able to add in a
- 11:19:32prompt. You can also add in a tool as
- 11:19:34necessary. You can see I've added insert
- 11:19:35API over there. Just make sure that you
- 11:19:37have credits for these tools, otherwise
- 11:19:39you're going to have the error that I
- 11:19:40have over there. All right, so that's
- 11:19:43pretty easy.
- 11:19:44Next, let me just show you. If you want
- 11:19:46to delete a tool as well, you can just
- 11:19:47go over here, right click that, and
- 11:19:50click delete. I don't want to have this
- 11:19:51here anymore. Boom. It's been deleted,
- 11:19:53and now it is gone from your personal
- 11:19:55agents. So, the other side, which is
- 11:19:57pretty cool, is going to be your
- 11:19:58workflow agents. So, essentially, what
- 11:20:00you can do on this side of things is
- 11:20:02actually chat with your workflows.
- 11:20:04You're going to have to need a few
- 11:20:05different things though to make that
- 11:20:07available for you. We're actually just
- 11:20:09going to build one workflow together.
- 11:20:12We'll throw it in over here on that side
- 11:20:14of things. So, we'll cover that here in
- 11:20:16a second. Um, let me also show you
- 11:20:19really fast some of the different
- 11:20:20settings behind ChatHub because I do
- 11:20:22think it is important. So, if we go to
- 11:20:24settings and we go into chat, here's the
- 11:20:26different models that you can make
- 11:20:28available. So, first thing you're going
- 11:20:30to do is click on these three dots and
- 11:20:32you can click edit provider. And what
- 11:20:35you want to do for chat hub is enable
- 11:20:37the different large language models. So
- 11:20:39you can see I enabled Open AI. Next, you
- 11:20:42choose the credential. So this is your
- 11:20:44account that we set up a little bit
- 11:20:45earlier in the course. And then if you
- 11:20:47want to limit models in any capacity,
- 11:20:49you can click over here. And then you
- 11:20:52can choose what model uh you want to
- 11:20:54specifically use. So let's say if you
- 11:20:56set this up, you only are allowed to use
- 11:20:58GPT40 latest. Um I'm not going to limit
- 11:21:01it. I'll just let people choose whatever
- 11:21:03they specifically want. And then you can
- 11:21:05see last edited just now. All these
- 11:21:06other ones I haven't updated as of yet,
- 11:21:08but you can just go in here and it
- 11:21:10literally takes two seconds to do that.
- 11:21:11Other thing as well is you have a users
- 11:21:13section. So what's pretty cool is you
- 11:21:16can actually invite users just to see
- 11:21:18chat. So if I click over here, invite,
- 11:21:20and you go into RO, you can see that
- 11:21:22there's something called a chat user. So
- 11:21:24what a chat user only allows them to do
- 11:21:26is access chat hub. They cannot access
- 11:21:29your specific workflows. So you can
- 11:21:31think of this in the data governance
- 11:21:32side of things. Let's say you're a tech
- 11:21:34lead or a data scientist for a specific
- 11:21:37team and you build out all these tools
- 11:21:39that you just don't want people to
- 11:21:40access the actual workflow behind it.
- 11:21:42You just want them to be able to write
- 11:21:44to that workflow. Well, that is where
- 11:21:47having a chat user helps. Like you can
- 11:21:49invite a lot of people. Let's say for my
- 11:21:51full-time job, I do the data for our
- 11:21:54risk and underwriting team. We probably
- 11:21:55have, I don't know, 25 different people
- 11:21:57in the department. I don't want all of
- 11:21:59them to have access to my workflows. So
- 11:22:01I'll make them chat users and then they
- 11:22:02can interact with those workflows as
- 11:22:05specifically required. All right. So I'm
- 11:22:06going to go back to chat hub now and
- 11:22:09we're actually going to build out a
- 11:22:10workflow agent. So we're actually going
- 11:22:12to have to start on this side of things
- 11:22:14and we're going to build our first step.
- 11:22:17And because it's literally chat, you
- 11:22:19know, it should be pretty common sense
- 11:22:20what we're going to start with. So we go
- 11:22:22over here and we say chat trigger. And
- 11:22:25this is going to start our workflow. The
- 11:22:27next thing to know is no matter what in
- 11:22:30your workflow, whether you only have a
- 11:22:32chat trigger and an AI agent or you have
- 11:22:34a full workflow, you have to respond
- 11:22:37back with an AI agent. So, pretty
- 11:22:40important on here. So, if I go to AI
- 11:22:42agent and the setting that you have to
- 11:22:44do is if you go over here and you choose
- 11:22:48enable streaming, this has to be on. If
- 11:22:51that is not on, your workflow will not
- 11:22:53work. So, make sure that you enable
- 11:22:55streaming on your AI agent. It is super
- 11:22:58important. Again, it doesn't matter if
- 11:22:59it's like right here or if it's like way
- 11:23:01down here and you have 10 nodes before
- 11:23:03your AI agent. Make sure that you enable
- 11:23:06streaming. Otherwise, it's not going to
- 11:23:08work. In addition, to have a workflow
- 11:23:12populate in the workflow agents, you
- 11:23:14have to publish your workflow. So,
- 11:23:16you're going to have to go through the
- 11:23:16process and publish it over here uh to
- 11:23:20make it available. Otherwise, that will
- 11:23:22not be there. Uh going in over here also
- 11:23:25for this chat trigger you'll notice it
- 11:23:27says make chat publicly available but
- 11:23:29then you also have make available in nan
- 11:23:32chat. So it says whether to make the
- 11:23:34agent available in n chat. You have to
- 11:23:37make this and it says your end users
- 11:23:38will be able to use this agent in chat
- 11:23:40once this workflow is published. Make
- 11:23:42sure to share this workflow with at
- 11:23:43least project chat user access to all
- 11:23:45users use it. Currently only streaming
- 11:23:47response mode is supported. So again
- 11:23:49with streaming take a look enable
- 11:23:51streaming. So, please set that up. It's
- 11:23:54super easy to do within our AI agent.
- 11:23:56We're just going to build out our very
- 11:23:58basic prototype. We're going to just
- 11:23:59have this chat trigger go straight into
- 11:24:01this AI agent. So, just set that up over
- 11:24:03here and then add in a chat model. Um,
- 11:24:06what we're going to do is we can add
- 11:24:10whatever. I'm going to use Gemini this
- 11:24:11time. So, I'll just use Gemini. We'll go
- 11:24:14over here to Gemini account one.
- 11:24:17Actually, it's my Gemini account 3, I
- 11:24:18believe, is the correct one. Uh, we're
- 11:24:20going to go into three. So, group 3 pro
- 11:24:23preview. Well, so that's there. I'm
- 11:24:26going to save that. And um, you know, I
- 11:24:29haven't really changed anything at all.
- 11:24:30I should probably add in a system
- 11:24:32message. And what are we going to
- 11:24:34actually try to solve on this side of
- 11:24:37things? You know, I haven't I didn't
- 11:24:38even think about this when we're
- 11:24:38building this out. Um, actually, it
- 11:24:41doesn't matter. Let's just test this
- 11:24:43out. We're going to save this. We're
- 11:24:44going to publish this.
- 11:24:47We should version this. Obviously, I
- 11:24:49would want to write things out. Version
- 11:24:50one, Gemini tests and uh test for live
- 11:24:56video.
- 11:25:01Got it. So, obviously we are live right
- 11:25:05now. I would recommend that you test
- 11:25:06this in here first before you actually
- 11:25:09publish this. And I'm just going to
- 11:25:11click over here and open chat.
- 11:25:15Then let's ask it a particular question.
- 11:25:18Um, what I'm going to ask over here is
- 11:25:21what is the most valuable basketball
- 11:25:26card in 1961 Fleer?
- 11:25:31And again, just a stupid question, but
- 11:25:34it should be a Will Chamberlain and
- 11:25:36we'll get the exact results here. I'm
- 11:25:38curious if it actually gives us like an
- 11:25:39auction price or just as the exact card.
- 11:25:42So, I could see both. They'll say this
- 11:25:45the Wilt Chamberlain and then it'll tell
- 11:25:47us some of the auction sales. But we'll
- 11:25:49see. Again, just make sure before you
- 11:25:50actually test in the chatub you have
- 11:25:52that. And look at that. Without a
- 11:25:54question, Wilt Chamberlain
- 11:26:00PSA 9 have sold for 600 to 700,000. That
- 11:26:03is correct. Runner up, Oscar Robertson,
- 11:26:06Jerry West, and Elgen Baylor. That is
- 11:26:10also correct over here.
- 11:26:12All right. Great. So, we're going to
- 11:26:14test this out now in ChatHub. So, again,
- 11:26:16we made sure that this is available in
- 11:26:18Cathub. We published our workflow and
- 11:26:20our AI agent is streaming. So, those are
- 11:26:22the three things you're going to have to
- 11:26:23do. We're going to go over here and
- 11:26:25we're going to just refresh this. Should
- 11:26:27be available now.
- 11:26:30Cool. You can see section 17, ChatHub is
- 11:26:32available on here. Now, I didn't add in
- 11:26:34a description. You can actually add in
- 11:26:35your description as well for your
- 11:26:37specific workflow. I didn't do that, but
- 11:26:39you can see this populates over here.
- 11:26:41Let me just show you really fast how we
- 11:26:42can add a description. So, click these
- 11:26:44three dots, edit description, and I'm
- 11:26:46just going to say basic
- 11:26:50tutorial showing chat hub like that.
- 11:26:53Again, nothing like too spectacular. I
- 11:26:56would recommend that you actually write
- 11:26:57a detailed description for your users
- 11:26:59that are doing this. Also, one of the
- 11:27:01things I would recommend to I'm going to
- 11:27:03have to republish this and save it for
- 11:27:05it to show, but that's all right.
- 11:27:06Obvious if you go over here, you can see
- 11:27:07edit description that's over here.
- 11:27:09Another thing I would recommend you do
- 11:27:11is even outside of any end, write some
- 11:27:13documentation on how things like work,
- 11:27:15like what type of prompts you're
- 11:27:16expecting to come in because obviously
- 11:27:19this is pretty open-ended right now.
- 11:27:20Like people can write whatever they want
- 11:27:23and I don't always recommend that
- 11:27:25especially if you're trying to get great
- 11:27:27results. So I'd build out some sort of
- 11:27:28template outside like these are prompts
- 11:27:30I would expect to have over here um just
- 11:27:32so that things work properly. Anyways,
- 11:27:35and we're going to ask over here what is
- 11:27:37the most valuable? Let's go. What is the
- 11:27:41most valuable card in 1961 Fleer
- 11:27:45basketball
- 11:27:48that is not a rookie card? All those are
- 11:27:51rookie cards. Um so, uh it's going to be
- 11:27:54a Celtics player if you know vintage
- 11:27:56basketball, but we'll get the exact
- 11:27:59results over here in a second.
- 11:28:02Let that run and you can see it's going
- 11:28:03to go into our chat hub. I'll show you
- 11:28:05some other pretty cool things here in a
- 11:28:06second once we get the actual answer.
- 11:28:09And again, you can see like I didn't
- 11:28:10define a model. All I'm defining is that
- 11:28:12specific workflow right over here. And
- 11:28:14it's going to get me that exact result.
- 11:28:17Show you where you can find this in your
- 11:28:18chat as well here in a second once this
- 11:28:20loads. That might take a little bit, but
- 11:28:24most valuable card 61 that is not a
- 11:28:26rookie card is Bill Russell Celtics.
- 11:28:28There you go. U so there's that one.
- 11:28:30Paul Aerin over there. Um technically
- 11:28:34not a rookie. Caveat will Chamberlain.
- 11:28:36It's amazing. It knows that because some
- 11:28:38people will argue that it's a rookie.
- 11:28:40Some people will not argue that it is
- 11:28:42not a rookie card. So, um I love that
- 11:28:45over here. Gemini is such a great model
- 11:28:47because it even knows the nuances of
- 11:28:49vintage card collecting, which is a
- 11:28:50very, very small niche of collectors out
- 11:28:53there that will argue about this. But,
- 11:28:56uh yeah, that's pretty amazing. Oh, we
- 11:28:58got this correct over here on that side
- 11:29:00of things. So actually if you want to
- 11:29:02test this out and you're like hey this
- 11:29:04might bug like where can I see what's
- 11:29:06going on. If you go to executions take a
- 11:29:08look at this. So we know this is coming
- 11:29:11from chatub and you'll see it says when
- 11:29:13chat message received it goes into the
- 11:29:15agent. So our chat message the most
- 11:29:16valuable card that is not a rookie card.
- 11:29:18And then we have our AI agent over here.
- 11:29:20You know, I didn't bring this up to the
- 11:29:21N team when we talked about ChatHub, but
- 11:29:24I do think it would be kind of
- 11:29:25interesting if there was like an icon
- 11:29:26over here that just mentioned that this
- 11:29:28was coming from ChatHub just to quickly
- 11:29:30see this because I can see people
- 11:29:32testing this directly in here or going
- 11:29:35ChatHub. So, maybe an icon would be kind
- 11:29:37of nice maybe in the future. I'll I'll
- 11:29:39bring it up next time I talk to them.
- 11:29:40Um, so again, this is like the very
- 11:29:43basic prototype. So, I'm going to pause
- 11:29:45the video really quick on my side of
- 11:29:48things. I want to build out another
- 11:29:49workflow within this chat hub. We're
- 11:29:52actually going to just probably make a a
- 11:29:54V2 over here for section 17. Both will
- 11:29:56be in the school group. And I just want
- 11:29:58to show you like what happens if you
- 11:29:59have a chat trigger, multiple nodes, and
- 11:30:01then another chat trigger or not chat
- 11:30:03trigger, but AI agent at the very end
- 11:30:06just to respond because it is slightly
- 11:30:08different. Um, so really quick, just
- 11:30:11before I pause to show you, [snorts] oh,
- 11:30:13if we want to get into a workflow agent,
- 11:30:15just click this over here, workflow
- 11:30:16agents, and then you can see I go over
- 11:30:18here to section 17, chat hub, and now
- 11:30:20we're directly in workflow agent. You
- 11:30:22can either go over here and start with
- 11:30:23that, or you can go into a new chat and
- 11:30:26uh, just go to workflow agents like
- 11:30:27that, and go into chatub. And, uh, I
- 11:30:31think there was one other thing I just
- 11:30:32wanted to show really fast. Me go back
- 11:30:34to new for here, workflow agents. So you
- 11:30:36can see when we write a description, we
- 11:30:39actually have the information about it.
- 11:30:40See it says generate a video from text.
- 11:30:42Again, I have to republish this if I
- 11:30:44want to make that work correctly. But
- 11:30:46we'll think of a example chat message,
- 11:30:49multiple nodes, and then a AI agent here
- 11:30:51at the very end. I'm just going to
- 11:30:52pause, think about it, and I'll be right
- 11:30:54back. All right, so let's uh build out
- 11:30:57our second workflow. I'm just go over
- 11:30:59here and call this section
- 11:31:02part two and let's get going. So, I
- 11:31:06thought of an idea. This isn't the best
- 11:31:08idea as well for chat hub, but it will
- 11:31:11kind of get you used to it. So,
- 11:31:13essentially what we're going to do and
- 11:31:15make a sticky note to explain. We're
- 11:31:17going to get a chat. So, we'll get a
- 11:31:19message.
- 11:31:21Then, what I want to do is uh learn
- 11:31:24about that message about the message.
- 11:31:27We're going to do that through an AI
- 11:31:29agent. I'm going to show you guys a
- 11:31:30little bit later actually some other
- 11:31:33nodes that you could utilize that
- 11:31:37oh but for now since I haven't taught
- 11:31:40you about those we're just going to use
- 11:31:42a blank AI agent. Then we're going to go
- 11:31:45and get an RSS feed based off of the
- 11:31:47company someone wants to research bas
- 11:31:50recent news around. We're going to limit
- 11:31:52those results because RSS feeds can give
- 11:31:55you a lot of results. Then what we're
- 11:31:58going to do is summarize the results
- 11:32:01so that way we have all the items in one
- 11:32:03thing and finally send the AI agent
- 11:32:06which then goes back to chat. So as I
- 11:32:10mentioned like there's way better ways
- 11:32:12that we could do this with like rag and
- 11:32:15really build out some advanced workflows
- 11:32:16with other AI nodes but since I haven't
- 11:32:19taught you guys that yet maybe we can
- 11:32:21explore this a little bit later on in
- 11:32:23the course. So let's do this one. So,
- 11:32:25first thing what I'm going to do is set
- 11:32:26up a chat trigger.
- 11:32:29And we'll grab that over here. And we'll
- 11:32:32want to make this chat available in any
- 11:32:34end chat. And uh we have that over here.
- 11:32:38Again, you can put a name and a
- 11:32:39description over here. I think I skipped
- 11:32:41this step a little bit earlier. So, I
- 11:32:44apologize on this. We'll say like RSS
- 11:32:47researcher
- 11:32:49for news
- 11:32:50researches RSS feed.
- 11:32:54for you. All right. So, we have
- 11:32:56something like that. Okay. The next
- 11:32:59step, what we're going to do is build
- 11:33:00out an AI agent. So, what we're going to
- 11:33:03do in inside our AI agent first is we
- 11:33:05have this connected to chat. So, we're
- 11:33:07good there. We're going to add in a chat
- 11:33:08model. So, let's add in anthropic on the
- 11:33:11side of things. I'm just going to use
- 11:33:12Sonnet 45. Right. Then, what I want to
- 11:33:15do is uh go and add option. And I want
- 11:33:19to go over here.
- 11:33:22Sorry, not add option, but I want to
- 11:33:23require a specific output format. And
- 11:33:26what we're going to do is add in a
- 11:33:28structured output parser. All right. So,
- 11:33:30what we're going to have in over here,
- 11:33:32we're just going to remove this last
- 11:33:34one. And then I'm going to go over here
- 11:33:36and call this RSS URL. So, RSS URL. And
- 11:33:41then I'm just going to put over here
- 11:33:43example.com
- 11:33:46RSS. So essentially what we're going to
- 11:33:48do with our AI agent now is we're going
- 11:33:50to go and add in a system message. Now I
- 11:33:52already practiced this for you guys. So
- 11:33:55I'm just going to type this out or sorry
- 11:33:58paste this over here and I'm just going
- 11:33:59to say a user will ask about the latest
- 11:34:01news about a company. I want you to
- 11:34:02research the RSS feed for a company and
- 11:34:04give me me the URL to use only output
- 11:34:07the URL. So essentially if I know a
- 11:34:10website has an RSS feed, they're going
- 11:34:11to constantly post news about it. I
- 11:34:13don't want to have someone research that
- 11:34:15RSS URL and spend time. This is going to
- 11:34:18automatically give me that RSS. So
- 11:34:20hopefully that makes sense. Obviously,
- 11:34:21you can build this out way better. I'm
- 11:34:23just making a very quick uh section of a
- 11:34:26very long YouTube video. All right, so
- 11:34:28we have that. Next thing we're going to
- 11:34:31do is add in RSS. So we're going to go
- 11:34:33RSS read. And what we're going to have
- 11:34:35to do is pass in that specific URL. So,
- 11:34:38I'm just going to test this out and I'm
- 11:34:40just going to say Open AI or something
- 11:34:42like that. So, what I'll do is first
- 11:34:45disconnect this and I'll say
- 11:34:49open AI. It'll go through here and it
- 11:34:54will get me that specific RSS URL. And
- 11:34:56you can see we have RSS XML like that,
- 11:35:00which I believe this is the correct one.
- 11:35:01I'm just going to pin this for testing
- 11:35:03purposes and uh just go over here and
- 11:35:07grab that. So, grab the RSS URL.
- 11:35:12You can see 793 items. Perfect.
- 11:35:14Obviously, we don't want to send 793
- 11:35:16items to our next AI agent. So, what I'm
- 11:35:18going to do is do a limit. So, we're
- 11:35:20going to go over here to limit. I'm
- 11:35:22going to set the max items of five.
- 11:35:24Obviously, you can change that as you
- 11:35:26want. And you'll see now we only have
- 11:35:28five items. We have all this in a table.
- 11:35:30Title, link, publish date, etc. Content
- 11:35:33snippet, good, ISO date. Great. Cool.
- 11:35:36So, next section, what we're going to do
- 11:35:38is add all of these items together. And
- 11:35:42again, I I told you a little bit earlier
- 11:35:44in the course. I like using summarize
- 11:35:47because I feel it gives us a lot more
- 11:35:49customization options to it. So, I'm
- 11:35:52going to go into concatenate.
- 11:35:54What we're going to concatenate is the
- 11:35:55content itself. So, we're going to throw
- 11:35:57content over here. And then I'm gonna
- 11:35:59add in actually a custom separator. So
- 11:36:02I'm going to do slashn for new line.
- 11:36:05Then I'm going to spam this a little bit
- 11:36:06and I'm gonna say slashn just to let it
- 11:36:08know like hey these are new sections
- 11:36:10slashn slashn. Right. So if I execute
- 11:36:13this step now you'll see we have this
- 11:36:16big text block. This is a part of an
- 11:36:18article or content. This is part of an
- 11:36:20article. And actually I should probably
- 11:36:21put a space here at the end just so that
- 11:36:24way it doesn't
- 11:36:26take up too much. Let's execute the
- 11:36:29step. Good. Now you can see it's a
- 11:36:30little bit more readable. Um, and you
- 11:36:32can see where we have these new lines
- 11:36:34and that is working correctly. Perfect.
- 11:36:37So now like we have one, two, three,
- 11:36:41four, five. Right? So that's the point.
- 11:36:43Now we're going to send all this back
- 11:36:44into an AI agent. So I'm going to go
- 11:36:46into our AI agents
- 11:36:48and uh, now we have to change a few
- 11:36:50things up. So, first thing we're gonna
- 11:36:52have to change up is we're gonna define
- 11:36:55below and let me grab what I put for the
- 11:36:58prompt over here.
- 11:37:00So, I wrote a very very basic prompt
- 11:37:02again like don't do this in a
- 11:37:04production. I said based on the content
- 11:37:06provide a two to three sentence summary
- 11:37:07based on what is going on with recent
- 11:37:08news. And there's better AI nodes out
- 11:37:11there as well for summarization. We're
- 11:37:13covering that a little bit later on. So,
- 11:37:15what we're going to do is just drag and
- 11:37:16drop this over here. I would just
- 11:37:17recommend making this an expression
- 11:37:19first. Then drag and drop that in. Cool.
- 11:37:22So we have this. And I'm just going to
- 11:37:23say contents
- 11:37:26like that. Perfect. So let me save that.
- 11:37:31We also need to attach a chat model. I'm
- 11:37:33just going to go open AI this time.
- 11:37:36It's fine for summarization. I'm going
- 11:37:38to go to my specific accounts and grab
- 11:37:40GPT5 mini. Obviously change the model as
- 11:37:44you specifically want. And we have one
- 11:37:46more thing we need to go over here and
- 11:37:48do. If you go over here and look for
- 11:37:50streaming. So you need to enable
- 11:37:52streaming and then perfect. So I just
- 11:37:54want to test this out really quick. So
- 11:37:56based on the content provided to three
- 11:37:58sentence summary. Perfect. All right.
- 11:38:00We'll execute the step.
- 11:38:04Just testing this out. Create. And there
- 11:38:07we go. Enterprise adoption. Canva modern
- 11:38:12PayPal Virgin Atlantic. BBBA Cisco. US
- 11:38:15government. Cool.
- 11:38:18all that information over there. Great.
- 11:38:20So now what we need to do is publish
- 11:38:22this workflow and unpin our data. So
- 11:38:24first unpin our data on that side of
- 11:38:26things. We're going to click save. So no
- 11:38:29no data is pinned. So we're looking good
- 11:38:31there. We're going to publish this. I'm
- 11:38:33going to say version one RSS
- 11:38:37AI and we're just going to say added in
- 11:38:40streaming. I don't know. It doesn't
- 11:38:41matter. Write write your changes over
- 11:38:43here. Obviously, for a change log, it's
- 11:38:45it's actually important, but um this is
- 11:38:48for just a quick video. Cool. So, we
- 11:38:50have all of this built in over here.
- 11:38:53And what we need to do is now go back
- 11:38:55into our chat. We're going to go into
- 11:38:57our workflow agents. And you can see our
- 11:38:59ISS researcher news is over here. So,
- 11:39:02I'm literally just going to type in a
- 11:39:04website. Let's go an example and do
- 11:39:06OpenAI. So, Open AI
- 11:39:10and it should now run that specific
- 11:39:12workflow. And we actually got an error.
- 11:39:15That is interesting. So I'm going to
- 11:39:17pause that and we're actually going to
- 11:39:18debug this here in a second. All right.
- 11:39:21So let's take a look at what happened.
- 11:39:24So I have our executions over here.
- 11:39:28So we sent in the message as open AI and
- 11:39:32I have a user asked about the latest
- 11:39:34news about a company. I want you to
- 11:39:35research RSS feed. Only output the URL.
- 11:39:38I need to actually define this a little
- 11:39:40bit better. Also, I apologize if you
- 11:39:42hear the dog in the background. Um, user
- 11:39:44will ask you latest, I want you to
- 11:39:46research RSS feed and give me the RSS
- 11:39:50URL to use only output the RSS URL.
- 11:39:58For example,
- 11:40:00if someone s searches
- 11:40:05or asks about Microsoft and I'm just
- 11:40:09going to search Microsoft RSS really
- 11:40:11quick. Microsoft RSS URL.
- 11:40:20I'm probably going to go into Perplexity
- 11:40:22and search that.
- 11:40:29What is the RSS URL? Microsoft. And I
- 11:40:32know it's on my other screen. I'm just
- 11:40:34going to show you guys this in a second.
- 11:40:37Cool. We have this over here. Okay.
- 11:40:39Let's just say Microsoft AIF RSS feed
- 11:40:43URL. I'm sure there's one over here.
- 11:40:49Great. So, we have that URL.
- 11:40:52I'm going to paste this over here.
- 11:40:55Microsoft AI
- 11:40:57Let's try this a second time. Cool. So,
- 11:41:01we'll save that and we'll go back over
- 11:41:04here and try this again. So, go to new
- 11:41:07chat again. This is why you build out
- 11:41:09and test a lot more than just once, but
- 11:41:12that's perfectly fine. All right. So,
- 11:41:14we're going to go into our RSS
- 11:41:16researcher news. I'll say latest news
- 11:41:20open AI. And hopefully this goes through
- 11:41:23the entire workflow.
- 11:41:30All right. So, we're having errors there
- 11:41:32again. I'm just going to stop this
- 11:41:34really fast. I'm going to remove that
- 11:41:37test one more time.
- 11:41:42And you know what? I need to republish
- 11:41:44this as well. So, we're just going to
- 11:41:46say v2
- 11:41:48because the changes I made in here
- 11:41:50aren't going to be applicable on that
- 11:41:52side of things. All right, we're going
- 11:41:54to try this again.
- 11:41:57And I'm just going to say latest news
- 11:41:58open AAI
- 11:42:04now. It looks like it's actually
- 11:42:05working. And I'm actually kind of glad
- 11:42:08that I have some errors so that way we
- 11:42:11can test this out. All right, so OpenAI
- 11:42:12says more than 1 million customers.
- 11:42:15Great. So now let's try something else.
- 11:42:17We'll say latest
- 11:42:19news anthropic.
- 11:42:23Let's see if we can get something with
- 11:42:24entropic.
- 11:42:29Please try again. All right. So now
- 11:42:31let's go back into our executions. Let's
- 11:42:32see what happened over here. What is our
- 11:42:34error on this side of things?
- 11:42:37We actually got a bad URL. So you can
- 11:42:39see it says that is the URL for
- 11:42:42Enthropic. However, that is not correct.
- 11:42:45And maybe they don't have RSS feed. Um,
- 11:42:47all right. Let's take a look at another
- 11:42:49one. Maybe Perplexity has one. So, we'll
- 11:42:51go latest news Perplexity. Again, I I
- 11:42:54know this wasn't the best example, and
- 11:42:56I've told you guys this a few times, but
- 11:42:58we'll do latest news perplexity. See if
- 11:43:00it works.
- 11:43:03I assume it's the same thing with
- 11:43:04Perplexity.
- 11:43:08D code 403.
- 11:43:11All right. So, we're not actually
- 11:43:12getting the RSS URLs. Uh, let's look up
- 11:43:16what are some other RSS URLs for AI
- 11:43:19news.
- 11:43:24And, uh,
- 11:43:26just going to search this really fast.
- 11:43:29All right, we're going to look up
- 11:43:31something over here
- 11:43:33and say uh, AI models FYI. That's one
- 11:43:38possibly. Hold on. I'm trying to find
- 11:43:40another good one. Oh, business insider
- 11:43:43might be interesting.
- 11:43:45Let's do business insider.
- 11:43:48We'll go latest
- 11:43:51business insider.
- 11:43:55All right. And if this doesn't work, you
- 11:43:57know,
- 11:43:59I'll have to change some stuff. But, uh,
- 11:44:02hopefully this example works. Knock on
- 11:44:04wood. There we go. So obviously like
- 11:44:08this needs a lot of work just based off
- 11:44:10of the prompting if there's an RSS feed
- 11:44:12or not like sending some message back
- 11:44:14that there is none. But you can see in
- 11:44:16this workflow um it worked properly. You
- 11:44:18can see we have our chat message goes to
- 11:44:20our AI agent. AI agent finds the RSS for
- 11:44:23business insider
- 11:44:25RSS over here. It gives us 20 new
- 11:44:28articles and then we have the updates
- 11:44:30over there. Um we can try one more.
- 11:44:33Let's do Crunch Base. So, we go latest
- 11:44:36news. Crunch base.
- 11:44:38News. Crunch base.
- 11:44:44That should be fine. Try it out. I see
- 11:44:47it as a subdomain, at least on this RSS
- 11:44:50list I'm looking at. So, I don't know if
- 11:44:51it'll work correctly or not. Again,
- 11:44:54that'd be something I'd probably put in
- 11:44:55the prompt if it doesn't.
- 11:44:58There we go.
- 11:45:01Awesome. So that is a chat hub.
- 11:45:04Essentially, if you want to
- 11:45:06have an AI agent start, I would
- 11:45:08recommend you have a chat message, AI
- 11:45:11agent or another node, which I'll show
- 11:45:13you shortly, processes, what's in that
- 11:45:15message. Then you build out a very basic
- 11:45:17workflow. I just shown you RSS one as
- 11:45:20well as summarize and then go back into
- 11:45:22an AI agent. Just imagine that there's
- 11:45:24streaming. Sorry. So just make sure that
- 11:45:27you enable streaming at the very end. So
- 11:45:28it goes back into chat hub again. In
- 11:45:31chatub you have personal agents which
- 11:45:33you can define your own system prompt.
- 11:45:35You can add in tools. Right now there's
- 11:45:36two tools but there will be more
- 11:45:38workflow agents work directly with your
- 11:45:40workflows that have a chat trigger and
- 11:45:42then streaming available at the very
- 11:45:44end. Um you can go and use this kind of
- 11:45:47like chat GPT. You can go and choose a
- 11:45:49model if you want or you can go over
- 11:45:51here and choose a personal agent which I
- 11:45:53talked about or your workflow agents.
- 11:45:56And again you can choose different
- 11:45:57options based off of the security level
- 11:45:59of a person. So if you don't want them
- 11:46:01accessing your workflows, you can just
- 11:46:02set them to chaton privilege. And that
- 11:46:05is chat hub. So next section we're going
- 11:46:08to do is talk about testing and
- 11:46:09debugging strategies, which I guess we
- 11:46:12already looked at a little bit of the
- 11:46:13basics over here, but that was a little
- 11:46:14bit of a warm preview for that. Uh keep
- 11:46:17up the awesome work. You know, uh we've
- 11:46:20learned a lot so far in this course and
- 11:46:22hopefully you have really increase your
- 11:46:25A skills. All right, see you in the next
- 11:46:27section. So this section is going to
- 11:46:28cover something pretty important. A lot
- 11:46:31of people will find it boring and um
- 11:46:33know it's unfortunate but it is
- 11:46:35something that you need to understand to
- 11:46:37really take your workflows to the next
- 11:46:39level and this is going to be error
- 11:46:42handling. So what happens if there is an
- 11:46:45error in a workflow? Everyone thinks
- 11:46:46they can build out perfect workflows but
- 11:46:49the real world hits you. In reality
- 11:46:51that's not the case. Like there's always
- 11:46:52going to be some sort of edge case. some
- 11:46:55API service is going to be down and
- 11:46:57you're going to be stuck with an error.
- 11:46:59And you know, a lot of people that are
- 11:47:01on the amateur level will not build out
- 11:47:04specific use cases for error handling.
- 11:47:06And it's important, really important.
- 11:47:09Um, that's going to be one part of the
- 11:47:10video. Another one is going to be about
- 11:47:12debugging and really kind of thinking of
- 11:47:16how can you fix an error that is going
- 11:47:18on in your workflow. We're also going to
- 11:47:21cover some of the nodes and that can be
- 11:47:23helpful in debugging as well because
- 11:47:26there's two sides of debugging, right?
- 11:47:28There's the debugging of your workflow
- 11:47:30not working but then um that goes into
- 11:47:33errors but you also have the side of
- 11:47:35debugging where like you're not getting
- 11:47:36the correct results in some capacity. So
- 11:47:39just wanted to share some nodes that
- 11:47:41might help over there show some
- 11:47:43strategies and we're going to combine
- 11:47:44these together. So this is going to be
- 11:47:46our section on error handling as well as
- 11:47:49debugging. Hopefully you learn a few
- 11:47:50things and hopefully it it really
- 11:47:52doesn't for you.
- 11:47:55Promise you after this we're going to go
- 11:47:56into some really cool AI notes in the
- 11:47:58next lesson so that way you have some
- 11:48:00more exciting things to learn. Again, I
- 11:48:02understand this is not everyone's
- 11:48:04favorite topic. So, let's jump into it.
- 11:48:08First thing what we want to do is make
- 11:48:10some errors happen. And uh it'll be kind
- 11:48:13of fun. So, what I'm going to do is do a
- 11:48:15manual trigger. And what we'll set up is
- 11:48:18an AI agent. So, just go over here, grab
- 11:48:20our AI agent. You should be pretty
- 11:48:21familiar with how to set this up, and
- 11:48:24we're going to remove this chat trigger.
- 11:48:27Let's remove that out of the way.
- 11:48:30And uh yeah, so what we're going to do
- 11:48:32is go in over here. We're going to say
- 11:48:35define below. And the first thing what
- 11:48:37we're going to do is make an error
- 11:48:38happen on purpose. Obviously, I don't
- 11:48:40have a chat model. I'm just going to run
- 11:48:41this workflow. And you'll see it says
- 11:48:44problem executing workflow. There was a
- 11:48:46problem executing the workflow has
- 11:48:47issues and cannot be executed. the
- 11:48:48workflow has issues. Let's try running
- 11:48:51it internally over here. And you'll see
- 11:48:54that there's issues. So, I'm going to
- 11:48:55just save this. If we go into our
- 11:48:57executions, you'll see we also have
- 11:49:00errors over here. And uh yeah, it says
- 11:49:03error in 23 milliseconds.
- 11:49:06And you'll see exactly where our error
- 11:49:08is at. Um this tells us we're in a test
- 11:49:10execution. If we don't have this icon,
- 11:49:12we're in a normal execution in
- 11:49:14production. So, be wary of that. But
- 11:49:18there's some ways to handle these errors
- 11:49:20here in a second. I just was going to
- 11:49:21show you like what happens. Now, by
- 11:49:23default, I think everyone knows like if
- 11:49:26there is an error, your workflow will
- 11:49:28stop. But that's not always the case. We
- 11:49:30can actually change the way that we
- 11:49:33approach this. So, we can actually
- 11:49:36continue forward. And it says execution
- 11:49:38will continue even if the node fails.
- 11:49:40And you can see we have this icon over
- 11:49:42here. So, we can run this. And actually
- 11:49:44looks like we probably have another
- 11:49:45error probably because we don't have a
- 11:49:46chat model in over here. Um but you can
- 11:49:49see we would be able to continue this
- 11:49:51forward. Another option that we have is
- 11:49:53we can go and continue with an error
- 11:49:56output. So what this allows us to do is
- 11:49:59have a second output. If our note is
- 11:50:01success, we go in this way. If we have
- 11:50:03an error, we go into this path. And why
- 11:50:07this is important? Well, you can set
- 11:50:09that second path to notify people on
- 11:50:11your team or notify yourself. You might
- 11:50:13have that second path. Send an email to
- 11:50:16an IT administrator or send an email to
- 11:50:19your AI engineer that's focused directly
- 11:50:21on building out your NA workflows. So
- 11:50:25with an error, you have the three
- 11:50:27options. You can either stop the
- 11:50:28workflow, nothing happens. You could go
- 11:50:31and continue the workflow even if a node
- 11:50:34fails or you could go into that specific
- 11:50:37error output. Now the second part of it
- 11:50:39is what happens if there's a failure?
- 11:50:42Can we retry it? Well, you can. And you
- 11:50:44can see that there's an option over
- 11:50:45here. It says retry on fail. So, if you
- 11:50:48click on that, you have a few different
- 11:50:50settings. So, by default, it says you
- 11:50:52have three max retries. So, this tells
- 11:50:54you how many times you're going to retry
- 11:50:56that particular node. Why this is
- 11:50:59helpful? If you're calling an API or
- 11:51:01you're using like some sort of AI agent,
- 11:51:03sometimes the API service is going to be
- 11:51:05down. So, you might want to retry this
- 11:51:07again multiple times for it to work
- 11:51:09properly. So, um, by default it's 1,000
- 11:51:12milliseconds, which is 1 second. You can
- 11:51:15change that. If you go over here, 2
- 11:51:17seconds, 3 seconds, you get the point.
- 11:51:19The same with the retries. It doesn't
- 11:51:21have to be three, it could be two, it
- 11:51:23could be four, it could be seven. You
- 11:51:25choose what you want. And these settings
- 11:51:28can be in addition to what happens with
- 11:51:30the error. So, you can see this example
- 11:51:32over here. Um, we have retry on failure.
- 11:51:35And then we go in here and say hey we
- 11:51:37want to actually continue even after we
- 11:51:39retry. So you see the icon has changed
- 11:51:43if we want to continue error output
- 11:51:44again icon has changed as well. Um so
- 11:51:48not icon but the ends have changed over
- 11:51:50here as well. So you have a few
- 11:51:51different options on the errors on that
- 11:51:54side. Again this is by default you can
- 11:51:56uh stop workflow and doesn't retry on
- 11:51:59fill but if it's really important I
- 11:52:00would just recommend that you change
- 11:52:02that. Uh, okay. So, we have that side
- 11:52:06covered. The next thing what I want to
- 11:52:09talk about is the error node. And this
- 11:52:12is pretty cool because if we go into
- 11:52:13this side over here, you'll see there's
- 11:52:17something called stop an error. So, let
- 11:52:18me just say stop and error. So, whenever
- 11:52:21this node is called, there's going to be
- 11:52:24an error message. So, you can see stop
- 11:52:25an error and it says an error occurred
- 11:52:28by default. We can say that. So, an
- 11:52:30error occurred. And why this is helpful,
- 11:52:35you can see we have the red X. This is
- 11:52:37what happens, by the way, if your
- 11:52:38workflow fails. When you go to
- 11:52:40executions, you'll see it over here. It
- 11:52:42says error.
- 11:52:44You can see stop in error. This isn't
- 11:52:46set up correctly, which is why that has
- 11:52:48issues. This actually has an error. But
- 11:52:51yeah, so you can specify what type of
- 11:52:54error message you want. I'm going to say
- 11:52:57error occurred like this.
- 11:52:59You can see that has specifically
- 11:53:01changed. But why this is helpful? Let's
- 11:53:03imagine you have some sort of logic in
- 11:53:05your workflow and you say anything that
- 11:53:07goes to this branch, this should never
- 11:53:08happen. Well, and let me just show you
- 11:53:11that as example. Let's say we have an if
- 11:53:13statement or we could have a switch or
- 11:53:15something like that. And you know, okay,
- 11:53:17all cases technically should be if, but
- 11:53:19just like there's this really weird edge
- 11:53:21case that sometimes happens and if this
- 11:53:23happens, someone needs to know. Um, so
- 11:53:26let's go and run the stop and error. So
- 11:53:29if this returns false, it has that
- 11:53:32specific error and obviously you can
- 11:53:34build upon that error as you
- 11:53:36specifically want. But you have that
- 11:53:40option over here to use it. So again in
- 11:53:44our AI agent we have the options to
- 11:53:46retry and this is all nodes by the way
- 11:53:48just to show you it's not just a agent.
- 11:53:51If we go to edit sets we go to settings
- 11:53:54you can see over here we have the option
- 11:53:56to retry on fail and and error. Right?
- 11:53:58So we have that option in both but we
- 11:54:03have those settings to stop and handle
- 11:54:05errors. We also have a way to cause
- 11:54:07errors on purpose with the stop and
- 11:54:09error. Again, very commonly used after
- 11:54:12an if node or a switch node.
- 11:54:15And you know, obviously it depends on
- 11:54:18where you want to host this, but
- 11:54:20typically after some sort of logic like
- 11:54:22this where you expect 99% of the cases
- 11:54:24to go in one direction, if it's
- 11:54:26something really weird, stop an air. But
- 11:54:29let me also explain there's some other
- 11:54:31really cool things that you could build
- 11:54:33out with this because if you actually
- 11:54:36have errors, you could send those errors
- 11:54:39to another workflow. So let me show you
- 11:54:42this for example and we're just going to
- 11:54:43create a brand new workflow.
- 11:54:46I'm actually go over here workflow
- 11:54:49create and personal
- 11:54:51and I'm just going to make this as like
- 11:54:53a part two. So what we have over here is
- 11:54:57something called an error trigger. So it
- 11:54:58says triggers the workflow when another
- 11:55:00workflow has an error. So this is really
- 11:55:03amazing because what happens? Let's
- 11:55:06imagine you have a larger workflow and
- 11:55:08you have some sort of error. Well, you
- 11:55:11can send that error to this workflow and
- 11:55:14this does all your error handling like
- 11:55:16hey you need to message this person it
- 11:55:18you need to log this into a spreadsheet.
- 11:55:21It's really important. So like two
- 11:55:22concepts that you should know is like
- 11:55:24when you have an error what do you need
- 11:55:26to do? Number one, you need to log your
- 11:55:28errors. So, I have a background in risk
- 11:55:32and um it's really important if you have
- 11:55:35any sort of error that you need to log
- 11:55:36it. So, make sure log your errors. This
- 11:55:39could be in a database, this could be a
- 11:55:43sheet like a document of any sort, but
- 11:55:46you need to specify like when did you
- 11:55:48have an error? You need to keep control
- 11:55:50of that. The second is you need to let
- 11:55:53people know. So, let people know.
- 11:55:56who should know like should the AI
- 11:55:58engineer knowments
- 11:56:03or should like it know but that's the
- 11:56:05two components of it and you can build
- 11:56:07out a workflow based around this like
- 11:56:08this error trigger you could connect
- 11:56:10this into sheets
- 11:56:13or data tables and then you could like
- 11:56:16add in a new row and let's imagine you
- 11:56:18had something that over here just solely
- 11:56:21focused on errors. So you could add in
- 11:56:23new rows over there. Let's say you have
- 11:56:25a Slack channel. So you go into Slack.
- 11:56:27And I haven't set up Slack on this
- 11:56:28instance. Um, but you could also make a
- 11:56:31message. So let's say
- 11:56:35you want to create a channel based
- 11:56:36around it. You can send a message.
- 11:56:37Whatever the case is, send a message.
- 11:56:41So you have an error. It gets sent over
- 11:56:44here and then you know it updates a row
- 11:56:47in a spreadsheet and it lets someone
- 11:56:48know that something has happened. You
- 11:56:50could also send an email. So if you go
- 11:56:52to Gmail, right, you can send an email
- 11:56:54as well and send a message and maybe you
- 11:56:57have all three. But it's just super
- 11:56:59important that you log your errors,
- 11:57:01whatever the case that is. And then you
- 11:57:02let people know that something has
- 11:57:04failed. Now, you might be wondering,
- 11:57:06it's like, okay, this is really cool,
- 11:57:07but how do we get an error in here to
- 11:57:11start this workflow? So if you take a
- 11:57:14look at these three dots over here, and
- 11:57:15you go into settings, and what we have
- 11:57:18next is our errors. So it says error
- 11:57:21workflow to notify when we have an
- 11:57:22error. You just go over here and choose
- 11:57:24your specific workflow. So you can see I
- 11:57:27have an email newsletter error trigger
- 11:57:28over here and an and error handling part
- 11:57:30three. So those were two that I've built
- 11:57:33out. I need to publish this if I wanted
- 11:57:35to specifically send my errors over
- 11:57:37here. So make sure that you do that. I'm
- 11:57:40just going to close that out over there.
- 11:57:42Um so that's the other step, right? Make
- 11:57:43sure you save this, you publish it, so
- 11:57:45then it will be available on that side
- 11:57:48of things. But yeah, that's all you got
- 11:57:50to do. Click that and then when you have
- 11:57:51an error, it will populate over here and
- 11:57:54you can see your executions like, hey,
- 11:57:56when did this specifically run and you
- 11:57:58can see that directly in over there. So,
- 11:58:01I think that's pretty much the basics of
- 11:58:03error handling that I want to cover. I'm
- 11:58:05going to take a look at my notes and
- 11:58:07double check. Um, but we're going to
- 11:58:08talk about debugging here in a second if
- 11:58:10I didn't forget anything. All right. I
- 11:58:12just want to also quickly show you what
- 11:58:14the error looks like. So for example,
- 11:58:17you get the URL. It tells you what
- 11:58:19description of the error is. You also
- 11:58:23see like what was sent over. This was an
- 11:58:25error that I had with Nano Banana Pro
- 11:58:29that I had specifically. A lot more
- 11:58:31other details associated with it. And
- 11:58:33this is what you would kind of break up
- 11:58:35and put within your spreadsheet. So you
- 11:58:39can see, for example, this is kind of
- 11:58:41broken out. We can get the URL, the
- 11:58:44description, the date which I would put
- 11:58:47as now and workflow name. Obviously, I
- 11:58:50grabbed this from my other video which
- 11:58:52we already had this sort of built out
- 11:58:54for air handling and I have a full video
- 11:58:57like I said covering air handling in
- 11:58:58more details if you want to learn just
- 11:59:00like everything else in uh this
- 11:59:02particular video or I should say like
- 11:59:0580% of it. But that is kind of the first
- 11:59:08part of this video. The second part what
- 11:59:11I want to cover is essentially how do we
- 11:59:13debug
- 11:59:17so
- 11:59:20how do we debug workflows now first
- 11:59:26thing I would probably recommend that
- 11:59:29you do for debugging is try to see if
- 11:59:33you can solve it yourself. So, it seems
- 11:59:36self-explanatory, but number one, I'd
- 11:59:38say try and solve first
- 11:59:47if you can't figure it out. And there's
- 11:59:49ways to take a look at it. The second
- 11:59:51thing I would try to do is
- 11:59:55grab the error
- 11:59:57and then a few screenshots and send it
- 12:00:00to an LLM.
- 12:00:05So, how would that work?
- 12:00:07Let's make an error on purpose. So,
- 12:00:11I'm going to go and
- 12:00:14grab my uh
- 12:00:16example from one of the previous videos.
- 12:00:19We'll just go all these workflows really
- 12:00:21quick.
- 12:00:23And I want to say it was in the web
- 12:00:25scraping one. We had this. So, what I'm
- 12:00:28going to do is make an error on this
- 12:00:31HTTP request on purpose. Let's say we
- 12:00:35have
- 12:00:37Oh, yeah. We don't have an API key in
- 12:00:39here. So, this is going to be perfect.
- 12:00:40So, let me execute this step
- 12:00:44and we're going to make an error happen.
- 12:00:46So, let me grab a manual trigger,
- 12:00:51which it says I need only one manual
- 12:00:53trigger. That's fine. Just remove this
- 12:00:55here.
- 12:00:57And we're gonna make error happen over
- 12:00:59here on purpose. So
- 12:01:01hopefully
- 12:01:05we can test this out.
- 12:01:09All right. Oh, you know why? There is
- 12:01:15to turn off this filter.
- 12:01:17So, by the way, if you want to test
- 12:01:18things out, you want to deactivate
- 12:01:20things, we'll just go to the next node.
- 12:01:24Cool. This is going to air.
- 12:01:27Great. So, take a look at this error
- 12:01:30that we have over here. It says
- 12:01:31forbidden apps. Check your credentials.
- 12:01:33You're not subscribed to this API. Now,
- 12:01:35this is pretty basic. Like, it's saying
- 12:01:37that there's an issue with the API. And
- 12:01:39this is pretty self-explanatory. Like, I
- 12:01:41don't have an API key. And you'll notice
- 12:01:44the same errors happen over and over
- 12:01:46again. But, let me show you what we
- 12:01:48would do in this case. So, like imagine
- 12:01:50I don't know what's happening. I'm going
- 12:01:52to go to Claude. And we're going to go
- 12:01:54over here, Claude. Let's
- 12:01:59say what is my error my N any workflow
- 12:02:08workflow
- 12:02:10and can you help solve it?
- 12:02:15So, first I send the error message. So,
- 12:02:18you can see we have our error message.
- 12:02:20We have that over here. The next thing I
- 12:02:22would do is try to get all the different
- 12:02:24settings. And I'm just going to close
- 12:02:25out some of these over here. I don't
- 12:02:27need that part too.
- 12:02:29That's okay. Next, I would just scroll
- 12:02:32down. So, we have everything through the
- 12:02:35JSON, I want to say.
- 12:02:39Or no, it's not through the JSON. We
- 12:02:41have the first part over here missing.
- 12:02:44So, let's just take the other
- 12:02:46screenshots.
- 12:02:50So we have two screenshots showing
- 12:02:52everything in these parameter section
- 12:02:54and I would also take a screenshot of
- 12:02:57what's happening over here.
- 12:03:05All right. So we have the three
- 12:03:06screenshots. We have the all the
- 12:03:07workflow and we have the different
- 12:03:09images inside. Let's see what happens.
- 12:03:18looking at own workflow there is clear
- 12:03:20you're not subscribed to this API you
- 12:03:23need active subscription
- 12:03:27so it's saying update your any end
- 12:03:29credentials with the correct API key now
- 12:03:31obviously I do have a subscription but
- 12:03:33the hint is over here update your any
- 12:03:35end credentials with the correct API key
- 12:03:37obviously I removed the API key here so
- 12:03:40it's not working and that is the case
- 12:03:44right so pretty self-explanatory Okay,
- 12:03:48additional issues in image one. Your
- 12:03:49headers show this looks truncated. Make
- 12:03:53sure both your actual API key, not just
- 12:03:56X. So, obviously read through all of
- 12:03:58this, but this was just one example and
- 12:04:00it's hard to replicate your exact error.
- 12:04:03But I can tell you from a lot of
- 12:04:04debugging, like I'll recognize the same
- 12:04:07patterns over and over again.
- 12:04:09However, if I don't, I just send it to a
- 12:04:12large language model. I use I like using
- 12:04:14Claude. put the screenshots in over here
- 12:04:17and let it go. And I also know through
- 12:04:20MCP you could also
- 12:04:23test it with that and you could also
- 12:04:25possibly upload JSON. I just find that
- 12:04:28this approach typically works best for
- 12:04:30me. So that is what I use. And um one
- 12:04:36other thing to note is if you're using
- 12:04:37APIs and I don't know if I talked about
- 12:04:39this in the API section or not.
- 12:04:41Depending on the error code, it could be
- 12:04:44your fault or it could be someone else's
- 12:04:45fault. So if it's like a 500 error code,
- 12:04:49that is the server's fault. That's not
- 12:04:51your fault and I wouldn't really worry
- 12:04:52about it. There's something else going
- 12:04:54on on that side of things. Another thing
- 12:04:57is like how do you debug workflows when
- 12:05:00you get the wrong output? So,
- 12:05:03I'm just going to say like errors. Now,
- 12:05:06how about like wrong output? Well,
- 12:05:08really when you get the wrong output
- 12:05:11things I would recommend.
- 12:05:14So, number one, I would take a look at
- 12:05:17your prompting to take a look how you
- 12:05:21prompt because chances are your prompt
- 12:05:25is inefficient in some capacity and it's
- 12:05:28just not going to work. So, I'd take a
- 12:05:30look at your prompt. There's probably
- 12:05:31something off or something that you
- 12:05:33could tweak in your prompt. Maybe you're
- 12:05:34getting a lot of hallucinations,
- 12:05:36something in your prompt. Maybe you need
- 12:05:37to add in more context, etc. The second
- 12:05:41thing I would take a look at is your
- 12:05:43data like is the data bad.
- 12:05:46And how how can we also test this? So,
- 12:05:49few things that we can take a look at
- 12:05:51over here. You have a node called
- 12:05:53compare data sets. So, maybe you just
- 12:05:55have a wrong data set. you have some
- 12:05:58issues within a data set, you could
- 12:06:00possibly compare it. Another thing you
- 12:06:03could take a look at is duplicates. So,
- 12:06:07sometimes you don't want to have
- 12:06:08duplicates in your data set. So, I
- 12:06:11didn't mean to click clear duplication
- 12:06:12history. Um, but I would test duplicates
- 12:06:16as well. Like, you have some bad data
- 12:06:19with duplicates. Make sure to keep that
- 12:06:21in over here. We've already talked about
- 12:06:23this, but for testing purposes,
- 12:06:26sometimes I want to limit and maybe I
- 12:06:29don't want to send 10, 15, 20 items at a
- 12:06:31time. I just want to send in one item
- 12:06:33and see if I can get the correct results
- 12:06:35or not. So these are three nodes that
- 12:06:37I've used before just for testing
- 12:06:40purposes and trying to debug. So compare
- 12:06:42data set to see like if one data set
- 12:06:45matches the other, maybe you have an
- 12:06:46incorrect data set, not source of truth.
- 12:06:50Remove duplicates. Duplicates are a big
- 12:06:52issue in a lot of different databases.
- 12:06:55So maybe you're having duplicates and
- 12:06:57that's why you're having an issue in
- 12:06:58some capacity as well as the limit node
- 12:07:01over here. So to kind of reiterate
- 12:07:05what is going on few things number one
- 12:07:09lot of different settings within your
- 12:07:10nodes. You can retry on fail which I
- 12:07:12would highly recommend for critical
- 12:07:14nodes. I would also possibly change on
- 12:07:18what happens with a specific error. you
- 12:07:19have stop workflow, continue or pass. In
- 12:07:22addition, if you have workflows with you
- 12:07:26know that 99.99% of the data should go
- 12:07:29in one path, but if it goes another
- 12:07:30path, there should be um alarm bells
- 12:07:33raising. Use a stop and air with
- 12:07:35something like an if or a switch. How do
- 12:07:38you debug workflows? In my opinion, the
- 12:07:39best way to learn is to try and solve it
- 12:07:41yourself. So, like try to see what is
- 12:07:44going on, try to fix it. Um, one other
- 12:07:47thing I should mention is a lot of
- 12:07:49people mess up with their merges. So,
- 12:07:53please double check what is in your
- 12:07:54merge settings. I see so many people
- 12:07:56using the incorrect merge. And I've
- 12:07:58covered a decent amount in this video.
- 12:08:00I've covered it a long time in another
- 12:08:01video. Make sure your merges are correct
- 12:08:03because that is one of the biggest
- 12:08:05errors I see uh for people that reach
- 12:08:07out and I say, "Hey, my my workflow has
- 12:08:09errors. How can I fix it?" Oh, I see the
- 12:08:12merge is incorrect. Um, another thing I
- 12:08:15see as well. So, and maybe I'll put this
- 12:08:18over here as examples.
- 12:08:22Oops.
- 12:08:24And we'll put this over here as
- 12:08:25examples. Like I see merge incorrect.
- 12:08:30I see terrible bumps,
- 12:08:35which this includes like stuffing.
- 12:08:39too much information
- 12:08:41or asking too many things
- 12:08:46or not enough context.
- 12:08:50So I just want to be a little bit more
- 12:08:51explicit with you guys and explain why
- 12:08:55let's say missing examples. Always when
- 12:08:58you provide examples you're going to get
- 12:09:00better results. So spend some time and
- 12:09:03write that or the data is bad and you
- 12:09:05can take a look at bad data. compare
- 12:09:07data set, row duplicates as well as
- 12:09:10limit. And that is going to be our
- 12:09:12section on error handling. I know
- 12:09:13there's really not any um workflows for
- 12:09:16us to build together for this one. We
- 12:09:19could do a a a debugging of a specific
- 12:09:23workflow. Uh but I think we were going
- 12:09:25to probably do that another time. So, as
- 12:09:28promised, the next section is going to
- 12:09:29be more advanced AI agents and or not AI
- 12:09:32agents, but advanced AI notes. And I
- 12:09:34think you're going to enjoy that one. So
- 12:09:35see you there. All right. So this next
- 12:09:37section we're going to be focusing
- 12:09:39specifically on different types of AI
- 12:09:42nodes available in any and so far
- 12:09:44throughout this course we've been solely
- 12:09:46focusing on AI agents and they're great
- 12:09:48because you can use them in a lot of
- 12:09:50different use cases but typically it's
- 12:09:53not the best scenario. There's sometimes
- 12:09:55that you want to use a basic LLM chain.
- 12:09:57There's some times you want to use
- 12:09:59information extractor. We're going to go
- 12:10:01through all these different types of
- 12:10:02nodes. explain why you specifically want
- 12:10:05to use them. And like all of our other
- 12:10:07sections, we'll cover some examples at
- 12:10:09the very end. So that way you have some
- 12:10:11practice using them in real workflows.
- 12:10:14So let's not waste any time and jump
- 12:10:16right into it. All right. So first node
- 12:10:19I want to cover over here is something
- 12:10:22called the basic LM chain. Now I also
- 12:10:25want to show you where you can find
- 12:10:26these AI nodes because if you go over
- 12:10:27here, let's just trigger our workflow
- 12:10:30manually for now. And you'll see that we
- 12:10:32have a section called AI. And we have a
- 12:10:35ton of nodes. And obviously, we're not
- 12:10:38going to cover every single one of these
- 12:10:40today. But we're going to start off with
- 12:10:43our basic LM chain. And jumping into our
- 12:10:47basic LM chain. Let's remove this chat
- 12:10:50trigger. You'll notice it's very similar
- 12:10:52to our AI agent. If we click in over
- 12:10:55here, uh connected chat trigger like we
- 12:10:57can set that up or you can define below.
- 12:11:00There's output format. There's a
- 12:11:01fallback model. There's chat messages.
- 12:11:04If using a chat model, you have batch
- 12:11:06processing. Um, so very similar, but
- 12:11:09you'll notice a few things are missing.
- 12:11:11Like even if we go over here, output
- 12:11:13fallback, which is great. We don't have
- 12:11:16any tools. We don't have any memory. So
- 12:11:20this is essentially your dumbed down AI
- 12:11:23agent. Well, it can perform a lot of the
- 12:11:26different tasks. you can't access tools
- 12:11:28and also you don't have access to memory
- 12:11:31and there's nothing wrong with that
- 12:11:32because a lot of things we've covered so
- 12:11:34far in the course you know we just used
- 12:11:37a model a fallback model if possible in
- 12:11:40output parser you don't need an AI agent
- 12:11:43like everything in your AI agent is over
- 12:11:45here in your basic LM chain and again
- 12:11:48you can just go over here and choose a
- 12:11:50model right great we'll use open AI over
- 12:11:53here um could you could choose whatever
- 12:11:56model use specific one doesn't really
- 12:11:57matter. I'm blind right now and could
- 12:12:00not find open AI but you can see for
- 12:12:02model or fallback model got an output
- 12:12:05parser. So you know starting this off
- 12:12:08hopefully you already learned like we
- 12:12:10could simplify things. So if you see a
- 12:12:12basic LM chain right someone just
- 12:12:14doesn't want to use a tool and that's
- 12:12:16why uh it's available for you. All right
- 12:12:19so next we're going to jump into uh
- 12:12:22something called sentiment analysis.
- 12:12:24This is a little bit more fun. And
- 12:12:27again, we'll just jump into here
- 12:12:30and uh we'll jump into sentiment
- 12:12:32analysis. So, very straightforward. You
- 12:12:35take a look at it. It says, is this
- 12:12:37positive, negative, or neutral? And it
- 12:12:40asks you to add in a particular model.
- 12:12:43So, we're just going to add in Open AI
- 12:12:47to save some money.
- 12:12:53go over here,
- 12:12:55use GPT5 mini.
- 12:12:57So, not the best accuracy, but that's
- 12:12:59all right. And let's just add in some
- 12:13:02text. And let's say you wasted
- 12:13:07eight hours of my time. I have no idea,
- 12:13:09by the way, how long into the video uh
- 12:13:12this is, but I'm recording in different
- 12:13:14sections, but feel like this is way over
- 12:13:16eight hours by now.
- 12:13:19Uh we have here. Okay, that's
- 12:13:22interesting.
- 12:13:24We don't have any error here.
- 12:13:28All right, let's
- 12:13:30use a for model just in case. Please
- 12:13:34sit. We're going to get an error here as
- 12:13:37well.
- 12:13:42And it worked this time. So, remember
- 12:13:45how we talk about fallback models?
- 12:13:48So, I don't think you actually have a
- 12:13:49fallback model option. over here for the
- 12:13:52sentiment analysis.
- 12:13:54We do not and I think this was something
- 12:13:57I did bring up to the NAN team on a call
- 12:14:00like some of these other advanced nodes.
- 12:14:01They don't have fallback models yet. So
- 12:14:04if it did, this is a perfect example.
- 12:14:06OpenAI failed and Anthropic
- 12:14:10came to the rescue on that side of
- 12:14:11things. But you can see that you wasted
- 12:14:13eight hours of my time. It went into the
- 12:14:15negative branch because it just wasn't a
- 12:14:20something positive, right? You can have
- 12:14:22positive, neutral, or negative. This was
- 12:14:24just straight up a negative. Let's do a
- 12:14:27critique of the video. Awesome video.
- 12:14:29Awesome video.
- 12:14:32However,
- 12:14:34after 10 minutes,
- 12:14:37I got bored. This might go into the
- 12:14:40positive branch. It might go neutral. I
- 12:14:42think this should go neutral
- 12:14:46if I was making a decision
- 12:14:48and uh it went into the neutral branch.
- 12:14:51There's some positive aspects of it. The
- 12:14:54boredom
- 12:14:55that's negative. So it fit into the I'd
- 12:14:59say thank you so much
- 12:15:02for dropping a uh 10 plus hour any end
- 12:15:07video.
- 12:15:08That's my goal when I was recording
- 12:15:10this. I wanted to make this 10 to 15
- 12:15:12hours
- 12:15:14and uh we'll see what happens over here.
- 12:15:17You can see this get put into our
- 12:15:21positive range. And what's great about
- 12:15:24it is you can actually build out
- 12:15:26workflows based around it. So you could
- 12:15:28have a certain action if it goes to
- 12:15:30positive, a certain action if it goes to
- 12:15:33neutral, or a certain action if it goes
- 12:15:35to negative. And you can think about
- 12:15:36this. You have a chatbot on your site
- 12:15:38asking for feedback or email feedback
- 12:15:41goes through gets information goes
- 12:15:44through sent analysis and then you build
- 12:15:45out different scenarios based off of
- 12:15:47positive, neutral or negative. Maybe
- 12:15:48it's negative. You give someone a coupon
- 12:15:51and you have someone reach out and see
- 12:15:53like why this end up being a negative.
- 12:15:56Just trying to think on my feet like
- 12:15:57some of the different ways that you
- 12:15:58could use this. There's tons of
- 12:16:00different ways. You could also scrape
- 12:16:02social media posts for a brand and see
- 12:16:04like, okay, how many are positive? How
- 12:16:06many neutral? how many are negative.
- 12:16:07Let's reach out to these users that just
- 12:16:09had a negative experience or let's
- 12:16:11reward the people that are talking
- 12:16:12positive about our brand online. Uh
- 12:16:15something very similar to sentiment
- 12:16:17analysis. And by the way, I just want to
- 12:16:18quickly cover some of these properties
- 12:16:20over here. So you can actually change
- 12:16:22your categories
- 12:16:24and you can add to these if you just put
- 12:16:26a comma. So you can see like added to
- 12:16:28four. By default, it's positive,
- 12:16:29negative, and neutral. But you have the
- 12:16:31option to change those. Uh you can
- 12:16:33include detailed results. So if I
- 12:16:35actually rerun this again, it says
- 12:16:37sentiment scores are LM generated, not
- 12:16:39statistically measurements. They may be
- 12:16:41inconsistent across runs and rough
- 12:16:43indicators. And that is true. Uh there
- 12:16:45is actually fine-tuned sentiment
- 12:16:47analysis. If you want to go to hugging
- 12:16:49face, we're going to cover that
- 12:16:50literally towards the end of the video.
- 12:16:52Not today's lecture, but probably like
- 12:16:55lecture 30 or something like that. Also,
- 12:16:57I don't know if you guys are watching
- 12:16:58like one lecture at a time. You're just
- 12:16:59trying to watch this all at once. Um I
- 12:17:02don't know. Either way, I'm recording
- 12:17:04this over multiple days, but we uh go
- 12:17:08over here and you can see the strength
- 12:17:10associated with the 095 confidence 0.98.
- 12:17:13I'll run this again uh and we'll see if
- 12:17:16it gets the same score. It probably
- 12:17:17won't because again it's LM base and
- 12:17:20it's very hard to get the same results
- 12:17:22over and over again. And uh it's the
- 12:17:24same exact results. So, take back what I
- 12:17:25say.
- 12:17:27Let's go back to you wasted eight hours
- 12:17:29of my life. wasted
- 12:17:32eight hours of my life.
- 12:17:35Unsubscribe.
- 12:17:38We'll run that. Let's go to the negative
- 12:17:40branch. Also, if you're seeing those
- 12:17:42errors over here, I just haven't
- 12:17:44attached a trigger. So, I don't want to
- 12:17:47do that right now. You can see negative
- 12:17:48the strength associated with it as well
- 12:17:50as the confidence. Cool. So, that is
- 12:17:54sentiment analysis. Do I have anything
- 12:17:56else? There's a system prompt. So, we've
- 12:17:59already covered how you could update
- 12:18:00system prompts. One of the cool things
- 12:18:02about a bunch of the AI nodes is the N
- 12:18:04team already developed decent system
- 12:18:06prompts. It's not perfect. I would
- 12:18:08fine-tune this for your specific use
- 12:18:10case and write a better prompt, but out
- 12:18:12of the box, it's way better than the
- 12:18:14you're a helpful assistant. And with
- 12:18:17batch processing, yeah, so that is
- 12:18:19essentially the first part of sentiment
- 12:18:22analysis. Something that is very similar
- 12:18:24is going to be this next node. So if we
- 12:18:25go into AI once again, we have something
- 12:18:29called a text classifier. So very
- 12:18:32similar at the very top where we have an
- 12:18:34option to specifically classify
- 12:18:39text and you can see we have that over
- 12:18:40here. Person sentiment text to analyze.
- 12:18:44So very similar. And uh you want to add
- 12:18:47in categories this time. So we could add
- 12:18:50in let's say for example we're doing a
- 12:18:53review site or not review yeah let's say
- 12:18:56we want to classify reviews based off of
- 12:18:59product. So
- 12:19:01we'll say tech product
- 12:19:06or a tech service.
- 12:19:10So like imagine you're a PC store and
- 12:19:12you either fix computers or you uh sell
- 12:19:15computers. So, someone is trying to
- 12:19:20buyronics.
- 12:19:26Someone needs
- 12:19:28help with
- 12:19:30their tech.
- 12:19:36Now, I'd really write this like a way
- 12:19:38better description, but you can see I've
- 12:19:40just wrote some basic stuff. And uh what
- 12:19:42I'll keep saying is my Windows
- 12:19:47computer
- 12:19:49keeps saying
- 12:19:52it's infected
- 12:19:54with malware.
- 12:19:57Right. And we're going to run this now.
- 12:19:59Misspelled probably malware. These
- 12:20:01aren't the best descriptions. And you
- 12:20:03can see this jumps into the tech service
- 12:20:05branch. And we have one item there. If
- 12:20:09we want to change this out and say I
- 12:20:13I want to buy
- 12:20:16RAM
- 12:20:18for my computer.
- 12:20:23My nice absolute great spelling of
- 12:20:25computer too. This should go into the
- 12:20:27other category and you can see it goes
- 12:20:29into the tech product ranch. So you can
- 12:20:32add in categories as you want. Keep
- 12:20:34expanding these out
- 12:20:37over there. Uh but this is
- 12:20:38classification. People sometimes get
- 12:20:40these two confused. Just remember
- 12:20:42sentiment is like okay this is great
- 12:20:45terrible etc. And you can obviously
- 12:20:46change these. This is kind of more broad
- 12:20:50and a lot of different applications with
- 12:20:51this. Sentiment analysis is a type of
- 12:20:54text classification. So there's other
- 12:20:57things you can also have over here. So
- 12:20:59you can allow multiple classes to be
- 12:21:01true. So imagine if someone says, "I
- 12:21:03want to I want to buy computer parts and
- 12:21:06need help building a computer. I want to
- 12:21:10buy computer parts
- 12:21:13and need help
- 12:21:15building a computer.
- 12:21:19Should knock out both of these." Again,
- 12:21:22I don't know because I'm writing this on
- 12:21:23the fly, but
- 12:21:26we'll see.
- 12:21:28And actually I didn't mark this as
- 12:21:31multiple. So this time it probably will.
- 12:21:36And you can see it flagged for both tech
- 12:21:38product branch as well as tech service
- 12:21:40branch. Um when no clear match you could
- 12:21:43have another option. So this is kind of
- 12:21:45like switch like okay what happens if we
- 12:21:48can't match something up? You could
- 12:21:49either disregard it or output on other
- 12:21:51branch. You can see over here now we
- 12:21:53have other on that side of it. What else
- 12:21:57is worth bringing up? System prompt.
- 12:21:59Again, you can see they did a pretty
- 12:22:01good job building out a basic system
- 12:22:02prompt. And I would just change it up
- 12:22:04for that specific domain. So, it says,
- 12:22:06"Please classify the text provided on
- 12:22:08the user into one of the following
- 12:22:09categories and use the provided
- 12:22:10formatting instructions below. Don't
- 12:22:12explain or only output the JSON." Again,
- 12:22:14pretty nice because you don't even have
- 12:22:15to worry about output parser. I'd
- 12:22:17probably just expand on this slightly,
- 12:22:19but out of the box, it's perfectly okay.
- 12:22:22So, that is going to be our text
- 12:22:23classifier. I'm just going to mark this
- 12:22:25off on my page over here to the side.
- 12:22:28Next, we should talk about the
- 12:22:30information extractor. Another really
- 12:22:33important node. So, we go to information
- 12:22:35extractor. And uh I like this a ton when
- 12:22:38working with chat because essentially
- 12:22:41what you can do is pass in text and tell
- 12:22:44it to say, "Hey, I want to grab this
- 12:22:46piece of information." So, let's say I
- 12:22:49want to grab and I'm trying to think of
- 12:22:51something that would be kind of
- 12:22:52interesting. Um,
- 12:22:55let's think of this for a second. We're
- 12:22:57going to have some sort of text
- 12:23:00and oh, here's an idea. Company. So,
- 12:23:03let's say you want to have a chat and
- 12:23:06say someone says, I want you to research
- 12:23:10you to research Upper Deck. Imagine
- 12:23:15you're doing some sort of review of a
- 12:23:18potential customer
- 12:23:20and you just type into a chat, I want
- 12:23:21you to research Upper Deck. So name is
- 12:23:24going to be company, type is going to be
- 12:23:26a string and you can change this to a
- 12:23:28boolean, true or false, a date, a number
- 12:23:30or a string and say this is a company
- 12:23:35that someone
- 12:23:38wants to look to. All right. So, we'll
- 12:23:42require this and obviously like this is
- 12:23:44going to be built out based off of what
- 12:23:45you think people are going to be
- 12:23:46prompting um through your chat for, but
- 12:23:49we'll execute this step
- 12:23:52and we will get nothing because I'm lazy
- 12:23:55and I forgot to attach in a chat model.
- 12:23:58So, let's add in that over here. We'll
- 12:24:00execute the step
- 12:24:03and we'll see what happens.
- 12:24:07It says company Upper Deck. So, we can
- 12:24:09change this up again. And um let's say
- 12:24:15I don't know,
- 12:24:16Billy's
- 12:24:18Cheese Steak
- 12:24:21LLC
- 12:24:25had a phenomenal sandwich. I don't know.
- 12:24:30And this is just like peak spelling. I
- 12:24:32can't spell cheese steak. I can't spell
- 12:24:34phenomenal. Um,
- 12:24:38did I at least spell sandwich correct? I
- 12:24:39did. Obviously, I know how to spell, but
- 12:24:42it's it's hard sometimes with the
- 12:24:43keyboard down here looking at the camera
- 12:24:45talking and uh we'll just see if it
- 12:24:48pulls out Philly's Cheese Stakes LLC.
- 12:24:50And you can see it pulls out Philly
- 12:24:51Cheese Stake LLC. So, pretty cool. You
- 12:24:54can have your chat go directly into your
- 12:24:58information extractor and then you get
- 12:25:00the JSON that you specifically want to
- 12:25:02pass on in your workflow. and maybe
- 12:25:05based off of that information that was
- 12:25:07extracted, we send that to an API of
- 12:25:09some sort. Um, but very very common to
- 12:25:12do it based around that. Another use
- 12:25:14case for the information extractor is
- 12:25:17just a lot of text. Imagine you have
- 12:25:20like very long paragraph and I'll just
- 12:25:24give an example.
- 12:25:25go into uh
- 12:25:28long paragraph
- 12:25:31form is
- 12:25:33so like imagine you had a very large
- 12:25:36piece of information
- 12:25:40and I'm just grabbing in text but you
- 12:25:42have like all this text and you don't
- 12:25:44want to read it and you just want to
- 12:25:45grab a few pieces of information from
- 12:25:47it. You could do that over here. Um
- 12:25:51and in this case like this is the first
- 12:25:53time I'm reading this Lauram text. I
- 12:25:55didn't even generate it. I just grabbed
- 12:25:56it directly from the website. But you
- 12:25:59could just ask a few questions like what
- 12:26:01do you want to extract from here and it
- 12:26:04out. So let's say for example, let's I'm
- 12:26:08just going to read this the text. So it
- 12:26:10says contrary to popularity floor misma
- 12:26:11is not simply random text has roots in
- 12:26:13classic Latin literature from 45 BC
- 12:26:16making it over 2,000 years old. Okay. So
- 12:26:19let's change this up instead of a name.
- 12:26:22And what we're going to say is age.
- 12:26:26And we're going to say how old is the
- 12:26:27text? How old is the text in years?
- 12:26:32And what we're going to do is just say
- 12:26:34this is a number. Again, very basic, but
- 12:26:36you can see like there's a lot of text
- 12:26:38over here. And let's add in some more as
- 12:26:40well.
- 12:26:43Obviously, I don't want to spend all
- 12:26:44this extra money. But let's say we have
- 12:26:46all this text. All we care about in this
- 12:26:48text is the age. Just going to be a
- 12:26:50number. I run this now and we'll get our
- 12:26:53result. It should say 2000. Well, it
- 12:26:55says 2069. Why is that?
- 12:27:00That's weird. Why does it say 2069?
- 12:27:05Oh, you know what it's doing? 45 BC and
- 12:27:08then it's adding 45 to get it to 2000
- 12:27:11and then um No, that would Yeah. No,
- 12:27:15it's a little bit off on there. But
- 12:27:16either way, um that is funny.
- 12:27:22Is it still looking at that 2024 context
- 12:27:24window
- 12:27:27to to show the math really quick? If
- 12:27:29you're confused why I got 2069, so well
- 12:27:3345 years before zero. So 45 plus and
- 12:27:38we're at year zero, right? So then you
- 12:27:40add 2024 and that's equal to 2069. So it
- 12:27:44didn't take into effect. almost
- 12:27:46recording in 2026. But
- 12:27:50yeah, that's where we got that number
- 12:27:51from. So it was actually pretty smart on
- 12:27:54that side of it. And you know, we can
- 12:27:56add in, by the way, multiple attributes.
- 12:27:58So you can specify it's required or not.
- 12:28:00So if it doesn't figure it out, you can
- 12:28:02just save this as like not required. And
- 12:28:04again, you can change the date and
- 12:28:06things like that. Ozer, here you have
- 12:28:08other options. So this is your system
- 12:28:10prompt. Maybe you want to add in a
- 12:28:11little bit more context over there.
- 12:28:13Again, it's not bad, but I would just
- 12:28:16add in more additional elements as
- 12:28:17needed. But I use this a lot. I've had a
- 12:28:20customer that I essentially helped him
- 12:28:22and like take pages of information and
- 12:28:25just grab a few different pieces of
- 12:28:26information that he wants. And man, it's
- 12:28:28a it's a game changer. Know that word
- 12:28:30gets thrown all the time, but that's
- 12:28:32information extractor. I'm going to
- 12:28:35close out of uh from ISPM because we
- 12:28:39don't need that anymore. And what we're
- 12:28:41going to do next is jump into the
- 12:28:44summarization chain. So very similar uh
- 12:28:47to information extractor. However, it
- 12:28:49just gives you a summary at the very
- 12:28:51end. And there's a few different ways
- 12:28:52that you could use the summarization
- 12:28:54chain. And you can take a look. It's
- 12:28:57like another one of these nodes.
- 12:29:00We'll paste that in over here.
- 12:29:03Cool. And you can see a data to
- 12:29:06summarize. Now, the one thing that's
- 12:29:07interesting with the summarization chain
- 12:29:09since we are taking a look at a lot more
- 12:29:13information or it's just assumed we're
- 12:29:15taking a look at a lot more information.
- 12:29:17The end team does not allow you to
- 12:29:20actually put in the text over here. So,
- 12:29:21you can see information extractor. We
- 12:29:24had this this text. However, that is not
- 12:29:26available in the summarization chain
- 12:29:28which I have iffy thoughts about. I feel
- 12:29:30like you still should have that option
- 12:29:32to classify the text or not classify but
- 12:29:35put in the text over there. I understand
- 12:29:37why they didn't. So you could either use
- 12:29:39a node as input, you could upload a
- 12:29:43binary file or use a document loader. I
- 12:29:45don't even want to cover document
- 12:29:46loaders until we get into the whole rag
- 12:29:49side of it. We're going to talk like an
- 12:29:50hour or two hours on a rag, I have a
- 12:29:52feeling. So let's not cover that today.
- 12:29:55We already talked about binary files,
- 12:29:57right? You can have like a PDF of some
- 12:30:00sort and pass it in or a document or you
- 12:30:02could literally just have all this
- 12:30:04information in an edit set node or
- 12:30:06whatever JSON that you want and pass it
- 12:30:08directly in over there. Uh chunking
- 12:30:12again I'm don't want to cover this until
- 12:30:14we get into the rag side of things. So
- 12:30:16we're just going to keep this by default
- 12:30:17right now. And then you can see there's
- 12:30:20different ways to summarize over here as
- 12:30:22well. So you have map reduce which it
- 12:30:24just recommends at over here. and it
- 12:30:27says summarize each document or chunk
- 12:30:29individually then summarize those
- 12:30:30summaries. So I guess I have to teach
- 12:30:33you a little bit about rag but
- 12:30:35regardless what map produce essentially
- 12:30:36does is you have a full document imagine
- 12:30:40it's a thousand paragraphs and we assume
- 12:30:42each chunk is going to be one paragraph.
- 12:30:45So what it does is it summarizes each
- 12:30:47paragraph and then takes all those
- 12:30:49summaries and then summarizes it at the
- 12:30:52very end. uh refine. What this does is
- 12:30:55it summarizes the first paragraph. Then
- 12:30:57it reads paragraph 2 and says, "Hey,
- 12:30:59well, your final summary should include
- 12:31:01this from paragraph 2. Then it goes to
- 12:31:03paragraph 3. Actually, you're missing
- 12:31:05this detail as well. Add that in." Chunk
- 12:31:07four has this information. Add that back
- 12:31:09in. And then stuff, it's literally just
- 12:31:12uploading a whole document. And you say,
- 12:31:14"Summarize this all at once." But based
- 12:31:17off of what you choose, you'll have
- 12:31:19different prompts over here to tweak. So
- 12:31:21you have a lot more prompt engineering
- 12:31:23based around this. Uh so you can see
- 12:31:25subsequent refine prompt and then the
- 12:31:27initial prompt and then stuff you just
- 12:31:29have the one prompt. So these will have
- 12:31:31two prompts each whether you use map
- 12:31:34reduce or refine. By default it just
- 12:31:36uses map reduce but I would recommend
- 12:31:38that you choose one of these. Test it
- 12:31:40out because sometimes you might get
- 12:31:42better results based off of what you
- 12:31:44want. start with map reduce to see if
- 12:31:46it's working correctly for that
- 12:31:48particular domain or the piece of
- 12:31:50information that you have in there.
- 12:31:52Again, I don't want to confuse you too
- 12:31:54much, but just remember map produce, we
- 12:31:57summarize each uh section and then we
- 12:32:01take those summaries and summarize that
- 12:32:02for our final answer. We go into refine
- 12:32:06which every section we keep summarizing
- 12:32:09it and get more information as we go a
- 12:32:11little bit further. And why this works
- 12:32:12as well is if you think about how a
- 12:32:14paper is written, typically you're going
- 12:32:16to have most of the summary or
- 12:32:18information here at the very top. So it
- 12:32:20should have a pretty good idea of what
- 12:32:21that paper is about, then stuff is
- 12:32:24really used for a small amount of text.
- 12:32:26Like if you have a document that's 20 30
- 12:32:28pages, probably wouldn't recommend
- 12:32:30stuff. But if you have something short
- 12:32:31like that Loris film I showed you,
- 12:32:33probably isn't acceptable route to go.
- 12:32:36So that's a summarization chain. Another
- 12:32:39thing that's really u important to know
- 12:32:41is different services have AI nodes in
- 12:32:46over here and you can use them as well.
- 12:32:48So if you go into AI you'll notice that
- 12:32:50there's anthropic in Google Gemini as
- 12:32:53well as open AAI. Uh so each of these
- 12:32:55have a lot of different nodes. So you
- 12:32:58can see OpenAI has anything from
- 12:32:59generate a video which I wouldn't use
- 12:33:01this right now. We're going to talk
- 12:33:02about generating videos. You can create
- 12:33:04conversations. You can work with files.
- 12:33:07You have audio actions, image actions,
- 12:33:09which is like analyze an image, generate
- 12:33:11an image or edit image. You could also
- 12:33:13message a model and just uh go into open
- 12:33:17AI to show you. Let's say we want to
- 12:33:20analyze an image of some sort. So we'll
- 12:33:23go analyze image and uh yeah, you can
- 12:33:26see we have this particular node going
- 12:33:28into Gemini. You can go to Gemini on
- 12:33:31there and you can see a lot more actions
- 12:33:33built. So we have 15 over here. I've
- 12:33:35used Gemini when I want to process
- 12:33:38YouTube videos. So like I want to get a
- 12:33:40summary of a YouTube video. I find it
- 12:33:41really helpful just to go through the
- 12:33:44native node directly in here and uh I
- 12:33:47just go to analyze a video and you can
- 12:33:49put in a URL like I put just YouTube
- 12:33:51over here. I fill out all this stuff. So
- 12:33:53it says like text input. What are you
- 12:33:55prompting it? The one thing that's kind
- 12:33:57of weird right now with Gemini, and I
- 12:33:59don't know if they're ever going to do
- 12:34:00this or not, is I wish you could specify
- 12:34:03an output parser here, like just
- 12:34:05annoying that you can't, not to go on a
- 12:34:08tangent. You also have anthropic. So if
- 12:34:11I go to anthropic, you can see anthropic
- 12:34:13has 10 actions. So you analyze a
- 12:34:14document, upload a file, etc. Analyze an
- 12:34:17image. So depending on your use case,
- 12:34:19you know, if it's maybe analyzing an
- 12:34:21image or video, maybe you don't want to
- 12:34:23put that into whether a basic LLM chain
- 12:34:26or an AI agent because you just want
- 12:34:28that specifically. And feel free to mess
- 12:34:31with it because sometimes it works in
- 12:34:33your workflow, sometimes it won't. Um,
- 12:34:36I've had issues analyzing videos within
- 12:34:39a uh a basic LM chain or an AI agent
- 12:34:41whereas this worked perfect. So wanted
- 12:34:44to show those to you. And lastly, what I
- 12:34:47wanted to talk about is OCR. So,
- 12:34:50essentially what OCR allows us to do is
- 12:34:52take an image of text, whether it's like
- 12:34:55handwritten text or uh photos, copied
- 12:34:58text, and then extract all the
- 12:35:01information on to it and uh get some
- 12:35:04results. So, let me just show you. We
- 12:35:06can do this in Mistl although OCR is
- 12:35:09available in all the larger models.
- 12:35:11Mistrol right now and obviously things
- 12:35:13change really fast is the premier OCR
- 12:35:16model. So you just go to Mistral AI and
- 12:35:19you can extract text. So it says
- 12:35:21document extract text. You can choose
- 12:35:23the model which this is just the one
- 12:35:25over here. You set binary data document
- 12:35:29type whether it's a document or an image
- 12:35:32and then you specify this. And I'd show
- 12:35:35you how to do this. We're actually going
- 12:35:36to be using OCR as one of our examples
- 12:35:39in this video. So, we'll do an example
- 12:35:42of like analyzing a YouTube video uh
- 12:35:44analyzing specifically with this and
- 12:35:47maybe like one or two other examples. I
- 12:35:49think this is a pretty good use case
- 12:35:51just to show you some cool stuff that we
- 12:35:53could build now that we know how an AI
- 12:35:55agent works, how we know also about some
- 12:35:57of these other nodes as well. So, I'm
- 12:35:59going to take a quick break and then
- 12:36:00we're going to jump into a few examples
- 12:36:03shortly. All right. So, I brainstormed
- 12:36:05three ideas. is we're going to build
- 12:36:06them out together. Uh I haven't even
- 12:36:07started the workflow, so you'll kind of
- 12:36:09just see my process of how we going to
- 12:36:11build these out. And yeah, let's jump
- 12:36:13into it. So the first one over here and
- 12:36:16obviously if you want to try it yourself
- 12:36:17first before I build these out, kind of
- 12:36:20like what we did with some of the
- 12:36:20earlier tutorials, go for it. I I
- 12:36:23encourage you to do that. But example
- 12:36:25one, we take an input. We have a basic
- 12:36:27LM chain. Basic LM chain again. And then
- 12:36:29we have an output over here. So chain
- 12:36:31one takes raw notes or ideas and
- 12:36:33generates a structured blog outline.
- 12:36:35Chain two takes the outline and writes a
- 12:36:37polished into a a paragraph. So think
- 12:36:41about how you're going to build this
- 12:36:43out. You can either do a chat trigger or
- 12:36:45you can do it manually and just set
- 12:36:48something as like an edit set. I don't
- 12:36:49really care. And uh yeah, pause the
- 12:36:52video and get that going. Otherwise, I
- 12:36:55will build this out. And I'm trying to
- 12:36:57think like do we have a chat checker?
- 12:36:58No, we don't have a chat trigger over
- 12:37:00here yet.
- 12:37:01and uh yeah, let's jump into it. So, I'm
- 12:37:03going to do a chat trigger,
- 12:37:06throw that in, and we're going to start
- 12:37:08this as a conversation. So, obviously
- 12:37:11the first part is we're going to get um
- 12:37:13our raw notes or ideas. Then, we need to
- 12:37:15generate a structured blog outline from
- 12:37:19that. Okay. So, what we're going to do
- 12:37:21is add in a basic LM chain.
- 12:37:26Also to mention, I am not going to be
- 12:37:28writing the best prompts. I am not going
- 12:37:29to do a ton of testing, which real world
- 12:37:31scenario, you are going to have to do
- 12:37:33that. So, please make these better if
- 12:37:36you're pushing them into production.
- 12:37:37Make sure you're testing them. Make sure
- 12:37:39like there's a lot of other steps that
- 12:37:41I'm skipping over here. Don't watch this
- 12:37:43and think like, oh, you can build a
- 12:37:45workflow in 20 minutes and it's good.
- 12:37:47No, it's not the case. And I say that
- 12:37:49because I see a lot of Upwork jobs and
- 12:37:50freelance jobs that people say, can you
- 12:37:52build this in an hour? And it's like,
- 12:37:53come on, guys. Like, be realistic. So,
- 12:37:56what we're going to do is we have our
- 12:37:58like raw notes and ideas. So, I'm going
- 12:38:00to say I'm going to create a another
- 12:38:04message over here. We're going to have
- 12:38:05our system message. We're going to
- 12:38:07expand this out and say you are an AI
- 12:38:11agent or let's not say an agent. Let's
- 12:38:15say you are
- 12:38:18a um
- 12:38:20an outline creator because that's what
- 12:38:23we're doing first, right? I should have
- 12:38:24probably just copied this over
- 12:38:29so we can keep the verbiage the same.
- 12:38:31All right,
- 12:38:33so chain one takes the raw notes and
- 12:38:35generates a structured blog outline. So
- 12:38:37you are an outline creator.
- 12:38:40A user will give you
- 12:38:44few pieces of information.
- 12:38:49Your goal
- 12:38:52is to take that and generate
- 12:38:57an outline for a blog
- 12:39:01post.
- 12:39:05For example,
- 12:39:08we have to give an example over here.
- 12:39:10Um,
- 12:39:12we'll say user,
- 12:39:14let's do an AI example. We'll say user
- 12:39:17message
- 12:39:21system
- 12:39:23message
- 12:39:25best practices.
- 12:39:28All right. So like intro
- 12:39:32user versus system message
- 12:39:38body.
- 12:39:40We'll say like user message
- 12:39:46body
- 12:39:48system message
- 12:39:51and then we'll do
- 12:39:54body
- 12:39:56comparing
- 12:40:02messages
- 12:40:04conclusion
- 12:40:07let's write let's think about our
- 12:40:08conclusion I'll just say like summarize
- 12:40:12both of these summarize
- 12:40:16like this is so simple and obviously
- 12:40:19like I would want to layer this with
- 12:40:22multiple examples like okay here's
- 12:40:24example one here's example two Um let's
- 12:40:27do another example actually for example
- 12:40:33let's say example one
- 12:40:37but here are two examples
- 12:40:42all right so example one
- 12:40:46AI
- 12:40:50it's going to be like that
- 12:40:53great and I should probably just make
- 12:40:57these a little bit different.
- 12:41:00Uh it's cool. All right. And let's do a
- 12:41:04second article.
- 12:41:08We'll need this best practices for this
- 12:41:10one. So that was like a comparison
- 12:41:12article. Let's do another article over
- 12:41:15here. Example two.
- 12:41:18What are we going to do now? Um,
- 12:41:23oh, you know what we're going to do?
- 12:41:2619
- 12:41:28No, no. I'm I'm going to think about
- 12:41:29like doing a a card set. We'll do like a
- 12:41:321948
- 12:41:351948
- 12:41:37Bowman
- 12:41:40basketball.
- 12:41:42It's like basketball cards.
- 12:41:46Okay. And then let's just write these
- 12:41:48out.
- 12:41:50like this.
- 12:41:55Okay. So, introwise
- 12:41:58um
- 12:42:00history
- 12:42:02of Bowman
- 12:42:05basketball cards
- 12:42:12and checklist.
- 12:42:14Cool. Then we're going to set a body.
- 12:42:16You know, let me say let's say most
- 12:42:19valuable cards
- 12:42:23recent auction sales.
- 12:42:26I know this is mine.
- 12:42:31Okay, we'll put like future
- 12:42:34Bowman
- 12:42:36basketball releases.
- 12:42:40Obviously, like this is going to be
- 12:42:41better if it's fine-tuned towards
- 12:42:43something in general. Like I would
- 12:42:45assume someone that's going to be
- 12:42:46building out an outline for a blog post
- 12:42:48is going to be focused on a niche and it
- 12:42:50might be a little bit easier. I just
- 12:42:51gave two random examples, an AI one and
- 12:42:54then a card one. So, we're going to just
- 12:42:56test this out. I'm going to save this
- 12:42:58really fast and let's think of something
- 12:43:01we're going to do an outline on. Um,
- 12:43:05what? Let's do
- 12:43:07trying to think of a good outline.
- 12:43:11Let's do an outline on Ellis and Chains.
- 12:43:14Ellis in chains
- 12:43:18Seattle grunge scene. Maybe it's
- 12:43:20something like that.
- 12:43:24Let's see what happens. And uh that did
- 12:43:27not work because I have the wrong open
- 12:43:29AI account. Man, I knew that would come
- 12:43:31to bite me.
- 12:43:34I still need to delete that old account.
- 12:43:36All right, let's try this again. So
- 12:43:39anticlimatic.
- 12:43:42All right, let's see if we get a good
- 12:43:43outline.
- 12:43:47And uh
- 12:43:50I don't think it'll be too difficult.
- 12:43:53Obviously, like I said, probably better
- 12:43:55off if you're fine-tuning it for a
- 12:43:57specific use case rather than what I
- 12:44:00have at everything broad. But
- 12:44:03all right, title, intro. It's
- 12:44:05interesting. It actually gave me a lot
- 12:44:06more stuff over here. And you can see
- 12:44:09brief hook, quick thesis, suggestion,
- 12:44:12length, section one, section two,
- 12:44:15section three, section four, section
- 12:44:17five. This is actually pretty good.
- 12:44:22I'm fine with this. I mean, we're not
- 12:44:23going to use all of it, but like I think
- 12:44:26this is good. So the second part, it
- 12:44:28says takes outline writes the polish
- 12:44:30intro paragraph. So let's do that. So
- 12:44:34we're going to get another basic LM
- 12:44:35chain.
- 12:44:37And again with this you see that I
- 12:44:39didn't attach any tools. I didn't do
- 12:44:41anything else crazy. I just literally
- 12:44:43just put that over there. So we have our
- 12:44:45basic LLM chain. And then uh we'll go
- 12:44:49over here and instead of connected we'll
- 12:44:52define below there. You're going to say
- 12:44:54this is an expression. Drag and drop
- 12:44:56this over here. So you can see JSON.ext.
- 12:44:59I'm going to add in a prompt system
- 12:45:01message. And uh
- 12:45:04all I'm going to say is interrop. So
- 12:45:10based on
- 12:45:13I'll put that over here. Let me make
- 12:45:15this full thing. I don't need that to be
- 12:45:18an expression per se. I just want to
- 12:45:20make that there. Cool.
- 12:45:22You're man. I don't know why it's cut
- 12:45:25out. All right.
- 12:45:28is
- 12:45:31to write an intro
- 12:45:34paragraph
- 12:45:36that is
- 12:45:38200ish words
- 12:45:41when you should be more dynamic we or
- 12:45:44sorry give more of a definition I'll say
- 12:45:47150 to 250 words based
- 12:45:51on the outline
- 12:45:53of a
- 12:45:58I don't know It needs to be paper say an
- 12:46:00article
- 12:46:04a user
- 12:46:06will give
- 12:46:08outline
- 12:46:11will give you an outline.
- 12:46:16All right. So your goal is to write an
- 12:46:18intro paragraph that is 250 250 words
- 12:46:20based on the outline of an article. Your
- 12:46:22user will give you an outline. All you
- 12:46:26need to do
- 12:46:28is write it based on an eighth grade
- 12:46:34reading level. It's fine there. You
- 12:46:37know, there's other things you could
- 12:46:38define like how do you want your intro?
- 12:46:41You know, type the tone. Like there's a
- 12:46:43lot of other things. I'm just going to
- 12:46:45keep it like this to keep it basic.
- 12:46:49And again, I mess up because I don't
- 12:46:52throw a model over here.
- 12:46:54And uh that will rerun that again.
- 12:46:59It'll be fine. 150 to 250 words for an
- 12:47:02intro on Allison Chains. And we'll be
- 12:47:04good to go. So we take a look at our
- 12:47:07output now.
- 12:47:09And here we go. So it says Allison Chain
- 12:47:11sits in the center of Seattle grunge
- 12:47:13story because their music captured both
- 12:47:14heavy sound, darker feelings marked the
- 12:47:16era formed in the 1980s. The band mixed
- 12:47:19metalike riffs with haunting vocal
- 12:47:21harmonies and lyrics. uh those elements
- 12:47:24made them stand out in a scene blah blah
- 12:47:26blah talks a little bit more about the
- 12:47:27album facelift will examine the human
- 12:47:29side
- 12:47:31talks a little bit more I think this is
- 12:47:32a pretty good intro and all I did if you
- 12:47:35go back over take a look at the input
- 12:47:38Allison chains Seattle grun scene we got
- 12:47:41our outline and uh now we have our
- 12:47:44article and obviously like you can add
- 12:47:45in steps there's something called human
- 12:47:47in loop where you can actually approve
- 12:47:49things before it gets sent along I just
- 12:47:51wanted to show you chain
- 12:47:53into chain. No pun intended with Alice
- 12:47:55and chains. I didn't even think about
- 12:47:57that when I was just given that example.
- 12:48:00But uh cool. So now what I want to do is
- 12:48:04our second example.
- 12:48:06There like I said I I thought of these
- 12:48:08while I was seating dinner and uh made
- 12:48:10these out and uh we're going to go
- 12:48:12through them. So our second one is we're
- 12:48:14going to have like a review that's input
- 12:48:16and over here we're going to find the
- 12:48:18sentiment of a new feature and then send
- 12:48:20it to a branch. So positive branch will
- 12:48:22extract specific features mentioned
- 12:48:25generate a thank you response negative
- 12:48:26branch will categorize a complaint type
- 12:48:29check if the critical bug is mentioned
- 12:48:31create a jar ticket I put that as
- 12:48:33optional like I'm not going to do it but
- 12:48:35you can see with this type of stuff like
- 12:48:37you can really expand this out notify
- 12:48:39the product team we'll do the product
- 12:48:41team I'm the product team myself and I
- 12:48:43and generate an empathetic response
- 12:48:45which I'll just generate myself as well
- 12:48:48a neutral branch will flag for manual
- 12:48:50review the feedback backlog. Yeah, you
- 12:48:52get the point. So, let's talk about the
- 12:48:55review. Let's just pretend we have like
- 12:48:57a manual trigger.
- 12:48:59We already have a manual trigger. We do.
- 12:49:02Zoom out. We're going to steal it
- 12:49:04wherever it's at. There it is. All the
- 12:49:07way at the top. Going to steal that and
- 12:49:09bring it down over here. Cool.
- 12:49:13Then what we're going to do is throw in
- 12:49:14edit sets. We're going to put in our
- 12:49:16review
- 12:49:19and let's just take the side of any end
- 12:49:23and what we're going to do is pretend
- 12:49:24there's a bug. So,
- 12:49:28we're going to say
- 12:49:31the new AI agent, let's just pretend
- 12:49:35there's a new AI agent, does not work
- 12:49:39with Google Gemini 4.
- 12:49:44tried everything.
- 12:49:47Tried everything,
- 12:49:51but my production workflows
- 12:49:57are useless.
- 12:50:00Also, I put this in the wrong section.
- 12:50:02It's been a long day. Uh, we're going to
- 12:50:04say review over here like that. Cool.
- 12:50:07So, we have our review and our edit set.
- 12:50:09We have our manual trigger. Next, what
- 12:50:10we need to do is find the sentiment. So,
- 12:50:12we're going to do just close out of
- 12:50:15that. Go to AI
- 12:50:17and then find our sentin analysis. So,
- 12:50:20we have that over here. I'm just going
- 12:50:22to keep it very basic. Positive,
- 12:50:25negative, neutral. No big deal. Let's
- 12:50:27copy in our LM
- 12:50:31over here. We'll use something cheap.
- 12:50:32That's fine. And let's uh test this out.
- 12:50:36So, I'm just going to run this over
- 12:50:37here.
- 12:50:39Workflow has issues. And well, you know
- 12:50:40why the issue is? because I never
- 12:50:42actually passed in the data. So if I
- 12:50:44execute the step, we have that there. We
- 12:50:47got to pass in our data. Make a lot of
- 12:50:49mistakes. I'm tired. Cool. So we have
- 12:50:51this over here and uh we'll see which
- 12:50:54branch it goes on.
- 12:50:57This goes back into our issue we had a
- 12:50:59little bit earlier with the sentiment
- 12:51:00analysis, which it seems like it's
- 12:51:02broken for GPT5 mini for some reason. I
- 12:51:05don't know why, but it was anthropic.
- 12:51:06Not a big deal. So, I'll just grab that,
- 12:51:10paste it over here, and we'll use that
- 12:51:13for this example. Let's run it again.
- 12:51:17Should be fine.
- 12:51:19And you see it goes into negative.
- 12:51:21Great. So, now what we need to do is
- 12:51:22kind of design the workflow. So, for the
- 12:51:25negative branch over here, we got to
- 12:51:28categorize the complaint type.
- 12:51:31So, we could do like a text classifier
- 12:51:34of some sort.
- 12:51:36Let me just make a sticky note.
- 12:51:40So, we'll just go over here
- 12:51:46and uh we'll go to our text classifier.
- 12:51:52All right. So, we have our text
- 12:51:54classifier that's going to go in over
- 12:51:55here.
- 12:51:57All right. So, we're going to categorize
- 12:51:58a complaint type. We're going to have to
- 12:52:00fill this out. I don't know how we're
- 12:52:03going to fill this out yet. We'll figure
- 12:52:04it out. check if the critical bug is
- 12:52:06mentioned. Well, we did talk about a
- 12:52:08bug. So, we should probably do like an
- 12:52:11information extractor as well. So, what
- 12:52:15I'm thinking
- 12:52:19is we go over here, information
- 12:52:22extractor.
- 12:52:25Saw it here in a second. I'm just going
- 12:52:27to go down here and grab it. I need our
- 12:52:29information extractor as well. And I
- 12:52:32just close that out
- 12:52:34and both of those.
- 12:52:40Cool.
- 12:52:42What else do we need? We're not going to
- 12:52:43do the jerro ticket. Notify the product
- 12:52:45team and write a response. So let's
- 12:52:48scribe
- 12:52:50agent. We could write a basic LM chain
- 12:52:52for our response.
- 12:52:56So this will be the response.
- 12:52:58Again, we can just grab a cheap OpenAI
- 12:53:01chat model
- 12:53:04and then
- 12:53:06other thing that we need over here is
- 12:53:09notifying the product team. So, what
- 12:53:12we'll do is have a Gmail trigger
- 12:53:16and we're going to send it Gmail. So,
- 12:53:17we'll say send a message.
- 12:53:20Great. So, this will be over here
- 12:53:24and let's jump into it. So
- 12:53:28let's think about each of these steps.
- 12:53:30So the first one, let's just generate an
- 12:53:32empathetic response. So we're going to
- 12:53:34do the basic LM chain. We're going to
- 12:53:36say cat.
- 12:53:41We don't need the connected. We're going
- 12:53:42to use define below.
- 12:53:45And we're going to pass in this
- 12:53:48information.
- 12:53:50So we need to pass in that review into
- 12:53:52the user message. And then we're going
- 12:53:54to add in a prompt and we say based on
- 12:54:00the review,
- 12:54:02write an empathetic
- 12:54:06message to the customer
- 12:54:10who had a bad experience.
- 12:54:14Obviously, if you have some type of
- 12:54:16documentation, you're going to write
- 12:54:17this a little bit better. Go for it. I'm
- 12:54:20doing a two second YouTube video
- 12:54:22and you can see we have this over here
- 12:54:28and it says really sorry frustrating
- 12:54:30must be over here. Thank you for letting
- 12:54:31us know we'll priority is getting it
- 12:54:33fixed to help us investigate escalate
- 12:54:35quickly. So like this makes the
- 12:54:37assumption that we don't have that
- 12:54:38information where you know maybe we do
- 12:54:40already have that info. I don't know. We
- 12:54:42could keep that as is. You can obviously
- 12:54:45tweak it. I'm not going to do a lot of
- 12:54:47tweaking for this one. And then let's
- 12:54:48pretend like we send the message back
- 12:54:50into our customer. I'm just going to
- 12:54:53send it to myself.
- 12:54:59But you know what? I don't actually like
- 12:55:00this because we should have an output
- 12:55:04parser
- 12:55:06and we're going to tweak this say based
- 12:55:08on the view write empathy also
- 12:55:11generate a subject line.
- 12:55:15Cool. So we're going to have this create
- 12:55:16a subject as well. We're going to add an
- 12:55:18output parser. So, we will go and do
- 12:55:23that.
- 12:55:24And we'll put over here.
- 12:55:27We're going to say email message.
- 12:55:32And then we're going to do subject line.
- 12:55:39Oops.
- 12:55:47subject.
- 12:55:51Sorry.
- 12:55:54Let's run this again
- 12:55:58and do this.
- 12:56:01Hopefully, we get the correct
- 12:56:02information.
- 12:56:12Honestly, the more I think about it,
- 12:56:13like, yeah, we could Oh, we'll keep this
- 12:56:16going. All right. What's my error over
- 12:56:17here?
- 12:56:21Model doesn't fit.
- 12:56:25All right. So, let's see what we put
- 12:56:27over here. Based on the review, write
- 12:56:29empathetic message.
- 12:56:33Oh, you know what? We should probably
- 12:56:34call this just message.
- 12:56:37Probably getting confused.
- 12:56:40Let's run that again. Make sure those
- 12:56:41are one to one.
- 12:56:48And then while that's running,
- 12:56:52let's go in our information extractor.
- 12:56:54We're going to have our text. We're
- 12:56:55going to add an attribute. And we're
- 12:56:57going to call this
- 12:56:59product
- 12:57:01bug.
- 12:57:04And because we're saying over here, I
- 12:57:06I'll fix this here in a second, but it
- 12:57:08says categorize complaint type check if
- 12:57:11critical bug is mentioned. So, we should
- 12:57:13probably call this critical bug.
- 12:57:15Critical product bug.
- 12:57:22There is something wrong with the
- 12:57:26software provided.
- 12:57:30Cool. So, what we can do, I'll test this
- 12:57:34out in a second with this basic LM
- 12:57:36chain. I'm not sure why it's not
- 12:57:37working. I mean, I'm sure I can debug it
- 12:57:39in a second. Let's see if this
- 12:57:41information extractor is working.
- 12:57:44Let's pass that in.
- 12:57:51It needs to take this review.
- 12:57:54Cool.
- 12:57:57It should say this is required as well.
- 12:58:00The new AI agent does not work with
- 12:58:01Google Gemini 4 causing problems.
- 12:58:03Perfect. Let's make sure that's required
- 12:58:05as well. So that's working. Let's
- 12:58:07pretend that's sending over to uh
- 12:58:11our team as well. So we'll send this
- 12:58:13over there
- 12:58:15again. We'll say new critical bug.
- 12:58:21And honestly, just based off of this
- 12:58:23extraction, I think this is fine. I was
- 12:58:25saying like I don't think we really need
- 12:58:27the classifier on this side of things
- 12:58:29because we're just going to look at bugs
- 12:58:31in general. I mean we could get super
- 12:58:32nuanced and do that. I don't think it's
- 12:58:35we don't need it for this one. All
- 12:58:36right. So we have that over here. We
- 12:58:38need to get this chain working as well.
- 12:58:42So going to do is build that out. So
- 12:58:45product team knows we just got to figure
- 12:58:47out why this chain isn't working. So we
- 12:58:49have this review. It goes in over here.
- 12:58:52Now why does this not work? I think I
- 12:58:55might have to provide the exact example
- 12:58:57in this message for the system message
- 12:59:00and uh again if this doesn't work I'll
- 12:59:04just put that exact example. All right.
- 12:59:05So it says model output doesn't fit to
- 12:59:09continue execution on error. So
- 12:59:13I'm not sure why that's not working but
- 12:59:16we'll go over here load this up.
- 12:59:21Example,
- 12:59:26we'll just say
- 12:59:28user
- 12:59:30I hated
- 12:59:32using this product.
- 12:59:37Then we'll say AI
- 12:59:42message.
- 12:59:44Sorry to hear that you had a negative
- 12:59:48experience.
- 12:59:53Also, I'm just going to go and change
- 12:59:55this out.
- 13:00:01Obviously, this is pretty terrible
- 13:00:03saying like we are
- 13:00:05sorry and things like that, but it's
- 13:00:07okay.
- 13:00:11Cool. So,
- 13:00:14Let's see if this works.
- 13:00:17Should
- 13:00:19I'm going to execute the step again.
- 13:00:24I mean, I'm I think I'm very explicit
- 13:00:26there.
- 13:00:30Man, did it really break again? I'm
- 13:00:32generally curious if it did.
- 13:00:37All right, so let's see what is going on
- 13:00:40over here.
- 13:00:51I wonder if it's a special character
- 13:00:52because you can see we have the text on
- 13:00:55that side of things.
- 13:01:06All right, let's try this. Sometimes the
- 13:01:08basic LM chain is a little buggy. Let's
- 13:01:10try our AI agent.
- 13:01:16Going to try the same exact thing over
- 13:01:18and again with their agents. It happens.
- 13:01:21Not a big deal. You got to pivot. And uh
- 13:01:25I'm keeping this in here just to show
- 13:01:26you that things happen. So
- 13:01:31this says output formats.
- 13:01:34find below.
- 13:01:38Pass in this review.
- 13:01:41Add in the system message.
- 13:01:44Try the system message here.
- 13:01:47Yeah. So, go back in and try this out.
- 13:01:51And if it doesn't work here, obviously
- 13:01:52like I have another bug which maybe I'm
- 13:01:54oblivious to see, but I don't think I
- 13:01:57should have an issue. I mean, it's
- 13:01:59pretty straightforward
- 13:02:03and it could be uh the output parser is
- 13:02:06bugged as well or I'm missing like the
- 13:02:08most obvious thing.
- 13:02:11It it worked like you can see I I didn't
- 13:02:13change anything. So, just an error with
- 13:02:15the basic LM chain. Uh you can see we
- 13:02:18have this over here subject line and
- 13:02:22output. So, really we can go back into
- 13:02:24our email. We can define our subject
- 13:02:28line. So you can just grab your subject
- 13:02:30line there. You can grab this message
- 13:02:32which will just say it's text. And uh
- 13:02:35yeah, there we go. I could execute this
- 13:02:37out as well. I can show it to my Google
- 13:02:39account. I'm not going to run it. But
- 13:02:41yeah, so we have our negative sentiment.
- 13:02:44We send a email to the person saying
- 13:02:46we're sorry. And then we extract what
- 13:02:48the bug was from that message and we
- 13:02:50send it to our engineering team.
- 13:02:52Obviously, again, I could have created a
- 13:02:54Jira ticket pretty easily. I' never set
- 13:02:56up Jira with an any. I know it's a
- 13:02:58popular thing to do. And really, if I
- 13:03:01spent some time, we could categorize all
- 13:03:03the different types of bugs and and I
- 13:03:05think that'd be useful for like a a
- 13:03:07engineering team to do like, oh, this is
- 13:03:09the type of bug we're experiencing. So
- 13:03:11that way you can fix those bugs as they
- 13:03:12pop up. But I just didn't do that here.
- 13:03:15So next, what we want to do is let's go
- 13:03:17into our neutral branch. We'll like flag
- 13:03:20for manual review. So, we could just say
- 13:03:22it's like in a spreadsheet.
- 13:03:24And uh yeah, let's do that. So, what
- 13:03:27we're going to do is
- 13:03:29go to sheets. Let's just pretend we have
- 13:03:32a sheet over here. We're going to insert
- 13:03:34into a sheet. So, we'll say appender row
- 13:03:38in sheets. And let's imagine we have a
- 13:03:41sheet. And again, this could be a
- 13:03:42database. This could be wherever else.
- 13:03:44We're just going to populate some
- 13:03:45information.
- 13:03:47I'm going to load up Sheets accounts.
- 13:03:50I'm going to go in all YouTube video
- 13:03:53update. We're going to load this up here
- 13:03:54in a second. We're going to create
- 13:03:57another sheets. We'll say sheet six
- 13:04:01and we'll say this is going to be a um
- 13:04:06annual review.
- 13:04:10Well, that exact name is going to be
- 13:04:11what? Neutral. So, it should say neutral
- 13:04:13reviews.
- 13:04:17Go and fix that.
- 13:04:21Then we'll put like time stamp.
- 13:04:24Oh, we could add in like user emails and
- 13:04:26all this other stuff. I'm kind of
- 13:04:27skipping that over here. Don't need it
- 13:04:29for today. I mean, hopefully you guys
- 13:04:32understand. Just add one additional
- 13:04:33step. So then all we do over here is go
- 13:04:37and add in our neutral view. Obviously,
- 13:04:40we don't have one over here. So, I kind
- 13:04:42of want to change this up. I don't want
- 13:04:44to get rid of this. But
- 13:04:47yeah, here's what we're going to do.
- 13:04:51You say it's like review two.
- 13:04:57The product
- 13:04:58is okay.
- 13:05:01Favorite
- 13:05:03I've seen worse. Like that seems pretty
- 13:05:06neutral.
- 13:05:08Then we're going to just send in JSON
- 13:05:10review 2 over here. Hopefully it gets
- 13:05:13into the neutral step.
- 13:05:16And uh sweet neutral branch. And you
- 13:05:20could just literally just drop this in
- 13:05:24neutral review is there. And then time
- 13:05:27stamp. Let's just go JSON now.
- 13:05:30JSON. Now
- 13:05:33I thought that was the time. It's not
- 13:05:35the time. I got to fix that. Um I'll
- 13:05:38just check that for a second.
- 13:05:43I think it's just this actually. No,
- 13:05:45it's not.
- 13:05:48All right, I'm back. I literally just
- 13:05:49asked Claude and it's actually just
- 13:05:52dollar now. And I didn't need to have
- 13:05:54the extra JSON. Anyways, so we have that
- 13:05:57now and uh we can just execute the step
- 13:05:59over here and it'll populate within our
- 13:06:03spreadsheet. So you can see we have our
- 13:06:05neutral review and then time stamp so
- 13:06:07someone can review it a little bit
- 13:06:08later. All right, great. And then let's
- 13:06:10look at the easy one. So, extract a
- 13:06:12specific feature mentioned and then
- 13:06:14generate a thank you for the response.
- 13:06:16So, maybe we want to extract that
- 13:06:17feature and then put it into a
- 13:06:18spreadsheet. So, I'm just going to go
- 13:06:20over here and create a sheet seven. And
- 13:06:23then we'll put like feature
- 13:06:26liked. I don't know. I could again I I'm
- 13:06:30just architecting. I'm building this on
- 13:06:31the on the fly. Like this is not great
- 13:06:34architecture. This is really great
- 13:06:35thinking. Um but I just wanted to show
- 13:06:38different ways that you could use this
- 13:06:39and really start expanding this out. So,
- 13:06:42all we're doing on this one is what?
- 13:06:44Generate a thank you message. So, we
- 13:06:46already have something very similar. So,
- 13:06:49we'll just say
- 13:06:51this.
- 13:06:54Go in here and instead of
- 13:06:57based on the review, write a
- 13:07:04thank you message
- 13:07:09had a great experience.
- 13:07:16Also generate a subject line
- 13:07:20example.
- 13:07:33Cool. Um, so we're gonna say thank you
- 13:07:38for
- 13:07:41such great feedback
- 13:07:44for our Oh, this is pretty bad subject
- 13:07:48line.
- 13:07:50Thanks for the feedback.
- 13:07:56And we're going to say, I loved the new
- 13:08:00AI agent.
- 13:08:03Cool.
- 13:08:06That's fine. Again, it's very basic. You
- 13:08:09can always tweak your prompts. So,
- 13:08:11that'll be one version of it. We'll call
- 13:08:13this JSON review three. So, we had one
- 13:08:17and two, right? Just double check. Yeah,
- 13:08:20we'll do three.
- 13:08:23I loved the AI agent feature.
- 13:08:29Great.
- 13:08:31It saves me
- 13:08:34hundreds of hours.
- 13:08:38Okay, so we have that. So we know that's
- 13:08:41built in. And then lastly, we're going
- 13:08:43to do our information extractor.
- 13:08:46Just going to be instead of bug, we're
- 13:08:49going to change this up. We're going to
- 13:08:50go in here
- 13:08:54and put favorite feature.
- 13:09:01the feature
- 13:09:03someone
- 13:09:05like
- 13:09:07and I'd make this optional because
- 13:09:09sometimes people will say positive
- 13:09:10things and not give a feature and then
- 13:09:13um go to the spreadsheet route. Now, one
- 13:09:16other thing to note is like this is very
- 13:09:18messy. You can't tell what's going on.
- 13:09:21So, in real world, you're going to re
- 13:09:22label all these. You're going to leave
- 13:09:24sticky notes. You're going to space
- 13:09:25these out. As I mentioned, for like the
- 13:09:28probably 10th time, this is a YouTube
- 13:09:31video. I'm trying to teach you how these
- 13:09:32nodes work, how to build flows. So,
- 13:09:35there's definitely things to work on
- 13:09:37making this better if you're going to
- 13:09:39actually present this to a customer.
- 13:09:41Anyways, going back over here, we're
- 13:09:43going to go into sheet seven now. And uh
- 13:09:47we'll use JSON review 3.
- 13:09:51It's not going to be a neutral review.
- 13:09:53We need to refresh this.
- 13:10:00It's going to fetch these columns and
- 13:10:02then this feature linked. I'm just
- 13:10:04literally just going to go here,
- 13:10:07copy this JSON review 2, populate it
- 13:10:10over here. Say this is JSON review 3.
- 13:10:16Yeah, we can just run this one more time
- 13:10:18over here with three. It should go into
- 13:10:20the positive branch.
- 13:10:25Why did this not work? Oh. Oh, that's
- 13:10:28why it didn't work.
- 13:10:32It should be review three.
- 13:10:35Cool. We have review three there now.
- 13:10:38Then we go over here. Execute the step.
- 13:10:41Should go positive.
- 13:10:45Positive branch. Boom. And then you can
- 13:10:48see if we extract this over here should
- 13:10:51say the AI agent.
- 13:10:58Oh, you know what? Because we're still
- 13:11:00using
- 13:11:02initial JSON review. I was like that is
- 13:11:05interesting. Always make sure these are
- 13:11:07correct. Look at that AI agent feature.
- 13:11:09And then that would just get populated
- 13:11:10into the spreadsheet.
- 13:11:13And you can see in sheet seven
- 13:11:16we actually do not get the correct
- 13:11:18result. We just get that um
- 13:11:22that's why we're not we don't have this
- 13:11:23as an expression and also this is off.
- 13:11:26It should be favorite feature
- 13:11:29that now if I execute the step always
- 13:11:32double check your work.
- 13:11:34Cool. Now we have that working over
- 13:11:37there and then uh
- 13:11:41our agents that will send the email.
- 13:11:44So let's test what this agent would uh
- 13:11:47populate.
- 13:11:49And we can send that email if we want.
- 13:11:52I probably won't, but
- 13:11:55thank you so much for your feedback.
- 13:11:56We're thrilled to hear the AI agent
- 13:11:58feature saving you hundreds of hours.
- 13:11:59Thanks. Glad the AI gen is saving us.
- 13:12:02That's fine. Again, I would probably
- 13:12:04recommend you spend some time and build
- 13:12:06out a way better system message. And
- 13:12:07I've taught you the fundamentals behind
- 13:12:09it, but this video would be way too long
- 13:12:12to build out something for like a a
- 13:12:15production level for this over here.
- 13:12:18All right, and we're going to do one
- 13:12:21more. I'm going to take another quick
- 13:12:22break and then we'll jump into example
- 13:12:25number three. I'm just going to throw
- 13:12:26this over here, though. So, example
- 13:12:29three,
- 13:12:31add it on here. Cool. So, here's our
- 13:12:34third example.
- 13:12:36Build this out a little bit later. I'll
- 13:12:38just drag and drop this here. But what
- 13:12:41we're going to do is essentially our OCR
- 13:12:44example. I promise you guys we do OCR.
- 13:12:47We're going to use a filter and things
- 13:12:48like that. So, we'll probably set that
- 13:12:50up. I'll probably record that a little
- 13:12:51bit tomorrow morning. Jump into there
- 13:12:54and uh yeah, I will see you guys there.
- 13:12:56All right. So, example three. I have
- 13:12:58this ready to go. So what we're going to
- 13:13:00do is we're going to grab input of an
- 13:13:02image. Then we're going to use OCR to
- 13:13:04extract information, extract if someone
- 13:13:06has experiences or not on their resume
- 13:13:09for a specific job, filter them out, and
- 13:13:12then add otherwise to a spreadsheet. And
- 13:13:15few things we'll need for that. First is
- 13:13:17résumés. So how did I find rums? Well, I
- 13:13:20literally went to the data science
- 13:13:21Reddit and I just searched ré and I
- 13:13:24grabbed these four. You can go to any
- 13:13:25type of professional Reddit and I'm sure
- 13:13:27people are posting their resumes. So, um
- 13:13:30because people always want to get them
- 13:13:31critiqued. So, you can just go and
- 13:13:33screenshot these. I already saved these
- 13:13:34on my computer. So, screenshot them or
- 13:13:36save them. I'm just saving these as PNG
- 13:13:38files. Another thing you'll need to get
- 13:13:40is Mistl. So, how you want to set up
- 13:13:44Mistl just go into console.mmistl.ai.
- 13:13:48And then you're going to want to go into
- 13:13:50your API keys over here to the top left.
- 13:13:52And I'll show you how to set this up
- 13:13:54here in a second. Let me actually do
- 13:13:55that. So I'm going to go and search for
- 13:13:57Mistral AI
- 13:14:00extract text. And then I'm going to go
- 13:14:02over here. You're going to create a new
- 13:14:04credential. I already have an account
- 13:14:05over here. So I'm just going to click my
- 13:14:07pencil icon and going into AI Studio.
- 13:14:10Create a new key. I'm just going to say
- 13:14:11this is any big course.
- 13:14:15It's fine. You can set an expiration
- 13:14:17date. I'm not going to set one for now.
- 13:14:19I'm going to create a new key. And uh
- 13:14:22you'll see I have this key over here.
- 13:14:24Now I'm going to just going to pause the
- 13:14:26video probably and create a new key so
- 13:14:28that way you guys don't see this, but
- 13:14:30ideally you would just copy this key and
- 13:14:32go back into any and then fill this API
- 13:14:34key over here. Obviously I don't want
- 13:14:36this to be shared. So I'm just going to
- 13:14:38delete this key. Also you might have to
- 13:14:40add in credits. I believe Mistral is
- 13:14:42still free if they train on your data.
- 13:14:44Um could be wrong on that. So if you
- 13:14:47need to add in u money into Mistl,
- 13:14:50please do so. Again, I haven't taken a
- 13:14:52look at that documentation in probably a
- 13:14:54few months, but I should be good on my
- 13:14:56side. Just double check it works on
- 13:14:58yours. All right, I'm going to create a
- 13:14:59new key, and I will be right back.
- 13:15:06All right, I'm back. So, my key has been
- 13:15:08created. I just called this Nan Live
- 13:15:101230, and I I put it back into myself.
- 13:15:13Obviously, name this as you want, but
- 13:15:15now we have our OCR. The first thing we
- 13:15:17need to do though is how are we going to
- 13:15:19actually get the image into any N? I'm
- 13:15:22going to do the lazy route and just set
- 13:15:24up a form over here. Obviously, there's
- 13:15:26other approaches that you could use, but
- 13:15:27I feel like this is going to be easy way
- 13:15:29to just test this out and we know how to
- 13:15:31add in binary data. So, what we're going
- 13:15:34to do is say this is like a resume
- 13:15:36uploader.
- 13:15:39I'm going to do like literally the MVP
- 13:15:41as fast as possible. So, field name,
- 13:15:43we'll just call this data as I see that
- 13:15:45all the time. uh label, we'll say
- 13:15:47resumeé goes here.
- 13:15:50Element type, but we're going to call
- 13:15:52this a file. And we're going to accept
- 13:15:54only one file. Uh we can test this out
- 13:15:56as well. So, I'm just going to grab one
- 13:15:58of the resumes. We'll throw it in over
- 13:16:00here. Click submit. And we just make
- 13:16:02sure that we get our file. Boom. We have
- 13:16:04this file. And if you're watching this
- 13:16:06video, uh thank you for uploading to the
- 13:16:08data science Reddit. But yeah, so we
- 13:16:10have that over here.
- 13:16:12And uh now what we want to do is see if
- 13:16:15Mistl can actually extract the text from
- 13:16:18there. So going to mistrol obviously you
- 13:16:20have your account we're going to
- 13:16:21resource. We're going to use a document
- 13:16:23operation. We're going to extract text
- 13:16:25model. They only give you one option. So
- 13:16:27ML OCR latest document type. You can
- 13:16:29choose a document or image. I'm using an
- 13:16:31image because like this is an image over
- 13:16:33here. Uh input type you can use a URL or
- 13:16:36binary data. I'll show you URL in a
- 13:16:38second but we can do binary data as
- 13:16:40well. input binary data name. Well, it's
- 13:16:42just called data. Over here, you have
- 13:16:44other options for like batch processing
- 13:16:46and things like that too. But I'm just
- 13:16:47going to execute this step
- 13:16:49and uh what you can see is we have our
- 13:16:52information. So we have this in markdown
- 13:16:55and just to go into our table, you can
- 13:16:58see we scroll down over here. Extracted
- 13:17:01text is our information. So do we want
- 13:17:04all this? Not really. We just want our
- 13:17:06extracted text. So what we're going to
- 13:17:08do is just have a edit set.
- 13:17:12Go edit set and then we'll just grab
- 13:17:14this extracted text and populate it
- 13:17:16there. I'm also going to just put our
- 13:17:18data really fast and uh we will grab
- 13:17:22that out and then you can execute the
- 13:17:24step. Obviously we could clean this up
- 13:17:26if we wanted to but I think this is
- 13:17:28fine. All we're going to ask is some
- 13:17:30questions based around it like does this
- 13:17:32person have uh specific information? So,
- 13:17:36um, because you can see a bunch of
- 13:17:38skills are listed over here, and we're
- 13:17:39just going to do essentially a keyword
- 13:17:41extraction. So, going back over to this
- 13:17:44resume, this is the one we're taking a
- 13:17:46look at. So, maybe we want to say, hey,
- 13:17:48does someone have SQL experience? Great.
- 13:17:51What type of projects do they have?
- 13:17:53Like, obviously, I I'm not putting a ton
- 13:17:55of thought into the design on this one.
- 13:17:57I'm just teaching you guys how to use
- 13:17:59the nodes. A real world experience. Like
- 13:18:01if you're going to build out a resume
- 13:18:02extractor, you're going to spend hours
- 13:18:04trying to think about like all the
- 13:18:06different nuances. I just thought about
- 13:18:07this right before recording. So what
- 13:18:10we're going to do next is extract if
- 13:18:12they have experiences or not. So let's
- 13:18:14add in our information extractor. So
- 13:18:16we're going to say information extractor
- 13:18:18hop over here and we're going to do is
- 13:18:21first pass in our data.
- 13:18:24So, and you know, actually, you know
- 13:18:26what would be kind of interesting as
- 13:18:27well? If we did a summary of what this
- 13:18:31guy's resume is, that would be kind of
- 13:18:33cool. So, out of the box thinking over
- 13:18:36here, let's go and grab where is our
- 13:18:39thing at? The summarization chain. We're
- 13:18:41going to just grab that.
- 13:18:43Out of the box thinking, we're going to
- 13:18:44do this really fast. I don't know why I
- 13:18:46just thought of this, but that's fine.
- 13:18:48And, uh, we're going to use that to
- 13:18:50summarize this.
- 13:18:53Cool. So we have our summarization
- 13:18:54chain. We'll set this up here in a
- 13:18:55second. I also kind of wanted just to do
- 13:18:57that so I can copy over this. Save some
- 13:19:00time. All right. So information
- 13:19:01extractor. We have all this. What do we
- 13:19:03want to uh
- 13:19:06grab? So I'm trying to think really
- 13:19:08quick. What do we want to grab from
- 13:19:10here? Um we'll say like SQL experience
- 13:19:15experience
- 13:19:18mentions
- 13:19:20SQL in the text.
- 13:19:24Okay. Some jobs require master's
- 13:19:26degrees. So maybe want to do that. Um we
- 13:19:29have a certification. Do we have even a
- 13:19:32degree? Oh, we have education right here
- 13:19:33at the top. We have a bachelor's. So
- 13:19:36we'll go over here. Master's degree.
- 13:19:38sister's degree.
- 13:19:41Um,
- 13:19:53and I'm saying either yes or no. So, I'm
- 13:19:56going to say like over here as well,
- 13:19:57either yes or no.
- 13:20:01All right. So, we're looking for SQL.
- 13:20:03We're looking for a master's degree. Um,
- 13:20:06next we should probably look at
- 13:20:09another example. Obviously, like this is
- 13:20:12someone that just graduated college in
- 13:20:14this instance, but we should probably do
- 13:20:16like Python as well.
- 13:20:18So, we're going to call this like and
- 13:20:20I'm just going to call this masters.
- 13:20:23Great. We'll just do three. So, we'll
- 13:20:25say like Python experience.
- 13:20:28Python experience
- 13:20:33mentions Python
- 13:20:36the text. What else can we put in here
- 13:20:38really fast?
- 13:20:41Um,
- 13:20:44I think this is fine. I mean, this is a
- 13:20:46very basic resume.
- 13:20:50I And I would not [clears throat]
- 13:20:51recommend you build out your resume like
- 13:20:52this. If you're applying for a job right
- 13:20:54now in data science, you're not going to
- 13:20:56get a job. But that's fine. Obviously,
- 13:20:58there's nuances like every job will have
- 13:20:59like 10 or 15 required skills. So, I'm
- 13:21:02curious where uh this will populate. I'm
- 13:21:05just going to click execute step
- 13:21:08and take a look. So, it says SQL
- 13:21:10experience, yes. Master's degree, no.
- 13:21:12Python experience, yes. And we go to his
- 13:21:14resume. So, mentioned SQL right over
- 13:21:17here. It should mention Python over here
- 13:21:20as well. You can see Python. Python used
- 13:21:23multiple times. And then no master's
- 13:21:25degree. So that's why we have yes, yes,
- 13:21:27no. Really, really cool because we just
- 13:21:30essentially took an image, we extracted
- 13:21:32all the text over there, and then we're
- 13:21:34looking for specific pieces of
- 13:21:35information. So we built that out. Next,
- 13:21:37what we can do too is [snorts] do a
- 13:21:40summarization chain. So what I'm going
- 13:21:42to do on this one, since it's super
- 13:21:44easy, we're just going to use a stuff.
- 13:21:46Uh we're going to use the node input
- 13:21:48JSON over here because you can see the
- 13:21:50JSON is just this markdown. Uh we'll use
- 13:21:52simple, which is just defined over here.
- 13:21:56And then it says, "Write a concise
- 13:21:57summary of the following resume." I'm
- 13:21:59just going to say that following resume.
- 13:22:03That's it. Again, super basic. I didn't
- 13:22:05really change stuff, but execute steps
- 13:22:08and we'll see what happens. Like this is
- 13:22:10a terrible prompt. I would not recommend
- 13:22:12you just only use this prompt, but we're
- 13:22:14going to use it out of the box. And
- 13:22:16resume summary, data science, and you
- 13:22:19know what? You know what should we
- 13:22:20probably put over here? Write a
- 13:22:24concise two to three sentence
- 13:22:28summary of the following resume. And I
- 13:22:30know I misspelled sentence, so we're
- 13:22:31going to fix that. I don't know why I
- 13:22:32always misspell it. So, we'll test it
- 13:22:35out. Now,
- 13:22:37obviously, there's other nodes that you
- 13:22:38could use, but take a look. Data science
- 13:22:41intern who graduated a bachelor's in
- 13:22:42computer science engineering from a
- 13:22:44guru. I'm not even going to try to
- 13:22:47pronounce that. University in 2023 with
- 13:22:49a 8.4 CGPA, technical skills in Python,
- 13:22:52machine learning frameworks, blah blah
- 13:22:54blah. Right? So I essentially what we've
- 13:22:58done now with the the summarization
- 13:23:00chain and information extractor. There's
- 13:23:02specific things I want to look at a
- 13:23:03resume. We've extracted that. We also
- 13:23:05have a a quick summary. Okay. So here's
- 13:23:08the cool thing as well. We can now merge
- 13:23:11these together if we really wanted to.
- 13:23:13So what we can go here is find a merge
- 13:23:15node. And what we'll do is just merge
- 13:23:19these together.
- 13:23:21Great. And how I want to do this is
- 13:23:23combine. And we're going to combine by
- 13:23:26position, too. So, we're going to go
- 13:23:28here like that. Also, they probably
- 13:23:31should have just pinned our data here so
- 13:23:32we don't get extra calls. Fortunately,
- 13:23:35I'm going have to rerun that one over
- 13:23:36here. I'll just pin it. Save us some
- 13:23:39time. Great. So, it's pinned all of this
- 13:23:43just so that way this can uh be tested.
- 13:23:46We'll execute this workflow. I'm just
- 13:23:48going to drag this in over here. It's
- 13:23:49not going to really do anything, but
- 13:23:51sometimes you saw from the merge
- 13:23:52section, we have issues. So now if I go
- 13:23:54into this merge, you can see we have
- 13:23:56text and then we have SQL experience
- 13:23:58etc. You know I probably should re label
- 13:24:00this instead of just having this as
- 13:24:02text. But that's fine. We have this all
- 13:24:04over here. Next what we can do is create
- 13:24:06a filter if we wanted to. So let's put
- 13:24:08in a filter.
- 13:24:10And what we can do on this filter now is
- 13:24:14go over and based off of things. So we
- 13:24:17want to filter everyone that has SQL
- 13:24:19experience.
- 13:24:20So we're going to say is equal to yes.
- 13:24:24We're going to add in Python experience
- 13:24:27equal to yes. And then we're going to
- 13:24:30add in over here, let's say you want to
- 13:24:31have a master's degree. And I wouldn't
- 13:24:33get a job because I don't have a
- 13:24:34master's degree. Um, but we're going to
- 13:24:36say this has to be a yes as well. So
- 13:24:38you'll see since all three of these are
- 13:24:40not met, this is disregarded. So
- 13:24:44unfortunately, you did not get the job.
- 13:24:46However, if we remove the option for the
- 13:24:48master's degree, you'll see it is kept.
- 13:24:51So we'll put in the whatever we want
- 13:24:54over here. Obviously it changes job to
- 13:24:55job and we have that there. Cool. So
- 13:24:57let's just imagine we only care about
- 13:24:59Python experience and SQL experience
- 13:25:01which is um very fresh like you don't
- 13:25:04have a lot over there. Obviously there's
- 13:25:06a lot into the resume here. I'm not
- 13:25:07saying this guy doesn't have experience.
- 13:25:09I'm just saying if you're trying to get
- 13:25:10a data science job and you don't have
- 13:25:11Python experience and SQL experience,
- 13:25:13you're not going to get that job.
- 13:25:14Anyways, let's go now and add this to
- 13:25:17sheets or a data table. It it really
- 13:25:19doesn't matter to be honest with you.
- 13:25:20We'll just do sheets. So, we'll just go
- 13:25:22through this in sheets, append our own
- 13:25:25sheets. We're going to use literally the
- 13:25:26same sheet that we've been using like
- 13:25:28this entire tutorial. I don't know why
- 13:25:30I've just decided to use this sheet that
- 13:25:32I'm using for uh YouTube timestamps, but
- 13:25:36that's okay. Go over here to sheet eight
- 13:25:39and we'll say um resumeé
- 13:25:44writeups.
- 13:25:46We'll say SQL
- 13:25:49Python masters.
- 13:25:53Great. And then what we can do now
- 13:25:57is grab this sheet eight which obviously
- 13:26:00you can re label these sheets as well.
- 13:26:02And what we can do is send our different
- 13:26:05things. So we have resume write up,
- 13:26:08SQL experience,
- 13:26:11masters and Python experience. And I can
- 13:26:14execute the step.
- 13:26:17And check it out. We have that. Now, if
- 13:26:19I go over here, boom. So, obviously, we
- 13:26:22can test this out with others, and I
- 13:26:24would recommend that you do so. I'm just
- 13:26:25going to unpin these, and we're going to
- 13:26:27test it with one more example over here.
- 13:26:30So,
- 13:26:31we'll find another.
- 13:26:33Obviously, I have I have four different
- 13:26:35ones on here, so we can uh really mess
- 13:26:38with it if we wanted to. So, which one
- 13:26:41do we want to now? All right. So, we've
- 13:26:43already done this one. I'm going to
- 13:26:44close it out. This doesn't have a name.
- 13:26:47This doesn't have a name either. We have
- 13:26:50first a last name. That's a pretty cool
- 13:26:52name. This is way too blocky.
- 13:26:57University of London. Oh, that's not
- 13:26:59University of London. Middle over here.
- 13:27:02I guess that's fine. [snorts]
- 13:27:05We'll execute workflow.
- 13:27:08I think it's this one.
- 13:27:12Obviously, didn't have a name on it. So,
- 13:27:13we're just going to see it go through
- 13:27:14the live workflow over here.
- 13:27:18And uh I'm curious what ends up
- 13:27:20happening. [snorts]
- 13:27:25Did it filter?
- 13:27:29It got disregarded. So, no SQL
- 13:27:31experience on that resume. Let's see if
- 13:27:33that's correct. So, that was this one
- 13:27:35over here.
- 13:27:38And I recommend that you know SQL if
- 13:27:40you're working with I need a data
- 13:27:43science job because you're going to have
- 13:27:44to pull data all the time.
- 13:27:49Junior data scientist. Yeah, there's
- 13:27:51literally no mention of SQL on here.
- 13:27:55It's crazy to me. uh e like even think
- 13:27:58like people that are going to or systems
- 13:28:00that have things in place like hey we
- 13:28:02want to make sure someone has SQL like
- 13:28:04put it in at least one bullet point
- 13:28:07you can see no SQL so this guy got
- 13:28:09automatically rejected although doesn't
- 13:28:11look too bad on the side of things you
- 13:28:14know you have what happened and then the
- 13:28:16result associated with it all right
- 13:28:18let's test another one we're going to
- 13:28:19test this one over here with the block
- 13:28:21letters this is someone out of the USA
- 13:28:24and we will test it out So let's execute
- 13:28:26that workflow. Hopefully this is the
- 13:28:28correct one and click submit.
- 13:28:32This can go through the same thing. I
- 13:28:33probably should have looked at what
- 13:28:34happened to the summarization as well.
- 13:28:37We looked at information extractor like
- 13:28:38I had like a masters and things like
- 13:28:40that. But do that and take a look. This
- 13:28:43one actually got added to the sheet. So
- 13:28:45it says yes and yes. PhD data scientist
- 13:28:49with eight plus years of experience
- 13:28:50specialized in machine learning
- 13:28:51statistics and large scale biomedical
- 13:28:53data analysis. proven track record
- 13:28:55developing novel ML methods and tools
- 13:28:57have significantly improved disease
- 13:28:59biomarker discovery and cancer
- 13:29:01prediction a lot more over there as well
- 13:29:03but I'm not going to read it all and
- 13:29:05that is a very simple again very simple
- 13:29:09this isn't super complicated way to
- 13:29:12summarize a resume extract information
- 13:29:15filter based around it we've added a
- 13:29:17merge in over here so all this over here
- 13:29:20OCR summarization chain information
- 13:29:23extractor merge filter add to sheets.
- 13:29:25You could really see how things are
- 13:29:26stacking up and why I couldn't show you
- 13:29:28things like this initially in the
- 13:29:30beginning, right? But again, just to
- 13:29:32kind of recap what we've covered, I
- 13:29:34still think this one was a little bit
- 13:29:35more complicated. So, the different
- 13:29:38nodes and things like that, basic LM
- 13:29:41chain essentially, you don't need tools,
- 13:29:44you don't need memory. People overuse
- 13:29:47the AI agent, use the basic LM chain.
- 13:29:49Obviously, you saw I did have some
- 13:29:51issues with the basic LM chain. So if it
- 13:29:53does not work for you, feel free to
- 13:29:55change it into an AI agent. Uh sentiment
- 13:29:58analysis, you can see things are
- 13:29:59positive, neutral, or negative.
- 13:30:01Typically used in customer reviews or to
- 13:30:03find what's happening for a specific
- 13:30:05person or a company. Text classifier,
- 13:30:08you know, again, something that you
- 13:30:10typically will use in some sort of
- 13:30:11chatbot if you want to route specific
- 13:30:14areas on there. Information extractor
- 13:30:17allows us to grab data from a large
- 13:30:20piece of text and give us answers like
- 13:30:23hey does this person have experience
- 13:30:25within this section. You can prompt it
- 13:30:27to say yes or no or you can say uh
- 13:30:29search through something and get like a
- 13:30:31specific year or things like that and I
- 13:30:32showed you that there. Summarization
- 13:30:34chain allows you to do a very quick
- 13:30:36summary of a document. There's three
- 13:30:38different approaches based around that.
- 13:30:40You have the internal models that have
- 13:30:43their own use cases such as like Gemini
- 13:30:46for video and you can just pull in
- 13:30:48YouTube video and it'll it'll analyze
- 13:30:49it. On that side of things, we have
- 13:30:52extract text. This is my OCR that I like
- 13:30:55using with Mistl. Obviously, other
- 13:30:57models have OCR as well. I just find
- 13:30:59Mistrol to work really, really well. And
- 13:31:01then we took a look at some examples
- 13:31:02such as like chaining together uh the
- 13:31:05basic L and chain. We took a example
- 13:31:08over here of finding the sentiment based
- 13:31:10off of a review and we went different
- 13:31:12routes associated with it and then we
- 13:31:15went through this example of OCR with a
- 13:31:17resume. Awesome work uh through this
- 13:31:20section. If you already learned this,
- 13:31:21you you probably know more than like 99%
- 13:31:23of people that even uh touch nan and I
- 13:31:26don't know how long this is into the
- 13:31:28video, but you should be very proud
- 13:31:30yourself and I will see you guys in the
- 13:31:32next section. So, this section is going
- 13:31:34to cover kind of advanced NEN nodes,
- 13:31:37things that I didn't really want to
- 13:31:38cover a little bit earlier on in the
- 13:31:40course because they might confuse you
- 13:31:42and a lot of people use them wrong. This
- 13:31:44includes things like the loop node as
- 13:31:47well as our Python nodes and it's also
- 13:31:49going to cover subworkflows. So, let's
- 13:31:52jump right into it. The first node I
- 13:31:54want to teach you guys about is the loop
- 13:31:56node. I hinted a little bit about it
- 13:31:58within the API section. So, first let me
- 13:32:01show you what the loop node is. So,
- 13:32:03we're going to go over here to loop and
- 13:32:04you'll see it says loop over items split
- 13:32:07in batches. So, we'll load this up over
- 13:32:10here and then you can see it says this
- 13:32:12is there is a batch size and it says
- 13:32:14also you may not need this node. Any end
- 13:32:16nodes automatically run once for each
- 13:32:18input item. So, by default it actually
- 13:32:22gives you this over here. I'm going to
- 13:32:23remove this execute workflow and let me
- 13:32:26explain what is going on. So, first
- 13:32:30imagine we have 100 items and I'll just
- 13:32:33make a sticky note over here to kind of
- 13:32:35explain it. So, we have 100 items over
- 13:32:37here, 100 items over here, right? And
- 13:32:40then we're going to pass those 100 items
- 13:32:43across our workflow. Typically, all 100
- 13:32:45items will run in one node. Then it goes
- 13:32:47to the next node, it runs 100 items.
- 13:32:49Then it goes to the next node and runs
- 13:32:51100 items. Right? So, let's go over here
- 13:32:53and just
- 13:32:55explain this out. And I I explained this
- 13:32:57really early on in the course as well.
- 13:32:59So this is a kind of a good refresher.
- 13:33:00So by default we go 100 items, 100
- 13:33:04items.
- 13:33:06And I feel like this should be better.
- 13:33:09And it should be 100 items. And you can
- 13:33:12imagine each of these are nodes. So that
- 13:33:15makes sense. Well, what happens with uh
- 13:33:17APIs is you get something that's called
- 13:33:20rate limits. So rate limits like this.
- 13:33:25And unfortunately
- 13:33:29you have to send a specific amount of
- 13:33:32data. So some APIs
- 13:33:36you cannot send 100 items.
- 13:33:43This is processing
- 13:33:45too many requests.
- 13:33:47And what happens is you'll get some sort
- 13:33:50of error message that hey you're having
- 13:33:52an issue. you cannot send this much data
- 13:33:55over there. I had this happen to me with
- 13:33:57the YouTube transcripts as I showed you.
- 13:33:59We use a loop over items over there.
- 13:34:02Well, the problem was I was sending too
- 13:34:03much information to Claude when it came
- 13:34:06to Sonet 45 and I hit limits and because
- 13:34:09of that I had to use loop over items. So
- 13:34:13why you want to use loop over items?
- 13:34:15Typically like only if you are using
- 13:34:20APIs. There's probably a few other use
- 13:34:22cases, but people if they don't
- 13:34:25understand that N works like this, they
- 13:34:28think you have to build a whole workflow
- 13:34:29and just loop over it one item at a time
- 13:34:31like that. No, it's like it's not like a
- 13:34:34for loop in programming where you need
- 13:34:35to constantly uh loop over things or a
- 13:34:38while loop. You need and and it goes
- 13:34:41node to node. So if you have something
- 13:34:44that needs to slow down, that's the best
- 13:34:46part about loop over items. but only if
- 13:34:48using or slow down data.
- 13:34:53And this is pretty easy because it says
- 13:34:55replace me. So imagine we just delete
- 13:34:57this and then we set up an HTTP request.
- 13:35:01I'm not going to set up our HTTP request
- 13:35:04to an API, but imagine we have this
- 13:35:06built to an API and we say, "All right,
- 13:35:09we're going to loop over here. It's
- 13:35:12going to run this and it's going to
- 13:35:14build this out." and you say a batch
- 13:35:16size of 10. So instead, what this does
- 13:35:20is you'll have this going on. Ready? So
- 13:35:25we'll have our first node. Imagine a
- 13:35:27node previous to loop over items. And
- 13:35:29maybe I'll just set this up. Let's
- 13:35:30imagine we have an edit set node.
- 13:35:34And we have this edit set that goes
- 13:35:36directly into our loop over items. So
- 13:35:38our edit set again, fictional world has
- 13:35:41100 items.
- 13:35:43Then we go into our loop over items
- 13:35:46which has the input of 100 items.
- 13:35:48However, we do a batch size of 10. So
- 13:35:51what it does is 10 runs
- 13:35:54of 10 items. So then each time we go
- 13:35:57into the HTTP request, it only has 10
- 13:36:00items.
- 13:36:07So hopefully that makes sense. And
- 13:36:10typically you are not going to just have
- 13:36:13the loop over items and HTTP request in
- 13:36:16there. You're actually going to have one
- 13:36:17other node and this is really important
- 13:36:20to add in and typically you'll do it
- 13:36:22after the HTTP request. And this is
- 13:36:24going to be your weight node. So it says
- 13:36:26wait before continuing with execution.
- 13:36:28So why we want to have that is our rate
- 13:36:32limits. Just to go back to these notes
- 13:36:34over here.
- 13:36:36Rate limits
- 13:36:38will tell us
- 13:36:41how many requests
- 13:36:44allowed. And this could be anything from
- 13:36:46like per second,
- 13:36:49it could be per minutes,
- 13:36:52it could be per hour. Really depends on
- 13:36:55the API.
- 13:36:57And how do you find that out? Once
- 13:36:59again, and I I preach it all the time.
- 13:37:02documentation.
- 13:37:03And if you don't want to read the
- 13:37:04documentation, maybe you ask Perplexity,
- 13:37:07you ask Claude to read it over. You
- 13:37:10populate the documentation. But how do
- 13:37:12you find this out? Documentation. It
- 13:37:14will tell you, hey, you can only send
- 13:37:17100 requests per minute. And I had this
- 13:37:21happen in HubSpot. So, unfortunately,
- 13:37:23due to the HubSpot nodes, I had to use
- 13:37:25an HTTP request because they're not
- 13:37:27really built out that well yet in any
- 13:37:29end. If you go over here to HubSpot,
- 13:37:32there's a lot of them, but for what I
- 13:37:34specifically needed, it was not in here.
- 13:37:36Maybe it is in here now because I built
- 13:37:38out a workflow about three months ago
- 13:37:40with it, but I had to use essentially
- 13:37:43this. I had a loop over items. I had a
- 13:37:45HubSpot uh HTTP request and I I kept
- 13:37:49sending payloads over to HubSpot just
- 13:37:52based off of their requirements. And the
- 13:37:54funny thing about HubSpot is their rate
- 13:37:56limits depend on the level of an
- 13:37:59account. So the more you pay, the more
- 13:38:00data you could process, which is not
- 13:38:03uncommon. As you get into enterprise
- 13:38:05software, there's going to be limits
- 13:38:06based off of your account level. So if
- 13:38:08you have a lower tier account, you can
- 13:38:10send less data per minute or per hour.
- 13:38:12So something to be aware of. Um, going
- 13:38:16into this weight node, you can change up
- 13:38:17a lot of different settings. So this is
- 13:38:20the weight amount time. This is in
- 13:38:21seconds, by the way. And you can change
- 13:38:24this to minutes, hours, days as
- 13:38:26necessary. It's really weird they don't
- 13:38:28have milliseconds over here as well
- 13:38:29because feel like a lot of the nodes in
- 13:38:31a are based around milliseconds. So when
- 13:38:34you get into wait and it's like 5
- 13:38:36seconds by default, it's kind of
- 13:38:37interesting especially if you go into uh
- 13:38:40just to show you our settings over here
- 13:38:42and we've covered the retry on fail. You
- 13:38:44know it's milliseconds. So it's an
- 13:38:47interesting choice that we have seconds
- 13:38:50as the default thing over here instead.
- 13:38:51I'm just going to turn off the retry by
- 13:38:53fail. Um, so that is essentially what we
- 13:38:57see with loop over items. People way
- 13:38:59over complicate it. Like they use it for
- 13:39:02every single workflow. I did not want to
- 13:39:03teach you this early on because it's a
- 13:39:05very bad habit that I see. And I thought
- 13:39:08this at first because I came from a
- 13:39:09programming background. I'm a data
- 13:39:11scientist full-time. So I write a good
- 13:39:14amount of loops. And I thought like,
- 13:39:16hey, you know what? We're going to need
- 13:39:17the loop over items for all my
- 13:39:19workflows. So when I first joined and
- 13:39:21learned about Nan, I always used loop
- 13:39:23over items until I actually learned how
- 13:39:25items process node to node. And that is
- 13:39:28why I I taught that so early on in the
- 13:39:30course because that is something I wish
- 13:39:31I knew when I first started any um all
- 13:39:34right so that is loop over items that is
- 13:39:38wait I want to show you also the
- 13:39:41different code nodes on this side of
- 13:39:43things. Now this isn't going to be a
- 13:39:44full Python tutorial. In fact, um I'm
- 13:39:47kind of thinking for my next very long
- 13:39:50video, I just teach you guys everything
- 13:39:52I know about Python or like Python
- 13:39:55pandas or something like that. But uh
- 13:39:58we're going to jump into our code node.
- 13:40:00And right now in nan you have two
- 13:40:03different programming languages that you
- 13:40:04could use. You could use JavaScript or
- 13:40:07you could use Python. And right now I
- 13:40:10would say if you had to learn just one
- 13:40:13language for any end focus on
- 13:40:16JavaScript. Now I don't have a
- 13:40:18JavaScript background because in data a
- 13:40:22lot of programming is done in Python and
- 13:40:25SQL. So I know Python. I don't know
- 13:40:28JavaScript. That's going to change next
- 13:40:30year. I actually want to learn a little
- 13:40:31bit about JavaScript. I think it would
- 13:40:32be helpful for any N and I think there's
- 13:40:34other applications for it that I should
- 13:40:36learn about it. However, if you your
- 13:40:38only focus is to learn a programming
- 13:40:41language for NAN, go JavaScript. If your
- 13:40:43focus is to expand out of NAN and you
- 13:40:47want to learn AI outside of this, if you
- 13:40:49want to learn how to analyze data, if
- 13:40:52you want to possibly become a
- 13:40:53programmer, I would recommend using
- 13:40:56Python. So, two different routes.
- 13:40:58Personally, I will still say probably go
- 13:41:00the Python route just because one, I'm
- 13:41:03biased, but I think eventually
- 13:41:05everything that's going to be in
- 13:41:06JavaScript will be in Python and nan and
- 13:41:09it's only like a few weird use cases
- 13:41:11that there's no Python available, but
- 13:41:13and I think it's like with the sort
- 13:41:15node. If I remember correctly, if I go
- 13:41:16to sort, you can see code, this is only
- 13:41:20JavaScript. So, it's weird that you
- 13:41:22can't change the sort node into Python.
- 13:41:24Um, well, next time I talk to any hand
- 13:41:26team, I'll bring that up. However, um
- 13:41:29there's weird cases like that where
- 13:41:30JavaScript is probably the better
- 13:41:32approach, whereas Python, you can't use
- 13:41:35that, but I would just recommend
- 13:41:37learning how to use Python because I
- 13:41:39think there's a ton of applications
- 13:41:40there. And I think you could if you're
- 13:41:42going into like a full-time job, I think
- 13:41:45Python probably pays a little bit higher
- 13:41:47than JavaScript just based off of what
- 13:41:49is needed. You see software developers
- 13:41:50using Python, you see data scientists
- 13:41:52using Python, data engineers, data
- 13:41:54analysts. So there's a lot of
- 13:41:55applications out over there. A lot of AI
- 13:41:58packages out there also use Python if
- 13:42:00you know how to use it. So um yeah, I
- 13:42:02like that. Anyways, not to not to go on
- 13:42:04a full rant. So by default, you'll see
- 13:42:07that we have an ask AI. So we could ask
- 13:42:09in here directly, hey, how do I build
- 13:42:12out this code? And the same thing with
- 13:42:15Python. And I want to give you guys a
- 13:42:17heads up. A lot of people what they're
- 13:42:20going to do is go straight into the code
- 13:42:22node and go into chat gpt or claude and
- 13:42:26ask like hey can you um build out all
- 13:42:30this code in one code node and skip
- 13:42:33other additional nodes and we've we
- 13:42:35spent a lot of time talking about nodes
- 13:42:37like the summarize node and aggregations
- 13:42:40and things like that and if you go back
- 13:42:42over here and go to data transformations
- 13:42:45a lot of these data transformations
- 13:42:46whether it's like a a split out or
- 13:42:49aggregate or a merge like people try to
- 13:42:50do this in the Python code node or the
- 13:42:53JavaScript node and it's like use the
- 13:42:55native nodes when possible. So one of
- 13:42:57the mistakes that people use is they'll
- 13:43:00they'll try to stuff too much
- 13:43:01information into a Python code node.
- 13:43:03They um vibe code at all. They don't
- 13:43:06understand what the code actually does
- 13:43:08and it just becomes a mess. So do not do
- 13:43:11that. Only use the code node when you
- 13:43:15have to when you have no other choices
- 13:43:17in nan and you're like I'm stuck. I
- 13:43:19can't figure out what to do next. Use
- 13:43:21the code node edition. You're like okay
- 13:43:24um should I ask AI in here? Should I?
- 13:43:28And it's interesting there's no ask AI
- 13:43:30on the Python side. I just I didn't
- 13:43:31notice that. Look, you have the ask AI
- 13:43:33for JavaScript. Don't have ask AI over
- 13:43:36here.
- 13:43:38Weird. Either way, um, one other
- 13:43:41benefit, oh, sorry. I was gonna say for
- 13:43:43building out this code, what I
- 13:43:45recommend, and obviously things change,
- 13:43:48so take this with a grain of salt
- 13:43:49because if you look over how AI changed
- 13:43:52in all of 2025, um, what things people
- 13:43:55recommended in January might have
- 13:43:56changed by the end of the year. Claude
- 13:43:58Code is phenomenal. So, I use that for
- 13:44:02generating code. Like, it's really,
- 13:44:04really nice. I use Sonnet 45 as well. It
- 13:44:07just like I think it does a great job.
- 13:44:09It understands what's happening. I as I
- 13:44:12showed you guys and I'll show it again.
- 13:44:13I have a screenshot over here and I
- 13:44:15populated. One other thing to mention
- 13:44:17with both these code nodes and again
- 13:44:19I'll I'll show you some basic use cases.
- 13:44:22These are great for building out example
- 13:44:25data. Now earlier in the code in the
- 13:44:27course we built out example data with
- 13:44:29our edit set. So we go over here and
- 13:44:31let's say we have name and I'll just put
- 13:44:33Ryan over here. Well, the thing with
- 13:44:36code node is you can actually build out
- 13:44:38like 10 names at once and I didn't mean
- 13:44:40to actually run the code node, but you
- 13:44:42can see we have output of one item and
- 13:44:44that's kind of a limitation of edit set.
- 13:44:46So you can see like okay well we build
- 13:44:47out one and I showed you we could build
- 13:44:49out an array and split this out or break
- 13:44:52it out and have multiple items. Well, we
- 13:44:53could do this directly in any n and let
- 13:44:56me show you how we could do this. Um, so
- 13:45:00I'm just going to copy over an example I
- 13:45:02already did in my Python video. So,
- 13:45:03don't kill me on that one. I try to make
- 13:45:05a lot of the different stuff here um
- 13:45:08differently. But you can see over here,
- 13:45:10all I'm doing is return. I'm returning
- 13:45:11this JSON. I have a name for each of
- 13:45:14these people and then I have a salary.
- 13:45:15And take a look. Now, what we have is we
- 13:45:19have five items. So, if you want to test
- 13:45:21with multiple items, the code node is
- 13:45:24phenomenal for that. You could do the
- 13:45:25same thing in JavaScript. You just have
- 13:45:28to grab uh you just have to essentially
- 13:45:30give an example. And I again I like I
- 13:45:33mostly build out in Python rather than
- 13:45:34JavaScript. So applicable to each of
- 13:45:37these languages and uh I find it great
- 13:45:39for testing because now we've built out
- 13:45:41five items and we can test a workflow
- 13:45:43based around it. Whereas in our edit set
- 13:45:45we only have one. So if you need
- 13:45:47multiple items to test code node
- 13:45:50otherwise you go into here and just to
- 13:45:52explain this code what we're doing is
- 13:45:54returning a JSON object. We have name
- 13:45:56over here. We paired all these over here
- 13:45:58to name. So you can see Alice, Bob,
- 13:46:00Charlie, Diana, and Eve. And then we set
- 13:46:02up salaries. Uh there's a lot of other
- 13:46:04things that we could do within the
- 13:46:05Python code node. So you can actually do
- 13:46:09math in here, which I find that to be
- 13:46:11pretty good. Um math when you're going
- 13:46:14into like edit set and some of the other
- 13:46:15stuff can be a little bit wonky. So I
- 13:46:18find it easier to do it within the code
- 13:46:20node at times. Also, if you want to add
- 13:46:22in a new um column for all these items,
- 13:46:26I find it easier to do it in Python.
- 13:46:29And literally all you have to do to add
- 13:46:31in a new column, and I'll just like add
- 13:46:33in a new code node. So, I'll just grab
- 13:46:35Python over here.
- 13:46:38Let's go to Python.
- 13:46:40And uh I'll just show you this really
- 13:46:42quick. All you got to do is this.
- 13:46:47I'm just again I'm just grabbing over
- 13:46:49some code I already have. And it's
- 13:46:50actually very Oh, it's actually
- 13:46:52literally the same as this over here.
- 13:46:54So, I guess I could have just explained
- 13:46:56it with that, but it's fine. So, all we
- 13:46:59do is we create the new column name. So,
- 13:47:00you can see in the example code, it says
- 13:47:02my new field. And this one that I built
- 13:47:04out, I called this status, and I set
- 13:47:06this equal to process by default. You
- 13:47:08can see my new field is equal to one.
- 13:47:10So, if I run this, all of these are
- 13:47:11going to have a new field that says my
- 13:47:14new field with one. And this is the
- 13:47:15default code it gives you out of the
- 13:47:16box. So it shows you essentially how to
- 13:47:18build out a new column for everything
- 13:47:20which again I find this very helpful if
- 13:47:22you want to start this out and obviously
- 13:47:24you can build out logic just from this
- 13:47:26for loop and really expand this out
- 13:47:28where each of these could have different
- 13:47:30values associated with it. I want to say
- 13:47:32I have an example of that over here as
- 13:47:34well. Um let me just double check.
- 13:47:37Maybe not.
- 13:47:41Think I did though. Oh here we go.
- 13:47:43Here's another example of that. So let
- 13:47:46me just show you this code. So again,
- 13:47:47we're using the same structure. So you
- 13:47:50can see the four item and items. This is
- 13:47:51going to stay the same. We're returning
- 13:47:53items at the very end as well. So keep
- 13:47:55that the same. And then all you have to
- 13:47:56do is write the code here in the middle.
- 13:47:58So what I'm doing is I'm grabbing the
- 13:48:00salary for each of these items. And then
- 13:48:02I'm creating a new category based off
- 13:48:05the salary level. So if I say they're
- 13:48:06greater than 80,000, senior, mid-level,
- 13:48:09junior. If I run this step over here,
- 13:48:12you'll see all these are different. So
- 13:48:14you know we have the different
- 13:48:15approaches. We can build out something
- 13:48:17by default
- 13:48:18again just go into Python code node and
- 13:48:21assign all the values over there which
- 13:48:24this is the example over here. All we do
- 13:48:26is create a new field and put the value.
- 13:48:29Again super super easy or we can go in
- 13:48:32and um have different customization
- 13:48:35based off of this. I find if lf else is
- 13:48:37probably the easiest route to go.
- 13:48:39Obviously, there's a lot that I could
- 13:48:40teach you with Python programming
- 13:48:43video for another day. And obviously,
- 13:48:46like you can go and use this structure
- 13:48:48and ask Claude. So, just to show you,
- 13:48:53if I wanted to ask Claude, for example,
- 13:48:55I'm just going to go into our code node.
- 13:49:01I don't know, we could ask a question
- 13:49:03based around this.
- 13:49:05over here based on this
- 13:49:08this nan code
- 13:49:12structure.
- 13:49:15Can you modify this?
- 13:49:18So there is five holes. Like this is a
- 13:49:20super e easy coding request. But
- 13:49:25I would just recommend you take a
- 13:49:26screenshot of everything that is going
- 13:49:28on. Your input, your code, your output.
- 13:49:32And then look, it says look at your end
- 13:49:34code. I can modify five levels. Here is
- 13:49:36the updated Python code. So we have all
- 13:49:38this over here. We can just copy this
- 13:49:40in. Again, super super basic. You don't
- 13:49:42need um code node over here for that.
- 13:49:45And now you can see we have senior
- 13:49:46mid-level, junior entry level. And we
- 13:49:49have all that on that side of things.
- 13:49:51This look good. So intern under 30,000,
- 13:49:53entry level over 30, junior over 50,
- 13:49:56mid-level over 70, and senior over 90.
- 13:49:59Pretty basic.
- 13:50:00Great. And again, everything is
- 13:50:02applicable in JavaScript. I don't know
- 13:50:04JavaScript as well as I know Python. So
- 13:50:06um I probably explained things a few a
- 13:50:08bit wrong and I don't want to do that
- 13:50:10this particular video. But you know you
- 13:50:14can use a large language model. All
- 13:50:16right. Uh last thing I wanted to cover
- 13:50:18really fast is uh the call nan workflow
- 13:50:21tool and sub workflow nodes. So let's
- 13:50:25cover that in this section. And what
- 13:50:27we're going to do is call or execute
- 13:50:30subworkflow.
- 13:50:34Great.
- 13:50:37So we'll have that over here. We'll also
- 13:50:40add in an AI agent.
- 13:50:42Grab that as well.
- 13:50:46Pass that in. And then we're going to go
- 13:50:48and look for workflow as well. You can
- 13:50:51see at the very top call any workflow
- 13:50:53tool. All right. So, let's explain all
- 13:50:56of these. Oh, I want to go to execute
- 13:51:00workflow trigger here as well.
- 13:51:05Great. So we're going to explain all
- 13:51:06three of these and we're so essentially
- 13:51:09what we can do in our NAN workflow is
- 13:51:12call another workflow. So imagine you
- 13:51:16have logic that you essentially are
- 13:51:18going to use in multiple workflows or
- 13:51:20it's very complicated logic and you
- 13:51:22would rather just simplify your workflow
- 13:51:24and have that complicated logic in one
- 13:51:26area. Well, one way that you could do
- 13:51:28this is through the execute workflow uh
- 13:51:31node or as well as a tool. So what are
- 13:51:35the differences? Well, this is going to
- 13:51:36be in the middle of the orchestration
- 13:51:38layer. So you have some sort of input
- 13:51:39that comes in over here. Then we execute
- 13:51:41that workflow. Whatever happens in that
- 13:51:43workflow, then it comes back into this
- 13:51:45node and then it processes along the
- 13:51:48way. This actually changed a little bit
- 13:51:51between version one of Nan as well as
- 13:51:54version two. Um they the N any team
- 13:51:56really beefed this up so that way you
- 13:51:58could use a little bit more human in the
- 13:52:00loop and make it much easier and which
- 13:52:01is why we're going to have a full
- 13:52:03section on this. But essentially all you
- 13:52:06need to know for this over here for the
- 13:52:07execute workflow is you can have another
- 13:52:10workflow essentially inside your
- 13:52:12workflow. So, imagine what we had over
- 13:52:14here
- 13:52:16is a imagine we had an AI agent.
- 13:52:22And I'm I'm building things on the fly,
- 13:52:24so I'm not like really thinking about
- 13:52:25what we're doing, but imagine we had
- 13:52:27some sort of AI agent that goes right
- 13:52:29into a code node.
- 13:52:33Let's say code JavaScript that goes into
- 13:52:35an edit set
- 13:52:38that goes into um let's go to data
- 13:52:41transformations. Let's say we go to
- 13:52:43split. Again, none of this makes any
- 13:52:45sense at all. Um, actually, let's do one
- 13:52:48more data transformation. We're going to
- 13:52:50do is we're going to do an aggregate
- 13:52:52before we go to that node over here.
- 13:52:55All right,
- 13:52:57I'm just thinking on the fly right here.
- 13:52:59But imagine we wanted to have this like
- 13:53:01we think this is very complicated logic.
- 13:53:03We're going to use this logic over
- 13:53:04again, multiple workflows. Let's send
- 13:53:06this to another workflow. So you could
- 13:53:09replace all that with this node. And the
- 13:53:14easiest way to replace this in a
- 13:53:15workflow is if you highlight all this,
- 13:53:18you rightclick and then what we have the
- 13:53:20option to is over here. Convert five
- 13:53:23nodes to subworkflow. So what we'll say
- 13:53:26over here is section
- 13:53:2920 subworkflow
- 13:53:32part two just because that way I can let
- 13:53:34you guys uh download this and mess with
- 13:53:36it. But you'll see now we have that all
- 13:53:39replaced with this node. And you're
- 13:53:40like, "All right, that's cool. What
- 13:53:42happened?" So click over here, open a
- 13:53:44new tab, and take a look. So now what we
- 13:53:47have is this start trigger, which you
- 13:53:49need to connect this over here. And then
- 13:53:52it has our entire workflow. We already
- 13:53:54renamed this section 20 sub workflow
- 13:53:55part two. But now we have this whole
- 13:53:57workflow in essentially its own blank
- 13:54:00canvas. And now all of that junk has
- 13:54:03been cleaned up into one uh particular
- 13:54:06node. It's very very helpful on this
- 13:54:08side of things. And this trigger starts
- 13:54:11it. So whenever we hit that node, we go
- 13:54:14into this workflow, it runs. Once it
- 13:54:16hits that very last node, it comes back
- 13:54:18over here into this node and it keeps
- 13:54:21moving forward. So kind of like the part
- 13:54:24two of this is you can do this with an
- 13:54:25AI agent as well. So imagine you want
- 13:54:28your AI agent to have access to a
- 13:54:30workflow that you already built like hey
- 13:54:32this AI agent is going to process data
- 13:54:34and you know what it should access this
- 13:54:36workflow over here because it goes
- 13:54:38through that entire process I want the
- 13:54:39AI agent to do well that's where the N
- 13:54:42workflow tool is. So you can go over
- 13:54:44here and it says call this tool to get a
- 13:54:45random color the input should be a
- 13:54:46string with comma separated by colors to
- 13:54:48exclude. So, you want to fill this out
- 13:54:50with details to let your AI agent know
- 13:54:53explicitly, hey, this is what's going on
- 13:54:56in this workflow. This is why you need
- 13:54:58to call it. And you should also, as I
- 13:55:02mentioned in our AI agent lesson, you
- 13:55:04need to explicitly write that in the
- 13:55:06system message. When should it access
- 13:55:08this tool? So, you need to say the
- 13:55:10description over here. When should it
- 13:55:12access this workflow? You need to make
- 13:55:14sure you write this here. Make sure the
- 13:55:15names are one, two, one. I would rename
- 13:55:17this instead of call any end workflow
- 13:55:19tool to whatever thing that you want it
- 13:55:21to be. So if your workflow generates a
- 13:55:23random color, call this random number or
- 13:55:25random color generator. Define that in
- 13:55:28here as well. It's so important that you
- 13:55:31do that it because otherwise you're
- 13:55:33going to get hallucinations. Sometimes
- 13:55:35it's not going to call the specific tool
- 13:55:36that you want it to do. So be as
- 13:55:38explicit as possible. So again to kind
- 13:55:41of recap what is going on over here.
- 13:55:45First, you can replace multiple nodes
- 13:55:47with this execute subworkflow. So, you
- 13:55:49can see it says execute workflow over
- 13:55:51here. So, if you have repeated logic
- 13:55:53that you're going to use in multiple
- 13:55:55workflows and you want to control in one
- 13:55:57place so that way you don't have to
- 13:55:58update it multiple times, this is
- 13:56:00helpful over here. Or if you have
- 13:56:01something very complicated and you're
- 13:56:03like, this is just taking up too much
- 13:56:04space on my screen. And obviously, like
- 13:56:06that five node example isn't really too
- 13:56:09complicated. I don't know if that's five
- 13:56:10or six nodes, but sometimes when when
- 13:56:12you're building out real world workflows
- 13:56:13for customers, you might have 20 or 30
- 13:56:15nodes and you're like, well, you know, a
- 13:56:17lot of this might be easier done with
- 13:56:19the execute subworkflow. Um, maybe you
- 13:56:21want to go that approach. In addition,
- 13:56:23it'll go all over here and we can run
- 13:56:26that. You can also see your executions
- 13:56:28on the side of things. So, you will be
- 13:56:30able to see your executions in the sub
- 13:56:32workflow as well as your actual
- 13:56:34workflow. Uh, one of the best benefits
- 13:56:36of our execute workflow like this, well,
- 13:56:39there's two benefits. The first one is
- 13:56:41we can use human in the loop, which
- 13:56:42we're going to talk about in two
- 13:56:44sections. The other thing that's this is
- 13:56:46really helpful for is parallel
- 13:56:48processing. So, we haven't really talked
- 13:56:51about that too much, but parallel
- 13:56:53processing is a way to optimize the
- 13:56:55speed of your workflows. Sometimes
- 13:56:58people have very slow workflows and
- 13:57:00you'll want to essentially parallel
- 13:57:01process so they run quite faster. I'll
- 13:57:04show you that here in a second, how we
- 13:57:06could utilize that. Um, but that would
- 13:57:08be the other benefit. So, we'll cover
- 13:57:10that here in a second. In addition,
- 13:57:11right, when we go into our AI agent,
- 13:57:14what we're going to do is use a call any
- 13:57:16workflow tool if we want to have that
- 13:57:17agent access a specific workflow. You
- 13:57:20could also set up multiple workflows to
- 13:57:22talk to our AI agent. Just remember what
- 13:57:24you need to do is have a workflow that
- 13:57:26starts with this execute subworkflow and
- 13:57:29that can be called by either this tool
- 13:57:31or it can be called by this node. And
- 13:57:34you can see over here it says source
- 13:57:36like where we looking for um the
- 13:57:38workflow specifically. So this has the
- 13:57:41section 20 sub workflow part two. And
- 13:57:43then you have different modes is you can
- 13:57:45run once for each item or you can run
- 13:57:47once for all items. So the difference is
- 13:57:49is run once for all items pass all items
- 13:57:51into a single execution of the sub
- 13:57:53workflow called the nan sub workflow for
- 13:57:55for each specific item. So this goes
- 13:57:57back into what I was talking about with
- 13:57:59how items are processed. So, do you want
- 13:58:01all 100 items directly into that
- 13:58:04subworkflow or do you want one item at a
- 13:58:07time to go through that sub workflow? It
- 13:58:09really depends on your specific use case
- 13:58:11and if you're going to use human in the
- 13:58:13loop or not. All right, some other
- 13:58:15settings over here as well. And you can
- 13:58:18wait for the sub workflow to complete or
- 13:58:19you can have this continue to go
- 13:58:21forward. So what that means is like hey
- 13:58:23should we wait for all 100 items to be
- 13:58:25processed by this or as soon as one is
- 13:58:28done we should go back over here and
- 13:58:31continue on the workflow like the extra
- 13:58:33nodes that are after. So that is going
- 13:58:34to be that option over there. Um the
- 13:58:37call any end workflow tool you can see
- 13:58:39we have the same exact thing. We just
- 13:58:41put the description. Uh let's say for
- 13:58:43example we do the section 20 and it says
- 13:58:44a sub workflow tool set up to receive
- 13:58:46all input data. Without specific inputs
- 13:58:48the agent will not be able to pass data
- 13:58:50to the tool. You can define specific
- 13:58:51inputs in a subworkflow trigger. So if
- 13:58:53we go over to that trigger just to show
- 13:58:56you over here, we can define input data
- 13:58:58mode. So you can either accept all data,
- 13:59:00you could accept specific fields. So you
- 13:59:02can define what fields it should expect
- 13:59:05or you could use JSON as an example of
- 13:59:07what to accept in this sub workflow. And
- 13:59:10I know we're not really doing an example
- 13:59:12over here, but when we jump into human
- 13:59:15in the loop, it's going to be a lot more
- 13:59:17explicit on what we are doing over
- 13:59:19there. you're just going to have to wait
- 13:59:20one more section. So, in general, what
- 13:59:23we covered first, um, again, loop over
- 13:59:26items, you don't always need the loop
- 13:59:27over items. Just use it when you're
- 13:59:29using APIs and you're getting rate
- 13:59:31limited. Not even all APIs are needed
- 13:59:33loop over items. You'll just, if you're
- 13:59:34sending a lot of data over and you're
- 13:59:36having issues, loop over items, use the
- 13:59:38HTTP request or the native node, and
- 13:59:40then use a weight. You can decide what
- 13:59:42the batch size is. So, if you want to
- 13:59:44send one item, 10 items, 100 items. And
- 13:59:47how you find out this information is
- 13:59:49based off of the documentation. Look at
- 13:59:51the rate limits. So you'll have to
- 13:59:52change what's the loop and then what's
- 13:59:55also the weight. And obviously like you
- 13:59:57would want to try to optimize the batch
- 13:59:59size. A larger batch size um with maybe
- 14:00:01a a larger weight is better because I do
- 14:00:04find any and bugs out when you get into
- 14:00:06like over 100 200 300 executions at
- 14:00:09times um through the loop over items.
- 14:00:11It's it can be a little bit funky. So
- 14:00:13try to optimize both of those. And then
- 14:00:16we talked about the code node. So
- 14:00:17JavaScript and Python obviously if you
- 14:00:19want to learn and get better NE I'd
- 14:00:21focus on one of the two really if you
- 14:00:23want to grow your career I would
- 14:00:25recommend Python although JavaScript is
- 14:00:26a little bit more powerful in N. You can
- 14:00:29use this to generate items as well for
- 14:00:31testing which I highly recommend. I do
- 14:00:33that all the time. It's super easy to do
- 14:00:35in JavaScript as well. Then we talked
- 14:00:37about the sub workflows. So you can use
- 14:00:40the subworkflow tool or you can use the
- 14:00:41execute workflow node. Um, and then
- 14:00:44there's a trigger in that separate
- 14:00:45workflow. You can rightclick and jump
- 14:00:46into that. We'll talk about this more in
- 14:00:48human in loop. And that is going to be
- 14:00:50section 20. Uh, we're going to change it
- 14:00:52up a little bit before we jump into
- 14:00:54human loop. We're going to actually talk
- 14:00:55about multimodal, which is going to be
- 14:00:57generating images and videos. I will see
- 14:00:59you there. Now, so this next section is
- 14:01:01going to be focused on generating images
- 14:01:03and videos with AI. Now, I will say the
- 14:01:08workflow we're going to be using today,
- 14:01:09I have built this out in a previous
- 14:01:11video, but I'm going to go through every
- 14:01:13single step and walk with you guys
- 14:01:14through um why I built it and how we can
- 14:01:18build it together. In addition, we're
- 14:01:20going to be talking about a marketplace
- 14:01:22that I use for gathering different image
- 14:01:25and video models. Image and video models
- 14:01:28are changing rapidly. So, literally
- 14:01:30probably a month after this video,
- 14:01:32people's preferences for models are
- 14:01:34going to change. So obviously use what's
- 14:01:36popular. This is a framework to get
- 14:01:38started. Feel free to tweak the
- 14:01:40workflow. Feel free to tweak how you
- 14:01:42approach this. So let me jump into
- 14:01:45there. This is the workflow which we're
- 14:01:47going to be building. It's pretty easy.
- 14:01:50And yeah, we're using we're taking a
- 14:01:52look at a website called i.aii.
- 14:01:55And you can see that there's like
- 14:01:57popular video models like VO31 or Sora 2
- 14:02:00Sora 2 watermark. Or if you go back into
- 14:02:02the first page, there's some of these
- 14:02:04other newer models. Like GPT Image 15, I
- 14:02:06want to say came out like a week ago. I
- 14:02:08haven't used it yet. I use Nano Banana
- 14:02:10Pro quite a bit. And you can see it says
- 14:02:13starting from 9 cents, which is really
- 14:02:15cheap. This one doesn't say where it's
- 14:02:17starting from. This Z image is very
- 14:02:19cheap. Look at how cheap that is. Um,
- 14:02:21Cream is pretty cheap as well. So, we'll
- 14:02:25jump into some of these. You can
- 14:02:26actually generate stuff as well directly
- 14:02:28in here. So this is an example that they
- 14:02:31give you. Change your clothing to a blue
- 14:02:33evening gown. Reserve face, identity,
- 14:02:36hairstyle. And you can see the
- 14:02:37background is nearly identical and all
- 14:02:39you did is change the image. A nano
- 14:02:42banana. It shows you essentially a
- 14:02:45graphic that was created. Although I
- 14:02:47find it really great for UGC creators.
- 14:02:49And then BO3 generates videos. So you
- 14:02:52can generate videos like vertically or
- 14:02:54horizontally. So vertically for like a
- 14:02:56Tik Tok or Instagram, horizontally like
- 14:02:59this if you're going to get like B-roll
- 14:03:01for a YouTube video. And again, I've
- 14:03:03used these for YouTube videos and
- 14:03:05YouTube thumbnails and and things like
- 14:03:07that. So these are actually quite easy
- 14:03:10to set up here in Nan. I'm going to
- 14:03:13essentially reproduce this for you guys
- 14:03:15step by step just to show you how to do
- 14:03:17this. Um we can also just go over here
- 14:03:20and generate something. So this is an
- 14:03:22example that was generated just by text.
- 14:03:26This again wasn't something that I
- 14:03:27created but something that's already
- 14:03:29populated over here. And the prompt that
- 14:03:31this person used is create a photo
- 14:03:33realalistic candid photograph of an
- 14:03:35elderly sailor standing on a small
- 14:03:37fishing boat. He has weathered skin with
- 14:03:40visible wrinkles, pores and sun texture
- 14:03:42and a few faded. A traditional sailor
- 14:03:44tattoos on his arm. He's commonly
- 14:03:46adjusting a net while his dog sits
- 14:03:47nearby on a dock. Shot like a 35
- 14:03:50millimeter film. Photography medium
- 14:03:51close-up at eye level. Use a 50
- 14:03:53millimeter lens. The image should feel
- 14:03:55honest and unposed with real skin
- 14:03:57texture, worn materials, and everyday
- 14:03:59detail. No glimmerization or heavy
- 14:04:01retouching. And this is like a very good
- 14:04:03photo. I mean, this looks realistic. I
- 14:04:05mean, it's phenomenal.
- 14:04:07One thing you'll notice is there's a lot
- 14:04:10of detail in this prompt, right? We talk
- 14:04:13about the close-up. We talk about what
- 14:04:16the person should look like. We talk
- 14:04:17about the boat. We talk about the dog.
- 14:04:20So, when it comes to like building out
- 14:04:22really good image or video, a lot of
- 14:04:25this is dependent on your prompts. And
- 14:04:28there's so much that you could cover
- 14:04:30with prompts. You could talk about
- 14:04:31lighting, you could talk about angles,
- 14:04:33you could talk about and video side of
- 14:04:36things. You could talk about the audio.
- 14:04:38You could talk about transitions. You
- 14:04:39could talk about the type of camera
- 14:04:41shot. Like, is it a close and zooms out
- 14:04:43or does it start far away and zoom in?
- 14:04:46You can talk about the exact
- 14:04:48conversation that multiple people or one
- 14:04:50person says. Uh you could literally
- 14:04:53build out kind of meme videos with like
- 14:04:55yetis and snowmen and there's so much
- 14:04:58that you could do with prompts, but
- 14:05:01really you just got to describe it.
- 14:05:02Think of yourself as the filmmaker and
- 14:05:05what type of shot do you want? Give as
- 14:05:07much detail as possible. We'll say
- 14:05:10hallucinations do happen so be wary of
- 14:05:13that. So, you can see the cost on this
- 14:05:15is like very cheap. It's bore to run
- 14:05:18this. And just to show you the pricing,
- 14:05:21I think I mentioned in this take, but
- 14:05:23I've spent about $50 on here. Um, and
- 14:05:26you can see billing over here. You get
- 14:05:29$50 for 10,000 credits. So, the fact
- 14:05:31that this is available at four credits
- 14:05:33is super cheap. Uh, you can change the
- 14:05:35quality medium or high as well. And
- 14:05:38actually, I'm shocked that this didn't
- 14:05:40Oh, there we go. I'm like, that seems
- 14:05:42very cheap for four credits.
- 14:05:44uh medium and high but you can see high
- 14:05:47is way more expensive. I don't know if
- 14:05:49this is the medium quality or not but
- 14:05:51there is that and you can see our
- 14:05:53results JSON we have this image over
- 14:05:56here as a WEBP file. So pretty easy to
- 14:05:59set up.
- 14:06:01First show you where you can get your
- 14:06:02API key at. So all you have to want to
- 14:06:06do is go to API keys over here and
- 14:06:08create a new key. copy the key because
- 14:06:11we will be utilizing that here in a
- 14:06:13second. So how this workflow operates
- 14:06:17first what we want to do is in this case
- 14:06:21I am going to use a Google sheet and um
- 14:06:24I'm essentially documenting what
- 14:06:26workflows I want to have built out. So
- 14:06:29I'm not going to show this because this
- 14:06:30is part of a customer project but I'm
- 14:06:33kind of bulking out images that I want
- 14:06:36to create. I put like 15 images in this
- 14:06:39spreadsheet just based off of prompts
- 14:06:41because I'm going to pass them forward.
- 14:06:44Next thing I'm going to do is set up two
- 14:06:46HTTP requests. And this is just based
- 14:06:49off of the documentation. So
- 14:06:51documentation
- 14:06:53just to go into there. Let me grab this
- 14:06:56for this old man.
- 14:06:58Go into our API. You can see we have
- 14:07:02different information that we
- 14:07:03specifically need. And it says all APIs
- 14:07:06require authentication v via a bearer
- 14:07:08token.
- 14:07:10And essentially all I did is go over
- 14:07:14here and copy the curl. And if you take
- 14:07:17a look, there's an import curl section.
- 14:07:20We took over this in the API section,
- 14:07:21but literally just copy and paste it. I
- 14:07:24set up a header off based off of the API
- 14:07:26key. So in the past, it was populating
- 14:07:30in here, but I just set up a header off.
- 14:07:32And to show you, all I did is call
- 14:07:34authorization and paste that API key
- 14:07:36that we saved a little bit earlier.
- 14:07:40And then based off the model, it's going
- 14:07:41to ask you to send a specific body. So
- 14:07:45what you can see is for example over
- 14:07:48here,
- 14:07:50go to the body. It says model,
- 14:07:53you have the string over here, call
- 14:07:55back, and then input. So input parameter
- 14:07:57is based off the form configuration. So
- 14:08:00there's going to be probably some
- 14:08:01examples over here.
- 14:08:03We go to examples.
- 14:08:06All right. And then we just jump into
- 14:08:08the examples. So you can see like input
- 14:08:10prompt, you have all this over here. You
- 14:08:12have input aspect ratio, you have input
- 14:08:15quality. So those are your three options
- 14:08:17that you can choose. You put your
- 14:08:18prompt, you put your aspect ratio, and
- 14:08:20then you put in your quality. So you can
- 14:08:22see for this example for nano banana
- 14:08:25what I put over here is I use the model
- 14:08:27there's the callback URL and then input
- 14:08:29as a prompt and I just passed in JSON
- 14:08:32for this based around um what it was in
- 14:08:36that specific spreadsheet. This one you
- 14:08:38had the option to choose an aspect ratio
- 14:08:40for GPT image. I don't think you have
- 14:08:43that option. Let me just go over here.
- 14:08:45Oh no you have the option you have 1x 1,
- 14:08:462x3 or 3x two. So you could define that
- 14:08:50here in the model resolution I nanobin
- 14:08:544K but this one would have the quality.
- 14:08:56So you just change it up for medium or
- 14:08:57high and then output format
- 14:09:00option I don't believe over here. So it
- 14:09:03will automatically give that to you
- 14:09:05based off here. But honestly it's
- 14:09:06literally just reading the documentation
- 14:09:09and to show you like if I was going to
- 14:09:11set this up
- 14:09:14we'll go build out HTTP. So HTP request
- 14:09:20like that
- 14:09:23and let's go through it. So API
- 14:09:27let's find our curl. So this is the
- 14:09:29request example. We're going to copy
- 14:09:31that curl.
- 14:09:33Go over here for curl. Paste.
- 14:09:40Great. And you can see obviously we have
- 14:09:42this barrier API key. Again, I just set
- 14:09:44this up directly in over here instead.
- 14:09:48So, I just created a header off. So,
- 14:09:50make sure authentication generic
- 14:09:52credential type
- 14:09:54header off and then create a new one,
- 14:09:56which I did. Create new credential ki
- 14:09:58AI. So, literally just create new
- 14:10:01credential
- 14:10:03and um you can see I called this
- 14:10:05authorization with a capital A, paste in
- 14:10:07my API key. That's all you got to do.
- 14:10:11authorization, past in your API key.
- 14:10:14Everything else is already filled out
- 14:10:16and going down over here.
- 14:10:18All you need to do is change up a few
- 14:10:20things like you don't need to change up
- 14:10:21your model if you're using GPT15 image.
- 14:10:24You don't need to change this. You just
- 14:10:26change your prompt. You change the
- 14:10:28aspect ratio to how you want it as well
- 14:10:30as the quality. Like three things. And
- 14:10:32you can pass in JSON with an expression
- 14:10:34if you want to define that a little bit
- 14:10:36earlier. Next side of it, so this is a
- 14:10:38little bit funky. This is something
- 14:10:39called pulling and um essentially what
- 14:10:42we're trying to do over here is wait for
- 14:10:44the image to be generated or the video
- 14:10:46in your case. So because of that you
- 14:10:49know sometimes it might take 30 seconds
- 14:10:51for aage to be created. Sometimes it
- 14:10:52might take three or four vid minutes for
- 14:10:54a video to be created. So we have a wait
- 14:10:57node over here. We're waiting 30
- 14:10:59seconds. Obviously like you can increase
- 14:11:01it decrease it. I would recommend at
- 14:11:03least 30 seconds. And then we have a
- 14:11:05second HTTP request. This time we do a
- 14:11:07get. The reason why
- 14:11:10is with this first one, which I skipped
- 14:11:12over it, but it's a a post. We're using
- 14:11:14post to create the image or video and
- 14:11:16then we're using get to grab those
- 14:11:19specific results. Again, use the same
- 14:11:21header off and why I recommend just
- 14:11:23doing this also for security purposes so
- 14:11:25you don't share your API key. And then
- 14:11:27what you're going to do is paste in a
- 14:11:29task ID over here. You'll get your task
- 14:11:32ID from the first run. So you'll see I
- 14:11:35have a task ID over here. So, make sure
- 14:11:37that you paste it in on the side of
- 14:11:40things. Really, it's pretty basic. All
- 14:11:43you got to do is grab this URL,
- 14:11:46which is the record info.
- 14:11:49Put in a task ID. And again, I just did
- 14:11:52this with curl initially, but you can
- 14:11:53see get task. And this is the request.
- 14:11:55Like, honestly, you don't really need
- 14:11:57the curl request. Just get that URL.
- 14:12:02This is the same as before. And then
- 14:12:04just send in the task ID. It's JSON.
- 14:12:07Then I have a switch. So all we're
- 14:12:10taking a look at is the data state. It
- 14:12:11might be a little bit different
- 14:12:12depending on the model. But when I hit
- 14:12:14success, it'll go over here. Otherwise,
- 14:12:18if it's not ready, it'll repopulate. And
- 14:12:20if there's an error, I just set that as
- 14:12:22a fallback. So sometimes there is errors
- 14:12:24based off of guidelines of the model. So
- 14:12:27sometimes if you put something that's in
- 14:12:29that gray area, Google or OpenAI might
- 14:12:32reject it. Otherwise,
- 14:12:34usually it's pretty good. But there's
- 14:12:35some guidelines, too. Like if you use a
- 14:12:37famous figure, um it's not going to
- 14:12:39work. Then what I did next is just test
- 14:12:42this out. So I have the generated image
- 14:12:45as a specific
- 14:12:47uh link over here.
- 14:12:50I just updated this into a spreadsheet.
- 14:12:52Now, I could go a few different routes.
- 14:12:55Like I could download this image, have
- 14:12:57it as a binary file, and then upload
- 14:12:59this into Google Drive if I really
- 14:13:01wanted to. And that honestly might be
- 14:13:02the version two of this. We're just
- 14:13:04doing some testing based around this
- 14:13:06right now. And um yeah, again it's a
- 14:13:09very similar setup you're using image or
- 14:13:12video models. Another thing that people
- 14:13:14tend to use quite a bit is they'll
- 14:13:16generate the image first. Make sure the
- 14:13:18image is great and then use that image
- 14:13:20for a video. So like you can imagine
- 14:13:23this old man over here.
- 14:13:26Someone might create this guy as a UGC
- 14:13:28creator.
- 14:13:30And we'll go back over here to text
- 14:13:32image. Like this literally might be a
- 14:13:34UGC creator and someone creates a video
- 14:13:37about it. And maybe we'll just test this
- 14:13:39out really quick just to show you. So if
- 14:13:41I go over here, I'm going to say image
- 14:13:43to video. And this is a little bit
- 14:13:46different for video side of things.
- 14:13:53All right. And I have the old man over
- 14:13:54here. And I'm just gonna say, and I I
- 14:13:57honestly don't have audio on this
- 14:13:59computer unless my Bluetooth is out, so
- 14:14:00I can't hear what it's saying. I'm just
- 14:14:02gonna say have the old command hold up a
- 14:14:08sign saying subscribe
- 14:14:12to Ryan
- 14:14:16Science.
- 14:14:18We'll spend the 60 tokens or whatever it
- 14:14:21is for this. This is image to video.
- 14:14:23Like there's a lot of things that you
- 14:14:24could do.
- 14:14:25with this over here. So you can see you
- 14:14:27can do text to video just straight up
- 14:14:29prompted which by the way you can also
- 14:14:30do JSON for this side of things. We have
- 14:14:33image to video and then references to
- 14:14:35video where like if you have four or
- 14:14:37five different images actually I believe
- 14:14:39it's up to only three on here but if you
- 14:14:40have three different images and you want
- 14:14:42to turn it into a video the weird thing
- 14:14:43is like image to video and text to video
- 14:14:45you could have it vertical. Uh the
- 14:14:47reference is the video you cannot have
- 14:14:48this vertical as of yet. So it's very
- 14:14:52common someone creates a static image
- 14:14:53first. You can use a Nano Banana Pro or
- 14:14:56GPT15 or one of the other models out
- 14:14:59there. And then what people will do is
- 14:15:01use that image and put it into a video
- 14:15:04model kind of like uh VO31 which we have
- 14:15:07over here. Now this is at 18%. I'm just
- 14:15:10going to pause really fast and when this
- 14:15:12hits 100% we'll be right back.
- 14:15:15All right, so the video is ready. Let's
- 14:15:17see what ends up happening. Again, this
- 14:15:19is like a a pretty terrible prompt and I
- 14:15:21would recommend building out a way
- 14:15:23better one, but I I can't hear what the
- 14:15:26audio is on at the moment unless I turn
- 14:15:28on my speaker. And at the end of day,
- 14:15:30this is just a use case just to share it
- 14:15:32with you guys. So, we have the old man,
- 14:15:33he's doing fishing and then take a look.
- 14:15:36Subscribe to Ryan in math data science.
- 14:15:40So, obviously that's a hallucination.
- 14:15:44And you know, the sign could be a little
- 14:15:46bit better, but at the end of the day,
- 14:15:48this was
- 14:15:50very poor prompt. And uh I would
- 14:15:52probably run it again and describe what
- 14:15:54the sign should look like, how he holds
- 14:15:56the sign, things like that. But just to
- 14:15:58show you and uh the API on this side of
- 14:16:01it for V31, a little bit different. You
- 14:16:03can see the screen on this side of it.
- 14:16:06And you have more options. So I'm going
- 14:16:10over here
- 14:16:12you can see you have your prompts you
- 14:16:14have your image urls you have your model
- 14:16:17generation type aspect ratio
- 14:16:21seeds so this is the randomness of the
- 14:16:24video call back urls enable fallback
- 14:16:26like there's a lot more over here than
- 14:16:29just the image side of it but it's
- 14:16:30honestly not too bad so you can download
- 14:16:33this full workflow
- 14:16:36as well and feel free to test this out.
- 14:16:38Why I do this is like you don't want to
- 14:16:40wait a minute, 2 minutes, 3 minutes for
- 14:16:42every single video. So, it's better off
- 14:16:44just to have a spreadsheet, build out
- 14:16:47that spreadsheet based off of what you
- 14:16:48want, run through the workflow, and uh
- 14:16:51append the very end, but feel free to
- 14:16:53tweak it for Google Drive. So, if you
- 14:16:56remembered anything from this video,
- 14:16:57it's super easy to build out AI
- 14:16:59generated images and videos. You could
- 14:17:01do it manually on Kai or other services,
- 14:17:03or you can bulk it in nan. In addition,
- 14:17:06be super specific with the prompts. The
- 14:17:08more specific you are and calling out
- 14:17:11like the type of shots and the type of
- 14:17:12audio, the better results that you are
- 14:17:14going to have. I talked about prompting
- 14:17:16for videos for like well over an hour in
- 14:17:18another video. So, if you want to watch
- 14:17:20that, go ahead. I'm not going to waste
- 14:17:22you guys time for the hour there. And uh
- 14:17:25that is the end of this lecture. Next
- 14:17:28lesson we're going to be doing is
- 14:17:29talking about something called human in
- 14:17:32the loop. So essentially AI creates
- 14:17:34something and then you have to approve
- 14:17:36it before it is finalized. A lot of
- 14:17:38companies want to have human in the loop
- 14:17:40within their workflows. Um I know my
- 14:17:43company has a slogan for that
- 14:17:44specifically as do others. So it'll be
- 14:17:47kind of exciting to cover that and I
- 14:17:49will see you right there. This section
- 14:17:51is going to focus on human in the loop.
- 14:17:54It might be a buzz word that you have
- 14:17:56heard before and let me explain what
- 14:17:58this is. So a lot of different companies
- 14:18:00are going to have some sort of
- 14:18:01regulation where they say, "Hey, we like
- 14:18:04things that are generated by AI. AI is
- 14:18:06awesome. But before we actually publish
- 14:18:08the content that AI has created, can we
- 14:18:11have a human review it?" And the thing
- 14:18:14about it is why companies have this in
- 14:18:16place, AI tends to hallucinate. And this
- 14:18:19will be a way to just have another fail
- 14:18:21safe in the system before you publish
- 14:18:23something. Let's say, for example,
- 14:18:25you're going to be creating some sort of
- 14:18:27image when you want to post it on your
- 14:18:29social media accounts. Well, sometimes
- 14:18:31when you're doing image creation, text
- 14:18:33isn't going to be 100% accurate. You'll
- 14:18:35have some gibberish on a sign or
- 14:18:37something like that or you create some
- 14:18:39sort of graphic and there's just a weird
- 14:18:41spot and you shouldn't publish this.
- 14:18:43Well, without human in the loop, you
- 14:18:45generate something in AI, you automate
- 14:18:46it and it gets sent automatically to
- 14:18:48LinkedIn or Twitter. It makes your
- 14:18:50company look bad. So instead of
- 14:18:52automatically posting something, we have
- 14:18:54a reviewer that takes a look at it,
- 14:18:56says, "Hey, this is awesome and this is
- 14:18:58good to go." And then it gets sent out.
- 14:19:00And because of this process and it's
- 14:19:02being used so often, there's a whole
- 14:19:05section of nodes within any called human
- 14:19:08in the loop. Today, we're going to be
- 14:19:10covering some of these different types
- 14:19:12of nodes and show you an example
- 14:19:14workflow. A workflow we're going to use
- 14:19:16is based off of the workflow from the
- 14:19:18last lecture. So, we're going to
- 14:19:19generate an image, then we're going to
- 14:19:21send out an email and have someone
- 14:19:23approve of the image or not, and then
- 14:19:26work from there. And yeah, let's take a
- 14:19:28look at it right now. Okay, so what I
- 14:19:32did is I imported in our workflow from
- 14:19:34the last lesson and I actually put in
- 14:19:37one additional item and that is this
- 14:19:40send a message. So, let's kind of walk
- 14:19:43through what is going on in this node
- 14:19:46and where I found this. All right. So,
- 14:19:47you click this plus icon over here and
- 14:19:49you'll notice that we have human in the
- 14:19:51loop and it says wait for approval or
- 14:19:52human input before continuing. And then
- 14:19:55you'll see all the different human in
- 14:19:56the loop notes. So, we have Discord, we
- 14:19:58have Gmail, we have Google chat,
- 14:20:00outlook, teams, respond to chat, send
- 14:20:03email, Slack, Telegram, as well as
- 14:20:05WhatsApp Business Cloud. So, you know,
- 14:20:08it would take a long time to cover each
- 14:20:10of these. And I'll be honest with you
- 14:20:11guys, I don't even have credentials set
- 14:20:12up for Outlook or Teams. Slack is on my
- 14:20:16backlog and I haven't used Telegram
- 14:20:18before although I should because it's
- 14:20:19really really popular. We're going to go
- 14:20:21through the Gmail example over here. But
- 14:20:24you can imagine like if you use Slack,
- 14:20:26you'll get a message in Slack and I'll
- 14:20:28just show you the Slack node here for a
- 14:20:29second. You get a message and send or
- 14:20:31wait for a response. You can specify the
- 14:20:34message and you can set a response type.
- 14:20:37So obviously there's different settings
- 14:20:39for each of these particular nodes. I
- 14:20:41want to show you the Gmail one over
- 14:20:43here. So, what we have in this Gmail
- 14:20:45note, I literally just connect to my
- 14:20:47Gmail account, which all of you guys
- 14:20:48should know how to do by now. I'm
- 14:20:50sending it to my personal email and I
- 14:20:52have a subject approval required. Please
- 14:20:54review. You can obviously set a subject
- 14:20:56as you want. I think this is fine. I
- 14:20:58said, "Hello, please review the
- 14:20:59following request." And click the
- 14:21:01approve button and I send in image. Now,
- 14:21:03this is the image that's getting
- 14:21:04generated by this workflow. You can't
- 14:21:07pass in binary data over here. So, I'm
- 14:21:09passing in a link that will pass into
- 14:21:12the image. You might have to use a B 64
- 14:21:14or something like that otherwise, but I
- 14:21:16think this is pretty fine. And I say
- 14:21:18thank you. Also, then we go into the
- 14:21:21response type. So, this says approval.
- 14:21:23And let me show you what approval looks
- 14:21:25like. So, in my email, you'll see that
- 14:21:27this looks like I don't know why this
- 14:21:29didn't go full screen. Oops. Let me uh
- 14:21:32move this over here. It's getting caught
- 14:21:35up in my monitor. There we go. All
- 14:21:39right. So, you can see this is an
- 14:21:40example. Hello, please review the
- 14:21:42following request and click the approve
- 14:21:43button and you can click that approve
- 14:21:45and it says automated with any n over
- 14:21:47there. So that's approval by default.
- 14:21:50But that's not the only option. You have
- 14:21:52free text. So user can submit a response
- 14:21:54via a form and you could set that up
- 14:21:56also or you could have a custom form
- 14:21:58where you define below. Let's keep it as
- 14:22:00approval. And then you can see there's
- 14:22:02currently no items exist under the
- 14:22:04options. Well, you have a few different
- 14:22:06options as well. So you can do approve
- 14:22:08only or you can set approve and
- 14:22:11disapprove. So you can change the label
- 14:22:13buttons as well. Approve is the primary,
- 14:22:16decline is the secondary. You obviously
- 14:22:18could switch these as well. And what's
- 14:22:19cool is when you have that built in, you
- 14:22:23can just set a decline and etc. Then we
- 14:22:26have also over here, let me go back in
- 14:22:29other options. You have a limit wait
- 14:22:31time. So, you can set a specific amount
- 14:22:33of time that you should get a response
- 14:22:34back, which is helpful. You can set like
- 14:22:38this as 45 minutes. You can say hours,
- 14:22:40you could say days. I probably wouldn't
- 14:22:41recommend days on that side of things,
- 14:22:44especially in a corporate environment.
- 14:22:45You might want to just have it as like
- 14:22:4645 minutes. I think this is pretty
- 14:22:47appropriate. And then you could pin that
- 14:22:49any attribution. Honestly, I would keep
- 14:22:51that NAN attribution automated with NAN,
- 14:22:54but you can turn that off if you
- 14:22:55particularly want it to. So, let me show
- 14:22:58you this example of approve and
- 14:22:59disapprove. So, we're just going to use
- 14:23:01the same thing that we have over here
- 14:23:04for a generated image. And actually, I'm
- 14:23:07going to pin this data point. So, I
- 14:23:08don't want to do this all over again.
- 14:23:11And I'm going to click on this. You'll
- 14:23:12see our node is running like this very
- 14:23:15slowly. And hopefully, we do get an
- 14:23:17email. Now, I'm going to check my Gmail
- 14:23:19account and I will load this up.
- 14:23:23All right. So, now we have the email and
- 14:23:26it says, "Hello, please review the
- 14:23:28following request." and click the
- 14:23:30approve button. We have the image. So,
- 14:23:32this image over here, just to show you
- 14:23:33what it looks like, all I did is
- 14:23:35generate a UGC creator promoting a
- 14:23:37watch. So, we have that over there. It
- 14:23:40looks like there's like a branded cup.
- 14:23:42So, maybe I don't want to have that in
- 14:23:43on that side of things. But either way,
- 14:23:45we have an image. And you know what? You
- 14:23:47can approve it or disprove it. So, I'm
- 14:23:49going to click over here and click
- 14:23:51approve. And it says got it. Thanks.
- 14:23:52This page can be closed. Now, I'm going
- 14:23:55back over here. You'll see it says one
- 14:23:57item sent out. And then it says
- 14:23:59approved. So what you can also do is
- 14:24:01based off of this being approved or not,
- 14:24:03you can go over and set an if node and
- 14:24:07you can route based around that. Now I
- 14:24:10wish this was natively built into this
- 14:24:11human in the loop node, but that's okay.
- 14:24:15And you can see over here what we can
- 14:24:16say is if approved is equal to and let's
- 14:24:20just say the value of true. So go to
- 14:24:22your boolean and we'll put true. And you
- 14:24:25can see it it executes and we have our
- 14:24:27true branch. So then we can have let's
- 14:24:29say a social media post created over
- 14:24:31here. If it's false, maybe we want to
- 14:24:34regenerate this image and just like
- 14:24:36start again here at the beginning. Let
- 14:24:38me show you what happens on the false
- 14:24:39side. So we'll just go over here. We'll
- 14:24:41click this again. So you can see it's
- 14:24:43loading and I will wait for the next
- 14:24:46email to be sent out.
- 14:24:52All right. So we have this over here.
- 14:24:53And you know what? I'm going to decline
- 14:24:55it. So I do not want that. It says got
- 14:24:57it. Thanks. This page can be closed now.
- 14:24:59And going in over here, we have this
- 14:25:01declined. So we can say approved is
- 14:25:04false. And then we go over here and we
- 14:25:06run the step. It goes into the false
- 14:25:09branch. So now we can have our specific
- 14:25:11workflow go back around and regenerate
- 14:25:14that specific image. And the same thing
- 14:25:16can happen again. So you can start
- 14:25:17seeing that we're going to be building
- 14:25:18out loops based around the approval or
- 14:25:21not. And again, we have all these other
- 14:25:23nodes over here that we could choose. I
- 14:25:25just showed you Gmail because it's
- 14:25:26already set up and we haven't really
- 14:25:27covered the other sections in over here.
- 14:25:30But you can see if I check for Discord
- 14:25:32for example. There's a connection type.
- 14:25:35We have a resource send and wait for
- 14:25:37response. You set up a server and it's
- 14:25:39really the same type of things, right?
- 14:25:41Approve and disapprove. You just change
- 14:25:43the environment where this message is
- 14:25:44sent. I feel it's pretty easy to do with
- 14:25:47Gmail. In addition, one of the other
- 14:25:50really nice things with Nan version two
- 14:25:52is with sub workflows, it makes it
- 14:25:54actually really easy to have a human in
- 14:25:56the loop aspect. So, you can go into the
- 14:25:59human in the loop and throw this into
- 14:26:01another workflow. And I already talked
- 14:26:03about this a little bit in the execute
- 14:26:05subworkflow section. I think I mentioned
- 14:26:07that we're going to talk about it in
- 14:26:08this video, but what I see happening now
- 14:26:11is people take the human in the loop
- 14:26:13section and they just literally populate
- 14:26:15that directly into another workflow. So
- 14:26:17let's say like I have this Gmail and I
- 14:26:20want to send it to another workflow and
- 14:26:21I just have this execute subworkflow and
- 14:26:23we use this human in the loop aspect in
- 14:26:26multiple workflows. So now we've kind of
- 14:26:27templatized it. Obviously there's other
- 14:26:29steps that you might want to take after
- 14:26:31this if it's approved or disapproved in
- 14:26:33that sub workflow, but it's very common
- 14:26:35you have this and then let's say we have
- 14:26:36our social media post like let's say we
- 14:26:38have LinkedIn to create a post after
- 14:26:41and we have that over here. So we'll
- 14:26:43just say create a post and it kind of
- 14:26:46goes like that. Again, you could use
- 14:26:47these over here or you could use
- 14:26:49something like an execute subworkflow.
- 14:26:51It goes to under the workflow and it
- 14:26:53performs its action. But that is human
- 14:26:56in the loop directly here in any end. I
- 14:26:58want to also mention there's one other
- 14:27:00approach to this which really isn't
- 14:27:03natively here in NE. So I just want to
- 14:27:06talk about this really fast. So one of
- 14:27:08the other ways that you could actually
- 14:27:09perform human in the loop is kind of
- 14:27:11writing to spreadsheets. So, I feel like
- 14:27:13it's easier to explain this out. So,
- 14:27:17let's imagine you have workflow one that
- 14:27:19generates an image. So, we'll say
- 14:27:21workflow one
- 14:27:23generates an image
- 14:27:27and then we send that image to Google
- 14:27:30Drive and then add a link
- 14:27:34to a spreadsheet to the image. Well,
- 14:27:37then you could have workflow 2
- 14:27:40that starts with a trigger.
- 14:27:44They trigger when the approved column
- 14:27:48is set to true. And we've already talked
- 14:27:50about the triggers in Google Sheets.
- 14:27:54But essentially, another way of human in
- 14:27:55the loop is building out multiple
- 14:27:57workflows. So our first workflow
- 14:27:58generates an image, uploads it to Google
- 14:28:00Drive, and then adds a link to a
- 14:28:01spreadsheet. Someone goes in there,
- 14:28:03takes a look at the image that was
- 14:28:05generated, and then if they say yes, it
- 14:28:07starts a trigger on a second workflow.
- 14:28:09Then we have our second workflow, which
- 14:28:11starts with a trigger based off of the
- 14:28:13proof column set to true, and then it
- 14:28:15will post on social media.
- 14:28:17Post on social media. So, you can do it
- 14:28:21all in one workflow or you could go the
- 14:28:23route of building out multiple workflows
- 14:28:25and setting up a spreadsheet. It really
- 14:28:27depends also on what your customer wants
- 14:28:30or what you personally prefer. I've done
- 14:28:32both like okay we have the human in loop
- 14:28:35over here or specify with multiple
- 14:28:38workflows like hey we're going to upload
- 14:28:39this into spreadsheet and then approve
- 14:28:42it manually on that side of things but
- 14:28:44that is human in the loop essentially
- 14:28:46why companies have this well they just
- 14:28:48want to have a safeguard something like
- 14:28:50a chatbot you're not going to really
- 14:28:51have a safeguard where people can
- 14:28:52approve it because chat bots are real
- 14:28:54time however when you're doing other
- 14:28:55types of things like image generation or
- 14:28:58post generation or whatever the case may
- 14:29:00be or email response es you want to have
- 14:29:02that human in the loop aspect and I
- 14:29:05would just recommend going in over here
- 14:29:07rather than looking at the normal
- 14:29:08Discord node is it is much faster like
- 14:29:10if you're using Discord or Gmail like
- 14:29:12way faster just to go into the human in
- 14:29:14the loop rather than search through all
- 14:29:15the settings because this is already
- 14:29:17technically set up for us we can make it
- 14:29:19so someone approves only I would
- 14:29:21recommend approve or disprove so that
- 14:29:23way you can build out a little bit more
- 14:29:25complicated workflows if someone
- 14:29:26declines something maybe you want to
- 14:29:28refresh that particular image and that's
- 14:29:30why I would recommend that and obviously
- 14:29:32choose a time frame that is reasonable.
- 14:29:34Don't choose like 45 days to approve an
- 14:29:36item. Make sure it's like maybe 45
- 14:29:38minutes, an hour. Obviously, it depends
- 14:29:40on how busy that particular person is
- 14:29:42and if they're going to be in meetings
- 14:29:43or not. So, that is human in the loop
- 14:29:46and awesome job guys going through the
- 14:29:48course so far. I know this was a little
- 14:29:50bit of an easier section. The next one
- 14:29:52we're going to be covering is
- 14:29:52evaluation. Something I really really
- 14:29:54like. Another really kind of important
- 14:29:57and I wouldn't really call this an
- 14:29:58advanced skill but intermediate skill
- 14:30:00that most people should pick up. We're
- 14:30:02going to talk about evaluations directly
- 14:30:04in any end as well as evaluations
- 14:30:05outside of it. And I will see you in
- 14:30:07that lesson right now. So this section
- 14:30:10is going to be covering evaluations. I'm
- 14:30:12going to be showing you two different
- 14:30:13approaches that you could take. One
- 14:30:15which is going to be external
- 14:30:16evaluations which does not rely on the
- 14:30:19system that NAN built out. And then the
- 14:30:22second approach is going to show you
- 14:30:23what NE has created within their
- 14:30:26software. I'm also going to give a
- 14:30:29little bit of a caveat because one of
- 14:30:31the things I found out about NEN is if
- 14:30:33you're on the cheapest cloud plan, you
- 14:30:36only can have evaluations on one
- 14:30:39workflow, which is really a bummer. Um,
- 14:30:42and it's really not mentioned anywhere
- 14:30:44where you can essentially expand out the
- 14:30:46amount of evaluations. So, I'm going to
- 14:30:49just use a workflow that I've already
- 14:30:51had set up for evaluations. I've already
- 14:30:53used it in another video. So, I do
- 14:30:55apologize for that part being repeated.
- 14:30:58The first part is not going to be
- 14:31:00repeated. In fact, I haven't shown this
- 14:31:01in another video as of yet on the
- 14:31:03channel. So, let's jump into both of
- 14:31:05these really quick. So, what we have
- 14:31:08over here is just a a very blank
- 14:31:11workflow. And I just want to demonstrate
- 14:31:13what I typically do with evaluations. I
- 14:31:16use a framework outside of N. And this
- 14:31:20framework has helped me quite a bit when
- 14:31:22I want to fine-tune essentially what I'm
- 14:31:24building out. So, what I want to show
- 14:31:26you really quick is this spreadsheet.
- 14:31:28And ideally, what I typically have is
- 14:31:32let's say I'm running some sort of
- 14:31:33workflow or automation. I'll first label
- 14:31:36our specific inputs over here like okay,
- 14:31:39what did you input to start the system?
- 14:31:42This could be what's being filled out in
- 14:31:44a form. This could be what's being sent
- 14:31:46in a chat trigger. This could be like
- 14:31:50whatever the case is like sent to a web
- 14:31:53hook. Whatever is the input that starts
- 14:31:56the workflow, this is what goes over
- 14:31:58here. The next part is the system
- 14:32:01prompts. So often when you're building
- 14:32:03out AI systems or orchestration or
- 14:32:06workflows, whatever you want to call it,
- 14:32:08you're going to have one or more system
- 14:32:11prompts associated with it. So obviously
- 14:32:13if you have multiple systems prompts uh
- 14:32:16with different agents you're going to
- 14:32:18want to expand this out. I'm just making
- 14:32:19the assumption you only have one AI
- 14:32:21agent in a workflow uh which is not
- 14:32:23always the case and I should say one AI
- 14:32:25agent or AI node because you can use
- 14:32:27system prompts with other nodes. So I
- 14:32:30would just mention like what system
- 14:32:32prompt this goes to as well as the model
- 14:32:35used. So define your input you know what
- 14:32:39starts your system define your system
- 14:32:42prompt for each AI node as well as the
- 14:32:44model specifically used. The result
- 14:32:47could be two parts. So like one is the
- 14:32:50result of the entire system or what is
- 14:32:52the result for that specific AI node or
- 14:32:55AI agent or whatever the case is. Again
- 14:32:57you could expand this out afterwards.
- 14:33:00Then what I have as well is a notes
- 14:33:02section. So when you run the workflow or
- 14:33:06someone else at your company runs the
- 14:33:07workflow, they can put an additional
- 14:33:09notes. And how I like building these
- 14:33:11out, I actually like color coding these.
- 14:33:13So what I try to teach people is like if
- 14:33:15this worked perfect, label this as
- 14:33:18green. If it had a hallucination of some
- 14:33:20sort or just did not work, label it red.
- 14:33:24If it almost got it correct and there's
- 14:33:25just like something minor, whether it's
- 14:33:27like a formatting or whatever the case
- 14:33:29may be, highlight this yellow. What I
- 14:33:32end up doing is I will always take a
- 14:33:34look at this and say, "Okay, what do I
- 14:33:37notice? Do I notice any trends? What can
- 14:33:39I fix to turn those yellows into greens,
- 14:33:41those reds into yellow or green?" Um, on
- 14:33:44the corporate side, there's two other
- 14:33:46things I would probably recommend for
- 14:33:48you to do. On the first is you want to
- 14:33:50typically have some sort of backlog
- 14:33:52where you're showing or not necessarily
- 14:33:54a backlog, but some sort of log that
- 14:33:56shows incremental improvements over
- 14:33:58time. So what I would define also is a
- 14:34:01date as well as user and then also like
- 14:34:05reviewer and review date. So the reason
- 14:34:08why is depending on
- 14:34:12like what type of systems you're in like
- 14:34:15this is just on my side because I work
- 14:34:17in risk and underwriting. We have
- 14:34:19external parties that need to audit what
- 14:34:22we specifically do. So it's really
- 14:34:24important that we define what is being
- 14:34:27sent to AI agents, what is happening in
- 14:34:30our systems. So you want to have a
- 14:34:32framework like this like uh who used it,
- 14:34:35what was the review associated with it
- 14:34:38like and then you can just see
- 14:34:39improvements over time. And this is
- 14:34:41helpful as well when there's like some
- 14:34:43sort of governance with AI because since
- 14:34:46models are changing all the time, if you
- 14:34:47want to upgrade models, you want to make
- 14:34:49sure it's working properly. And if it
- 14:34:51doesn't work properly, maybe you fall
- 14:34:52back to a little bit of an older model.
- 14:34:55Either way, that is kind of the
- 14:34:57framework I like to do. And you can
- 14:34:59honestly just add this into our workflow
- 14:35:02where you just append or update row in a
- 14:35:04sheet. I would just append a row in and
- 14:35:07you would append in, you know, that
- 14:35:09specific results, the dates of that
- 14:35:12results and some other info if you want
- 14:35:13to grab it specifically or not. or you
- 14:35:16can just sp code in like a system prompt
- 14:35:18if you're not really changing it that
- 14:35:20often. And then what I like to do as
- 14:35:21well is if like there's a massive
- 14:35:22change. I'll typically just like black
- 14:35:25out a line and then just start with the
- 14:35:27line below. Um obviously you can just
- 14:35:30fill out text over here or just put like
- 14:35:31all X's or dots or whatever the case may
- 14:35:34be. So when you append a new row, it
- 14:35:36doesn't fill in that specific row. But
- 14:35:38there's a lot of different options on
- 14:35:40that side of things. So you're going to
- 14:35:41take anything away from this like define
- 14:35:44what prompt you're using. Define what
- 14:35:45models you're using. Put in the results.
- 14:35:48Make sure that you put in some notes
- 14:35:50like what worked correctly, what didn't
- 14:35:51work, color code, green, yellow, red,
- 14:35:54and put in the dates when things are
- 14:35:56changing or not. This will really help
- 14:35:58you out with specifically logging
- 14:36:01changes and things like that. So, that
- 14:36:04is this section. This isn't really fun,
- 14:36:06but I want to show you also what NEN has
- 14:36:09built out. Now again, since I'm limited
- 14:36:12on evaluations, like if you take a look,
- 14:36:14if I go over here, I'm just going to
- 14:36:15save this.
- 14:36:17We go into evaluations. You could say
- 14:36:19it's says limit reach to your plan
- 14:36:22includes custom metrics for one workflow
- 14:36:24only, which is so annoying, man. Um,
- 14:36:27wonder if I could happen skip. I can't.
- 14:36:29Like you can see it says run editor and
- 14:36:32I just don't have that option. So,
- 14:36:34instead of deleting my workflow, I'm
- 14:36:37literally just going to show you what
- 14:36:39happens. Like, I've tried to figure out
- 14:36:42how to reset these evaluations. Like, I
- 14:36:44generally don't know. Um, how I can
- 14:36:48reset it. Like, I don't want to delete
- 14:36:49this workflow.
- 14:36:52And I mean, maybe I have to turn off the
- 14:36:55evaluations. I don't know. I I have to
- 14:36:57talk to any end team still about this
- 14:36:59because I just don't think it's crystal
- 14:37:01clear. like maybe you can clear
- 14:37:03evaluations and it works in other
- 14:37:04workflows is I I like what they built
- 14:37:07out and maybe other people are having
- 14:37:08this problem as well. I just want to
- 14:37:10quickly go over the specific nodes that
- 14:37:14we're using over here. So when you use
- 14:37:16evaluations in any you can actually have
- 14:37:19an evaluation data set. So you can
- 14:37:22define that data set in either Google
- 14:37:23Sheets or a data table in N in Google
- 14:37:28Sheets or in Nan
- 14:37:31and this is what you can use to test
- 14:37:33your workflow. You know I see both sides
- 14:37:35of it or like you could test with a test
- 14:37:38data set over here or use start using
- 14:37:41live data and test it directly in here.
- 14:37:43I've seen both used so they're both both
- 14:37:45okay. Um so over here this would be like
- 14:37:48the test data. Then what you have over
- 14:37:50here next is check if evaluating. So
- 14:37:53what this note essentially does is like
- 14:37:55if you grab your data from this
- 14:37:57evaluation, it will split your workflow
- 14:37:59and go into the evaluation side. Whereas
- 14:38:02if it's not and it's a normal test of
- 14:38:04your workflow, a normal run of your
- 14:38:06workflow, it'll go to the opposite side.
- 14:38:08So you can think of this as like an if
- 14:38:10else like okay, if our if we use
- 14:38:13evaluation data, we go one way. If not,
- 14:38:16we just run this as normal. Um, so that
- 14:38:19is essentially what this check if
- 14:38:21evaluating does. Set outputs presents
- 14:38:24the results that are ran into a Google
- 14:38:26Sheets or data table. So very similar
- 14:38:28like what I have over here just
- 14:38:30populating in data. Uh going back on
- 14:38:33this side of things, what we have next
- 14:38:36what we have next is uh different
- 14:38:39metrics. So there's metrics that involve
- 14:38:42an AI agent or not AI agent but a AI
- 14:38:44model and there's metrics that don't
- 14:38:46evolve around an AI model. So you can
- 14:38:49see uses AI is correctness whether the
- 14:38:50answer is meaning is consistent with the
- 14:38:52supplied reference answer. So in this
- 14:38:55case when we're doing evaluations we
- 14:38:57have essentially what we expected for
- 14:39:00that correct answer and um what we're
- 14:39:04testing right whereas over here when we
- 14:39:07go into this one over here we don't
- 14:39:09define automatically what the correct
- 14:39:12answer is it's up to interpretation of
- 14:39:14the person that is running. So this is a
- 14:39:16little bit different than what N
- 14:39:18evaluations has. and evaluations expects
- 14:39:21you to already kind of know what the
- 14:39:22answer is. Whereas this over here, it
- 14:39:25it's sub it's subjective. Someone could
- 14:39:27say this is correct or not. Um it's up
- 14:39:30to them. Whereas this one, it's pretty
- 14:39:32definitive. Obviously uses AI uses AI
- 14:39:34model to take a look at what the
- 14:39:36supplied answer should be versus what
- 14:39:38answer you get from your AI agent. Um so
- 14:39:41there's two different ways to use this.
- 14:39:42Use correctness, so whether the answer's
- 14:39:44meaning is consistent or not, and
- 14:39:46helpfulness, whether the answer is
- 14:39:48helpful or not. And any defines this as
- 14:39:50a one through five. There's specific
- 14:39:52prompts. NonAI, you have uh three
- 14:39:55different options tools used. So this is
- 14:39:58important to me measure like are the
- 14:39:59tools correctly being used by your AI
- 14:40:01agent. Um then you have categorization
- 14:40:04whether the answer is an exact match or
- 14:40:06not. You can think of this as like a
- 14:40:07categorization with machine learning as
- 14:40:10well like where you're trying to predict
- 14:40:12a category. This is it with specifically
- 14:40:15AI agents. Then you have string
- 14:40:16similarity. how close is the answer to
- 14:40:18the reference answer? Um, it returns a
- 14:40:20score 0 to one that's going to be
- 14:40:22decimal of some capacity. So really the
- 14:40:25difference between both of these
- 14:40:27approaches and is a lot more structured
- 14:40:29like you have your your evaluation set
- 14:40:32and then you split your workflow, you
- 14:40:34have your outputs getting sent to a
- 14:40:36spreadsheet and then you already have
- 14:40:38like what you expected to be correct or
- 14:40:39not. And if it's something that deals
- 14:40:42with just text in general, like um
- 14:40:46that's not a specific category text that
- 14:40:48changes, there's two ways. It's either
- 14:40:50correct or not with helpfulness if it's
- 14:40:53going to be something that you expect
- 14:40:54almost like a correct answer every time.
- 14:40:56It's categorization string similarity if
- 14:40:59you have an output and then tools used.
- 14:41:01And yeah, like these were some of the
- 14:41:03different examples I was going to use
- 14:41:05for this even evaluations video, but I
- 14:41:07got blocked because you only can have
- 14:41:09one evaluation at a time. But
- 14:41:11regardless, evaluations are important.
- 14:41:13So, if you want to delete your workflows
- 14:41:16or delete these evaluations after you
- 14:41:18use it, um, go for it. Or if you have an
- 14:41:20upper tier plan and you can constantly
- 14:41:22use evaluations, highly recommend that
- 14:41:24you mess with it. Otherwise, kind of go
- 14:41:26with this Google Sheets route. A lot of
- 14:41:28people um that build AI systems will do
- 14:41:30this. They'll just kind of have
- 14:41:32something like this. Obviously, it
- 14:41:34changed for a different scenario. Green,
- 14:41:36yellow, red, and just improve it over
- 14:41:38time. This is what I've used in systems
- 14:41:40that I build for work. And it's done a
- 14:41:43pretty good job. Obviously, there's
- 14:41:44things I I would improve over time and
- 14:41:47things that I can add in um as design is
- 14:41:50getting changed a little bit. Also, I
- 14:41:52apologize. I'm losing my voice. So,
- 14:41:53we've been recording non-stop. I don't
- 14:41:55even know how far into the course this
- 14:41:57is. I've been recording it over like
- 14:41:59three or four days, but so I feel a
- 14:42:01little tired and my voice is being lost
- 14:42:04a little bit. I'm trying to get this out
- 14:42:05by January 1st. I don't know if it's
- 14:42:07going to happen or not, but I apologize
- 14:42:10if I didn't go out of step as I wanted
- 14:42:13to for evaluations, but it is a really
- 14:42:16really important concept to test your
- 14:42:18workflows, see if they are getting
- 14:42:20correct or not. Um, and yeah, and you
- 14:42:23might be wondering like what is the
- 14:42:24correct amount of data to test a
- 14:42:27workflow? It really depends on how
- 14:42:28critical a system is and how long you
- 14:42:30want to test it. Um, I constantly test
- 14:42:33things at work. Like even if things are
- 14:42:36like fully correct, I'm still doing a
- 14:42:39test every week or every other week just
- 14:42:41to make sure it still is working
- 14:42:43properly. And uh, yeah, that is
- 14:42:46essentially it for evaluations. The next
- 14:42:49section we're going to be covering is a
- 14:42:51little bit bit about security and
- 14:42:54compliance. So, a little bit more
- 14:42:55important stuff. We're going to talk
- 14:42:56about guard rails. We're going to talk
- 14:42:58about just logging in general, which is
- 14:43:00very similar um to logging. This is kind
- 14:43:03of just evaluations on that. And talked
- 14:43:06about web hook security, but we'll cover
- 14:43:08that again. And then we'll also cover
- 14:43:12credential management, version control,
- 14:43:14and uh naming conventions. So, I will
- 14:43:17see you guys in that next video. I don't
- 14:43:19know why I'm on this workflows page.
- 14:43:21We'll go back to this evaluations page
- 14:43:23and end it there. All right, see you
- 14:43:24guys. So far through this course, you've
- 14:43:27been building a lot of workflows from
- 14:43:29scratch and if an API doesn't exist,
- 14:43:31you've had to use the HTTP request node,
- 14:43:34but I'm going to be showing you guys
- 14:43:35some shortcuts that might save you some
- 14:43:38time. This won't be applicable in every
- 14:43:40single case, so don't use it as a
- 14:43:43crutch. However, if there is a specific
- 14:43:45use case that you need done and you
- 14:43:47think, "Hey, I might be able to save
- 14:43:48some time after this video," definitely
- 14:43:50take that approach. Uh, so let's jump
- 14:43:52into it right now and I'm going to show
- 14:43:54you kind of four different ways. All
- 14:43:56right, so the first way we're going to
- 14:43:58do is go over here and we're going to
- 14:44:00actually look at templates. So, there
- 14:44:03are a ton of templates online. In fact,
- 14:44:06I showed you quite early on in the
- 14:44:08course how to import in templates just
- 14:44:10because of all the material. Uh, but all
- 14:44:12I'm going to go over here is say N
- 14:44:14template library. And you'll go to the
- 14:44:17website. It says 7,656
- 14:44:20workflow automations.
- 14:44:23And depending on what you specifically
- 14:44:25want to search, it's they might have
- 14:44:28something already over here that you
- 14:44:30could start with. Now, the thing with
- 14:44:32templates, a lot of people will build
- 14:44:34out some fancy automation and you don't
- 14:44:36need all of that or there's going to be
- 14:44:37small sections that are broken.
- 14:44:39Obviously, the NE team does a fantastic
- 14:44:41job vetting these templates, but NE is a
- 14:44:44fastmoving software. There's new updates
- 14:44:46constantly, and you know, something that
- 14:44:48uses a Python code node 6 months ago is
- 14:44:51going to be broken. Something that
- 14:44:53specifically uses uh maybe a human in
- 14:44:56the loop with that execute uh sub
- 14:44:59workflow could possibly be broken just
- 14:45:01because things do change uh from version
- 14:45:04to version and you'll have to update
- 14:45:06that. So, a little bit of heads up on
- 14:45:08that side of things because some of
- 14:45:09these are a little bit older. But let's
- 14:45:11take a look at this over here. Generate
- 14:45:12AI viral videos on ano banana in V3. So,
- 14:45:15I've already showed you essentially how
- 14:45:17to do that. It says shared on socials
- 14:45:19via Bolato.
- 14:45:21And we can take a look at this over
- 14:45:24here.
- 14:45:26And first, on this side of things, you
- 14:45:28can mostly zoom in, I want to say, on
- 14:45:30these templates. I don't know why it's
- 14:45:31not letting me zoom in on this one,
- 14:45:32which is kind of weird. Maybe I'll just
- 14:45:34refresh. Normally you can just like zoom
- 14:45:36in and things like that but it is not
- 14:45:40like you can just drag around but either
- 14:45:42way you can see step one like this guy
- 14:45:43did a pretty good job put a full
- 14:45:45tutorial documentation requirements on
- 14:45:47the side so major props there you can
- 14:45:49see step one collect the ideas and image
- 14:45:51create two create image with nano banana
- 14:45:54so we have a very similar workflow
- 14:45:56mine's a little bit different step three
- 14:45:58it says generate video ad script and
- 14:46:00then step four generate video with V3
- 14:46:02and step five post to all platform
- 14:46:04platforms. So, I haven't tested Blow
- 14:46:06Blowato yet. I heard some pretty good
- 14:46:09things about it. I believe the the
- 14:46:10founder of that was recently on the N
- 14:46:12podcast,
- 14:46:14but yeah, I don't know why this isn't
- 14:46:15letting me zoom in. Maybe it's like a
- 14:46:16bug on the platform right now, but and
- 14:46:19you can see last update is four months
- 14:46:20ago associated with this. It tells you
- 14:46:23who this is for, what problem solve,
- 14:46:26what this workflow does, the setup
- 14:46:29associated with it. Like this is really,
- 14:46:30really good documentation on the side of
- 14:46:33things. So, let's actually try to
- 14:46:35download this. I'm going to click use
- 14:46:36for free. And I'm going to import in
- 14:46:39over here. Uh, you could copy the
- 14:46:41template to support JSON. You could open
- 14:46:44self-hosting. I'm just going to import
- 14:46:45the template to my cloud workspace.
- 14:46:48And you'll see set this up. And it says
- 14:46:53you need one Telegram, one Google
- 14:46:54Sheets, one Google Drive to set up this
- 14:46:56template. And I'm just going to click
- 14:46:58skip. Now, obviously, I would recommend
- 14:47:00that you set up these credentials
- 14:47:01because I don't have a Telegram yet. I
- 14:47:03haven't built this out for YouTube yet,
- 14:47:05but it is in my backlog. Uh, Google
- 14:47:08Sheets, Google Drive, OpenAI. I'm just
- 14:47:09going to click skip. We're going to load
- 14:47:11this template up. And boom, we have this
- 14:47:13in over here. Obviously, I have issues
- 14:47:15with Telegram because I haven't set that
- 14:47:17up. And that's why you see these red
- 14:47:19icons over here. It says credential.
- 14:47:21But, we have just successfully gone to
- 14:47:24the NE website. We wanted to download
- 14:47:26this and it says use for free. And we
- 14:47:28have this over here. So, I'm actually
- 14:47:30curious what this guy um I'm not
- 14:47:33familiar with this YouTuber.
- 14:47:36You can see this has 9,000 views, the AI
- 14:47:38doctor. So, someone else to watch
- 14:47:41possibly. Don't uh completely leave my
- 14:47:43channel for this guy. But, uh
- 14:47:44regardless, it was a pretty cool
- 14:47:45workflow on that side of things. And uh
- 14:47:48this is not beginner friendly. It's for
- 14:47:49people who already know any. And the
- 14:47:51well taken point introduction to 11 lab
- 14:47:53and information about 10,00 credit. nice
- 14:47:55work as an update. So, this is not the
- 14:47:57right link connected to my automation.
- 14:47:59Mine was about Nano Banana.
- 14:48:01Oh, I guess
- 14:48:04put the wrong link in his thing over
- 14:48:06here. Either way, um, and you can see
- 14:48:08actually a lot of people watch this
- 14:48:10video from over there. So, uh, full
- 14:48:12documentation on notion. Let's take a
- 14:48:14look at that. Again, this is a great
- 14:48:16template in my personal opinion because
- 14:48:18you have a lot of ideas over here. Uh he
- 14:48:21has his notion link, download my
- 14:48:23workflow, has all this over here
- 14:48:27like a ton of stuff all built out on
- 14:48:30this side of things like really really
- 14:48:32crazy value on there. I create a bolato
- 14:48:35account pro plan required for API
- 14:48:37access. You can see it links over here.
- 14:48:39You can see there's a referral. So
- 14:48:41obviously some sort of affiliate
- 14:48:43associated with it. Yeah, this was the
- 14:48:45nan uh
- 14:48:48I want to say
- 14:48:51podcast I was listening to.
- 14:48:54I'm actually curious about the pricing.
- 14:48:55So, you can see starter $29, creator 97,
- 14:48:58agency $4.99 at 1250 credits per month.
- 14:49:02There's a lot of different things in
- 14:49:03here.
- 14:49:05So, either way, I'm going to close out
- 14:49:07over here. Just showing you an example.
- 14:49:10And uh yeah, just set up your
- 14:49:11credentials, test out the workflow, see
- 14:49:13if it works for you. I'd also personally
- 14:49:16take a look at like what's happening. So
- 14:49:18maybe you don't want to start with
- 14:49:19Telegram, you want to do something else.
- 14:49:21Like you can always delete these. You
- 14:49:22don't necessarily have to follow the
- 14:49:24workflow. Just remember like there's
- 14:49:25other nodes that are going to be
- 14:49:26incorporated. So like you can see over
- 14:49:28here, this Telegram trigger, this inputs
- 14:49:31that and also this. So based off of
- 14:49:34this, like you're going to have to
- 14:49:35change two different nodes. So just
- 14:49:37follow the patterns. Um, and also a
- 14:49:40little bit of pet peeve. I don't like
- 14:49:41when when they're vertical like this. I
- 14:49:44always just like putting it horizontal
- 14:49:46and then if like two things need to
- 14:49:48happen, go like that. But that's a minor
- 14:49:50pet peeve because obviously there's a
- 14:49:51lot of effort that was put into this
- 14:49:53template and things like that. It
- 14:49:54probably works fantastic.
- 14:49:56Regardless,
- 14:49:57just go through it over here and see
- 14:49:59what's happening. You can see this over
- 14:50:01here. Posts on multiple platforms. Tik
- 14:50:02Tok, LinkedIn, Facebook, YouTube,
- 14:50:04Twitter, Threads, Blue Sky, as well as
- 14:50:06Pinterest. There's this merge node which
- 14:50:08we've covered merge nodes. There's nine
- 14:50:10different merges over there. I'm
- 14:50:12curious. Um, wait for all inputs to
- 14:50:14arrive. Data specific input use input
- 14:50:16over there. Update status to done. So,
- 14:50:19pretty awesome on that side of things.
- 14:50:21So, a lot of documentation. So, that is
- 14:50:24one way that you could populate those.
- 14:50:26I'm going to go back to templates. Let's
- 14:50:28uh leave out of here and then just
- 14:50:30search for something. Now, I don't know
- 14:50:32what I'm going to search for right now,
- 14:50:34but let's see. Um, I'm just literally
- 14:50:36going to look for featured templates or
- 14:50:38something like that. Automate 3D models.
- 14:50:39Oh, I saw this on LinkedIn this morning.
- 14:50:41So, let's take a look at this. Automate
- 14:50:433D model generation from images using CM
- 14:50:463D and sheets. Yeah, I saw this on here.
- 14:50:48So, let's So, you can see this one
- 14:50:51allows click to explore.
- 14:50:53So, this is pretty sick. All right. So,
- 14:50:56what happens? Step one, Google Sheets.
- 14:50:58So, you can actually mess around with
- 14:51:00this before we actually even jump into
- 14:51:02our instance. So in the image model, use
- 14:51:04the basic image to dress. Leave 3D
- 14:51:06results. Get the foul API key. This was
- 14:51:10created with foul. Interesting.
- 14:51:14And you can see we have a golfer
- 14:51:15swinging. And then we have our golfer
- 14:51:18over here. Although I would have
- 14:51:21probably just changed that up so they're
- 14:51:22one to one.
- 14:51:25That is really cool though.
- 14:51:30And free template and tutorial. Oh, is
- 14:51:32that his YouTube channel, too?
- 14:51:35My new YouTube channel. Let's take a
- 14:51:37look.
- 14:51:39Oh,
- 14:51:41I guess they're just shorts. I'll give
- 14:51:45him a subscribe. I don't know if he's
- 14:51:47watching this video, but five
- 14:51:49subscribers, five videos. There you go.
- 14:51:50I'm subscriber number six. Either way,
- 14:51:54um, this is pretty cool. And you can see
- 14:51:55use cases. sports analytics, emotion
- 14:51:57optimization, fitness, health, fashion,
- 14:52:00gaming. I have some fitness customers.
- 14:52:03So, this is pretty sick.
- 14:52:07I I like this a lot. This is cool.
- 14:52:11And it says, "Need help customizing?
- 14:52:13Contact me for consulting." Oh, I didn't
- 14:52:15even know you could put that in here on
- 14:52:17the any community forums.
- 14:52:22So, you can put your email in here and
- 14:52:23you can add someone on LinkedIn. That's
- 14:52:25pretty sweet. Uh you can see setup
- 14:52:27steps. There's a lot of steps associated
- 14:52:29with it really going into the
- 14:52:31documentation. So you know not
- 14:52:33everything in on the work on the
- 14:52:35templates is going to have this thorough
- 14:52:36of documentation. This one does however
- 14:52:39and uh it is pretty great side of
- 14:52:42things. So you can click use for free
- 14:52:44this time. Let's just copy uh template
- 14:52:47to clipboard. So we have that over here.
- 14:52:50I'm going to go into any end now. And uh
- 14:52:53we can go over here and click these
- 14:52:55three dots. And what we could do is
- 14:52:57import from a URL or a file, whatever
- 14:53:00the case may be. Let's do a file. I'm
- 14:53:02going to create a new JSON file really
- 14:53:03fast. And uh we'll go in there. All
- 14:53:07right. So, I'm just in VS Code. I'm just
- 14:53:09going to save this. Obviously, there's
- 14:53:10other ways you could save your JSON, but
- 14:53:12I'm just showing you this over here. I'm
- 14:53:15going to save this really quick. And I'm
- 14:53:17just going to save this under downloads.
- 14:53:20or desktop. We'll just put this on
- 14:53:21desktop. We'll say 3D image.
- 14:53:26Save. And I probably should put
- 14:53:27underscore, but that's all right. And
- 14:53:29then what I'm going to do is click these
- 14:53:30three dots. I'm going to import in from
- 14:53:32a file. Go over here to desktop 3D
- 14:53:36image. And since we just imported this
- 14:53:39in, you can see all this over here.
- 14:53:42And again, like if you if you download a
- 14:53:44template and there's a creator that does
- 14:53:46this, give them a subscribe. Like you
- 14:53:48have to understand this is a lot of
- 14:53:49effort to building in these templates,
- 14:53:51put in the documentation, write it up
- 14:53:52for forums. Um, so obviously like people
- 14:53:56are trying to build out their social
- 14:53:57following and there's nothing wrong with
- 14:53:58that. So support those creators out
- 14:54:00there. I know the first one I showed you
- 14:54:01a YouTube uh creator. This one also was
- 14:54:04built by another YouTube creator.
- 14:54:06They're building out some pretty cool
- 14:54:07use cases. I I like this one a ton.
- 14:54:10Either way, that is the forms. You can
- 14:54:13obviously search stuff as well. So just
- 14:54:15going back to templates. Let's say I
- 14:54:17wanted to have something with Discord.
- 14:54:19So I can search Discord and it shows me
- 14:54:22113 different templates that people have
- 14:54:25created for Discord. So let's say I want
- 14:54:27to do something with HubSpot. And also,
- 14:54:29by the way, you [snorts] can see um
- 14:54:31verified creators and things like that
- 14:54:32and see what other templates they have.
- 14:54:34So like imagine you like this guy's
- 14:54:35template. Well, you can see his other
- 14:54:37templates associated with it. Rahul
- 14:54:40Joshy, let's say you like his templates.
- 14:54:42You can see how many of these over here.
- 14:54:45and he doesn't really have a lot of
- 14:54:46views unfortunately. Um, let's say
- 14:54:48David, he has 204. Wow. And he has his
- 14:54:52school community, a hacker by nature.
- 14:54:54So, you can take a look at what's going
- 14:54:55on over there. He has his own uh school
- 14:54:59community too. 100 members at $47 a
- 14:55:01month powered by school. Regardless, he
- 14:55:04has all these templates on here and you
- 14:55:05can take a look at that. So, let's say
- 14:55:06you want to send messages from a agents
- 14:55:08with the mandrel. Cool tool to MCP
- 14:55:10server says user free. We have a full
- 14:55:12setup over here as well. And uh yeah,
- 14:55:14this is pretty awesome. So that is the
- 14:55:17forums. That's only one way though to
- 14:55:20essentially build out your workloads.
- 14:55:21I'm just going to close out my VS Code
- 14:55:23that I have off to the side because I
- 14:55:25can't see my notes. And we're going to
- 14:55:27jump into our next example. And uh our
- 14:55:30next thing that's going to save us some
- 14:55:31time is the AI workflow builder. So I'm
- 14:55:34just going to create a new workflow.
- 14:55:35Well, I already have this over here. Um
- 14:55:38where is our section 24? I'm just going
- 14:55:40to go home. Leave without saving. We
- 14:55:42don't need to have that right now. We're
- 14:55:44going to go back into section 24. All
- 14:55:46right. So, you'll notice on here we have
- 14:55:49add first steps or start from a
- 14:55:50template. Obviously, you can go
- 14:55:51templates over here as well, which I
- 14:55:53didn't even show you, but you can just
- 14:55:54literally say automated quiz delivery
- 14:55:56with Google Sheets and Telegram. Let's
- 14:55:58just use that or scrape AI news. Let's
- 14:56:01scrape this. Use this workflow. Again,
- 14:56:04you'll see the same screens. So, I'm not
- 14:56:06going to waste your time setting that
- 14:56:07up, but I just want to show you that you
- 14:56:09can do it's a template here. You don't
- 14:56:10necessarily have to go to the template
- 14:56:11library, but let's go into build with
- 14:56:13AI. So, you'll see you have a monthly
- 14:56:15credit on this side of things. And
- 14:56:17there's other ones that are built in.
- 14:56:19And later in the course, we're going to
- 14:56:21be talking about rag. So, maybe I want
- 14:56:23to build out something automated with a
- 14:56:25rag knowledge assistant. So, I'm going
- 14:56:27to click this. Obviously, you could type
- 14:56:29out exactly what you want, but let's say
- 14:56:31I want to do the rag knowledge
- 14:56:32assistant. So, it says build an
- 14:56:33automation that creates an a document to
- 14:56:36chat rag pipeline. The workflow starts
- 14:56:38with an any form where a user uploads
- 14:56:40one or more files. Each upload should
- 14:56:42trigger a process that reads the file,
- 14:56:43splits into chunks, and generates
- 14:56:44embeddings using OpenAI. You can see
- 14:56:46uses 41 mini, which is an older model. I
- 14:56:49probably wouldn't recommend using that
- 14:56:50old of a model. Um, saved in one pine
- 14:56:52cone table. Add a second part of the
- 14:56:54workflow for querying. Use a chat
- 14:56:55message. So, like this is a lot of
- 14:56:57information. This is very thorough and
- 14:56:59you should be as thorough as possible as
- 14:57:00well on the side of things. It's like
- 14:57:02prompting. uh the better that your
- 14:57:04prompts are, the more likely you're
- 14:57:05going to get a better accurate
- 14:57:07representation. So, let's run this. I'm
- 14:57:08curious if it's only one credit. So, it
- 14:57:10says remaining AI credits 50, monthly
- 14:57:12credits 50, one credit equals one
- 14:57:14message. So, credits renewed February
- 14:57:151st, 2026, unused credits expire. So,
- 14:57:19one credit to use this. You might as
- 14:57:20well try it and see how well this goes.
- 14:57:23And I'm going to run this and you'll see
- 14:57:25it says thinking and we have all this
- 14:57:27getting built out right now over here.
- 14:57:29And it's working. So we'll see how this
- 14:57:32populates.
- 14:57:34And it says, I'll build a comprehensive
- 14:57:35document to chat rag pipeline with form
- 14:57:37uploaded, embedded generation, and
- 14:57:39chatbot interface. So I'm actually
- 14:57:41curious how long this particularly
- 14:57:44takes. And uh we'll see. So we're about
- 14:57:472 minutes into this right now, and you
- 14:57:49can see it already populated these
- 14:57:50nodes. However, it still hasn't built
- 14:57:52the workflow. So again, I'll just pause
- 14:57:54and wait for this to be ready so that
- 14:57:56way you don't waste your guys time. All
- 14:57:58right, another minute in. Essentially,
- 14:58:00we have this over here, but it still
- 14:58:02says it's working. I don't think it's
- 14:58:03ready to go yet, obviously. Taking a
- 14:58:05look at this. And uh we will see what
- 14:58:08happens. Another minute in and you can
- 14:58:11see it's changed things up, but it is
- 14:58:14still thinking. You can see thinking on
- 14:58:16the side, working over here. And just
- 14:58:18more updates.
- 14:58:23All right. So, this took me I want to
- 14:58:25say four to five minutes. And uh cool.
- 14:58:29Let's take a look at what is going on.
- 14:58:30So first we have a response how to set
- 14:58:32up. It says pine cone configuration. It
- 14:58:35tells you data tables create two data
- 14:58:37tables in any end. One for storing form
- 14:58:39uploads one for logging chat email
- 14:58:42address in the send daily summary email
- 14:58:44node replace there. Pine cone
- 14:58:46credentials credentials Gmail
- 14:58:48credentials. So I think it's pretty nice
- 14:58:50that it tells you like hey set these
- 14:58:52credentials up. Workflow has three main
- 14:58:53parts. document upload chat interface
- 14:58:56daily reporting every day at 9 a.m. The
- 14:58:58workflow analyzes chat logs and emails a
- 14:59:00summary of stats top reference files and
- 14:59:02field lookups. And then it says complete
- 14:59:04these steps before executing your
- 14:59:06workflow. Update pine cone index with
- 14:59:08the parameter store form uploads. So you
- 14:59:10have to upload these over here. Log chat
- 14:59:13interactions fetch chat logs and then
- 14:59:15send daily over here. Update as that
- 14:59:18side of things. So you can go over here
- 14:59:20and build these particularly out. I'm
- 14:59:22actually curious as well just taking a
- 14:59:24look at how this is being built out. So
- 14:59:28what we have over here is our form
- 14:59:29upload and also
- 14:59:32can I not move these? Okay, I can't move
- 14:59:34this. I was just spot. All right, so
- 14:59:38first off from the design perspective, I
- 14:59:41do like how we split this out, but it is
- 14:59:45kind of weird. So like you can see
- 14:59:49I don't know if I would have
- 14:59:52set this up like this.
- 14:59:58Like just from the design, it's a little
- 15:00:01bit funky.
- 15:00:04I guess that's okay. All right. So, I
- 15:00:06think this looks already a little bit
- 15:00:08better. Again, I I don't know. I just
- 15:00:09like having the lines go like this.
- 15:00:13Making a little bit better. Um, even
- 15:00:15things like this, like you can see the
- 15:00:17chat trigger.
- 15:00:23And uh, I don't know. I'm one that
- 15:00:26always likes just duplicating this just
- 15:00:28I think it's cleaner. I know it's I know
- 15:00:32they're both connected to the same
- 15:00:33thing. I just like that's just a
- 15:00:36personal use. Like I think this just
- 15:00:38looks cleaner. Some people are going to
- 15:00:40disagree, but I think already this looks
- 15:00:42way better just moving things around.
- 15:00:44So, it's just like a a pet peeve. I
- 15:00:46don't even know if this works correctly
- 15:00:47or not. And obviously, you can test it
- 15:00:49out. I'm curious. We have different
- 15:00:51settings already filled out in here,
- 15:00:52too, which is kind of nice. It'll save
- 15:00:54you some time. Book configuration
- 15:00:57placeholder value. So, make sure to fill
- 15:00:59that in as you need it. You can see over
- 15:01:02here pine cone index from a little bit
- 15:01:04earlier with the exact JSON that we need
- 15:01:08and the schedule summary. Also, this
- 15:01:12chat trigger is huge. I've never seen it
- 15:01:14that big. Never seen it that big. Is it
- 15:01:16just because it's publicly available? I
- 15:01:18wonder if I turn that off.
- 15:01:22That is ah okay
- 15:01:25publicly available.
- 15:01:27No, it went back. That's weird that it
- 15:01:30uh
- 15:01:33turned huge. I may control Z that. Oops.
- 15:01:38I guess I can't control Z what's going
- 15:01:40on in that chat trigger.
- 15:01:43Interesting. Either way, you can see
- 15:01:45like it it builds out your framework.
- 15:01:48Our goal of this video wasn't to really
- 15:01:50evaluate this whatever was built in, but
- 15:01:53yeah. So, that is another option. You
- 15:01:54can go over here to the workflow builder
- 15:01:57and start out. Now, this isn't going to
- 15:01:58be 100% correct. As I mentioned, even
- 15:02:00with templates, you're going to have to
- 15:02:02customize it to your own liking. Some
- 15:02:05nodes might have incorrect settings. So,
- 15:02:07you're going to have to go in here and
- 15:02:08test it out. But, it does a lot of the
- 15:02:11framework and already a lot of the
- 15:02:12building. So, there probably is ways
- 15:02:14that you could architecture things
- 15:02:15better and uh make it a little bit more
- 15:02:17efficient. But, out of the box, it's
- 15:02:19probably not too bad over there. Just
- 15:02:21remember, you have 50 by default. So,
- 15:02:24we're going to just say this is like
- 15:02:26part two,
- 15:02:29part one. It doesn't really matter. I
- 15:02:31don't know. I'm I'm obviously going to
- 15:02:32be uploading these files to our school
- 15:02:34group on the side things. So, this is
- 15:02:36saved. The next thing I want to talk
- 15:02:38about is just asking a large language
- 15:02:40model and I'll just create a new
- 15:02:42workflow for that. So, we're going to
- 15:02:44create new workflow. I'll create it in
- 15:02:46personal and uh yeah, we'll just call
- 15:02:48this building workflows faster part two.
- 15:02:51And what I would recommend is use alert
- 15:02:54tech is pretty good at code building. I
- 15:02:57like using claude and I actually have a
- 15:02:59paid claude account at $20 a month just
- 15:03:02because I find if you don't you run out
- 15:03:04of messages pretty fast. So I find this
- 15:03:07is a pretty good investment if it just
- 15:03:08saves me an extra hour to three hours a
- 15:03:11week. So what we're going to do on here
- 15:03:14is ask it to build a nan workflow. And
- 15:03:17what's really cool is you can actually
- 15:03:19get JSON back based around it. So, I'm
- 15:03:22going to say, can you build me can you
- 15:03:24build me a NE workflow based on N v2
- 15:03:31docs that takes a YouTube video
- 15:03:38and uh
- 15:03:40populates
- 15:03:42a uh let's say LinkedIn message
- 15:03:46message. Obviously, this isn't really a
- 15:03:48thorough prompt, but imagine just taking
- 15:03:50YouTube video and then we want to
- 15:03:52LinkedIn message on social media. So,
- 15:03:54maybe I'll instead of populates a
- 15:03:56LinkedIn post about it on social media
- 15:04:00and I wouldn't recommend you do this as
- 15:04:02well, please. There's a lot of nuances
- 15:04:03in like what makes a good post and
- 15:04:04things like that, things that I'm still
- 15:04:06learning about, but I'm just going to
- 15:04:08say over here, please
- 15:04:11provide me the JSON.
- 15:04:16All right. So, we'll see what happens on
- 15:04:18the side of things, but
- 15:04:21you will see what happens. All right.
- 15:04:23So, we have all of our JSON that is
- 15:04:25getting populated right now. We have all
- 15:04:27this information, manual trigger,
- 15:04:29YouTube details, LinkedIn format over
- 15:04:32here, setup requirements. So, it gives
- 15:04:33you setup requirements as well. Very
- 15:04:35similar to what happened with um our
- 15:04:38templates and what happened directly
- 15:04:40when we were asking the workflow to be
- 15:04:41built out. It says import this JSON and
- 15:04:43nan add your credentials test with the
- 15:04:46manual trigger by pasting YouTube URL
- 15:04:48like this. So this is one approach on
- 15:04:51how you could do that. And just to go
- 15:04:53back over here we'll save this into VS
- 15:04:55Code first. So I'm just going to say
- 15:04:58this is still 3D image. It doesn't
- 15:05:00really matter. This is just whatever
- 15:05:02else it is. So we'll go over here and
- 15:05:04then we'll import from file. We'll grab
- 15:05:073D image. And yeah, this didn't work
- 15:05:10correctly. So, we're going to have to
- 15:05:12reprompt it and uh we'll test that out.
- 15:05:15All right. So, obviously this did not
- 15:05:17work. So, what I'm going to do is I'm
- 15:05:19going to take a screenshot of this and
- 15:05:20I'm going to reprompt it back over here.
- 15:05:22So, I'm going to say I imported in this
- 15:05:26JSON
- 15:05:28in this JSON. However,
- 15:05:33it didn't work.
- 15:05:35Are you using
- 15:05:38the ND2
- 15:05:40docs with a question mark? And I'll put
- 15:05:43this over here
- 15:05:45and uh paste that in. [snorts]
- 15:05:56Okay. So, you're right. I need to check
- 15:05:57the actual NV2 docs and then it's going
- 15:06:00to search the web
- 15:06:02and it's going to start going through
- 15:06:04this as well. So a lot of people if they
- 15:06:07see a mistake they'll just give up at
- 15:06:10first and you know oh well this doesn't
- 15:06:13work it but you need to reprompt things
- 15:06:16if you see errors. So I'm actually
- 15:06:17curious as well when jumping into this
- 15:06:20workflow. We have a manual trigger this
- 15:06:23generate. We actually have a prompt
- 15:06:25that's in over here. And then um we have
- 15:06:29the format post data no path pack to
- 15:06:33node. Yikes. Whatever this is over here
- 15:06:37that's weird. Install this node to use
- 15:06:39it. This node is currently not
- 15:06:40installed. It either is from newer
- 15:06:41version and a custom node or is it
- 15:06:43invalid structure. It's probably just
- 15:06:44invalid structure. I'm going to
- 15:06:46control-z all this because I don't want
- 15:06:47this in here over here. And uh yeah,
- 15:06:50we'll see what the new JSON is. Looking
- 15:06:53at your screenshot. I see the issue. The
- 15:06:54link to node andv2 has a simpler
- 15:06:56structure when initially provided may
- 15:06:58create a workflow based around it. So
- 15:07:00now it's building this out and uh yeah
- 15:07:02we have this over here. So let's see if
- 15:07:05this works or not. We're going to go
- 15:07:06over here and paste that in and we can
- 15:07:11go back. So we'll say import from file.
- 15:07:15We'll import in this 3D image again.
- 15:07:18Obviously it did not work. So this use
- 15:07:20case does not work and it's unfortunate.
- 15:07:23So, I'm going to go over here and say
- 15:07:25this does not work.
- 15:07:28This didn't work.
- 15:07:32Can you please
- 15:07:35give me an outline
- 15:07:38of what nodes
- 15:07:40to use and when? So, this is another
- 15:07:43thing that you could utilize LLMs for.
- 15:07:45Obviously, like I don't like relying on
- 15:07:49a large language model or the a workflow
- 15:07:52builder to build out my workflows from
- 15:07:53scratch. However, I think using LM to
- 15:07:56give you ideas on like what nodes to use
- 15:07:58and when is okay. So, I'm just going to
- 15:08:01say this didn't work. Can you please
- 15:08:02give me an outline of what nodes to use
- 15:08:05and where at?
- 15:08:09And what it'll do is think about this
- 15:08:12and it'll give me some ideas. So, let's
- 15:08:14see what the ideas are like on the side
- 15:08:17of it. It says, "Absolutely. Let me give
- 15:08:19you a clear step-by-step outline.
- 15:08:21Workflow outline YouTube LinkedIn.
- 15:08:22Number one is a manual trigger. Start
- 15:08:24the workflow. Add a field." So, I don't
- 15:08:26love the manual trigger. I think there's
- 15:08:28probably easier ways, but that's fine.
- 15:08:30Then we have a code node. Extract video
- 15:08:32ID from YouTube URL and it takes the
- 15:08:34video ID. Yep, I've I've done that
- 15:08:36before, so that's good. HTTP request get
- 15:08:39YouTube video details from YouTube data
- 15:08:40API. Okay, that's good there. Again, I
- 15:08:43don't know if this is actually working
- 15:08:45or not and maybe we want to test this
- 15:08:46out. Uh code node format the date or
- 15:08:49data from OpenAI extracts title,
- 15:08:51description, views, likes from YouTube
- 15:08:53response. So we have that over there.
- 15:08:56This obviously has an issue over here.
- 15:08:59So it says five open AAI
- 15:09:02and then it says create a LinkedIn post
- 15:09:04make it engaging. So just an issue with
- 15:09:06Claude. Step six is LinkedIn. So I don't
- 15:09:09think LinkedIn has a note. I'm not too
- 15:09:11sure. Let's go over here and say
- 15:09:12LinkedIn. It does have a node. I just
- 15:09:15haven't used it. And there's a create a
- 15:09:16post which is cool. And it says manual
- 15:09:19over here. Start line makes sense. Which
- 15:09:21nodes are you getting stuck on? So
- 15:09:23obviously as you're building this out,
- 15:09:24you can keep sending questions back and
- 15:09:26forth. I think I showed you guys this in
- 15:09:28the debugging section where you have an
- 15:09:30issue, you can paste it over here and it
- 15:09:32can help you solve it. Um, but yeah, I
- 15:09:34kind of like using the outlines just to
- 15:09:35get into a new chat as well. You can
- 15:09:37also add in connectors and stuff like
- 15:09:39that.
- 15:09:40We can say add connectors and I believe
- 15:09:42N also is in over here. So uh we have N
- 15:09:46access and run your workflows and we'll
- 15:09:48cover that here in a second for MCP. I
- 15:09:50want to say there was like a I thought
- 15:09:52there was documentation in over here. I
- 15:09:54could be wrong though. Um either way
- 15:09:56that is one option over here just to
- 15:10:00kind of show you like yeah you can use
- 15:10:02large language models. They're probably
- 15:10:04not going to be the most accurate to
- 15:10:05build out a workflow as solve those
- 15:10:07errors. I would just recommend them to
- 15:10:09say, "Hey, what nodes do you
- 15:10:11specifically want to use?" And I think
- 15:10:13it's helpful over there. The last thing
- 15:10:15I want to do is finding and vetting
- 15:10:17community nodes because as I showed you,
- 15:10:20like not everything is on here and
- 15:10:21really for the community node section,
- 15:10:23this is going to be more for self-hosted
- 15:10:25rather than cloud. Obviously, cloud is
- 15:10:27getting more community nodes in. Um, but
- 15:10:29this part of the tutorial is kind of
- 15:10:30just focused on uh self-hosted. So the
- 15:10:33benefit of self-hosted is you have
- 15:10:35options for the community nodes. So I'm
- 15:10:38just going to search over here n
- 15:10:40community node list
- 15:10:43and I believe there's different things
- 15:10:44over here. So like 100 community nodes
- 15:10:46sorted. I don't know if this is up to
- 15:10:49date or not and I don't know how many of
- 15:10:51these are directly in cloud versus else.
- 15:10:55So these are crawled when was this last
- 15:10:57crawled? 2025. So you can see total
- 15:10:59nodes found like over essentially a year
- 15:11:025xed new nodes total this is pretty cool
- 15:11:0618 nodes per day and you can see there's
- 15:11:08different things around over here
- 15:11:10provides a hub focused on WhatsApp
- 15:11:12provides a channel hub WhatsApp so you
- 15:11:15have all these different nodes over here
- 15:11:16GitHub awesome nan and you can just go
- 15:11:20through each of these see when they're
- 15:11:22last updated what the description is and
- 15:11:24there might be things over here that
- 15:11:26just save you a lot of time. And
- 15:11:29obviously, just keep checking these out.
- 15:11:31Data processing, validation, utilities
- 15:11:34because some of these you're not going
- 15:11:36to have to specifically build a HTTP
- 15:11:38request. Again, this focuses on the
- 15:11:40self-hosted side of things. I would
- 15:11:42highly recommend you take a look at the
- 15:11:43community notes, see if what you need is
- 15:11:45in over here, and uh save yourself some
- 15:11:48time. All right, so just to kind of
- 15:11:51recap what we covered today, I showed
- 15:11:53you essentially templates where you go
- 15:11:55to the template library. uh you can grab
- 15:11:58the JSON or add it directly into your
- 15:12:00workflow. We also talked about the
- 15:12:02specific builder. There is ways that you
- 15:12:04could use your large language model to
- 15:12:06get more accurate builds. Obviously,
- 15:12:08this one I showed you today completely
- 15:12:11failed, but that's okay. Um you can go
- 15:12:13in over here as well. I I closed it and
- 15:12:15just ask for, hey, what nodes should I
- 15:12:18use for this workflow? I think that
- 15:12:19works a little bit better. I've used
- 15:12:21that in the past for just some idea
- 15:12:23planning and I think LLMs are really
- 15:12:26good also at helping you debug as well
- 15:12:28as like taking a look at some settings
- 15:12:30that you might want to utilize. But
- 15:12:32building out a work workflow from
- 15:12:34scratch probably use the workflow
- 15:12:35builder here in N. Again, not to
- 15:12:37discredit the LMS. I think there is
- 15:12:39other ways and I've seen some other
- 15:12:41YouTube videos. I haven't watched them
- 15:12:42full in depth, but uh that's kind of my
- 15:12:44approach on there. So that's awesome.
- 15:12:47The next section we're going to be
- 15:12:48covering security and compliance. So,
- 15:12:51this one's a little bit more of a fun
- 15:12:52one. The next one's going to be a little
- 15:12:54bit more technical and we'll catch you
- 15:12:57in that video. So, I know security and
- 15:13:00compliance can be a boring side of
- 15:13:03either coding or AI automations, but in
- 15:13:06the real world, this is something that a
- 15:13:09lot of companies will require you to do,
- 15:13:11especially if you're going to be dealing
- 15:13:13with some sort of sensitive information.
- 15:13:16So, in this section, we're going to be
- 15:13:17covering that. Um, some of the stuff
- 15:13:19we're going to be talking about has been
- 15:13:21repeated a little bit earlier on in the
- 15:13:23course. There's also going to be some
- 15:13:24new material as well. So, with that out
- 15:13:27of the way, let's take a look at the
- 15:13:29section. All right. So, the first part
- 15:13:32of this, we're going to do a uh brand
- 15:13:35new node, which we haven't really
- 15:13:36covered yet, minus a small mention of
- 15:13:39it, and this is guardrails. So
- 15:13:42guardrails are amazing because we have
- 15:13:45different options. We can check text for
- 15:13:47any sort of violation and then we can
- 15:13:50also sanitize the text. So I'm going to
- 15:13:53grab both of these nodes and we're going
- 15:13:55to explain what the differences are. So
- 15:13:58we're going to go back to guardrails
- 15:14:00and sanitize text. Okay. So let me
- 15:14:03explain what goes on for these. So the
- 15:14:06first part of it, it says check text for
- 15:14:09violations. And you'll see that there is
- 15:14:11two paths. So essentially, if your text
- 15:14:14has something that you do not want to be
- 15:14:17sent into an AI agent, you would want to
- 15:14:20use something like this. If it passes,
- 15:14:22it goes straight into your AI agent. So
- 15:14:24you could say you have an AI agent over
- 15:14:26here. And uh ideally, we pass that in.
- 15:14:30However, if it fails, right, and some
- 15:14:34will fail, you might want to do
- 15:14:35something like Slack and then send a
- 15:14:38message to a specific person in it. Uh,
- 15:14:42so we can go over here and send a
- 15:14:44message or you can send an email and you
- 15:14:47can log it as well. So, you would want
- 15:14:49to put like Google Sheets and log this
- 15:14:52or um you can use a data table here in
- 15:14:54ending N. And I'll go over here and
- 15:14:57append row and sheet. So ideally,
- 15:15:01if there's no issues with your text, it
- 15:15:03goes straight in your agent. Otherwise,
- 15:15:06you alert someone again. It could be
- 15:15:08Gmail, it could be Slack, it could be
- 15:15:10Discord, whatever it is, and you log
- 15:15:13that information. And what are those
- 15:15:15violations? Well, let's take a look at
- 15:15:16the node. So, what you have over here is
- 15:15:19check text for violations. You put in
- 15:15:21some text and then you add in a guard
- 15:15:24room. So, first is keywords. So if
- 15:15:27there's a specific keyword that you do
- 15:15:29not want mentioned in your text, that
- 15:15:32could be a guardrail.
- 15:15:34Have jailbreak. So essentially what a
- 15:15:36jailbreak is are people trying to go
- 15:15:40around violations and you can customize
- 15:15:43prompts over here. So this is like
- 15:15:44jailbreaking a prompt and you hear about
- 15:15:47jailbreaking prompts on the news
- 15:15:49occasionally. So jailbreak is any
- 15:15:51attempt to deliberately attempt to
- 15:15:52circumvent, deceive or manipulate the AI
- 15:15:54safety, ethical or policy constraints.
- 15:15:56So that is jailbreaking. And you can
- 15:15:59change the threshold. You can increase
- 15:16:01this higher or you can decrease this.
- 15:16:03And it says input scoring less than this
- 15:16:04will be treated as violations. So that
- 15:16:07is jailbreak. Let me close those out.
- 15:16:09Next you have NSFW. Uh and you can
- 15:16:12obviously change that threshold as well.
- 15:16:15No need to talk about that. Not safe for
- 15:16:17work. Then you have something that's
- 15:16:19PII. So this is personal data for people
- 15:16:24and you can choose selected entities. So
- 15:16:26you can see if there's like a credit
- 15:16:27card, crypto, uh, email address, IBIN
- 15:16:30code, IP address, location and like
- 15:16:33working from the fintech space, PII like
- 15:16:36you we we get in trouble if we send PII
- 15:16:39information into a large language model.
- 15:16:41In fact, it's part of our AI policy. So
- 15:16:43we have to be very careful on what data
- 15:16:46that you send in. And something like
- 15:16:47this would be great to use at least at
- 15:16:50my personal workspace. All right. So
- 15:16:53after PII you have secret keys. So this
- 15:16:55is like if you send an API key like you
- 15:16:58don't want to leak your keys. So another
- 15:17:00thing that and in the corporate world
- 15:17:02super important not to leak your keys
- 15:17:04because you'll have your CTO or your IT
- 15:17:07department really mad at you. Uh topical
- 15:17:09alignment. So, this essentially lets you
- 15:17:11know like, hey, we're only expecting uh
- 15:17:14prompts that have this information. If
- 15:17:16it's um something way out of left field,
- 15:17:19we should not send this forward. And
- 15:17:20again, there's a threshold over here
- 15:17:22that we can start tweaking with. And I
- 15:17:24would test this out. And you know, the
- 15:17:27clear example, and I've talked about
- 15:17:28this also in the guards video, is if you
- 15:17:31go to a Gentic Arena, and I think it was
- 15:17:33like tacos, tacos, tacos. Uh this would
- 15:17:35have stopped that from happening. Uh
- 15:17:38going to other things as well. Over here
- 15:17:41we have URLs. So you could block all
- 15:17:43URLs except. So imagine you're having
- 15:17:45issues with the website and you just
- 15:17:47want people to post like specific page
- 15:17:49on the site or something like that. So
- 15:17:51you would want to block all URLs except
- 15:17:54uh then we have custom side and regx. So
- 15:17:57you can set up custom rules as
- 15:17:58necessary. So again, if it fails a rule,
- 15:18:01it goes down over here. You should log
- 15:18:02why it failed. you should send a message
- 15:18:04to someone and then you have the AI
- 15:18:06agent if it specifically passes. The
- 15:18:08other side of it is sanitizing. So this
- 15:18:11will actually remove specific text. So
- 15:18:14you can see we can remove PII data. So
- 15:18:16going back over here like this could be
- 15:18:18either a guardrail check for violations
- 15:18:21or we just remove that information. So
- 15:18:23imagine if someone's just having issues
- 15:18:26with their credit card. Uh if you're a
- 15:18:28company like Visa, if someone uh sends
- 15:18:31in their credit card number, which they
- 15:18:33shouldn't just paste their credit card
- 15:18:34number, but um regardless if they paste
- 15:18:37their credit card number into a form, we
- 15:18:38sanitize that text so that way it
- 15:18:40doesn't get sent into our large language
- 15:18:42model. Same with an API key. Imagine you
- 15:18:44have some type of SAS product and you
- 15:18:46offer an API and someone just paste in
- 15:18:48their API key and say, "Hey, I'm having
- 15:18:49an issue." Maybe you want to uh sanitize
- 15:18:51a text and remove it. So you can see
- 15:18:53that is an option over there. You have
- 15:18:55other URLs and custom regx so you can
- 15:18:57change things as necessary. So that is
- 15:19:02guardrails. Super important note. I'm
- 15:19:03really glad that N added that in and uh
- 15:19:06that is one of the first parts of
- 15:19:08security and compliance. Another one
- 15:19:10that we've already talked about are
- 15:19:12different user roles. So specifically in
- 15:19:15chat hub and we can go back to chat hub
- 15:19:17settings over here and go into chat as
- 15:19:21well as users. So if you don't need a
- 15:19:24user to have access to everything, you
- 15:19:26could just go over here and invite a
- 15:19:28user and you give them a role of a
- 15:19:30specific chat user. Not everyone needs
- 15:19:32to be a member or a specific admin.
- 15:19:35Admin has permissions to everything.
- 15:19:36Member has permissions to things that
- 15:19:38you share. Chat user only has access to
- 15:19:40ChatHub. So if you don't want them if
- 15:19:42you don't want a user to have access to
- 15:19:44your workflows, but still to be able to
- 15:19:46use them, you can use a chat user. And
- 15:19:49think about this real world scenario.
- 15:19:51When you're working with databases, you
- 15:19:52have people that have write access and
- 15:19:54you have people that have read access.
- 15:19:56Obviously, there are certain people like
- 15:19:57the data engineers that should have
- 15:19:58write access. Some data scientists
- 15:20:00should have right access. They're
- 15:20:02building out some sort of table. But
- 15:20:04someone that just needs to query the
- 15:20:05data and should not be manipulating the
- 15:20:07data should only have read access. So
- 15:20:09this is one way that we could control
- 15:20:10that. In addition with chat, you can
- 15:20:13specify what models are available. So
- 15:20:15you can go in over here and this is
- 15:20:17another form of security. Um you might
- 15:20:20say, for example, hey, I only want
- 15:20:22US-based models for this company. It
- 15:20:24might be a rule that your security team
- 15:20:26set up. So you inside of chat, you just
- 15:20:28only available the US-based companies.
- 15:20:31So you can't use something like a
- 15:20:32deepseek. So that is chat. Next, we're
- 15:20:36going to talk about web hooks. And we've
- 15:20:38already covered web hook security, but
- 15:20:40inside web hooks, if you have a live web
- 15:20:43hook, you need to set up some sort of
- 15:20:44authentication. So this way, someone has
- 15:20:47some sort of API key or username and
- 15:20:50password to access your web hook. It is
- 15:20:52super important because you wear web
- 15:20:54hooks when they go into a production URL
- 15:20:56and you make your workflow live, anyone
- 15:20:59can access those. So again on the
- 15:21:01security side we've already covered this
- 15:21:02but make sure you either set up basic
- 15:21:04off header off or JWT O and build out
- 15:21:07those credentials over here. Uh again
- 15:21:10very important and you can also build
- 15:21:11out other ways to block people after
- 15:21:14they get in through this web hook. So
- 15:21:17that is web hook side of things.
- 15:21:18Credential management and going back
- 15:21:21into NE and we can go back in over here
- 15:21:24and go to our homepage. You can see
- 15:21:26there's credentials over here. So on the
- 15:21:29credential management side of things,
- 15:21:30what you should do is first be clear
- 15:21:33with what the credentials are. I did not
- 15:21:36do this initially, but let's say for
- 15:21:38example, you have multiple credentials
- 15:21:40for a company, you have credentials for
- 15:21:43a marketing department, you have
- 15:21:44credentials for engineering department
- 15:21:46and IT department. World scenario,
- 15:21:48people are on different billing. Uh a
- 15:21:50company when it gets larger isn't going
- 15:21:52to just have one credit card for
- 15:21:53everything. Departments have their
- 15:21:55budgets. So if you're working with
- 15:21:56multiple departments, make sure you
- 15:21:58label these clearly. For example, uh
- 15:22:00what you might have is a Google Drive
- 15:22:02account for marketing. So you might say
- 15:22:04Google Drive marketing or Google Drive
- 15:22:06engineering and be super explicit. You
- 15:22:09can also share these. So you can go over
- 15:22:11here and it says change owner and you
- 15:22:14can change the owner specifically on
- 15:22:15here. You can go over here and give
- 15:22:18access to people as well. So uh that is
- 15:22:21the credential side of things. Uh next
- 15:22:24we're going to talk about version
- 15:22:26controls. So in nan when we publish so
- 15:22:29we'll save and we publish and obviously
- 15:22:31like these need no these have some
- 15:22:33issues. So maybe I don't want to set
- 15:22:36that up specifically right now. Let me
- 15:22:39uh turn these off
- 15:22:42so that way I don't have any issues. I'm
- 15:22:45just going to add in a chat model over
- 15:22:46here. Doesn't really matter too much. I
- 15:22:49just want to be able to publish this.
- 15:22:51All right. Save. Is this going to let me
- 15:22:54publish it? Oh, I need a trigger.
- 15:22:59All right, let's imagine this is our
- 15:23:00workflow
- 15:23:02has no trigger nodes that require
- 15:23:04publishing. Oh, you know what I need?
- 15:23:06Let's put this web hook over here and
- 15:23:08activate it.
- 15:23:11Well, let's not use a web hook. We're
- 15:23:12going to use a schedule trigger.
- 15:23:16This should be fine. [snorts] Once I go
- 15:23:19to the schedule trigger and push this
- 15:23:21over here, we're going to be able to
- 15:23:22publish this. So, another thing that you
- 15:23:24can have is version control. So, you
- 15:23:26want to specify your version of
- 15:23:29something. So, let's say I'm going to
- 15:23:31publish this. I'm going to say section
- 15:23:3225
- 15:23:34version one or like you can put like V1
- 15:23:37and I say added schedule trigger. Like
- 15:23:40you need to be explicit on what is
- 15:23:42changing in your workflow. You need to
- 15:23:44put your notes over here as well. This
- 15:23:46is very similar to how GitHub works. So,
- 15:23:49ideally what happens is someone's going
- 15:23:52to take a look at the different versions
- 15:23:53and see if things are changing or not.
- 15:23:56Um, in terms of like compliance and
- 15:23:58things like that, it is super important
- 15:23:59to have your different versioning and
- 15:24:01what is changing as well because
- 15:24:02regulators are going to ask for that.
- 15:24:05So, one way we can do versioning is
- 15:24:07directly here in any now with publish.
- 15:24:10So, this is pretty awesome on this side
- 15:24:11of things and you can see there's a
- 15:24:13whole production checklist. I'm not
- 15:24:15going to go through that. However, um
- 15:24:18you can go through that as well if you
- 15:24:19want to. And you can see section 25V1
- 15:24:22published just now. And I believe you
- 15:24:24can also see the version history as
- 15:24:26well. So if I go to settings,
- 15:24:29I want to say there's an option for that
- 15:24:31too to see a version history. Either
- 15:24:33way, it is super important to have that
- 15:24:35as a a backup as well, just in case like
- 15:24:38there's something wrong with your NAN
- 15:24:39account. I would probably recommend that
- 15:24:42you set up GitHub as well and do the
- 15:24:45same exact thing. I would just download
- 15:24:46your workflow as JSON. So, if you go
- 15:24:48over here to the three dots, you can go
- 15:24:50and just download this and you'll see it
- 15:24:52security and compliance over here. And I
- 15:24:54would just upload these into your GitHub
- 15:24:56account. Do the same exact thing. Keep
- 15:24:57your versions uh update your change log
- 15:25:00within GitHub. Just really, really
- 15:25:02critical that you have your versioning
- 15:25:04history. especially if something just
- 15:25:06completely breaks in your workflow. You
- 15:25:07can go back to a previous version and
- 15:25:09then work on that specific or particular
- 15:25:12bug. So that is versioning. It's
- 15:25:14obviously built in directly into nan. I
- 15:25:16would highly highly suggest that you
- 15:25:18also back up your very important
- 15:25:21workflows within GitHub. All right. Next
- 15:25:25concept I wanted to cover really fast I
- 15:25:28want to say is logging. And I actually
- 15:25:30have some nodes associated with that. So
- 15:25:33we're going to jump into that here in a
- 15:25:35second. All right, I am back. So another
- 15:25:37thing to mention is just like logging
- 15:25:39what is going on. I already showed you
- 15:25:41how we could do this in evaluations, but
- 15:25:43you can also build out a JavaScript node
- 15:25:46over here and get other additional
- 15:25:48information that you might find helpful
- 15:25:50for just logging what is going on.
- 15:25:52Logging is a concept that comes from
- 15:25:54software engineering and it's important
- 15:25:56to do. So what I have over here is the
- 15:25:58time stamp, the workflow ID, workflow
- 15:26:00name, execution ID, execution mode, uh
- 15:26:02the user that's going through this, the
- 15:26:04instance ID, and other pieces of
- 15:26:06information that might be helpful. So if
- 15:26:08I execute this step, you'll see that we
- 15:26:11essentially create a table. So it says
- 15:26:13timestamp, I'm recording this here on
- 15:26:15the first, the workflow ID associated
- 15:26:17with it, the name, execution, execution
- 15:26:19mode. I'm obviously in test mode right
- 15:26:21now, so you can log whether you're in
- 15:26:22test mode or you're in production. How
- 15:26:24many items are in getting inputed?
- 15:26:26Obviously, I have no items, so that's
- 15:26:27why we have one over here. The workflow
- 15:26:29is not active, so it's on false. The
- 15:26:31time zone over here, which I'm not sure
- 15:26:32why we're in UTC, but that's okay. And
- 15:26:34then we have a log ID. So, highly
- 15:26:37recommend that you set up logging.
- 15:26:38Obviously, you can just copy what I have
- 15:26:40over here and just paste this into your
- 15:26:42workflow. And then what you can do is
- 15:26:44have this added to Sheets after. We've
- 15:26:46already covered Google Sheets so many
- 15:26:48times, so I'm not going to spend the
- 15:26:49time and actually add it in, but just go
- 15:26:51over here, append. I wouldn't say append
- 15:26:54or update to just append it when this
- 15:26:55runs. Okay, cool. We've logged it and
- 15:26:58this is populated in Google Sheets. Uh
- 15:27:00you can also log it in other locations
- 15:27:02instead of sheets. I just mentioned
- 15:27:04this. The proper way would probably be
- 15:27:05to log it within a database. So I would
- 15:27:08recommend that you have logging tables
- 15:27:10for again critical workflows. Log that
- 15:27:13in your database. If you don't have a
- 15:27:14database set up, you can use sheets, you
- 15:27:16could use air table, you could use the
- 15:27:18native data tables here in N. Logging is
- 15:27:21a really important thing when it comes
- 15:27:22to security and compliance because
- 15:27:25people need to see what is particularly
- 15:27:27going on. Um, okay. So, we've talked
- 15:27:29about users, we've talked about PII
- 15:27:32handling, we've talked about web hook
- 15:27:33security,
- 15:27:35uh, version control. Obviously, you have
- 15:27:37this over here directly for um, and the
- 15:27:41versioning as well as um, in GitHub.
- 15:27:44Again, you can just go over here and say
- 15:27:46like
- 15:27:48section 25
- 15:27:50So I've version two
- 15:27:53added logging code node. So it's another
- 15:27:57option over there and boom. So now you
- 15:28:00can see section 25 just published now.
- 15:28:02Oh, you can go here to workflow history
- 15:28:04and you can take a look at different
- 15:28:06versions too. So you can see I have
- 15:28:08section 25 version one. I knew I I was
- 15:28:10going to show it to you guys and I
- 15:28:11apologize for going the wrong area, but
- 15:28:13you can see this is prior to me saving
- 15:28:15this. Then you have version one and then
- 15:28:17over here version two. It says version
- 15:28:19history is limited to one days. Upgrade
- 15:28:21plan to activate full history, which is
- 15:28:23kind of sucky. So, make sure to put this
- 15:28:25up in GitHub since it's only one day,
- 15:28:28but you can see we have this published
- 15:28:29on here for version two. Uh, so my
- 15:28:32GitHub thing, definitely do that,
- 15:28:34especially if you're on a lower tier
- 15:28:35account like I am. All right, naming
- 15:28:37conventions. It's also important to just
- 15:28:39name your nodes on that side. We've
- 15:28:42talked about naming nodes. Just be
- 15:28:43explicit.
- 15:28:45um not really security and compliance
- 15:28:46side of things but obviously if you
- 15:28:49can't read what's going on in a workflow
- 15:28:51uh that's important it's more this
- 15:28:53naming convention is more focused on the
- 15:28:55credentials itself building out
- 15:28:57documentation is another part of
- 15:28:59security and compliance so on the
- 15:29:01documentation side what do you need for
- 15:29:03documentation well what I would
- 15:29:05recommend documentation is onementation
- 15:29:08one add in add in sticky notes
- 15:29:13like this like this. I would also
- 15:29:16mention that you need to have like a
- 15:29:17Google doc, notion
- 15:29:20or whatever type of document you need to
- 15:29:23explain what is going on in the
- 15:29:24workflow. Regulators sometimes will ask
- 15:29:27for that type of stuff. Again, depends
- 15:29:28on your industry if you have regulation
- 15:29:30or not. Um, in addition, I think it's
- 15:29:33super easy just to add in a Loom video,
- 15:29:35Loom or YouTube video, just walking
- 15:29:37through what is going on. Uh, assuming
- 15:29:40they have like 80 90% of it done.
- 15:29:42Obviously you can update it if you have
- 15:29:43some major changes but that's the type
- 15:29:45of documentation I would recommend and
- 15:29:48uh really sticky notes is directly in
- 15:29:50any end the Google doc kind of just
- 15:29:52explains at a high level you have
- 15:29:53screenshots and kind of explains some of
- 15:29:55the additional logic outside of here and
- 15:29:58then you have aloom or YouTube so that's
- 15:29:59external documentation and I should just
- 15:30:02say um well you have the internal with
- 15:30:04the sticky notes and then you have
- 15:30:06external for these last two all right
- 15:30:10can also let's take a look at anything
- 15:30:12else.
- 15:30:14I think we're pretty good over here on
- 15:30:16that side of things. One other thing to
- 15:30:18mention, I I did talk about GitHub, but
- 15:30:20you could also store these
- 15:30:23workflows in Google Drive. So, you could
- 15:30:25just save the JSON automatically and
- 15:30:27populate this to Google Drive and you
- 15:30:29can do like a daily backup. So, maybe
- 15:30:31you want to have a daily backup on
- 15:30:33Google Drive. So like daily backup
- 15:30:37Google Drive or just a oneoff or one off
- 15:30:41for this. So again you can use Google
- 15:30:44Drive or GitHub. And I think that is
- 15:30:46essentially it for security and
- 15:30:49compliance. Obviously like I don't know
- 15:30:52everything about security and and
- 15:30:53compliance but because obviously I don't
- 15:30:57do it for a living but just coming from
- 15:31:00the payments industry this is some of
- 15:31:02the things that we personally require to
- 15:31:04build out workflows. So guardrails super
- 15:31:07super important. Make sure naming
- 15:31:08conventions correct. Make sure user
- 15:31:10management is correct. If you want to
- 15:31:12log your workflows like essentially just
- 15:31:13copy what I have in this code node. make
- 15:31:16sure that you have backups either in
- 15:31:17Google Drive, GitHub, and then
- 15:31:19versioning is important. Obviously on
- 15:31:21here with my plan, versioning is only
- 15:31:22limited to one day, which is really a
- 15:31:24bummer. So I would recommend you just do
- 15:31:26versioning on GitHub right now. I would
- 15:31:28hope that at some point in the future,
- 15:31:30and I don't know if any team will do it,
- 15:31:32when you publish these and set up
- 15:31:33versions, you could also just
- 15:31:34automatically send this to GitHub. I
- 15:31:36think that'd be a really, really cool
- 15:31:37feature, but I just don't see them doing
- 15:31:39that. And then lastly, documentation.
- 15:31:41Put documentation internally into the
- 15:31:43workflow. add documentation to like a
- 15:31:45Google doc or notion page and add in a
- 15:31:48loom or YouTube video just kind of
- 15:31:50walking through things and that is going
- 15:31:52to be our section on security and
- 15:31:55compliance. All right, so next I believe
- 15:31:57we are jumping into uh MCP and I will
- 15:32:00see you there. So for section 26 we're
- 15:32:03going to make this into a two-part
- 15:32:06video. The first part is going to be
- 15:32:07focusing on the instance level MCP. So
- 15:32:10what this allows us to do is connect our
- 15:32:13NAN workflows directly to third parties
- 15:32:16that support the NAN MCP connection. So
- 15:32:20recently Lovable has added this in as
- 15:32:23well as Claude. So I'm going to be
- 15:32:25showing you how we could do this in
- 15:32:26cloud. We'll do Lovable a little bit
- 15:32:28later when we talk about building out
- 15:32:30interfaces. Uh the second part is just
- 15:32:32going to be talking about MCP as a
- 15:32:33technology in general and we'll also uh
- 15:32:36go through a workflow and some of the
- 15:32:37nodes associated with that. uh when we
- 15:32:40jump into there. But the first part,
- 15:32:41let's focus on the instance level and
- 15:32:43get this connected directly into cloud
- 15:32:46and we'll start there. Okay. So, I'm
- 15:32:48going to show you a few things before we
- 15:32:50actually uh build out a workflow. So,
- 15:32:52the first thing is we need to add a
- 15:32:54first step and there's only a few
- 15:32:56different triggers that you can use
- 15:32:58currently with MCP. So, the first one is
- 15:33:01our chat trigger. So, that is one
- 15:33:03option. The next is going to be a web
- 15:33:06hook. So, we go to web hook like this.
- 15:33:08That is another option we could use. We
- 15:33:10could use a schedule, a schedule trigger
- 15:33:14as well as a form trigger. So before
- 15:33:17even deciding if you want to go NCP or
- 15:33:20not with your workflow, you have to make
- 15:33:22sure that your workflow starts with one
- 15:33:24of these four triggers. Now, I'm just
- 15:33:26going to use this chat trigger right now
- 15:33:29just for some testing purposes. I don't
- 15:33:30know if this will be the actual workflow
- 15:33:32we utilize in this example, but let's
- 15:33:35just assume we're having that. Okay,
- 15:33:37next step. What we're going to do, I'm
- 15:33:38just going to add in a very basic AI
- 15:33:40agent because it's so common to have a
- 15:33:42chat into an AI agent. And what we're
- 15:33:44going to do is just add a chat model.
- 15:33:45I'm going to add in Anthropic since it's
- 15:33:47all the way here at the top. Very simple
- 15:33:49workflow. So, I'm going to save this
- 15:33:50workflow. The next step is you have to
- 15:33:53have your workflow published to enable
- 15:33:55MCP. So, I'm going to click publish over
- 15:33:57here and we'll have our different
- 15:34:00version name, whatever the case may be.
- 15:34:02So, that's fine. We're going to publish
- 15:34:04it. Got it. Okay, next. These two are
- 15:34:07going to be in parallel. So, the first
- 15:34:08thing what we want to do is make sure we
- 15:34:10have our MCP settings correct. So, if
- 15:34:13you go to this gear icon to the bottom
- 15:34:15left and you choose instance level MCP,
- 15:34:18make sure that your MCP is enabled. So,
- 15:34:21I have two workflows right now that are
- 15:34:23MCP. I'm just going to remove access
- 15:34:25right now just for testing purposes and
- 15:34:28we'll disable it. So, yours probably
- 15:34:29looks like this and it says connect AI
- 15:34:31assistance to your workflow. Enable MCP
- 15:34:33access. So you can click that or just
- 15:34:35turn this on over here. So now that this
- 15:34:38is particularly enabled. So you should
- 15:34:40be fine there. So your next step is to
- 15:34:43go into these three dots over here and
- 15:34:46then click into settings. And you'll see
- 15:34:48I already have this available in MCP by
- 15:34:51default. You'll have it turned off. Then
- 15:34:52you turn this back on over here. So I'm
- 15:34:54going to click save. And maybe lost
- 15:34:58because someone else just updated this
- 15:34:59workflow. All right. So, I'm just going
- 15:35:01to refresh this really quick because I
- 15:35:03accidentally updated it elsewhere. Not a
- 15:35:06big deal. All right. So, three dots
- 15:35:10settings and we're going to say this is
- 15:35:12available in MCP. Cool. Now, the
- 15:35:14workflow is saved and we are good to go.
- 15:35:17If we go back to this instance level MCP
- 15:35:19and I refresh it because I deleted these
- 15:35:21other ones, you'll see we just have this
- 15:35:24initial one out of the gate and this was
- 15:35:26initial kind of description I was
- 15:35:28thinking about for this workflow. You
- 15:35:29might change it out, but by default,
- 15:35:31you'll probably have an empty
- 15:35:32description. Just go over here and click
- 15:35:34edit description. Write your description
- 15:35:36for the workflow because essentially
- 15:35:38what you're going to be doing is
- 15:35:39prompting uh and saying what workflow
- 15:35:42you want to use for a specific use case.
- 15:35:44And your description is really
- 15:35:45important. You can think of this as like
- 15:35:46a tool call when you're working with an
- 15:35:48AI agent. I mentioned how the
- 15:35:50descriptions are important. So, build
- 15:35:51this out. Obviously, this is pretty
- 15:35:53vague, but it'll be fine for our demo
- 15:35:55example. If you want to remove access,
- 15:35:58uh there's two different routes you
- 15:35:59could go. You could remove access over
- 15:36:01here or you could go back over here and
- 15:36:03then uh remove access. So you just go
- 15:36:06into the settings and available in MCP
- 15:36:09that is turned off. Okay, pretty basic
- 15:36:12on that side of things. And then now
- 15:36:14what I'm going to do is show you really
- 15:36:16quick how to set up everything on Claude
- 15:36:19and uh then we'll build out our
- 15:36:21workflow. To set this up directly in
- 15:36:23Claude, what we're going to do first is
- 15:36:25click this plus icon and then you'll see
- 15:36:26over here it says add connectors. Then
- 15:36:29what we're going to do is search
- 15:36:30directly for N. Now it's a pretty
- 15:36:32popular one. So I would assume it's
- 15:36:34towards the top. If you don't see that
- 15:36:36though, you can just go over here and
- 15:36:38search and type in N. And you'll see INA
- 15:36:42over here. It says access and run your
- 15:36:44NEN workflows. So click plus and it says
- 15:36:47get a URL from N. So you can click on
- 15:36:50that right over here.
- 15:36:53This will load up over here. My
- 15:36:55internet's a little slow right now. It
- 15:36:56might take a second. All right. So that
- 15:36:58link over here goes accessing N MCP
- 15:37:01server. There's a little bit more about
- 15:37:03it. Over here it says instance level
- 15:37:05MCP. Enable it which we already have
- 15:37:07that enabled. So I showed you that a
- 15:37:09little bit earlier. And then it says
- 15:37:11list of workflows etc. on that side of
- 15:37:13things. And uh over here a little bit
- 15:37:17more information settings instance level
- 15:37:19MCPS uh to get actual stuff over here it
- 15:37:22says connected clients no ooth collected
- 15:37:24clients that connect via oath will show
- 15:37:26up here see connection instructions. So
- 15:37:28this actually will give us our URL that
- 15:37:30we need. I kind of wish it actually
- 15:37:32brought us over here but that's okay.
- 15:37:34We'll click copy and we will go back
- 15:37:37into claude over here. We'll say paste
- 15:37:40the server URL. So that is that URL. So
- 15:37:43again to get to there I just went to
- 15:37:44settings bottom right instance level MCP
- 15:37:47and then you go to connected clients see
- 15:37:49connection instructions and I'll give
- 15:37:50you this over here. Then I just go back
- 15:37:54over here. I click continue and it says
- 15:37:56grant access to any complete the signin
- 15:37:58steps and it brought me to this screen.
- 15:38:01Cloud wants to access your nan instance.
- 15:38:03Get a list of your workflows. Get
- 15:38:04details for specific workflows. Execute
- 15:38:06workflows on your behalf. We're going to
- 15:38:08click allow. It says success. you will
- 15:38:10be soon redirected back to the client.
- 15:38:12And then we get brought back in over
- 15:38:14here and then we have this icon over
- 15:38:16here that says connected to an AI. All
- 15:38:19right, so I'm testing this now. First, I
- 15:38:22made one minor change. So in my
- 15:38:23workflow, I deleted the other triggers.
- 15:38:25I went to OpenAI chat model. I used GPT5
- 15:38:28Mini and I'm using web search. We're
- 15:38:30going to go the college football playoff
- 15:38:31route. And you'll see I said use N
- 15:38:34workflow section 26 to get University of
- 15:38:36Miami college football score. It says
- 15:38:38cloud wants you to search workflows from
- 15:38:39any end query section 26. I'm going to
- 15:38:41say allow once. Now it's going to search
- 15:38:43for my workflows.
- 15:38:46And uh we'll see. I found the workflow.
- 15:38:48Let me get details to execute it.
- 15:38:51Again, we'll just say
- 15:38:53allow once. We should probably allow
- 15:38:55always, but I'm just putting this allow
- 15:38:57once just to show you what it looks like
- 15:38:58on my screen. Next, I'll execute the
- 15:39:01workflow to get University of Miami
- 15:39:02college football scores.
- 15:39:04And uh we're doing chat chat input. was
- 15:39:07University of Miami College football
- 15:39:09score and allow once and it's executing
- 15:39:12my workflow right now. We'll take a look
- 15:39:14at the executions here in a second.
- 15:39:17Workflow is asking for clarification.
- 15:39:18Let me specify that we want the
- 15:39:19University Football and Hurricanes over
- 15:39:22here. Yep, that's fine. One of the
- 15:39:26things I noticed too when you use Open
- 15:39:29AI with chat is it will always ask you
- 15:39:32more clarifying questions. So, you can
- 15:39:34prompt it and say not to ask so many
- 15:39:36clarifying questions. I bet you it comes
- 15:39:38back.
- 15:39:41Yep, it's going to keep asking it. It's
- 15:39:43because I wrote a bad prompt, but that's
- 15:39:44okay. We'll say that's fine.
- 15:39:48And I didn't even put memory on here, so
- 15:39:50it's probably going to have some issues.
- 15:39:53But you see, it's going back and forth
- 15:39:54now with our MCP.
- 15:39:57And uh
- 15:40:00I swear if it comes back with another
- 15:40:01question, I'm just going to stop it.
- 15:40:03We're going to rerun it and I'm going to
- 15:40:04be more specific.
- 15:40:07All right, here we go. Look at that.
- 15:40:09Great news. Here's the score.
- 15:40:13And uh that was yesterday.
- 15:40:22Check this out. So, great news. Here's
- 15:40:23the University of Miami Cultural Ball
- 15:40:25score from the N workflow. Miami
- 15:40:26Hurricanes 24, Ohio State 14. Most
- 15:40:29recent game, the workflow used web
- 15:40:30search. And literally all I did is I
- 15:40:32used a chat trigger over here. I used an
- 15:40:35AI agent. I'd even add in additional
- 15:40:37prompts which I would recommend if
- 15:40:39you're building out something crazy that
- 15:40:41you do that something crazy something
- 15:40:43you push forward. And then you have open
- 15:40:45AI use GPT5 mini and covered responses
- 15:40:47that we did earlier. And all I did on
- 15:40:49this side of things is use this workflow
- 15:40:51to get upate information about cultural
- 15:40:52publics. Again, I could prompt this,
- 15:40:54write a wig better system message that I
- 15:40:57put in a college and essentially I want
- 15:40:59to get the latest college football score
- 15:41:02based around it with this workflow and
- 15:41:04have this do this correctly in Claude.
- 15:41:07And I also changed the model for two
- 15:41:09reasons. Number one, to show you I'm
- 15:41:10running an OpenAI chat model in Claude
- 15:41:13and also to use responses to get the
- 15:41:16latest score. Obviously, you can add in
- 15:41:18way more complicated things in over here
- 15:41:20as well, but yeah, it's going to be
- 15:41:22quite easy. We're actually going to
- 15:41:24expand on this into the next section as
- 15:41:26well when we cover into front ends. I
- 15:41:29just quickly also wanted to show you um
- 15:41:32there is an MCP tool available in any.
- 15:41:35So, kind of MCPS are going the route of
- 15:41:38like APIs for AI and we can go over here
- 15:41:42and search for MCP. So MCP client tool
- 15:41:45and you see what we have over here is a
- 15:41:48specific endpoint and you only have HTTP
- 15:41:51streamable right now. Unfortunately this
- 15:41:53is quite limited on the cloud side of
- 15:41:56things. When you go into self-hosted you
- 15:41:58have a lot more options rather than HTTP
- 15:42:02streamable but it'll give you a specific
- 15:42:04endpoint and when you work with MCP
- 15:42:07it'll give you a specific endpoint to
- 15:42:09call to. It'll tell you the server
- 15:42:11transport over here if there's any
- 15:42:13authentication that is needed and then
- 15:42:15you can specify every single tool that's
- 15:42:18available in the MCP server selected
- 15:42:20ones all or accept. So essentially what
- 15:42:23MCP looks like on the NEN side of
- 15:42:25things. Let me just show you. There's
- 15:42:26like an MCP trigger and this is your MCP
- 15:42:30client.
- 15:42:32There's the MCP trigger.
- 15:42:43And you'll notice over here we have
- 15:42:45different tools. So when you're
- 15:42:47connecting to a company's MCP server,
- 15:42:50typically they'll have different tools
- 15:42:51that you could use. In a case, let's
- 15:42:53say, for example, we want to build one
- 15:42:55directly in an AN. We can set up an MCP
- 15:42:58server trigger to have multiple Gmail
- 15:43:00tools.
- 15:43:02So, Gmail has quite a bit of tools as we
- 15:43:06saw and you can see if I go to my Gmail
- 15:43:08account one can set tool descriptions
- 15:43:12and then resource like let's say message
- 15:43:14like we have all these over here label
- 15:43:17we have all these over here draft so
- 15:43:19each tool is like one specific action
- 15:43:21that you could perform in Gmail and in
- 15:43:24the real world let's say for example
- 15:43:27fireall they have an MCP server so if I
- 15:43:30go to fireall
- 15:43:32All these tools are most likely
- 15:43:34available in the MCP of Firecol. And
- 15:43:37just to show you, I'm going to load this
- 15:43:38up on another tab. Firecrawl
- 15:43:41MCP.
- 15:43:43All right.
- 15:43:44So,
- 15:43:46take a look at this. This is
- 15:43:47documentation again. Firewall MCP
- 15:43:49server. Use Firewall's API through MCP.
- 15:43:52So, MCP server inte implements
- 15:43:54integrates firewall for web scraping
- 15:43:56capabilities. RCP server is open source.
- 15:43:58So installation you can either use a
- 15:44:01remote hosted URL server will look like
- 15:44:03or you get your API key from over here
- 15:44:06remote hosted URL. So they have a URL on
- 15:44:08this side of it as well that you would
- 15:44:10want to set up. And essentially what you
- 15:44:14could do and I'm going to cover this
- 15:44:15actually in another video for Firewall
- 15:44:18MCP
- 15:44:19but um going into this MCP client this
- 15:44:22works best on um self-hosted but you
- 15:44:25would set this up and go through it.
- 15:44:27Actually, I think I did fire call MCP
- 15:44:29when we were talking about it in our
- 15:44:31self-hosted video here on YouTube for
- 15:44:33MCP, but a little bit outside the scope
- 15:44:35on this one. Just wanted to show you MCP
- 15:44:37instance level. You can use these
- 15:44:39workflows and connect to it outside of
- 15:44:43NAN. Inside NAN as well, you can create
- 15:44:45your own MCP server. Uh you would have
- 15:44:47your MCP server trigger and you can see
- 15:44:49we have a URL over here and you can
- 15:44:51actually connect that over here as well.
- 15:44:53So, like imagine you have one workflow
- 15:44:56that just has like 10 tools that you
- 15:44:58think, okay, these are the only tools
- 15:44:59I'm going to use in Gmail. Instead of
- 15:45:01having 10 tools over here, which again,
- 15:45:03I don't recommend having a ton of tools,
- 15:45:04but if instead of having 10 tools, you
- 15:45:06can just use the 10 tools um from this
- 15:45:09MCP server. So, you can just click this.
- 15:45:13See, we can just set that up in over
- 15:45:15here. And then you can define what tools
- 15:45:17you specifically want because by default
- 15:45:19it's all. You could choose selected um
- 15:45:22and or you can go over all accept.
- 15:45:24Obviously I didn't set this up in
- 15:45:26another workflow so we're going to have
- 15:45:27some issues over there but yeah that is
- 15:45:30kind of MCP. So instance level use NAN
- 15:45:35workflow outside of NAN, right? And then
- 15:45:39you also inside NAN you have MCP server
- 15:45:42trigger which could have multiple tools
- 15:45:44that you attach to your AI agent. Cover
- 15:45:46this in way greater detail inside our
- 15:45:49MCP video. Uh so I would check that out.
- 15:45:52And uh yeah, next video what we're going
- 15:45:54to do is cover specifically rag. Now,
- 15:45:58rag could be a five to 10 hour video if
- 15:46:01we talked about all the nuances. So,
- 15:46:02I'll get you going with the basics on
- 15:46:05that side of things. What I'd recommend
- 15:46:06for you guys to do kind of like as a
- 15:46:08homework assignment over here, build a
- 15:46:10workflow like test these out with the
- 15:46:12different triggers and uh test it out
- 15:46:15specifically with Claude. So, this next
- 15:46:18section is going to be talk about adding
- 15:46:19a front end to a N workflow. There's
- 15:46:22pretty much three quick ways that you
- 15:46:24could utilize this. The first one is
- 15:46:27going to use chatub. And we've already
- 15:46:29covered chat hub a lot. So I'm not going
- 15:46:30to rehash our chatub section, but
- 15:46:33ideally if you want to have something
- 15:46:34natively in any ad and people can't see
- 15:46:36your workflows, chat hub is going to be
- 15:46:38one of the best approaches. Now if you
- 15:46:40want to add bit more to the complexity
- 15:46:43side of things, one of the things that I
- 15:46:44use at my full-time job is going to be
- 15:46:46Streamllet. So essentially what you can
- 15:46:48have is a web interface that is hosted
- 15:46:51on Streamllet's website for free. And
- 15:46:54you build this out with Python code. And
- 15:46:56if you don't know Python, don't worry.
- 15:46:57You can vibe code a lot of this with a
- 15:47:00large language model and just do some
- 15:47:02minor tweaking with the Python code.
- 15:47:04Although I do recommend that you learn
- 15:47:05Python. But essentially what this allows
- 15:47:08you to do is build a quick interface.
- 15:47:10And I've done this quite a bit with
- 15:47:12internal Python applications as well as
- 15:47:14Streamlit apps. So you have the
- 15:47:16interface and you send a web hook over
- 15:47:18into the N and then you perform specific
- 15:47:22actions. But what was really cool also
- 15:47:23about Streamlit is you can filter your
- 15:47:26data before it even goes into NAN and
- 15:47:28then you can send a response back if you
- 15:47:31would like. Um a little bit more
- 15:47:33complicated on that side of things, but
- 15:47:34you have to understand the web hook
- 15:47:36component of it. You're going to have to
- 15:47:37understand um any type of data cleanup
- 15:47:39that you specifically need, but that is
- 15:47:41available. And then lastly, we can use
- 15:47:43MCP and use a builder such as Lovable to
- 15:47:46create a front end for us. Now, there's
- 15:47:48going to be an additional cost
- 15:47:49associated with it because um they
- 15:47:52aren't always free, but that is a third
- 15:47:54approach that we could specifically
- 15:47:56take. So, I'm not going to do ChatHub,
- 15:47:58but I want to show you Streamlit right
- 15:48:00now. So, I'm just going into Streamlit
- 15:48:03over here. And this is a Python library,
- 15:48:06and they have constant updates. You can
- 15:48:08see date and time widget over here. And
- 15:48:10just to show you what this looks like,
- 15:48:12literally just a few lines of Python
- 15:48:13code. You have something like this, my
- 15:48:15first app, hello world. And uh it says
- 15:48:18right over here, trust by 90% of
- 15:48:20Fortune50 companies.
- 15:48:23And you can see like it's very easy
- 15:48:25code. And you build these interfaces
- 15:48:27like this. And it's and I'm just
- 15:48:29dragging and dropping this over here.
- 15:48:31You can browse files and upload the
- 15:48:33files. But this is just like a a really
- 15:48:35enhanced form that you could utilize um
- 15:48:38outside of any and obviously just you
- 15:48:41need a web hook call to populate this.
- 15:48:43So you can see what's going on over
- 15:48:45there and deploy instantly. So it says
- 15:48:47deploy streamllet community cloud which
- 15:48:49I've used go snowflake for
- 15:48:50enterprisegrade deployment or something
- 15:48:52else. And you can employ uh streamlit
- 15:48:54apps within AWS. You could do digital
- 15:48:57ocean and these are examples of apps
- 15:48:59that people have made. These are just
- 15:49:01data apps. And again, you could have a
- 15:49:03section that uh sends it directly into
- 15:49:07any end. I actually have a full video on
- 15:49:08my YouTube channel covering how to build
- 15:49:10out Streamlit within any end, but it's
- 15:49:12like an hour long, hour and a half. I
- 15:49:14know we don't have an hour and a half to
- 15:49:15talk about that today. And I don't know
- 15:49:16how many people are going to be
- 15:49:17interested in it, but let's take a look
- 15:49:19at a few other things. So, this would be
- 15:49:21like a Seattle weather dashboard. Let's
- 15:49:23take a look at this road map or a to-do
- 15:49:25list. And these are demos that people
- 15:49:27have created or demos that any has. So
- 15:49:29you can essentially build a dashboard
- 15:49:31and maybe you have a button over here
- 15:49:32that says send to Nan and you send it to
- 15:49:34N and it performs some sort of action.
- 15:49:37Uh here is a road map. Okay, I think
- 15:49:39this might actually be the N road map.
- 15:49:42So here's a to-do list. So you could
- 15:49:43have even a to-do list like as soon as
- 15:49:45someone checks something off then it
- 15:49:47goes and performs an action with a hand
- 15:49:49workflow. You can add things in over
- 15:49:50here. Um let's say record 15hour video
- 15:49:56and uh that has been added over here.
- 15:49:58delete all that are checked. So, you can
- 15:50:00delete this. So, pretty cool on the web
- 15:50:02app side of things. You don't always
- 15:50:04need to essentially use a lovable if you
- 15:50:07just want to have a basic interface. Uh
- 15:50:09let's take a look at some other stuff. I
- 15:50:11actually watch this YouTuber for
- 15:50:12streamlight content. Um let's add a few
- 15:50:15others.
- 15:50:17I think I read I think he has a book. I
- 15:50:19can't remember that was his stream book
- 15:50:21or not.
- 15:50:22Yeah. So, you can see you have a sidebar
- 15:50:24over here with different actions. you
- 15:50:26have notes like there's just so many
- 15:50:28different components and I'll just go to
- 15:50:30the component store so you guys can see
- 15:50:32over here as well you can add in plots
- 15:50:34grids
- 15:50:36there is a ton going on um yeah so that
- 15:50:40is streamlin essentially you can build
- 15:50:42out an interface with python code and uh
- 15:50:45essentially all you have to do is set it
- 15:50:46up a web hook web hook goes into nan and
- 15:50:50starts the specific workflow and
- 15:50:52obviously you can track things you can
- 15:50:53add a database here's a source code you
- 15:50:56can see some of the different options.
- 15:50:57So you can put in charts directly in
- 15:50:58over here. Like there's just so much
- 15:51:00that you could do with it. And uh yeah,
- 15:51:03so that's our first option. I just
- 15:51:07downloaded a remove background from
- 15:51:08image. Interesting. All right. So first
- 15:51:12side of it. The other I just wanted to
- 15:51:13quickly show you is Lovable. Now I have
- 15:51:15never used Lovable. This is going to be
- 15:51:17my first time. So we will uh we'll see
- 15:51:20how it goes. And I'm just going to click
- 15:51:22over here and
- 15:51:24let's see. We'll get log in
- 15:51:28with Google.
- 15:51:31We'll test this out.
- 15:51:37If it's free, I will uh test this out.
- 15:51:40We'll use dark mode. And uh all right.
- 15:51:43So, let's see if we can attach this into
- 15:51:45any end. We have
- 15:51:48I don't know how many credits we have,
- 15:51:50but we are going to try this.
- 15:51:53We're going to go to connectors, manage
- 15:51:54connectors,
- 15:51:56and we're going to look for N. So, we
- 15:51:58see N over here, and I'm going to say
- 15:52:00connect. Now, I need to get this N link
- 15:52:03again. So, I'm going to go over here and
- 15:52:05say connect. Grab this URL. Go back in
- 15:52:09over here, add an authorize.
- 15:52:12It's going to load this up for OOTH.
- 15:52:15Allow.
- 15:52:16And you can see MCP is super easy to set
- 15:52:18up. So, we have that over here. Great.
- 15:52:22And I'm going to say
- 15:52:27go over here. Is it still section 26?
- 15:52:30Okay, cool. For section
- 15:52:35for section 26, build a user interface
- 15:52:41where someone
- 15:52:43can ask
- 15:52:46about a football score.
- 15:52:50end workflow
- 15:52:52will then find the score and send it
- 15:52:57back. And I should say about a college
- 15:52:59football score.
- 15:53:02All right, let's give it a shot. I have
- 15:53:04no idea how long this will take. I don't
- 15:53:05know if I have enough credits, but uh we
- 15:53:07will see what happens.
- 15:53:11So, it is now thinking I assume this is
- 15:53:14going to take a few minutes. It says
- 15:53:16I'll build a slate college football over
- 15:53:17here. search workflows. Um, we're going
- 15:53:20to ask each time. We're just going to
- 15:53:22say allow. Obviously, you can automate
- 15:53:24this as well. I just want to show you
- 15:53:25the questions it's going to ask me. So,
- 15:53:27it's going to search for these.
- 15:53:30Get workflow details. I'm going to click
- 15:53:31allow. Cool. So, it's saying what it's
- 15:53:33going to do. Dark theme with vibrant
- 15:53:35orange and gold accent. Football energy.
- 15:53:37Bold condensed typography. Card based
- 15:53:39results with subtle animations. Load
- 15:53:41states with pulse effects. So, hopefully
- 15:53:44this works correctly. This is pretty
- 15:53:46cool to see. Obviously, I really haven't
- 15:53:48dove in on this side of things as of
- 15:53:51yet, but we'll see how it goes. All
- 15:53:54right, so now we have this interface
- 15:53:56over here. College football scorefinder
- 15:53:58powered by AI, real time scores, and
- 15:54:00playoff updates. All right, so we
- 15:54:03already have what is the score of the
- 15:54:04Ohio State who won Texas versus Georgia.
- 15:54:08Ohio State won was last night. We put
- 15:54:11that over here. Oh, that's Ohio State
- 15:54:12Notre Dame. This is still a little bit
- 15:54:14behind. What was the score of the Ohio
- 15:54:16State versus Miami game? Miami game.
- 15:54:20We're going to search it over here and
- 15:54:22let's see what happens. Now, this I will
- 15:54:24say looks amazing right out of the gate
- 15:54:30and it says query what was the score of
- 15:54:32Miami game to get real scores. Then
- 15:54:34workflow will be executed with your
- 15:54:36information. The AI agent will search
- 15:54:37update playoff information results
- 15:54:39workflow. So, it's interesting. Oh, I
- 15:54:43have to click allow. I'm like, where are
- 15:54:45we going to get the results back? But
- 15:54:46we're going to click allow over here and
- 15:54:49we'll see it coming back. But this is
- 15:54:52really cool. Obviously, I don't know if
- 15:54:55all the code in the back end is correct.
- 15:54:57I'm not a front-end engineer, but it's
- 15:55:00asking a clarifying question. Let me
- 15:55:01provide a little bit more. Let's say
- 15:55:03allow.
- 15:55:05What is the question we're going to get
- 15:55:06back?
- 15:55:11I did update the prompt a little bit. I
- 15:55:13didn't go um full detail, but just to
- 15:55:16show you really quick.
- 15:55:21This is the new uh system message I put.
- 15:55:23Obviously, I would change this up
- 15:55:25completely for another one. Workflow
- 15:55:28works and return Ohio State defeated
- 15:55:31Notre Dame. Now, I need to enable
- 15:55:33lovable cloud so we can create an edge
- 15:55:34function that will call the workflow
- 15:55:36from the front end. Let's click allow.
- 15:55:38But why didn't it present the results
- 15:55:41over here? I wonder if it's just because
- 15:55:42of some settings.
- 15:55:45Um, I mean, again, this design looks
- 15:55:48nice, but I want to see like if I type
- 15:55:52this in, I want the results to be right
- 15:55:53here because it says score results over
- 15:55:55here. It just gives me this.
- 15:56:01Okay. So, I think this is going through
- 15:56:03and editing this now. I never added any
- 15:56:07credit card information or anything like
- 15:56:08that. So, I don't even know the pricing.
- 15:56:11We can take a look at pricing here in a
- 15:56:12second. And it looks like it's going
- 15:56:14through again.
- 15:56:16And uh we'll check it one more time once
- 15:56:19this goes through. I think there's some
- 15:56:21games going on now as well. Let me just
- 15:56:22double check. There's three games going
- 15:56:24on today. I want to say football scores.
- 15:56:27I haven't even seen them because I've
- 15:56:29been busy recording. All right. Oregon's
- 15:56:31winning 23 nothing
- 15:56:34right now. Let's see what's else going
- 15:56:36on.
- 15:56:38Alabama Indiana starts in 30 minutes and
- 15:56:41then misses later versus Georgia. So,
- 15:56:44we'll test uh
- 15:56:46the Oregon Texas Tech. Oh, it's over
- 15:56:48Oregon one.
- 15:56:50All right, this is editing right now.
- 15:56:53I'll tech. We'll test this one for next
- 15:56:56one.
- 15:57:00It is still going. It's taking a
- 15:57:03screenshot, it says. All right, it says
- 15:57:05it is ready.
- 15:57:07Cool.
- 15:57:10So,
- 15:57:13I think we're ready to test it. Okay.
- 15:57:15So, what is
- 15:57:19the Oregon
- 15:57:21Texas
- 15:57:24Tech score? Let's see what happens this
- 15:57:26time. So, I'm going to search it. Score
- 15:57:29result. Your query would be processed by
- 15:57:31the Nan workflow. I guess I have to
- 15:57:33allow this again.
- 15:57:36I don't know. I feel like I'm missing
- 15:57:37something.
- 15:57:40Feel like I'm missing something. Unless
- 15:57:42I have to preview it out over here.
- 15:57:53Says search information retrieved. Let's
- 15:57:55see executions.
- 15:58:00So this is our execution
- 15:58:03and this came directly from over there.
- 15:58:05I don't see the execution of the one
- 15:58:06that I just tested. You can see the
- 15:58:09other execution.
- 15:58:13Which do you mean football or
- 15:58:14basketball? You have a date or season in
- 15:58:16mind. Most recent. I should say latest
- 15:58:19as a prompt.
- 15:58:23And I say that over here. I guess I need
- 15:58:24to say do not ask for flying questions.
- 15:58:26Do not ask
- 15:58:30questions. This happens all the time
- 15:58:31with GPT
- 15:58:33five. We'll save this over here. You
- 15:58:35know what the other thing is? I didn't
- 15:58:36publish the latest version. That's
- 15:58:38probably why. Easy mistake. Either way,
- 15:58:42this was building out a front end.
- 15:58:44Obviously, you can still constantly mess
- 15:58:46with it and test it out. But just wanted
- 15:58:50to show you a few different approaches.
- 15:58:52Chatub, you could use Streamlit or you
- 15:58:54could use a tool like Lovable to build
- 15:58:56this out. Obviously, if you're using
- 15:58:57Lovable, check your work, make sure it
- 15:58:59is correct. I I think this is a really
- 15:59:01cool design that it built out right
- 15:59:03away. All right, so next one we're going
- 15:59:05to jump into is Rag. Keep up the great
- 15:59:08work. We're almost done with this course
- 15:59:09and I will see you in the next video. So
- 15:59:11for this section, we're going to be
- 15:59:12covering something called retrieval
- 15:59:13augmented generation. Everyone calls it
- 15:59:16rag because that is a wordful and I'm
- 15:59:19just going to continue to call it rag
- 15:59:20from here on out. So, if I was going to
- 15:59:23make a full section covered about Rag
- 15:59:26and all the different types of vector
- 15:59:27databases and all the technical
- 15:59:29components about it and where the future
- 15:59:30of Rag is heading towards, that video
- 15:59:33will easily be three, four, five plus
- 15:59:35hours, if not longer. And because this
- 15:59:39course is really focused on teaching you
- 15:59:40the basics of NE, I am not going to do
- 15:59:43that in this section. In fact, this is
- 15:59:45probably going to be a follow-up course
- 15:59:47here on the channel if there's enough
- 15:59:49interest about it. Again, there's just
- 15:59:51so many different types of techniques.
- 15:59:52There's so many types of vector
- 15:59:53databases and it would be very tough to
- 15:59:55cram all that into one specific video
- 15:59:58over here when we're covering the basics
- 15:59:59of all these different types of
- 16:00:01sections. So, if you do want to learn a
- 16:00:03little bit more about Rag and you're
- 16:00:05interested in that course, just let me
- 16:00:06know down below in the comment section.
- 16:00:08I'm really inclined to make it. I think
- 16:00:11it would be a really fun and interesting
- 16:00:12video as well. But over here, what we're
- 16:00:15going to do is a very basic rag
- 16:00:17tutorial. First, what we're going to
- 16:00:19cover is how you can use your own data
- 16:00:22simply with Open AI. And that's going to
- 16:00:25be probably the easiest way for you to
- 16:00:26get started with Rag. And then we're
- 16:00:28going to cover a more advanced rag
- 16:00:31pipeline as well as uh uploading data,
- 16:00:34embedding it, and and different things
- 16:00:35like that. Now, what is the real purpose
- 16:00:38of rag? I haven't even really talked
- 16:00:40about that. So, our AI agents, we
- 16:00:42already know that there's a limitation
- 16:00:44sometimes on uh the knowledge based off
- 16:00:46of the knowledge cut off date. So if
- 16:00:48you're working with AI agents, sometimes
- 16:00:49they only have knowledge up through 2024
- 16:00:51or specific time in 2025. However, one
- 16:00:55big glaring issue with AI agents and
- 16:00:58other AI nodes, they just don't have
- 16:01:00access to personal data. Every single
- 16:01:02company has SOPs, or at least I'd hope
- 16:01:05that they do, and data that is not
- 16:01:07public online. And because of that,
- 16:01:11these AI agents are not trained on it.
- 16:01:13These AI agents essentially are trained
- 16:01:15on scraped data online. And because
- 16:01:17companies have their own internal
- 16:01:19policies or internal procedures, they
- 16:01:21just don't have that specific knowledge.
- 16:01:24So, Rag essentially helps AI agents with
- 16:01:28personal information for a company,
- 16:01:30which really empowers them a lot because
- 16:01:33why you want to have an AI agent? You
- 16:01:34want to have them take action based off
- 16:01:37of your own specific policies in most
- 16:01:39cases. So essentially by building out
- 16:01:42something pretty thorough with rag,
- 16:01:44you're going to give specific context to
- 16:01:46an AI agent based off information that
- 16:01:49is held within a vector database. Now
- 16:01:52what a vector database is, you can store
- 16:01:55different types of files directly in
- 16:01:58there. And uh you'll be doing this
- 16:02:00through something called a pipeline. And
- 16:02:03essentially what happens over there is
- 16:02:05someone will upload a file. We're going
- 16:02:07to embed the specific file. Don't worry,
- 16:02:09we're going to go over all the details
- 16:02:11about embedding and how a pipeline
- 16:02:13works. But regardless, someone uploads a
- 16:02:15file, we're going to embed the file, and
- 16:02:17then we're going to populate it within a
- 16:02:19vector store. And this is going to be
- 16:02:22really fun to cover. I am going to give
- 16:02:24you a little bit of warning. This is
- 16:02:25probably one of the more technical
- 16:02:27components of this video. And don't
- 16:02:29worry if Rag doesn't click right away.
- 16:02:32All you need to know is that Rag
- 16:02:34essentially improves our agents with
- 16:02:37private data. So let's jump into a very
- 16:02:40basic example with OpenAI. Then let's
- 16:02:42take a look at building out a pipeline
- 16:02:45and uh utilizing it in practice. So I'm
- 16:02:48in Nan now. I want to show you guys
- 16:02:50first the most basic form of ARG and
- 16:02:54we're going to be using Open AI for
- 16:02:55this. So essentially OpenAI has a super
- 16:02:58easy way where all we have to do is
- 16:02:59upload a file and it does all of the
- 16:03:02work for us. Now it is a little bit
- 16:03:04pricey. Uh, so you get charged 10 cents
- 16:03:06per day once you have over a gigabyte
- 16:03:09worth of files over here. And I believe
- 16:03:11it's 10 cents per gigabyte as well. So
- 16:03:14let me show you first where you could
- 16:03:15access this. So go to
- 16:03:16platform.openai.com/hat.
- 16:03:19And then we go over here on that side of
- 16:03:21things. And what we're going to want to
- 16:03:23do is go specifically into storage. So
- 16:03:27now we have storage on here. And then
- 16:03:29we're going to want to go to our vector
- 16:03:31stores. So we have our vector stores
- 16:03:33like this. The first thing that we need
- 16:03:35to do is create a vector store. So we're
- 16:03:38going to create this over here. And
- 16:03:40let's set a name for this. Now I'm going
- 16:03:42to call this old judge. And I'll explain
- 16:03:44why in a second. So we have old judge
- 16:03:46over here. And then I'm going to click
- 16:03:48this icon. So it says vector storevs has
- 16:03:52been updated. Now we don't have any
- 16:03:54particular files in here. So let me show
- 16:03:56you the file which we're going to be
- 16:03:57using for this particular video. So, I
- 16:04:00found this article over here talking
- 16:04:02about old judge baseball cards from the
- 16:04:041880s and specifically the Union
- 16:04:07Association. So, the Union Association
- 16:04:09was like a very early baseball league
- 16:04:12and there's not a lot of players in
- 16:04:14there that actually have cards. And this
- 16:04:16article talks about like there's no
- 16:04:17Union Association baseball cards, but
- 16:04:20some of the players that played in the
- 16:04:21Union Association and moved on to
- 16:04:23different baseball leagues have old
- 16:04:25judge cards. And it talks about I
- 16:04:27believe five different players. So, this
- 16:04:28is like super niche because first off,
- 16:04:30whole judge cards. Not even a lot of
- 16:04:32baseball card collectors know about it.
- 16:04:34I'd probably say like anywhere from 1 to
- 16:04:365% of baseball card collectors know
- 16:04:38about that. And then you're talking
- 16:04:39about a forgotten essentially baseball
- 16:04:42league. Uh most people know American
- 16:04:44League and National League, but um there
- 16:04:46has been other leagues as well
- 16:04:47throughout baseball's history. This is
- 16:04:49the Union Association, which I would
- 16:04:51probably say like 0.1% of baseball fans
- 16:04:54know, maybe 0.01%. So compile that with
- 16:04:57judge of baseball cards. Very few people
- 16:04:59know this. And I doubt this is something
- 16:05:01that
- 16:05:02our chat models would know right away.
- 16:05:04So either way, what we're going to do
- 16:05:05now is upload this over here. I just put
- 16:05:08this into a Google Doc. Obviously, you
- 16:05:10guys will have access to this article
- 16:05:12and you can do the same. So all we're
- 16:05:14going to do now is go to the bottom
- 16:05:15where it says add files and we're going
- 16:05:17to upload a file over here and upload
- 16:05:19that document. Then we're going to click
- 16:05:21attach and it's going to be uploaded
- 16:05:23into this particular vector store. Might
- 16:05:26have to wait a second just for this to
- 16:05:27upload. I notice sometimes I have to
- 16:05:29refresh. So I'm just going to refresh
- 16:05:31really fast and hopefully it is in over
- 16:05:33here. And you can see once I refreshed
- 16:05:35it, it is particularly in here. So we're
- 16:05:37good to go. All right. So next thing
- 16:05:38we're going to do is add a chat model or
- 16:05:40not chat. Yeah, we're going to add in an
- 16:05:42agent, but we're going to use a chat
- 16:05:44trigger. So chat trigger and then we're
- 16:05:46going to go and add in AI agent. So AI
- 16:05:50agent like that. Also, I apologize if
- 16:05:52you hear the dog barking in the
- 16:05:54background. Um, so we have our AI agent
- 16:05:56over here. We need to make sure we use
- 16:05:58Open AI. So we're going to go into Open
- 16:06:00AI like this. And make sure you choose
- 16:06:02your correct account model. You're going
- 16:06:05to have to use a GPT5 model. So I'm
- 16:06:07going over here using mini. So we're
- 16:06:09going to say mini like this.
- 16:06:12And uh, we have that in here. Great. The
- 16:06:14next thing we're going to do is use the
- 16:06:16responses API which is already turned
- 16:06:17on. We're going to use a built-in tool.
- 16:06:19So, click add built-in tool and we're
- 16:06:21going to use file search. Now, there's
- 16:06:22two things that we're going to have to
- 16:06:23do. We're going to have to use our
- 16:06:25vector store ID as well as filters. So,
- 16:06:27first let me show you how we can set
- 16:06:29this up. So, first thing you're going to
- 16:06:32do is go over here and you see how this
- 16:06:33says ID. So, make sure to copy that. And
- 16:06:36this is in our vector store side. So,
- 16:06:38copy that over here. And then what we're
- 16:06:41going to do is put in double quotes. So,
- 16:06:43make sure double quotes in this bracket
- 16:06:45that specific ID. Make sure it's 100%
- 16:06:47matched to what you have. So, just copy
- 16:06:49and paste it. Next, we're going to have
- 16:06:50some filters. So, I already have this
- 16:06:53saved off to the side. Uh, if you don't
- 16:06:54have these filters, it sometimes is a
- 16:06:56little bit wonky. So, add in filters
- 16:06:58like this and then type and. So, I just
- 16:07:00copy and paste this every time I'm using
- 16:07:02that specific vector store in AI agent.
- 16:07:06So, now we have both of these over here
- 16:07:08and we should be pretty good. I'm just
- 16:07:09going to save this. Just going to double
- 16:07:11check that our file is correct. Over
- 16:07:13here we see our file and yeah, we're
- 16:07:15good to go. So what we're going to do
- 16:07:17now is open our chat and we're going to
- 16:07:20ask a question. So based off this
- 16:07:22document, I'm going to ask over here,
- 16:07:24what is the best union player with a old
- 16:07:28judge card? So very basic question. What
- 16:07:31is the best union association
- 16:07:36player with an old judge card?
- 16:07:40So type that in and we will see what
- 16:07:42happens. And again, you can think about
- 16:07:43this like this is an internal document,
- 16:07:45something that hasn't seen the web.
- 16:07:46Obviously, I'm not going to build out an
- 16:07:47internal document right now. I'm just
- 16:07:49going to go and grab something I thought
- 16:07:51was particularly niche. But, uh, we'll
- 16:07:53see what happens on this side of it. And
- 16:07:56I'm sure at some point Open AI scraped
- 16:07:58this site, but regardless, I want to
- 16:08:01show you that it's literally just
- 16:08:02searching through the file. And it says,
- 16:08:03"The best Union associate player who
- 16:08:04appears in the old judge set is
- 16:08:05generally judged to be Fred Shershot
- 16:08:08Dunlap. He was a crown jewel of the 1884
- 16:08:10St. Louis Maroons. led the UA virtually
- 16:08:13in every offensive category. Like that
- 16:08:15is insane. 256 OPS plus and the author
- 16:08:18calls Hall of Fame worthy as a peak.
- 16:08:20Number one provided old judge UA right
- 16:08:22up. Other strong candidates old judge
- 16:08:24includes fetcher Jim McCormack who I
- 16:08:26don't believe is in the Hall of Fame. Um
- 16:08:28should be and short stop Jack Glasslock
- 16:08:30also not in the Hall of Fame. Tommy
- 16:08:31McCarthy also notable as the only UA
- 16:08:33player elected to the Hall of Fame. Bam.
- 16:08:35I knew that. Um would you like to see
- 16:08:37any evaluations for any specific old
- 16:08:39judge card? So, we essentially went
- 16:08:42through this document. We grabbed the
- 16:08:44most popular players over here and uh
- 16:08:47yeah, so I'm going to say tell me about
- 16:08:49Jack Clemens next. So, her Clemens
- 16:08:54tell me about again this is going to
- 16:08:57look specifically at our document and
- 16:09:00hopefully it tells us the particular
- 16:09:02answer. And again, it might take a
- 16:09:04little bit to search all this and get
- 16:09:07the actual answer. And it says,
- 16:09:09"According to the old judge union notes
- 16:09:10that you provided, Jack Clemens was a
- 16:09:12leading 19th century MLB catcher known
- 16:09:14as several distinctions." And it tells
- 16:09:15you a little bit more over here. I can
- 16:09:17pull together a full career timeline
- 16:09:18season by season stats, photos from the
- 16:09:20document, or check modern databases for
- 16:09:21additional context. And I'm going to say
- 16:09:23check
- 16:09:25databases for additional
- 16:09:29context on Jack Clemens. Now, I don't
- 16:09:32have even any memory set up over here,
- 16:09:34which I should have put on because we're
- 16:09:36having a conversation. Um, but anyways,
- 16:09:39we're going back and forth. Now, while
- 16:09:41that answer is going over there, I do
- 16:09:42want to show you that there is a few
- 16:09:45special options you can choose with your
- 16:09:47files when you upload. So, I'm just
- 16:09:48going to upload the same file again. And
- 16:09:51what you'll notice, and we have advanced
- 16:09:53options over here. So, we're going to
- 16:09:54actually be talking about chunk size as
- 16:09:57well as chunk overlap here in this next
- 16:10:00section. But by default, you didn't even
- 16:10:01have to worry about it. You can see
- 16:10:03OpenAI used 800 and then 400. So, let's
- 16:10:06actually use those same settings when
- 16:10:08we're going to build out a custom
- 16:10:10pipeline. It seems very intimidating,
- 16:10:12but it's honestly not that bad. And here
- 16:10:16we go. I searched upload files and found
- 16:10:17material about this. It just searched
- 16:10:19over here in the files, but obviously
- 16:10:21you can add in other tools and things
- 16:10:23like that as well uh to search the web
- 16:10:25and etc. But uh regardless, I I also, by
- 16:10:28the way, I didn't even put in anything
- 16:10:29else over here. I literally just kept
- 16:10:31this as by default. So I wouldn't
- 16:10:33recommend you do that in production, but
- 16:10:35for a YouTube video just to show you,
- 16:10:37hey, we can search our files directly
- 16:10:39with something that we upload into
- 16:10:40OpenAI. It takes less than 5 minutes to
- 16:10:43do so. I think it's pretty cool. So that
- 16:10:45is our example of Rag Basics with
- 16:10:48OpenAI. You don't even have to worry
- 16:10:50about anything technical. All we had to
- 16:10:52do is upload a file. But this next
- 16:10:54section, I'm going to be showing you how
- 16:10:55to build out a custom pipeline where
- 16:10:57we're going to talk about embedding and
- 16:10:59then we're going to actually ask
- 16:11:00questions with it. We're going to be
- 16:11:02using a vector database called Pine
- 16:11:04Cone. It is free to use out of the box.
- 16:11:06So, you don't have to worry about
- 16:11:07anything like that. Obviously, you're
- 16:11:08going to have to set up an API key and
- 16:11:10stuff like that, which I will show you
- 16:11:11how to do and we're going to jump into
- 16:11:13that right now. All right, let's uh
- 16:11:16cover more advanced rag this time. What
- 16:11:18we're going to do is instead of just
- 16:11:20uploading a file, we're going to go
- 16:11:22through and actually build a pipeline
- 16:11:25and then ask questions based around it.
- 16:11:26I'm going to teach you all the different
- 16:11:28components as well as we build through
- 16:11:30it. So, the first thing we're going to
- 16:11:32do is we're going to grab a file and
- 16:11:33upload it. So, you should be very
- 16:11:36familiar with this, but we're going to
- 16:11:38do a form. And I don't know why I
- 16:11:40searching form submission, but it's just
- 16:11:42an AN form. And uh what we're going to
- 16:11:45do is a trigger on new NAM form event.
- 16:11:47So, you'll see on new form submission
- 16:11:48over here. Um we're going to label this
- 16:11:51over here file uploader.
- 16:11:55And we're just going to add a file. So,
- 16:11:57we're going to say file.
- 16:12:00And what is the file?
- 16:12:04We'll just do file. Cool. And I'm only
- 16:12:06going to do one upload file at a time.
- 16:12:08Now, here's the deal. When you upload
- 16:12:10files into a vector store, people have
- 16:12:13pretty complicated pipelines just
- 16:12:15depending what they are. For example,
- 16:12:18let's say you have an if node over here
- 16:12:21or a switch. So like we'll write an if
- 16:12:23or switch
- 16:12:26based on file type.
- 16:12:28See this through like a PDF. So imagine
- 16:12:31if something was a PDF and you have an
- 16:12:34if. So if it's a PDF, you might want to
- 16:12:37go over here and use OCR
- 16:12:40and we'll say OCR
- 16:12:44to put Mistral not OCR but you'll use
- 16:12:46like a Mistl and extract text from that
- 16:12:49PDF document. Otherwise, you know, your
- 16:12:53file should be fine and you can load
- 16:12:55this into the vector store. I'm just
- 16:12:57going to be building out the most basic
- 16:12:59pipeline for you guys. These can get
- 16:13:02very complicated and um outside the
- 16:13:05scope of today's video. So, what I'm
- 16:13:06going to do is use a a vector database.
- 16:13:09Now, what I'm going to use specifically
- 16:13:11is Pine Cone. So, if you go to Pine Cone
- 16:13:14vector store over here, this is what I
- 16:13:16want to do. And I'm going to say add
- 16:13:18documents to a vector store. So you saw
- 16:13:20how we added documents to OpenAI. We're
- 16:13:24just adding documents in this Pine Cone
- 16:13:26vector sort. There's a ton of different
- 16:13:27vector databases and out there, but
- 16:13:30we're going to use Pyone because it's
- 16:13:32pretty easy to set up and it's easy. So
- 16:13:35this brings me to the first section,
- 16:13:38which is going to be our embeddings. So
- 16:13:41if you click on this over here, you'll
- 16:13:43see there's a bunch of different
- 16:13:44embeddings over here. I would just start
- 16:13:46with OpenAI embeddings. and you'll see
- 16:13:49that you already have your OpenAI
- 16:13:51account and you'll be fine. And then
- 16:13:53there's different options. So small is
- 16:13:56cheaper. It's a little bit less accurate
- 16:13:58than large. So I would just recommend
- 16:14:00using large text embeddings. Um it's a
- 16:14:03little bit pricier, but I would
- 16:14:05recommend using that. And you'll see
- 16:14:06that we have embeddings. And you might
- 16:14:08be like, well, what does embeddings do?
- 16:14:11Well, essentially what embeddings does
- 16:14:14is it takes your text. So you can
- 16:14:16imagine you have a text like this.
- 16:14:19And what we're going to do is just have
- 16:14:20a text called nan. And this is getting
- 16:14:23it to set to be some sort of vector. And
- 16:14:26this sounds very confusing, but a vector
- 16:14:28is essentially like this. It's a bunch
- 16:14:30of numbers over here. And we'll say
- 16:14:32like.32
- 16:14:34or.34. We're just going to use this over
- 16:14:37here.11.
- 16:14:38And you get the point. These go on for
- 16:14:40quite a while. The size over here tells
- 16:14:44you how many embeddings that you
- 16:14:46specifically have. A large embedding or
- 16:14:48a small embedding. So, we're going to
- 16:14:51want to build this out because
- 16:14:53essentially words are going to have
- 16:14:55different meanings and I should say like
- 16:14:57chunks, but we're going to use a word
- 16:14:59example. So, imagine any n has something
- 16:15:01like this.
- 16:15:02Then you might want to use a tool like
- 16:15:04make and uh we're going to have very
- 16:15:08similar embeddings. We'll say like 0.12,
- 16:15:110.3 and 0.1 like this. And you can see
- 16:15:15that these are close together because
- 16:15:17any and make are both automation
- 16:15:19software. Then if you have something
- 16:15:21like Photoshop,
- 16:15:22well it is a software, it's going to be
- 16:15:24different. You might have something like
- 16:15:262.7
- 16:15:30and then
- 16:15:3118. So these are farther apart. And
- 16:15:35essentially what this does again um you
- 16:15:38take your text and you represent them in
- 16:15:40numbers. That's what our embeddings
- 16:15:42allows us to do. And um things that are
- 16:15:45closer together are going to have
- 16:15:47similar numbers whereas things that are
- 16:15:49different are going to be way off. So
- 16:15:50you can see Photoshop is farther from
- 16:15:51any make. Let's say I go over here and I
- 16:15:54add in a metal band in Metallica. And
- 16:15:57Metallica is going to just have
- 16:15:59completely different things. It's going
- 16:16:00to be like 08.8.
- 16:16:03let's say 08, right? It doesn't matter.
- 16:16:06And there's a lot more numbers
- 16:16:07associated with it. But you can see this
- 16:16:09is way farther away than Photoshop,
- 16:16:11which is a software, which is still far
- 16:16:13away from both NAN and make since
- 16:16:15they're very similar software providers.
- 16:16:17So essentially, that's what embedding
- 16:16:19is. It's changing our data into specific
- 16:16:22vectors. And that is our first part.
- 16:16:26Large uses 3072
- 16:16:28and small I want to say uses what is it
- 16:16:311536.
- 16:16:33And it's important that you keep this
- 16:16:35consistent across the board. So large
- 16:16:383072, small 1536.
- 16:16:41So next thing what we're going to do is
- 16:16:43add in a a document loader.
- 16:16:47So you'll see the document there's a
- 16:16:48star over here. So we need to add that.
- 16:16:50There's an option and it says default
- 16:16:52document loader. So choose that option.
- 16:16:56And you'll see over here we have our
- 16:16:58type of data. So since we're passing in
- 16:17:01a binary file over here, we need to make
- 16:17:04sure that our document loader uses a
- 16:17:06binary file. So you can see binary,
- 16:17:08we're going to say load specific data.
- 16:17:11And then what I'm going to say is data
- 16:17:13format. I'm going to choose a document
- 16:17:16over here. And uh you'll see load docx
- 16:17:20over here. So that's what I want to
- 16:17:21choose. And then we're going to say
- 16:17:23data. And then you have something called
- 16:17:25text splitting. So, this will tell you
- 16:17:27how you split up text in a document. By
- 16:17:31default, it's simple. What you see it
- 16:17:32says every 1,000 characters with a 200
- 16:17:34character overlap. Open AAI, if I
- 16:17:37remember correctly, was 800 and 400. I
- 16:17:39apologize for not knowing this right
- 16:17:40away, but um I recorded this a little
- 16:17:42bit earlier, although you'll see it
- 16:17:43right after. But you can specify text
- 16:17:46splitting. Keep it default if you want,
- 16:17:48but you can choose a custom option. Now,
- 16:17:50when you choose a custom option, you'll
- 16:17:52see that there is something called a
- 16:17:53text splitter down below.
- 16:17:58Our default data loader, let's add in a
- 16:18:00text splitter. And there's three
- 16:18:01options. You have the character text
- 16:18:03splitter, which is split text into
- 16:18:05chunks by characters. If you click over
- 16:18:06this, you choose [snorts] a separator.
- 16:18:08So, you can choose like a period or a
- 16:18:10new line or however you specifically
- 16:18:12want it on your characters. I don't
- 16:18:15recommend that approach. The other one
- 16:18:17over here is a token splitter. So this
- 16:18:19splits literally by a number of tokens.
- 16:18:22And if you remember a little bit earlier
- 16:18:23when we were talking about large
- 16:18:24language models, one of the ways that
- 16:18:26they um specifically count how much
- 16:18:29usage is by tokens. So tokens isn't
- 16:18:31exactly by characters. There's a little
- 16:18:34bit of difference between them. One I
- 16:18:36would recommend that you use is the
- 16:18:38recursive character text splitter. This
- 16:18:40takes kind of the bo best of both sides.
- 16:18:42So it splits text into chunks by
- 16:18:44characters recursively. Recommended for
- 16:18:45most use cases. So, for example, in this
- 16:18:47one, it'll recursively grab like
- 16:18:49paragraphs or specific breaks within
- 16:18:52your text. So, this is what I would
- 16:18:54recommend that you utilize and any end
- 16:18:56does as well. Then you'll see something
- 16:18:58that says chunk size and then chunk
- 16:19:00overlap. So, what chunk size essentially
- 16:19:02allows you to see is how many tokens of
- 16:19:05text are we going to keep together. And
- 16:19:07then overlap is going to be how much of
- 16:19:10the previous chunk is used. So, to show
- 16:19:12you a very basic example,
- 16:19:14let's create two chunks. We're going to
- 16:19:16start off with a chunk one and then
- 16:19:18we'll have like a chunk two just to
- 16:19:20explain the overlap. So imagine chunk
- 16:19:22one we say Bill lily strings
- 16:19:26is a jam
- 16:19:28band bluegrass
- 16:19:30guitarist.
- 16:19:32And then chunk two is going to use a
- 16:19:34little bit of overlap from chunk one and
- 16:19:36say um jam band bluegrass guitarist.
- 16:19:40He has played with
- 16:19:46fish
- 16:19:47and Tommy made three completely
- 16:19:50different styles
- 16:19:52and yeah that's fine over here. So
- 16:19:55you'll see with an overlap we keep some
- 16:19:57of the context of the earlier chunk so
- 16:19:59that way we have this here in the
- 16:20:01beginning and then we have our specific
- 16:20:03chunk underneath it. So that is a
- 16:20:05strategy a lot of people use. Obviously
- 16:20:06there's other strategies um fused with
- 16:20:08the data loader outside of Nen but
- 16:20:11really out of the three options use a
- 16:20:13recursive character text splitter. So
- 16:20:16that is our first part of it and this is
- 16:20:18like a very basic pipeline. We have to
- 16:20:22obviously set up everything in pine cone
- 16:20:24still because we have not done that as
- 16:20:26of yet. So we're going to have to choose
- 16:20:28our specific things in here. You can see
- 16:20:30we have pine cone API account. I'll have
- 16:20:32to show you how to set this up. We're
- 16:20:34going to insert documents for operation.
- 16:20:36Obviously, there's other things as well
- 16:20:37that you could utilize in over here. I
- 16:20:39haven't showed you the pine cone index
- 16:20:40and I haven't shown you the embedding
- 16:20:42batch size. So, a few other things that
- 16:20:44we're going to have to do, but this is
- 16:20:46the basics, right? We go over here, we
- 16:20:48submit through a form submission. We go
- 16:20:52and set up a pine cone vector store,
- 16:20:54which I haven't shown you yet. We're
- 16:20:55going to use an embeddings model. I just
- 16:20:57recommend using embeddings large. A
- 16:20:59little bit pricier, but a little better.
- 16:21:00You're going to have some sort of data
- 16:21:02loader and then you're going to have a
- 16:21:03recursive character text splitter.
- 16:21:06Easiest rag pipeline that you could set
- 16:21:09up on the other side of it. And I'll
- 16:21:12show you this here in a second. How do
- 16:21:14you utilize what has been built over
- 16:21:16here? Well, the first thing that you
- 16:21:17would want to do is have a chat trigger
- 16:21:19or however else you want to utilize
- 16:21:21this. I'm just going to use a chat
- 16:21:22trigger because we're going to ask
- 16:21:23questions about a document. And then
- 16:21:25what we can hop over here, there's a few
- 16:21:27different options. You can use an AI
- 16:21:29agent as one option. I see this used a
- 16:21:32lot. Or you can go over here and search
- 16:21:34for question. So you can see question
- 16:21:36and answer chain and you can go over
- 16:21:39here and ask about this as well. And
- 16:21:41this one over here as a model and a
- 16:21:43retriever. I'm just going to use an AI
- 16:21:45agent for this example, but this is
- 16:21:47another note I would highly recommend
- 16:21:49because you can go over here and use
- 16:21:51vector databases as well with this, but
- 16:21:55we're going to just focus on our H agent
- 16:21:56for this one. So, I'm going to close out
- 16:21:58of this. Inside our AI agent, what we're
- 16:22:01going to set up first is our OpenAI chat
- 16:22:04or OpenAI model. It could really be
- 16:22:06whatever model you want. Let's say we
- 16:22:08use Enthropic this side. So, this
- 16:22:10doesn't matter for the model. However,
- 16:22:12when we go to our Pine Cone vector
- 16:22:14store, which you'll see over here as a
- 16:22:16tool. So, if I go over here and search
- 16:22:17Pine Cone, you'll see pine cone matches.
- 16:22:21So, this is our vector store, right?
- 16:22:22We're using a pine cone vector store
- 16:22:24here.
- 16:22:25vector store over here. And what we have
- 16:22:28to still do is create our index and
- 16:22:30match all this. And that's fine. We'll
- 16:22:32cover this a little bit later
- 16:22:34and uh to set a description. And then
- 16:22:37after this, you want to use an
- 16:22:38embeddings model. And it should be the
- 16:22:41same exact model that you have over
- 16:22:42here. So sometimes I'll see people that
- 16:22:44try to have like both of these are the
- 16:22:46same over here. I just recommend you
- 16:22:48copy this over. And it's super important
- 16:22:50because if you don't have the correct
- 16:22:52embedding model, you are going to have
- 16:22:55issues. So make sure that these are the
- 16:22:57same. Whatever you have on your
- 16:22:58retrieval component as well as whatever
- 16:23:01you have when you're embedding your
- 16:23:03specific documents, you need to use the
- 16:23:05same exact embeddings model. You're
- 16:23:06going to have issues if you do not. So
- 16:23:11obviously like this is a very simplistic
- 16:23:13example over here. All we're doing is
- 16:23:14chat message into an AI agent. Um we can
- 16:23:17use whatever model we want over here.
- 16:23:18However, your open AI needs to be the
- 16:23:20same. There's a lot more complexity that
- 16:23:24we can do and I'll show you a little bit
- 16:23:25more, but I want to go into Pineco now.
- 16:23:28All right. So, we're going to build this
- 16:23:30out in Pine Cone now. So, go to pine
- 16:23:32cone.io. You'll get brought to this page
- 16:23:35right over here. Make sure you click the
- 16:23:37sign up and it's going to essentially
- 16:23:39have you go through that process. I've
- 16:23:41already signed up, so I'm not going to
- 16:23:42go through that. Really quick, I wanted
- 16:23:44to show you where you can find your API
- 16:23:46key. So I'm back over here. Let's
- 16:23:48imagine I go back here and you'll see I
- 16:23:51have two indexes and we'll create an
- 16:23:53index over here. But the first thing you
- 16:23:54have to do is go to your API keys. So
- 16:23:56you'll see I have API keys over here.
- 16:23:58Just click plus to make an API key.
- 16:24:01Going back into any you'll see it says
- 16:24:03credentials to connect with with our
- 16:24:04Pine Cone API. So all you got to do is
- 16:24:07paste in your API key over here. Again,
- 16:24:10I've already set my API key up so I'm
- 16:24:13not going to do that. But it's literally
- 16:24:15two seconds. just go API key once you
- 16:24:17have your specific account. All right,
- 16:24:19so next thing we're going to do is click
- 16:24:21create index. And what we'll do is
- 16:24:25choose an index name. I'm just going to
- 16:24:26call this old judge since that's what
- 16:24:28we're going to be taking a look at. And
- 16:24:31the next thing is you choosing your
- 16:24:33embedding model. So as I mentioned, it's
- 16:24:35important that you set this one to one.
- 16:24:37We already defined our embedding model
- 16:24:39over here. And if you remember, it's uh
- 16:24:41three large. So just go over here and
- 16:24:44search for three large. And this is
- 16:24:46three small. This is three large. The
- 16:24:49next thing that's really important is to
- 16:24:51change your dimensions. So three large
- 16:24:53uses 3072 dimensions. You'll see by
- 16:24:56default over here we have 1,024.
- 16:24:59So make sure you choose 3,72.
- 16:25:02Nothing else changes over here. Uh we're
- 16:25:04going to use AWS. And then I'm just
- 16:25:06using this US East1. It's the closest
- 16:25:08region uh over here. and uh deletion
- 16:25:12protected. I just have this off because
- 16:25:14this is just a testing account. So I'm
- 16:25:16clicking free index
- 16:25:19and it might take a second and it says
- 16:25:22index is initializing. It says no
- 16:25:24records yet. A record is an object you
- 16:25:26can add an index for creating a vector
- 16:25:27and metadata. So what we're going to do
- 16:25:30is just click over here and go back into
- 16:25:32part two. I'm going to just close out
- 16:25:34part one because we don't need this here
- 16:25:35anymore. And what we're going to do is
- 16:25:38now configure this. So go into our pine
- 16:25:41cone index. We need to look for the one
- 16:25:43that we just created. And you'll see I
- 16:25:45have old judge over here. So that's the
- 16:25:47only thing I had to change. And then
- 16:25:49over here as well, we're going to choose
- 16:25:51old judge. So we'll actually set up this
- 16:25:54prompt here in a second. But I just want
- 16:25:57to set these both up from that side of.
- 16:26:00So now what I'm going to do is
- 16:26:02specifically add in our document.
- 16:26:04Remember our we have a large document.
- 16:26:05We're going to chunk it into smaller
- 16:26:07sizes based off of what we have over
- 16:26:10here. So, we have a document loader and
- 16:26:12then we have our text splitter. Um, I
- 16:26:14didn't actually set this overlap. So,
- 16:26:17I'm going to do 800 and 400. Good thing
- 16:26:19I double checked. So, we have a chunk
- 16:26:21size 800. We overlap for 400.
- 16:26:24And we're going to execute our workflow.
- 16:26:26So, I'm going to upload a file and I'm
- 16:26:28going to just find that same exact file
- 16:26:30we already used. So, I'm just going to
- 16:26:32go to downloads and we're going to use
- 16:26:33this document over here. So, choose this
- 16:26:36file, old judge. Click submit. And uh
- 16:26:41now what it's going to do is go through
- 16:26:42our vector store and go through there. I
- 16:26:45don't know why it didn't think I
- 16:26:46submitted the documents. So, I'm
- 16:26:48actually going to save this and refresh
- 16:26:51it. I'm just going to double check. I
- 16:26:55don't know why it's
- 16:26:57saying I didn't submit it. Going to
- 16:26:58refresh this. Maybe it's already in over
- 16:27:00here. If not, I'll just resubmit it
- 16:27:02again. All right. It looks like it's not
- 16:27:04in here. So, I'm just going to execute
- 16:27:06this workflow. I'm going to choose a
- 16:27:08document.
- 16:27:09I'm going to click submit.
- 16:27:11All right. And I have a problem over
- 16:27:13here. So, let's take a look at our
- 16:27:15issue. So, it says
- 16:27:19we have our file. Oh, I know the issue.
- 16:27:21We're looking for data, but our binary
- 16:27:24file is called just file. So, make sure
- 16:27:27that the top of your binary file is the
- 16:27:29same.
- 16:27:30You can see over here it's called file.
- 16:27:33over here. It was looking at um data
- 16:27:36initially. So, I just made this file.
- 16:27:37I'm going to rerun this. So, execute.
- 16:27:40I'm going to grab my old judge and I'm
- 16:27:42going to submit it. Okay. Now, you'll
- 16:27:45see it is loading and it says 17 items.
- 16:27:48So, it took our document, the old judge
- 16:27:50document I showed you a little bit
- 16:27:50earlier. I turned it into 17 different
- 16:27:53chunks. And just to make sure it works,
- 16:27:55you can go over here and you'll see this
- 16:27:57has been changed up. So you'll see that
- 16:28:00we have the text over here and this is
- 16:28:03our first one and it says there are no
- 16:28:05Union Association baseball cards. It
- 16:28:07ends off saying I I will do a team
- 16:28:09breakdown all judge cards versus US UA
- 16:28:12alumps and I can't speak today but
- 16:28:14that's okay. The next one over here
- 16:28:16Tommy McCarthy is only using association
- 16:28:19over here talks a little bit about that.
- 16:28:21Next one we have is league union
- 16:28:23association talks a little bit about
- 16:28:24that. And then we can see our overlaps
- 16:28:26over here as well. So, recursive text
- 16:28:28splitter and I'm going to just control F
- 16:28:30just to show you guys. We have this in
- 16:28:32the paragraph above or the chunk above.
- 16:28:35There are no Union association baseball
- 16:28:36cards. It says over here there are no
- 16:28:38Union baseball cards like that. So, same
- 16:28:40exact text and uh then we have that over
- 16:28:44here on that side of things. And you can
- 16:28:46see it's getting split a little bit
- 16:28:47weird because of new lines, but that's
- 16:28:49okay. So, we have those chunks. We can
- 16:28:52take a look at them directly in this
- 16:28:53output or we can take a look at it on
- 16:28:56this side of things. So now what I want
- 16:28:58to do is just go over here and uh go
- 16:29:02into our AI agent and test this out. So
- 16:29:04I need to write a description over here
- 16:29:06really quick and we'll jump through that
- 16:29:09here in a second. So, all I'm going to
- 16:29:11say is a description, and I should be a
- 16:29:13lot more granular, but I'm going to say
- 16:29:15work with the Pine Cone data
- 16:29:19data for questions
- 16:29:22about Union Association,
- 16:29:26Old Judge Baseball. Great.
- 16:29:31Awesome. We have that. I'm going to save
- 16:29:33and then let's go and ask a question
- 16:29:36with the chat. So, I'm gonna open up our
- 16:29:38chat and we're going to ask a question.
- 16:29:41I'm gonna say, "What are the most famous
- 16:29:46Union Association
- 16:29:49players with old judge baseball cards?"
- 16:29:54So, this AI agent should populate our
- 16:29:56pine cone vector store. Obviously, I'd
- 16:29:58want to fill out our system prompt as
- 16:30:00well. I'm just going to say you you are
- 16:30:04a baseball
- 16:30:06hard researcher
- 16:30:10for any questions
- 16:30:13about unionization.
- 16:30:19Um, old judge cards
- 16:30:23the pine cone vector store. Again, not
- 16:30:26the best prompt. I'll do something a
- 16:30:29little better, but that's fine. All
- 16:30:30right, ready? Let's save this and let's
- 16:30:32send this out. So now it'll go in our AI
- 16:30:35agent. It's going to anthropic first.
- 16:30:37Then it should go into our pine cone
- 16:30:38vector store. You can see it went over
- 16:30:40here. It used our embeddings. Came back
- 16:30:43over here. It goes back to our anthropic
- 16:30:45chat model. Right now chat model is
- 16:30:46thinking because it has the context of
- 16:30:48what was searched in this particular
- 16:30:50vector store. So it searches the vector
- 16:30:52store. It finds the chunks that are
- 16:30:54relevant and it's going to keep sending
- 16:30:56it back over here until we get our
- 16:30:57specific answer. So let's see what ends
- 16:31:00up happening.
- 16:31:01And uh yeah, so you can see based on the
- 16:31:04research data here, the most famous
- 16:31:05Union Association players with Oldage
- 16:31:07baseball cards, top five and I believe
- 16:31:09this is just everything from our article
- 16:31:11with points across the board. You can
- 16:31:14see all of them over here and this is
- 16:31:16correct. Um Tommy McCarthy, Jack
- 16:31:18Clemens, Jim McCormack, Glascock, and
- 16:31:21Fred Shershot Dunlap. We have all of our
- 16:31:24different data points over here just
- 16:31:26based off of what was in that particular
- 16:31:28article. So most simple version of rag
- 16:31:32over here um outside of the open AI
- 16:31:34where all we had to do is upload a file.
- 16:31:36You can see it's a little bit of work
- 16:31:37doing this and you can really start
- 16:31:38thinking about all the nuances like hey
- 16:31:40what's going to happen when we need to
- 16:31:43update a file like you have to build out
- 16:31:45things for that. Hey what happens if we
- 16:31:47don't have a document like we have to
- 16:31:49extract out text. Um and there's other
- 16:31:52things as well that I'm going to show
- 16:31:53you really quick. So one of the things I
- 16:31:55want to show you is a reranker. So this
- 16:31:58is pretty easy to set up and essentially
- 16:32:01what happens in rag is it tries to find
- 16:32:04the most relevant chunks for you. But
- 16:32:06what if we want to grab more and rerank
- 16:32:08them and get better results? Well,
- 16:32:10reranker can allow us to do it really
- 16:32:12really fast. So
- 16:32:15over here we can see we only bring four
- 16:32:18relevant chunks. So you can see chunk
- 16:32:20one, chunk two, chunk three, and chunk
- 16:32:23four. Well, our reancher allows us to
- 16:32:25grab a lot more. And all we have to do
- 16:32:28is go over here and say rerank results.
- 16:32:31And I'm going to add in the cohhere
- 16:32:33reranker. So I just go over here and
- 16:32:36that's the only one currently available.
- 16:32:37I believe there is other rerankers out
- 16:32:39there, but it says use co ranker to
- 16:32:41reorder documents after retrieval from a
- 16:32:43vector store for relevance. So I'm going
- 16:32:44to click on that. And there's a few
- 16:32:47different models. I'm just going to keep
- 16:32:48rerank 35. And you can choose a top end.
- 16:32:51I'm going to choose a top end of five so
- 16:32:54we get more chunks available. And um we
- 16:32:58can just go over there on that side of
- 16:33:00things. And uh yeah, we'll put over here
- 16:33:03limit of 20. So this will get well
- 16:33:06actually since we don't have 20 doesn't
- 16:33:07make sense. We'll say it grabs 10
- 16:33:09chunks. So this side will grab now 10
- 16:33:12chunks instead of four. And then this
- 16:33:14will grab the top five most relevant
- 16:33:16ones based off of the user query. So a
- 16:33:18little bit different. Uh the last one we
- 16:33:20did, we only grabbed the four relevant
- 16:33:22chunks. This one over here is going to
- 16:33:25grab 10 relevant chunks here and then
- 16:33:28the ranker is going to rank them based
- 16:33:29off of relevancy and give us five since
- 16:33:32we defined top end over there. So that
- 16:33:35is a reranker. Honestly, it's so easy to
- 16:33:37throw in over here. I just wanted to
- 16:33:39show you that really fast as kind of
- 16:33:41like a little bit more intermediate.
- 16:33:43We're going to save that and I can run
- 16:33:45this question again. So if I open up
- 16:33:47chat,
- 16:33:49I'll ask the same thing. It's a very
- 16:33:51short article. So, um, we can do that.
- 16:33:53I'm just going to reset this and then
- 16:33:55paste this in. And I'll show you the
- 16:33:57difference on what happens over here.
- 16:33:58So, we already saw on this side of
- 16:34:00things. Well, it's gone now. We only had
- 16:34:02four. Um, but this time it's going to
- 16:34:03expand to 10. And then this one over
- 16:34:05here will show five. So, I'm going to
- 16:34:06ask the same question. It's going to go
- 16:34:09in over here and grab this specific
- 16:34:12data.
- 16:34:17Okay. So,
- 16:34:19we have our results over here. And you
- 16:34:21can see we get the same five players and
- 16:34:23it also gives us an important note on
- 16:34:25this side of things. So our ranking code
- 16:34:27here we have our results
- 16:34:30that side of things and uh we get the
- 16:34:32top five one two three and four and here
- 16:34:36we have the page content and we have all
- 16:34:38that built in. So I would recommend that
- 16:34:41you add a reanker over here. It's
- 16:34:43probably a little bit additional cost
- 16:34:45but it's going to improve your accuracy.
- 16:34:47And you can see there's 15 items total
- 16:34:48that were uh sent back over that side of
- 16:34:51things. Okay. So, one other thing I just
- 16:34:53want to quickly bring up on this rag
- 16:34:56section is you can add in additional
- 16:34:59metadata. So, why this is important is
- 16:35:01like in a vector database you could have
- 16:35:03multiple departments possibly using this
- 16:35:06and there's different types of documents
- 16:35:08and metadata allows us to really filter
- 16:35:10down things really easy. So imagine in
- 16:35:12my vector database I add articles about
- 16:35:14baseball cards, football cards, um let's
- 16:35:17say soccer cards, cricket cards, it
- 16:35:20doesn't matter. I can add in metadata
- 16:35:22over here. So if you go to metadata, I'm
- 16:35:25going to add a name. So I can say over
- 16:35:27here sport and for this document I can
- 16:35:30say baseball. Now obviously this is
- 16:35:32hardcoded in over here and you can make
- 16:35:34it a lot more dynamic. Um, but I just
- 16:35:36want to show you that you can label a
- 16:35:38specific document and say, "Hey, this
- 16:35:39document is just focused around
- 16:35:41baseball. We can also say like era and
- 16:35:44well, this is really focused around
- 16:35:461800s." So, it's just adding an
- 16:35:48additional context to the specific
- 16:35:51information that you're adding to your
- 16:35:53vector database. So, that's what
- 16:35:54metadata allows you to utilize. In my
- 16:35:57metadata video, [snorts] we talk about
- 16:35:59how we can do this dynamically. Um, just
- 16:36:01for use of time, we're not going to do
- 16:36:02that in over here. All right. So to kind
- 16:36:05of just recap everything first, why do
- 16:36:07we care about rag? Well, rag allows us
- 16:36:10to utilize our own custom data with our
- 16:36:13AI agents and other nodes. Essentially,
- 16:36:16when you use large language models,
- 16:36:18they're not trained on two things.
- 16:36:20They're not trained on newer data and
- 16:36:22they're not trained on your own personal
- 16:36:23data. Rag solves the answer for the
- 16:36:26personal data side of things. Now,
- 16:36:29there's some simple ways that you could
- 16:36:30use rag like what I showed you with
- 16:36:31OpenAI or you can build out advanced
- 16:36:34pipelines. This is a very basic
- 16:36:36pipeline. Like I'm not even saying this
- 16:36:38is great by any means and I would not
- 16:36:40recommend that you use this HIPPA
- 16:36:42pipeline in production because there's a
- 16:36:43lot more that you should utilize. This
- 16:36:45makes assumption we're only using doc x
- 16:36:47files and we have clean data and like
- 16:36:50we're not updating our data. In the real
- 16:36:52world, you're going to have scenarios
- 16:36:53where there's different data types that
- 16:36:54people want to upload. there's going to
- 16:36:56be new versions of data that you're
- 16:36:58going to have to upload and you have to
- 16:36:59really control all this pieces of
- 16:37:01information. A few other key points. So,
- 16:37:03when we embed our text, we're taking our
- 16:37:06text like this and turning it into a
- 16:37:08vector representation of numbers. When
- 16:37:10things are closely related, they're
- 16:37:12going to have closer vectors. When
- 16:37:13things are far apart from each other,
- 16:37:15for example, software and Metallica,
- 16:37:17their vectors are going to be farther
- 16:37:19away within a vector database. You have
- 16:37:22a lot of different embeddings models out
- 16:37:23there. The easiest one to probably use
- 16:37:25out of the box is going to be OpenAI
- 16:37:27small or large. Large is going to cost
- 16:37:29you a little bit more money, but I would
- 16:37:30recommend that you utilize that. Um,
- 16:37:33text splitting wise, I would recommend
- 16:37:35that you use the recursive text
- 16:37:37character text splitter. So,
- 16:37:39essentially, it recursively breaks apart
- 16:37:41your document and this is the best one
- 16:37:43out in the market, at least in any end.
- 16:37:45I can see this changing here in the
- 16:37:47future, but I would recommend using
- 16:37:48that. And then you can define the chunk
- 16:37:51size as well as the overlap. Remember
- 16:37:53overlap is from the previous section.
- 16:37:55When you're going to go and actually
- 16:37:57query the vector store, uh first thing
- 16:37:59you need to make sure that when you set
- 16:38:02this up, you're using the same embedding
- 16:38:03model as over here. So make sure those
- 16:38:06are one to one. Uh you can also return a
- 16:38:09different amount of results each time.
- 16:38:11This is based off of this limit over
- 16:38:12here. So number of top results to fetch
- 16:38:15from the vector store. You can also
- 16:38:17increase this based off of a reranker.
- 16:38:19And a reranker will essentially allow us
- 16:38:21to grab more results, rank them, and
- 16:38:23only send the relevant ones associated
- 16:38:25with it. This is static right now. And
- 16:38:27you can see it says top end, but I can
- 16:38:29see them making this a little bit more
- 16:38:30dynamic here in the future. So, since
- 16:38:34you're with an AI agent, if you add in a
- 16:38:35vector store, that allows us to grab the
- 16:38:37information that we populated a little
- 16:38:39bit earlier over here. Lastly, when
- 16:38:40you're uploading in documents and text,
- 16:38:43you can add in additional metadata just
- 16:38:45to give a little bit more context on
- 16:38:47what is going on. And you can filter by
- 16:38:48that metadata as well. So this is again
- 16:38:51surface level of rag. I'm actually going
- 16:38:53to be making a lot more rag videos here
- 16:38:55on the YouTube channel as well as
- 16:38:56probably like a rag any end course
- 16:38:58that's going to be like four or five
- 16:39:00hours. It's going to be a lot better
- 16:39:02presentation than just this rag section.
- 16:39:04I'll I'll really dive you through a lot
- 16:39:05of different examples and things like
- 16:39:07this. This is just a small part of our
- 16:39:09nan course and there's so much that we
- 16:39:11have to cover. But just know that this
- 16:39:12tool is available for you and I think it
- 16:39:15will really help out your workflows when
- 16:39:17it necessarily is needed. I'm actually
- 16:39:19going to give you guys a rag challenge.
- 16:39:21I'm not going to build it out, but I
- 16:39:23want you to build out a solution for it
- 16:39:25and I'll talk about it right now. All
- 16:39:27right. So, here is the project I want
- 16:39:29you guys to try with the knowledge I
- 16:39:30just covered. I want you to build out a
- 16:39:33rag workflow that will help answer
- 16:39:35support tickets. What I want you to do
- 16:39:37is generate some examples of questions
- 16:39:39that people have and the specific
- 16:39:41results that would be asked for those
- 16:39:44particular questions. Obviously, it's
- 16:39:45going to take some time building out a
- 16:39:47document and how you want to
- 16:39:49specifically respond back. But this is
- 16:39:52just one of the most common use cases
- 16:39:53for rag out there. And I want to give
- 16:39:55you guys a little bit of challenge. This
- 16:39:56is kind of towards the end of the
- 16:39:57course. You have learned a lot about the
- 16:39:59different nodes. You learned a little
- 16:40:01bit about Rag. Let's see if you could
- 16:40:03build this one out. And if you want some
- 16:40:05feedback as well, feel free to post it
- 16:40:07in the school community. We've done a
- 16:40:09lot of walkthroughs together on smaller
- 16:40:11projects and workflows, but this is one
- 16:40:13I want to see you build that out. So,
- 16:40:15build it out for a specific domain, post
- 16:40:17it in our school group, and you'll get
- 16:40:19some feedback from some of our members.
- 16:40:22Anyways, the next section is going to be
- 16:40:24a little bit different. We're going to
- 16:40:25be talking about how you can land
- 16:40:27customers. This was the last technical
- 16:40:29NAN video and obviously one of the
- 16:40:31hardest parts to understand here in the
- 16:40:34beginning. I'm losing my voice because
- 16:40:35we've talked so much throughout this
- 16:40:37course and I'm a bit tired but we're
- 16:40:39going to jump into Upwork right now for
- 16:40:41freelancing and I will see you right
- 16:40:43there. All right. So, we've covered most
- 16:40:45of the N material. There might be like
- 16:40:47one or two lectures after this but I
- 16:40:49wanted to show you guys how you can land
- 16:40:51customers. I'm going to be using a
- 16:40:53platform called Upwork. I think this is
- 16:40:55probably the easiest way for you to get
- 16:40:57a customer. It's not easy by any means.
- 16:41:00It will take some work. However, uh
- 16:41:02everyone on Upwork that's posting a job
- 16:41:04wants to hire someone uh for a specific
- 16:41:07task. So, you're getting a very warm
- 16:41:10lead. Uh I'm going to share my screen
- 16:41:11and we're going to walk through probably
- 16:41:12a live proposal or two. And yeah, so
- 16:41:17here we are on the website. First,
- 16:41:19you're gonna have to set up your account
- 16:41:21and get that going. You know, honestly,
- 16:41:23it might take you hour or two hours to
- 16:41:25set up account. My profile is not even
- 16:41:27that great. I go over to my profile.
- 16:41:30You'll take a look at this. And I'm
- 16:41:31going to roast my profile on here as we
- 16:41:35load this up. So, I have data YouTuber
- 16:41:38specializing in Nan, Python, and SQL.
- 16:41:42That's an okay title.
- 16:41:44I should put like data and AI.
- 16:41:48And we're going to say Oh, my Arley's
- 16:41:50fine. I needed to change that.
- 16:41:52data
- 16:41:55and AI.
- 16:41:58Yeah, I like that. It's fine.
- 16:42:01That looks a little bit better because
- 16:42:04these are projects I've taken any
- 16:42:05projects, Python as well as SQL. You
- 16:42:08know, my picture over here does not look
- 16:42:10that great. I should change that up.
- 16:42:13It's honestly not that good. Uh, okay.
- 16:42:17Then I have essentially a bio data
- 16:42:20scientist fintech industry.
- 16:42:23I probably don't even talk about N.
- 16:42:26Look at this. I I have 25,000
- 16:42:28subscribers.
- 16:42:30I talk about AI automations. Oh, there
- 16:42:32we go.
- 16:42:34N all caps. When I first learned about
- 16:42:37an uh portfolio is pretty garbage. You
- 16:42:40can see I have this project over here. I
- 16:42:43have a
- 16:42:45YouTube channel and a looker dashboard.
- 16:42:48That's it. Now, I wouldn't recommend
- 16:42:51that. In fact, I'm probably going to go
- 16:42:52in here and beef up my portfolio
- 16:42:56because I I don't think it's that great,
- 16:42:59but it shows you like if you apply to
- 16:43:02jobs and you get experience and things
- 16:43:04like that, you can get jobs. Like my
- 16:43:06portfolio on here is terrible. This bio
- 16:43:09is terrible. Like, this is okay. A lot
- 16:43:12of my jobs literally just come from me
- 16:43:15writing great proposals and uh just
- 16:43:19showing value. Also, obviously, this is
- 16:43:21not that great either as a profile
- 16:43:23picture. So, a lot of stuff I can
- 16:43:25improve on. I have a video over here
- 16:43:27that looks okay. And uh yeah, so let's
- 16:43:32jump into it on there. So, I'm going to
- 16:43:34go to find work.
- 16:43:36And the first thing I'm going to take a
- 16:43:37look at is N jobs. So I'm just going to
- 16:43:41search N. Now people might search for
- 16:43:44other jobs out there outside of N. Like
- 16:43:47it might say a automations or make or
- 16:43:50Zapier. So you're going to want to look
- 16:43:52at stuff like that. And this is a senior
- 16:43:54NAN automation engineer web hooks
- 16:43:56payments air table and production
- 16:43:59systems. So this is interesting.
- 16:44:02We're going to probably look at this
- 16:44:04here in a second.
- 16:44:06It's one possible. We're going to go
- 16:44:09over here and say most recent because
- 16:44:11you want to apply to new jobs as well.
- 16:44:14Here is a automation out of Canada. So
- 16:44:16I'll load that up over here. Data and
- 16:44:18technology analyst support development
- 16:44:20of make.com and an workflows in
- 16:44:23monday.com. Now here's the deal. I
- 16:44:25actually have a monday.com
- 16:44:28video. So this actually might be a good
- 16:44:30one to apply to. Aa automation
- 16:44:33specialist and chat GPT. This Columbia I
- 16:44:36typically only focus jobs that are like
- 16:44:38US, UK, and Canada based. There's a few
- 16:44:41other countries as well. Um, senior N.
- 16:44:44We already looked at that one. Quick fix
- 16:44:46needed. $10 budget. That's pretty bad.
- 16:44:52Experience N dev traditional development
- 16:44:56experience.
- 16:45:01Don't like this one at all.
- 16:45:07Let's see. Email management. These are a
- 16:45:10little bit older, but I'd still maybe
- 16:45:11take a look at this. Automation
- 16:45:13developer to build YouTube video and
- 16:45:14food blog generation recipes. That's
- 16:45:18interesting. Might actually apply to
- 16:45:20that one.
- 16:45:22I do like
- 16:45:24some cooking
- 16:45:26workflow air. It's 20 bucks. It's not
- 16:45:28worth it. And here's the deal. like
- 16:45:32you might want to take on some of these
- 16:45:34$20 jobs just to get some experience on
- 16:45:36your profile. It's not always about
- 16:45:39getting $100 jobs, $80 jobs, $50 jobs,
- 16:45:4220 like start small, get some reviews,
- 16:45:46and slowly increase your reach. All
- 16:45:50right, so we have a few other ones over
- 16:45:52here.
- 16:45:54Estimated budget $30. Yeah, no, thank
- 16:45:56you.
- 16:45:58New we vibe coded a
- 16:46:01need to implement our vibe code. I don't
- 16:46:04want to do that.
- 16:46:06Text image and video process. This is
- 16:46:09interesting.
- 16:46:16Oh, you know what?
- 16:46:19I literally built this out essentially.
- 16:46:21Let's take a look. We're looking for any
- 16:46:23especially create the following process
- 16:46:24for us to have a list of short video
- 16:46:26ideas on a spreadsheet. Then use an open
- 16:46:28source LM model like deepseeker llama. I
- 16:46:30will create the following. The prompt
- 16:46:32for the three images a 15-second script
- 16:46:36video
- 16:46:38back into this.
- 16:46:40So creates the three videos from the
- 16:46:42three images. The workflow needs to turn
- 16:46:44the 15-second script into audio.
- 16:46:49So like this is a fine project,
- 16:46:53but I'm not going to apply to it. So, a
- 16:46:56few things over here. Like the budget's
- 16:46:58$200.
- 16:47:00This is going to take a lot longer than
- 16:47:02a few hours. Like my normal rates like
- 16:47:05$80, $90 an hour.
- 16:47:07And uh yeah, I I think this is way
- 16:47:10longer than a two-hour job. So, I could
- 16:47:13increase the rate if I really wanted to.
- 16:47:16But you can see like this person kind of
- 16:47:19wants cheaper customers or sorry,
- 16:47:21cheaper freelancers. mentions over here
- 16:47:24like $5 for this job. $5 for this job.
- 16:47:27Has a four-st star review here.
- 16:47:32I'm just I'm not going to go after this
- 16:47:34job on that side of things. I just don't
- 16:47:37think it'd be a great fit. Next, we see
- 16:47:40AI automation developer to build YouTube
- 16:47:42video and food blog generation system
- 16:47:45cooking recipe. So, let's take a look at
- 16:47:47this. This is might be up more my alley.
- 16:47:50Looking for experience. AI automation to
- 16:47:52divine develop an end to end automated
- 16:47:54system that generates YouTube videos for
- 16:47:56a channel focused on creating recipes
- 16:47:58for an active YouTube channel with its
- 16:48:00associated website and social accounts.
- 16:48:02It's expected to have one long form
- 16:48:04YouTube video that produces a recipe
- 16:48:06post on the website and several short
- 16:48:08reals to be posted multiple things.
- 16:48:11So, is this like
- 16:48:14an AI video? I was thinking like we're
- 16:48:17going to do some type of scripts for a a
- 16:48:19cooking YouTube channel.
- 16:48:27This person doesn't know what they're
- 16:48:28talking about. They want YouTube
- 16:48:30monetization
- 16:48:31or AI workflow. Like that doesn't
- 16:48:35No,
- 16:48:40I'm not doing this job. Like we're
- 16:48:42asking five questions over here.
- 16:48:47gave a freelancer four stars and they're
- 16:48:50all kind of over the place on this. Like
- 16:48:53it's it's not a great fit. So I'm not
- 16:48:55going to apply to that job. All right.
- 16:48:57Data and technology analyst to support
- 16:48:59development of make and workflows and
- 16:49:01monday.com. So let's see what he says.
- 16:49:03Current a consulting firm and need a
- 16:49:04junior technology analyst that is
- 16:49:06wellversed in make and I monday.com to
- 16:49:09help deliver a project. Ideally, you
- 16:49:10have a computer science or computer
- 16:49:13engineering background. So, you can
- 16:49:14quickly learn the project requirements
- 16:49:16delivered. For this particular role,
- 16:49:17you'll be reporting to an existing
- 16:49:19manager on my team and will support the
- 16:49:20manager in day-to-day operations.
- 16:49:24I think this guy wants like a full-time
- 16:49:26person for 500 bucks.
- 16:49:29Again, like this doesn't seem like it's
- 16:49:33going to be a great fit.
- 16:49:36Now I have a background in electrical
- 16:49:37engineering. So um that's almost
- 16:49:40computer engineering. We took a lot of
- 16:49:41those courses. I took a lot of computer
- 16:49:43science courses
- 16:49:45obviously have any experience. I built a
- 16:49:47mundday.com workflow but this one
- 16:49:51probably not one to apply to. All right.
- 16:49:53AI automation expert. We're seeking AI
- 16:49:56automation specialist to design,
- 16:49:58implement and manage scalable systems
- 16:50:00that improve operational efficiency. The
- 16:50:02roles are responsible end development
- 16:50:04AIdriven workflows. So this is fine so
- 16:50:07far.
- 16:50:10Deploy complex workflows
- 16:50:13audit manual department processes. This
- 16:50:16is pretty good so far.
- 16:50:20Done all that. Internal tooling and this
- 16:50:23AI implementation.
- 16:50:26Yep.
- 16:50:28Super easy on here.
- 16:50:35However, it's only $600.
- 16:50:38Now, the thing is it's $45 an hour
- 16:50:41average rate. So, this isn't too bad.
- 16:50:44You can see there's 20 to 50
- 16:50:45applications.
- 16:50:48So, I need someone to upgrade features.
- 16:50:53What else do we have over here?
- 16:50:56Google Ads specialist 10 hours at 50 an
- 16:50:59hour, 12 hours at 100 an hour. So this
- 16:51:02guy will pay
- 16:51:05and you can see that was the Martin
- 16:51:06Shopify audit $300.
- 16:51:13So pretty good reviews back and forth.
- 16:51:15Like we see some eight hours at there
- 16:51:2050. So we're going to apply to this job.
- 16:51:22I like this job over here. Um, let's see
- 16:51:24if there's any other ones I want to
- 16:51:26apply to. I have the other one or two
- 16:51:29up.
- 16:51:31See, looking. That's5 to $15 an hour.
- 16:51:34Probably not going to be the case. I'm
- 16:51:35still going to look at his salary he's
- 16:51:37paid other people.
- 16:51:41I I really like that one so far. I
- 16:51:44haven't done Voice Agents yet, but I
- 16:51:46want to cover that in the future.
- 16:51:49I like Mistral. However, it's in
- 16:51:52Lithuania. I don't know if I'm gonna
- 16:51:53apply for that one.
- 16:51:58Good budget, though. Well, let's not
- 16:52:01discriminate. Well, let's take a look
- 16:52:02what's over there.
- 16:52:11All right. I think we're going to be in
- 16:52:13a good spot.
- 16:52:23All right. So, we're just going to take
- 16:52:25a look at these other ones.
- 16:52:28Web hooks, payments, networking
- 16:52:29payments. So,
- 16:52:3230 to 40 workflows. Look at that.
- 16:52:51Look at how many questions you have to
- 16:52:53answer.
- 16:52:55All will be ignored. One 2 3 4 5 6 7 8
- 16:53:039 10 11 12.
- 16:53:07There's literally like 20 questions on
- 16:53:09here.
- 16:53:12that. Oh, well, he already hired
- 16:53:14someone. It says hires one. So, not even
- 16:53:16worth me going through this.
- 16:53:19I'm not going to say that. I've I've
- 16:53:22never seen a job with like 20 questions
- 16:53:24for an application.
- 16:53:27I mean, I've had like I feel like a lot
- 16:53:29of this could be asked on a call. Like,
- 16:53:31you don't need to have all 20 here. Not
- 16:53:33the not the wrist jobs, but All right.
- 16:53:36So, we like the $600 one. We're gonna
- 16:53:39get clarity on that budget.
- 16:53:43What's this one over here?
- 16:53:45Although I have a few N automations that
- 16:53:47I need help fixing, maintain or
- 16:53:48optimizing, make sure they work. One,
- 16:53:51YouTube automation, other social media
- 16:53:53postings. It's5 to $15 an hour.
- 16:53:57So, we have 31 hours at 25 2025.
- 16:54:04This doesn't seem horrible. However,
- 16:54:07look at this.
- 16:54:10I mean, a lot of people have great
- 16:54:12reviews on this guy,
- 16:54:14but that one person did not
- 16:54:27kind of scare me a little bit.
- 16:54:32And this guy is a a pretty good
- 16:54:34freelancer, too,
- 16:54:37and has good reviews.
- 16:54:40The fact that this is 5 to$15 an hour
- 16:54:42and there's like no description, I'm
- 16:54:44probably not going to answer that.
- 16:54:46Again, you can take risks. Um, oh, look
- 16:54:49at this one over here. This guy only has
- 16:54:50seven hours at $20 an hour.
- 16:54:53Mistrol,
- 16:55:00it's fine. But there's already 50 plus
- 16:55:02proposals.
- 16:55:04Let's just go with this one over here.
- 16:55:07And obviously the $600, we can start a
- 16:55:09conversation with it, but I'm going to
- 16:55:12go and answer this one. And I know I've
- 16:55:14spent a lot of time just talking this
- 16:55:16through, but I think it's kind of
- 16:55:19important to see kind of my mindset on
- 16:55:21applying to jobs. So, we're going to
- 16:55:22apply now.
- 16:55:25And uh
- 16:55:27we're just going to say by milestone.
- 16:55:30I'm going to say milestone one.
- 16:55:33We're going to say budget 600.
- 16:55:35Obviously, this is a conversation we're
- 16:55:36going to have with the with the person
- 16:55:40itself. We just put this as January
- 16:55:4231st.
- 16:55:43They can change the payments,
- 16:55:47etc. So, let's grab his
- 16:55:52thing over here. We'll bring that in
- 16:55:54first. Let's find this guy's first name.
- 16:55:57So, clear direction. Awesome client.
- 16:56:00Great client.
- 16:56:03That might be the name.
- 16:56:08Yeah. So, Farzanna and our client
- 16:56:12Farana. Hopefully, that's how I
- 16:56:14pronounce it. But we're going to start
- 16:56:17this off because we did that research by
- 16:56:20Farzanza.
- 16:56:22So, we're seeking AI implement implement
- 16:56:24manage scalable systems improve
- 16:56:26operational efficiency. This role offers
- 16:56:28end to end development AI workflows in
- 16:56:31the seamless integration record business
- 16:56:33platforms.
- 16:56:35So I'm going to say I build
- 16:56:38a ton of AI automations
- 16:56:43at
- 16:56:45AI automations.
- 16:56:47Well, let's think about this here in a
- 16:56:49second. my full-time job
- 16:56:54and I run a N
- 16:56:58YouTube tube channel over 75 videos
- 16:57:04and
- 16:57:08100K I'm just brainstorming right now.
- 16:57:11100K views.
- 16:57:15Next, what we want to put in here as
- 16:57:16well. Um, so first why I put this over
- 16:57:19here. It's some sort of proof. Like I'm
- 16:57:23gonna talk about my full-time job being
- 16:57:24a data scientist and doing automations.
- 16:57:27I'm gonna talk about the YouTube channel
- 16:57:28that has 75 videos and and gets over
- 16:57:31100k views a month. Gets over I'm going
- 16:57:34to write this better obviously, but I'm
- 16:57:36just trying to think of different
- 16:57:37things. So design, implement, manage
- 16:57:40scalable systems that improve
- 16:57:41operational efficiency.
- 16:57:44So that's what they're really caring
- 16:57:45about. and u
- 16:57:50rest APIs. Perfect. Look at that. So,
- 16:57:56REST API
- 16:58:00video.
- 16:58:02And what I'm going to do is just go to
- 16:58:03my YouTube channel and grab those data
- 16:58:06points. So,
- 16:58:09this could be a portfolio project for
- 16:58:10you. I am just going to grab my REST API
- 16:58:14video
- 16:58:15that is this one over here. Share copy
- 16:58:19link rest API I'm going to say any N
- 16:58:22rest API video. So I'm just trying to
- 16:58:26think of like every part what I can give
- 16:58:28social proof. So she says REST API.
- 16:58:33What else can we put over here? design
- 16:58:35and develop complex AI driven workflows
- 16:58:38like we'll
- 16:58:41maybe I'll use some of this language
- 16:58:43over there. So what I'll do is like
- 16:58:47split this out
- 16:58:50process audit manual department. I need
- 16:58:52to talk about this. I'll put a note like
- 16:58:55talk about this full-time job. Talk
- 16:58:58about this full-time job because I do
- 16:59:00this at my full-time job uh for
- 16:59:02automations connect maintain data flow
- 16:59:05between CRM. So
- 16:59:08perfect
- 16:59:13project management and communication.
- 16:59:16So system integration.
- 16:59:19So I'll put in like a monday.com video
- 16:59:22which I have. And then I'll also put in
- 16:59:25a HubSpot video. And like I said, you
- 16:59:27could have workflows that you just link
- 16:59:29to this type of stuff. I'm just going to
- 16:59:31use what I already have. So I'm going to
- 16:59:33go to monday.com
- 16:59:35since it's fine. and where Monday is.
- 16:59:42So, I'm going to share that
- 16:59:50project management
- 16:59:53project.
- 16:59:56And then we're going to get HubSpot. I'm
- 16:59:59just going to label this as CRM.
- 17:00:05It's going to be a little bit later.
- 17:00:06Let's find HubSpot.
- 17:00:17Oh, there's my spot.
- 17:00:20Get share.
- 17:00:22Cool. Hubspot video CRM. Great. So we
- 17:00:27have that internal tooling. So build and
- 17:00:31manage internal dashboards and custom
- 17:00:33tools to provide real time that's
- 17:00:34outside of NE. So like
- 17:00:38mentioned this is outside outside of N
- 17:00:42again stuff I've done my full-time job
- 17:00:46prompt engineering new AI use cases
- 17:00:49again I can talk about full-time job
- 17:00:52there
- 17:00:54and uh documentation
- 17:00:58I'll mention to like
- 17:01:00bring up looms
- 17:01:03bring up looms etc.
- 17:01:06Um and Google doc
- 17:01:10and notes.
- 17:01:13All right. Analytics,
- 17:01:16automate systems. It's fine there.
- 17:01:21Anything else I'm missing? Process
- 17:01:24deploy. How much is the boost on this
- 17:01:26one? Oh, boost is cheap. That's 10
- 17:01:28minutes ago. Great. So, let's build this
- 17:01:31out. All right. So,
- 17:01:36build a ton of automations
- 17:01:40at my full-time job as a data scientist.
- 17:01:45Let's see. Data
- 17:01:48scientist
- 17:01:50and I run a YouTube.
- 17:01:53So, I'll just say that. And I run a nan
- 17:01:55YouTube channel. Obviously, I should say
- 17:01:58data
- 17:02:01AI slash because this person's really
- 17:02:03focused on AI, although it's really
- 17:02:05data. So, you can say AI automation. So,
- 17:02:08I'm just going to say AI and YouTube
- 17:02:10channel. Really, it's data, but that's
- 17:02:11fine. Build a tunnel automation is my
- 17:02:13full-time job as a data scientist and I
- 17:02:15run
- 17:02:17a an AI nan YouTube channel with over 75
- 17:02:22videos and 100k views a month. I might
- 17:02:25change this out a little bit. And I run
- 17:02:27a
- 17:02:29IN YouTube channel with over 30,000
- 17:02:32subscribers. Yeah, let's use that.
- 17:02:36Over 30,000
- 17:02:38subscribers. People like subscribers.
- 17:02:41Not 30, but
- 17:02:43thousand subscribers.
- 17:02:45And what do I have? Like 300 videos.
- 17:02:48Almost have 400 videos, I want to say.
- 17:02:51and almost
- 17:02:53400 videos.
- 17:02:56So, we're starting this off
- 17:03:00based on your technical based on
- 17:03:05your requirements.
- 17:03:08Here are a few videos that I posted.
- 17:03:16I'm obviously going to reword that a
- 17:03:17little bit. So, build a ton of
- 17:03:19automations. is my full-time job as a
- 17:03:20data scientist and I run a a YouTube
- 17:03:23channel with over 3,000 subs and almost
- 17:03:25400 videos. Based on your requirements,
- 17:03:27here are a few videos that I posted.
- 17:03:31I don't like how that sounds, but I'm
- 17:03:32saying based on your requirements, here
- 17:03:34are a few videos that I posted that fit
- 17:03:36the criteria it
- 17:03:39the criteria of this job,
- 17:03:43this
- 17:03:45job. So, nan rest API.
- 17:03:51I'm going to remove that out over here.
- 17:03:53Monday monday.com project management
- 17:03:55HubSpot. I'm going to say CRM. Cool.
- 17:04:00Cool. Let's put this over here. In terms
- 17:04:04of process, in terms of process
- 17:04:08optimizations,
- 17:04:11I use N as well as Python and
- 17:04:16Streamllet.
- 17:04:18Python, SQL, and Streamlet.
- 17:04:23I'm just going to put Streamlit because
- 17:04:24that's the technology I'll probably use
- 17:04:26um for some internal apps.
- 17:04:32Yeah.
- 17:04:34to look for
- 17:04:37quick wins.
- 17:04:40I'm not going to say quick wins, but
- 17:04:44where is
- 17:04:46and I didn't mean to do this full
- 17:04:47screen. Where is this at? All right. In
- 17:04:50terms of process optimizations, I use N
- 17:04:52as well as Python in Streamllet to look
- 17:04:54for ways
- 17:04:56save hours each week
- 17:05:02and eliminate
- 17:05:04eliminate
- 17:05:07manual tasks
- 17:05:09when necessary.
- 17:05:13All right. In terms of process
- 17:05:14optimizations, I use N.
- 17:05:17My internal
- 17:05:20Company's internal
- 17:05:22risk and underwriting team
- 17:05:25has over 10 plus tools and workflows
- 17:05:30that they use
- 17:05:32on a daily basis
- 17:05:36to save
- 17:05:39over $100 a month.
- 17:05:43A little more than 10 tools, but that's
- 17:05:44fine. Okay, that's fine there.
- 17:05:50I talked about internal tools, right?
- 17:05:55As I said in process, I use N as well as
- 17:05:57Python, SQL, and JA to look for ways to
- 17:05:59save hours. My company's internal my
- 17:06:02company's risk and underwriting team has
- 17:06:04over 10 plus internal tools,
- 17:06:09workflows, so that's fine there.
- 17:06:17I'm always researching. I apologize for
- 17:06:19the dog barking. always researching
- 17:06:23researching
- 17:06:25the latest
- 17:06:27AI news and can help support
- 17:06:32your internal teams
- 17:06:35with new use cases
- 17:06:39and prompt engineering
- 17:06:42techniques.
- 17:06:45Then let's talk about the documentation.
- 17:06:48So we're going to say in terms of
- 17:06:50documentation in terms of documentation
- 17:06:56I always provide looms
- 17:07:00sticky notes
- 17:07:03on nan workflows
- 17:07:07close
- 17:07:09and Google docs
- 17:07:13explaining
- 17:07:15what everything
- 17:07:18us.
- 17:07:22And I'm just going to say I put the $600
- 17:07:24as a milestone.
- 17:07:26I put the $600 as as a milestone
- 17:07:32as I would need
- 17:07:35more information
- 17:07:37to project
- 17:07:39hours on a project.
- 17:07:44and um
- 17:07:46the long-term
- 17:07:50I'm trying to think of the word the
- 17:07:51long-term um partnership
- 17:07:55to make this a success.
- 17:07:59Obviously, there's things I think I
- 17:08:01could improve on here, but you kind of
- 17:08:03get the gist. So, I literally just go
- 17:08:06through. I first find the name of the
- 17:08:08person. I give a ton of social proof
- 17:08:11like, "Hey, I've done this before.
- 17:08:13Here's all this information done. I also
- 17:08:16have the social proof of the YouTube
- 17:08:18channel for the videos like I need to
- 17:08:20build out other platforms as well. Like
- 17:08:22if I had a bigger link or a bigger
- 17:08:24Twitter profile, I'd mention that over
- 17:08:25here as well. If you have any um
- 17:08:29articles, I'd mention this here. Oh, you
- 17:08:31know what I need to bring up? And I
- 17:08:32forgot to say this. I built a ton of
- 17:08:34automations running. There's my
- 17:08:36workflows. I also
- 17:08:40have a workflow
- 17:08:44You know what I need to do is say n
- 17:08:48workflow
- 17:08:50published on the official website.
- 17:08:55Link my workflow over there
- 17:09:04that over
- 17:09:08cool. So I built a ton of automations
- 17:09:10full-time job as data scientist. I run
- 17:09:12an AI YouTube channel, 30,000 subs, 400
- 17:09:14videos based on your requirements. There
- 17:09:16are a few videos that I post that fit
- 17:09:17the criteria of this job, right? REST
- 17:09:19API Monday HubSpot CRM and workflow
- 17:09:23published on the official website. Well,
- 17:09:26terms of process optimization
- 17:09:28talked about that also bring up I know
- 17:09:30other skills outside of Vinn. I'm always
- 17:09:32researching latest AI news and help
- 17:09:34support your internal teams with new use
- 17:09:35cases prompt engineering. Um, I'll say I
- 17:09:39have taught
- 17:09:42taught one-on-one calls
- 17:09:45with subscribers on my YouTube channel,
- 17:09:49YouTube channel,
- 17:09:54and have hosted
- 17:09:56hackathons,
- 17:09:58other companies,
- 17:10:00my full-time job
- 17:10:05AI Just true. Did a two-day hackathon
- 17:10:08last year or not last year but this year
- 17:10:10I guess depends when you watch this
- 17:10:11video documentation always provide looms
- 17:10:14taking notes and cool the 600 milestone.
- 17:10:18Great. So next thing what we need to do
- 17:10:19is we need to set our rank. I'm going to
- 17:10:22set these 42 connects so that way I am
- 17:10:23in first place and I'm going to send it
- 17:10:26over here. Um
- 17:10:28all this project will take I'm just
- 17:10:30going to match what they said which is
- 17:10:31one to three months. Obviously, I think
- 17:10:34this has a pretty good potential to be
- 17:10:36longer than that. And uh we'll see where
- 17:10:39it goes.
- 17:10:42That is essentially
- 17:10:46there. You know, I should have talked
- 17:10:48about I was just in Canada on vacation.
- 17:10:50That's okay. We
- 17:10:53have this information on there. So
- 17:10:57hopefully that kind of makes sense
- 17:11:00why or kind of my approach on how to
- 17:11:03apply. Obviously now we're at like 30
- 17:11:06minutes in and I'd have been away faster
- 17:11:07if I didn't talk through it. But you can
- 17:11:10also look at stuff like go over here to
- 17:11:12find work. I save all this so I can just
- 17:11:14see things that are populating over
- 17:11:16here. But a automation is another great.
- 17:11:22So then I can go over here and say a
- 17:11:23automation
- 17:11:25and just search for that.
- 17:11:28That'll be another one. So if I go to a
- 17:11:30automation,
- 17:11:32see NN chat GPT electronic invoice
- 17:11:35Columbia. We already saw that one. Uh
- 17:11:37we'll do most recent. Go high level
- 17:11:40enablement notion expert second brain.
- 17:11:44Like there's tons of stuff out here. You
- 17:11:47don't always have to search for any end.
- 17:11:50And I find sometimes if you just search
- 17:11:52for AI, they pay a little bit higher
- 17:11:53than NAN at times. So just go through
- 17:11:56and see what you want. I just showed you
- 17:11:58that specific NAN1. And hopefully that
- 17:12:01was helpful. Hey, you made it to the end
- 17:12:05of this video and I got to say you're
- 17:12:06probably less than 1% of the people or
- 17:12:08even.1% that start this video. So I just
- 17:12:11have to give you a major props because
- 17:12:14uh you probably watched this video over
- 17:12:16multiple days. You've hopefully learned
- 17:12:19a little bit new about any. You took
- 17:12:20action and kind of followed this
- 17:12:23tutorial step by step and you should be
- 17:12:26really proud of yourself because this
- 17:12:28thing was a marathon I'm sure just to
- 17:12:30watch. It was a marathon in itself
- 17:12:31building this out or maybe an
- 17:12:33ultramarathon because it took hours
- 17:12:35every single day of recording. I lost my
- 17:12:37voice a few times. I got really tired in
- 17:12:39some of these videos as I'm sure you can
- 17:12:40probably tell. Um, a few other things,
- 17:12:43right? This course was very beginner
- 17:12:45level focused. If you want to learn more
- 17:12:47about the nuances and things like that
- 17:12:48with NAN or some of the different nodes,
- 17:12:51I have a lot of individual videos here
- 17:12:52on the channel based around them. I try
- 17:12:54my best to do different examples between
- 17:12:57what was covered here and in those other
- 17:12:59videos. For example, I I think when with
- 17:13:02my merge video, I did like 40 or 50
- 17:13:04minutes just talking about merges,
- 17:13:06whereas here I had to limit it to only
- 17:13:08like 10 or 20 minutes. So, if you want
- 17:13:10to learn a lot more about a specific
- 17:13:12node or a topic, I probably have a video
- 17:13:14on the channel for you. If not, feel
- 17:13:17free to request it in our school group
- 17:13:18or shoot me a message because I do want
- 17:13:21to continue to expand out this NE
- 17:13:22playlist. My goal initially was to have
- 17:13:25100 NE videos. I know they keep rolling
- 17:13:27out new features, but I do have a
- 17:13:28backlog of other topics I really want to
- 17:13:31explore and dive deep into. And I just
- 17:13:34obviously couldn't spend two, three
- 17:13:35hours on a topic uh in this video when
- 17:13:37there's just so much to cover all
- 17:13:39together. I want to end this video as
- 17:13:42well and give you a few ideas of
- 17:13:44workflows that I want to see you try on
- 17:13:47your own. Feel free to share them in our
- 17:13:49score group and to get some feedback.
- 17:13:51So, I have them over here on the side.
- 17:13:53The first one I want you to try is to
- 17:13:55build out some sort of daily learning
- 17:13:56system. So maybe you're getting some
- 17:13:58YouTube videos in from your favorite
- 17:14:00creators or maybe you're pulling an RSS
- 17:14:02feed or you're scraping a website and
- 17:14:04the goal is to have a summary of like
- 17:14:06new things that are coming out every
- 17:14:08single day or every single week where
- 17:14:10you can just read through it and you
- 17:14:11have an understanding. The same
- 17:14:12principle a lot of different newsletters
- 17:14:14use. They'll go after different sources
- 17:14:16and then turn it into a newsletter at
- 17:14:18the very end. But I want you to build
- 17:14:20out your own personal version of this.
- 17:14:22Uh the second one is a content
- 17:14:24repurposing system. So a lot of
- 17:14:26creators, they build out content in one
- 17:14:28platform and they don't repurpose it in
- 17:14:30other areas. Same with businesses and I
- 17:14:32think that's a very underutilized
- 17:14:34industry. And I think there's a lot of
- 17:14:36potential for you to do that. So maybe
- 17:14:38start with a YouTube video and try to
- 17:14:39repurpose a YouTube video into a
- 17:14:41LinkedIn post or take a LinkedIn post
- 17:14:43and try to build out an image based
- 17:14:45around it. I don't know. Feel free to
- 17:14:47test multiple different ways or multiple
- 17:14:49opportunities at least on repurposing
- 17:14:51content. I think it'll be a fun project.
- 17:14:54Another one is a competitor monitoring
- 17:14:56system. So competitors are going to
- 17:14:58change their prices. They're going to
- 17:14:59have new updates on their website. So
- 17:15:01maybe build out a system where you alert
- 17:15:03someone like, "Hey, this competitor made
- 17:15:05a change. You should know about this." I
- 17:15:08think that's another thing companies are
- 17:15:09willing to pay for and also track. I
- 17:15:12know and coming from the fintex risk
- 17:15:14space, we have to monitor our specific
- 17:15:17portfolio because if a specific merchant
- 17:15:20has a product on their website, we could
- 17:15:22get fined by the government because
- 17:15:25there's certain products companies
- 17:15:27cannot sell. But and also same with the
- 17:15:29card brands and sponsor banks. And I
- 17:15:31don't want to go too much into details,
- 17:15:32but in different industries, you're
- 17:15:34gonna have to monitor specific people or
- 17:15:37specific companies. And I think that's a
- 17:15:39really great use case for any and lastly
- 17:15:42I want you to get familiar with Rag. I
- 17:15:45could have probably made a five plus
- 17:15:47hour video on Rag. And honestly, I'm
- 17:15:49thinking about it because there's just
- 17:15:50so much to cover here. And uh yeah, so
- 17:15:54what I want you to do is at least build
- 17:15:55out one workflow, maybe two or three
- 17:15:57based around it because it is confusing
- 17:15:59at first. You know, everyone wants to
- 17:16:01have chat bots of some sort. So build
- 17:16:04out a chatbot, test it out, tweak your
- 17:16:07prompts, try a few different vector
- 17:16:09databases, and kind of get familiar with
- 17:16:12the process. So learn about, okay, this
- 17:16:14is the different chunking strategies.
- 17:16:16This is why this works versus this. Have
- 17:16:19fun with it. Anyways, that's the end of
- 17:16:21this course. I am personally exhausted.
- 17:16:23I'm sure you're tired of hearing my
- 17:16:25voice. I'm still losing it. And thank
- 17:16:27you much once again for watching all of
- 17:16:30this. I'm open to feedback as well. So,
- 17:16:32if you think this sucked, make me let me
- 17:16:35know down below in the description or
- 17:16:37comment section. Man, I can't even say
- 17:16:38it right. You know what? We're going to
- 17:16:39end it right there before I start
- 17:16:41rambling on. See you guys in another
- 17:16:43video and thanks again for watching.
About this transcript
This page contains the full transcript of Ultimate n8n Course: Beginner to Pro in 17 Hours (2026) by Ryan & Matt Data Science, generated from the public captions YouTube serves with the video. The transcript has 183,977 words across 26,140 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.