YouTube2Text

Ultimate n8n Course: Beginner to Pro in 17 Hours (2026) — Transcript

by Ryan & Matt Data Science · 183,977 words · 26,140 segments · language en · Watch on YouTube

Full transcript

  1. 0:00I taught a room full of business
  2. 0:02professionals nan for just six hours at
  3. 0:05a company hackathon. By the end of that
  4. 0:07day, they built a fully automated
  5. 0:09driver's license validation system
  6. 0:10that's now running in production for
  7. 0:12their underwriting decisions. No coding
  8. 0:15experience required. That's the power of
  9. 0:17any end when you actually know what you
  10. 0:20are doing. Hey, I'm Ryan, a full-time
  11. 0:22data scientist at a payments company.
  12. 0:24And over the last year, I've created
  13. 0:26over 70 plus videos on workflow
  14. 0:28automations as well as AI. I help
  15. 0:30businesses and freelancers save hundreds
  16. 0:32of hours every month. Whether you're a
  17. 0:34business owner drowning in repetitive
  18. 0:36tasks, a freelancer looking to scale
  19. 0:38your services, or someone who just wants
  20. 0:40to build out powerful automations
  21. 0:41without writing code. This course is
  22. 0:43designed to take you from a complete
  23. 0:45beginner to building productionready AI
  24. 0:47workflows in any end. Here's what makes
  25. 0:49this course completely different. Most
  26. 0:52any end tutorials will show you one
  27. 0:53workflow and call it a day. This course
  28. 0:56contains over 15 hours of content broken
  29. 0:58into 30 strategically designed sections
  30. 1:01that build up on top of each other.
  31. 1:03You'll start with the basic fundamentals
  32. 1:05and progressively tackle more complex
  33. 1:08real world scenarios. I work with
  34. 1:10clients every single month building
  35. 1:11automation solutions across healthcare,
  36. 1:13real estate, finance, and more. And
  37. 1:16every workflow that you see in this
  38. 1:17course is going to be based off of
  39. 1:19actual client work, not theoretical
  40. 1:21examples. So what are you going to learn
  41. 1:23in this course? Well, you're going to
  42. 1:24learn the N fundamentals that 90% of
  43. 1:26users get wrong. You're going to learn
  44. 1:28how to connect to any API from the
  45. 1:30Google Suite to custom HTTP requests.
  46. 1:33You're going to learn advanced
  47. 1:34pageination techniques that most courses
  48. 1:36don't even mention. We're going to be
  49. 1:38building out AI agents that actually
  50. 1:39work in production. We're going to cover
  51. 1:41the basics of rag, which is retrieval
  52. 1:43augmented generation. essentially
  53. 1:45feeding your own internal data into AI
  54. 1:48agents. And I'm going to show you how to
  55. 1:50turn these skills into income. Every
  56. 1:52single workflow and template is
  57. 1:54available for free in our school
  58. 1:56community so you can download,
  59. 1:57customize, and deploy. This is the
  60. 1:59course I wish existed when I started
  61. 2:02with any. So, make sure to bookmark this
  62. 2:04video because you're going to come back
  63. 2:05to this multiple times for specific
  64. 2:07sections. And please do not watch all of
  65. 2:09this in one day. Save some time and
  66. 2:11spread it across at least a week or two.
  67. 2:14Anyways, good luck with this course and
  68. 2:16I'll see you in lecture number one
  69. 2:18shortly. All right, so our first part of
  70. 2:20the course is going to break down the
  71. 2:21differences between cloud and
  72. 2:23self-hosted. You'll often hear people
  73. 2:24saying, "Oh, I'm using self-hosted nan
  74. 2:27or I'm using cloud." And you might be a
  75. 2:29little bit confused. So, let me simplify
  76. 2:31that for you. If you are signed up on
  77. 2:33the website nan.io
  78. 2:36and have a subscription plan of some
  79. 2:38sort, chances are you're going to be on
  80. 2:40cloud. pricing is going to be based
  81. 2:43around executions. And I'm going to show
  82. 2:45you this in a minute. Uh, nan.io does
  83. 2:47offer a few self-hosted uh,
  84. 2:50subscriptions, but 95% of the stuff that
  85. 2:53you can purchase on there is going to be
  86. 2:54specifically for cloud. If you host any
  87. 2:58end on your own infrastructure, so this
  88. 2:59could be anything from a computer, this
  89. 3:01could be a VPS or a cloud server, this
  90. 3:05is going to be considered self-hosting.
  91. 3:08And there's a misconception out there
  92. 3:09that hey, self-hosting is always
  93. 3:11cheaper. And that's just incorrect as
  94. 3:14some businesses want to self-host on
  95. 3:16their own servers. There's people that
  96. 3:18are going to have to manage that
  97. 3:19specifically. And also on the
  98. 3:22self-hosting side of things, you're
  99. 3:23going to have to sometimes get a
  100. 3:24business license if you have a larger
  101. 3:27company. And these licenses can start at
  102. 3:29$10,000 a month and get more expensive.
  103. 3:32So, while self-hosting may be a little
  104. 3:34bit cheaper if you're a solo
  105. 3:36entrepreneur or you have a very small
  106. 3:39team, it can get pricey uh really
  107. 3:41quickly, especially if you are going to
  108. 3:42be running on your own servers. I
  109. 3:45quickly also wanted to talk about the
  110. 3:46differences between both of these. I'm
  111. 3:48going to put up a table on the screen
  112. 3:50right now so that way we can do the
  113. 3:52comparison. So, first let's talk about
  114. 3:54the cost. Self-hosted is free to get
  115. 3:58started and is usually cheaper
  116. 3:59initially. Uh cloud is obviously more
  117. 4:02expensive out of the gate. You're going
  118. 4:03to be spending at least $20 a month for
  119. 4:05a cloud license. However, there is a
  120. 4:0814-day free trial. Now, on the setup
  121. 4:11side of things, self-hosted, you manage
  122. 4:13everything. So, you manage if your stuff
  123. 4:16is down, you have to manage all these
  124. 4:18updates and there's a lot of work
  125. 4:19associated with it. Which is why when I
  126. 4:21say on the business side of things,
  127. 4:23businesses will have to employ a
  128. 4:25specific person that helps focus on that
  129. 4:27as part of their day-to-day routine.
  130. 4:29However, on the cloud side of things,
  131. 4:31this is all managed by NAN and there's a
  132. 4:3399% uptime. On the control side of
  133. 4:36things, with self-hosted, you have full
  134. 4:38control and you have a lot more options
  135. 4:40and capabilities. Whereas cloud, you're
  136. 4:42going to be a little bit more limited.
  137. 4:44Maintenance, again, with self-hosted,
  138. 4:47you have to handle all the different
  139. 4:49updates. You're going to be in charge of
  140. 4:50maintenance, whereas cloud, yes, you do
  141. 4:53have to make some updates, but they're
  142. 4:54honestly like two clicks away, and it's
  143. 4:56super fast. data for self-hosted. This
  144. 4:59stays on your server. However, on the
  145. 5:01cloud side of things, this is going to
  146. 5:02be stored on the NAN server. Let's talk
  147. 5:05about community nodes. So, community
  148. 5:06nodes are different nodes that companies
  149. 5:08will create on the self-hosted version.
  150. 5:12All of them are going to be available
  151. 5:13for you on cloud. They're limited. The N
  152. 5:16team has to go through the node and also
  153. 5:18approve it. So, there's a little bit of
  154. 5:20a lag between when a company pushes out
  155. 5:22a community node and when it's available
  156. 5:24on any end cloud. One other drawback is
  157. 5:26the MCP connections. With the
  158. 5:28self-hosted side of things, you have a
  159. 5:30lot more advanced options due to
  160. 5:31community nodes and different things
  161. 5:33like that. Whereas on cloud, it is
  162. 5:35limited. However, I do believe that this
  163. 5:37is going to be changing in 2026. All
  164. 5:40right, so who are these best for? Well,
  165. 5:42if you're going to go the self-hosted
  166. 5:43routes, this is better for power users
  167. 5:46or people that just want to get started
  168. 5:48in Nan for free. cloud. It's much better
  169. 5:51for people who want a quick start and
  170. 5:53then really focus on convenience. I
  171. 5:55don't know the exact data point, but I
  172. 5:57would assume a lot more people are going
  173. 5:58to be on cloud versus self-hosted. So,
  174. 6:02I'm going to be building out this course
  175. 6:03based around any cloud. However,
  176. 6:06everything that's going to be taught in
  177. 6:08cloud should be applicable into
  178. 6:10self-hosted minus showing you really
  179. 6:12quick how to update your specific
  180. 6:14instance. So, let's jump into part one,
  181. 6:17which takes a look at any cloud. All
  182. 6:19right. So, I'm on the N cloud website
  183. 6:22and you'll see it like this. Um, they've
  184. 6:24had this site for a while. So, I do see
  185. 6:26it changing here in the future. So, if
  186. 6:28it does change a little bit, um, I
  187. 6:30apologize. It's nothing I can control
  188. 6:32about that. So, if you want to see your
  189. 6:34pricing, you just go into the pricing
  190. 6:35options over here. And you can see that
  191. 6:38there's two different ways to price. You
  192. 6:40have monthly or you could go annual. So,
  193. 6:42I am personally paying for this starter
  194. 6:44over here at $24 a month. However, if
  195. 6:47you go to annual, it is $20. So over
  196. 6:50here, you'll see what is included. So
  197. 6:53starter is hosted by N. So you have
  198. 6:56cloud hosting over there. And what you
  199. 6:58have next is pro hosted by N. But then
  200. 7:01you go into the business side of things.
  201. 7:03This is self-hosted, which I again I
  202. 7:05mentioned like there is some things on
  203. 7:08nan.io that are self-hosted. And then if
  204. 7:10you go to enterprise, it's either hosted
  205. 7:12by nan or self-hosted. um business as I
  206. 7:15mentioned is $10,000 because you can see
  207. 7:17$800 per month built annually. If not,
  208. 7:20you're going to $960
  209. 7:22per month. So, most of us aren't going
  210. 7:25to need business right away. What I
  211. 7:27started with is starter, and I still
  212. 7:28have this on my specific plan. There are
  213. 7:31some limitations with this as well, and
  214. 7:34you'll see this through the course. I
  215. 7:35talk about some of the limitations
  216. 7:37associated with it, but you also start
  217. 7:39with 2500 workflow executions, which is
  218. 7:42pretty nice. this will get you really,
  219. 7:43really far. And honestly, unless you
  220. 7:46have a ton that you're already trying to
  221. 7:47automate, I think this is going to be
  222. 7:49the route that you specifically start
  223. 7:52with. So, I would start with your free
  224. 7:53trial, which I believe the trial is 14
  225. 7:55days. Once you have this going and let's
  226. 7:58say you're need more executions, then
  227. 8:00you could upgrade into Pro. So, with
  228. 8:03Pro, you have multiple shared projects.
  229. 8:05You can have 20 concurrent executions at
  230. 8:07a specific time. You have 7 days of
  231. 8:09insight. You have workflow builder
  232. 8:12credits, which we'll show you a little
  233. 8:13bit later. This is a really cool way to
  234. 8:15save some time. You have more admirals.
  235. 8:17You only have one admin over here. You
  236. 8:19have multiple here. Variables, workflow
  237. 8:21history, and execution search. A lot
  238. 8:23more available on that side of things.
  239. 8:25And you can also change the amount of
  240. 8:27executions. So over here, you're stuck
  241. 8:29at 2500. However, on the pro side, you
  242. 8:31can go up to 50k executions and you're
  243. 8:34paying 144 a month. You could also use a
  244. 8:36custom plan. Um, but you have to I
  245. 8:39believe you have to mention or talk to
  246. 8:40the team on that side of things. Again,
  247. 8:42I'm on starter. So, until you really
  248. 8:44start getting over that 2500 threshold,
  249. 8:47you don't have to worry about pro
  250. 8:48business. As you can see over here,
  251. 8:50there's a lot of different plans
  252. 8:51associated with it. Like, if you're 500k
  253. 8:53executions, you're spending almost
  254. 8:55$6,300 a month. And enterprise is even
  255. 8:58more expensive than that. Um, so just to
  256. 9:01keep that in mind. I believe they also
  257. 9:03have an other plans too. So you can see
  258. 9:06startup plan under 20 employees, check
  259. 9:07if you qualify for a startup plan and
  260. 9:09get 50% off business. So on the business
  261. 9:12side, if you have under 20 employees,
  262. 9:14you could be paying $480 a month, which
  263. 9:17is a better deal. There's also the
  264. 9:19community edition. So self-hosted
  265. 9:20version is available on GitHub. So if
  266. 9:23you're going self-hosted, that's what
  267. 9:24you're going to be specifically using.
  268. 9:26Here's even more breakdown of what
  269. 9:28features are available in each plan. So
  270. 9:31you can see max days on the workflow
  271. 9:32history is one, pro is five, enterprise
  272. 9:35is 365.
  273. 9:36I do wish this 365 number went down into
  274. 9:40pro and maybe the starter was five. I do
  275. 9:42find this to be quite limited on the
  276. 9:44workflow history which is a little bit
  277. 9:46unfortunate. I think this is very
  278. 9:47generous for the workflow credits 50 and
  279. 9:51also 1,00. You can see a lot of these
  280. 9:53developer tools are available except for
  281. 9:55global variables. So unfortunately I
  282. 9:56will not be teaching you guys global
  283. 9:57variables and nan because I don't have a
  284. 10:00pro account. Maybe one day when I do you
  285. 10:02can see different environments stuff
  286. 10:04like that not available in either
  287. 10:06starter or pro. These are just
  288. 10:07enterprise available only. So again
  289. 10:10something I just can't show you guys
  290. 10:11because I'm not going to be showing
  291. 10:12out,000 $2,000 a month on any end. My
  292. 10:15YouTube channel doesn't even bring in
  293. 10:16close to that even in ad revenue. Um
  294. 10:19going into the workflow executions you
  295. 10:21have max active workflows. All of these
  296. 10:23are going to be unlimited across the
  297. 10:25board. You have automatic retries, max
  298. 10:27saved execution. So you can see some of
  299. 10:29the other different data points if you
  300. 10:30specifically require about it. Execution
  301. 10:33logging uh AI assistant only available
  302. 10:35upon requests. Uh other information over
  303. 10:38here. And by the way, if you do go with
  304. 10:41like the business or enterprise route,
  305. 10:42there are other features I believe that
  306. 10:44are not under uh this page. So like
  307. 10:47SLAs's and things like that. So you'll
  308. 10:48have to reach out to the N team, I
  309. 10:50believe. Um, you can see filtering date
  310. 10:52range. There's a lot more other things.
  311. 10:54Maybe the support, you can see, yeah,
  312. 10:56email support, dedicated support with
  313. 10:58SLAs. So, to get the really more
  314. 10:59granular insight, you're going to have
  315. 11:00to contact them, go through their sales
  316. 11:02rep for enterprise. Um, you can see pay
  317. 11:04by invoice, sales assisted. So, there's
  318. 11:07a lot of other questions, Q&A on there,
  319. 11:09but all you're going to have to do is
  320. 11:11click on one of these plans. I would
  321. 11:14really recommend you go starter. You can
  322. 11:16start with the free trial. And I believe
  323. 11:17the free trial, like I said, is 14 days.
  324. 11:19So get going with that and uh yeah that
  325. 11:23is going to be cloud. The other two are
  326. 11:25going to be uh using docker to get
  327. 11:28started and then we also have an option
  328. 11:30to specifically use self-hosted with a
  329. 11:33VPS provider and I'm going to show you
  330. 11:35how to use both of these here in a
  331. 11:37second. I already have videos on the
  332. 11:38channel just walking through the process
  333. 11:40of these. So I'm just going to play
  334. 11:42those right now. These are going to be
  335. 11:44essentially the only videos that I reuse
  336. 11:46for my main channel. Everything else is
  337. 11:47going to be original content throughout
  338. 11:49this course. However, since self-hosted
  339. 11:52on hosting here does cost money, I don't
  340. 11:53want to repeat that process and there is
  341. 11:56a few steps in there. And then Docker,
  342. 11:58it just takes a little bit of time to
  343. 11:59download everything and get it going for
  344. 12:01the first time. So, we'll just repeat
  345. 12:03those. I'll put them on the screen right
  346. 12:05now. And make sure to choose your own
  347. 12:08path. Again, my personal opinion is if
  348. 12:10you want to get started the fastest, you
  349. 12:12go with any cloud over here. If you want
  350. 12:15to have more control over yourself but a
  351. 12:17little bit more maintenance, I would go
  352. 12:19with self-hosted on Hostinger. If you're
  353. 12:21going to go self-hosted Docker, it is
  354. 12:22free, but there's going to be
  355. 12:24limitations. So, let's take a look at
  356. 12:26those right now. We'll start with
  357. 12:27self-hosted Docker. All right, guys.
  358. 12:29Let's get started. So, what we're going
  359. 12:31to do first is download Docker. So, you
  360. 12:34can do this by searching Google and look
  361. 12:37for Docker download and you'll get put
  362. 12:39to this get started Docker page. I'll
  363. 12:41put the link also down below in the
  364. 12:43description. Then you have these two
  365. 12:45icons over here. Learn how to install
  366. 12:47Docker or download Docker Desktop. Now,
  367. 12:51um, what we're going to be doing is
  368. 12:52clicking download Docker Desktop is I'll
  369. 12:54be showing you how to do that. Now,
  370. 12:55there's a few different options, right?
  371. 12:57You have Apple computers, you have
  372. 12:58Windows, as well as Linux down there.
  373. 13:01Now, personally, I have Windows, so I'll
  374. 13:03be showing you how to set that up
  375. 13:04specifically. And one caveat is that you
  376. 13:07need to have Windows 10 or newer. So you
  377. 13:11have an older version of Windows, you
  378. 13:13know, this is not going to work for you.
  379. 13:15So make sure you have Windows 10 on that
  380. 13:16side of things. I'm going to be choosing
  381. 13:18AMD 64. So once you click that, you're
  382. 13:21going to get a download on your
  383. 13:23computer. It might take you a minute or
  384. 13:27so uh to have that fully downloaded, but
  385. 13:30uh I'm going to pause the video right
  386. 13:31here until that is downloaded, and we'll
  387. 13:34be right back once it's ready to go.
  388. 13:39All right. So, double click on the
  389. 13:41Docker icon if it's downloaded to your
  390. 13:43desktop or wherever it's downloaded if
  391. 13:44it's in folders, whatnot,
  392. 13:47and then it'll open up a popup.
  393. 13:52Inside this popup is the service
  394. 13:54agreement. Now, obviously, I'm not going
  395. 13:56to tell you if you're breaking the terms
  396. 13:58of service or not. You can view full
  397. 14:00terms if you want. Um, but it mentions,
  398. 14:02you know, if you have overturn 50
  399. 14:04employees or more than $10 million in
  400. 14:06annual revenue, you have to have a pro
  401. 14:08subscription, right?
  402. 14:10So, you're learning this, testing it
  403. 14:12out. You should be okay on that side of
  404. 14:15things. So, if you agree, click accept.
  405. 14:19And then you get this screen over here.
  406. 14:21Welcome to Docker. Now, you can set up
  407. 14:24an account if you would like to, right?
  408. 14:26Whether you want to use work or personal
  409. 14:28or you can even skip this screen, right?
  410. 14:31So, I'm not going to set up account
  411. 14:33here. I'm just going to skip and we're
  412. 14:34going to go right into it. Now, what I
  413. 14:37get over here is it says WSL needs
  414. 14:39updating. So, what we're going to do is
  415. 14:41go into the command line and update this
  416. 14:44really quick. It's actually going to be
  417. 14:45quite easy. I know for some people the
  418. 14:47command line can seem scary, but all we
  419. 14:50have to do is just copy this over here.
  420. 14:53And we'll do that here shortly.
  421. 14:58All right. So, what I'm going to do is
  422. 14:59just copy this. So, click copy on that
  423. 15:02side of things.
  424. 15:04And then we're going to go to our
  425. 15:05command line. So, cmd on that side of
  426. 15:08things. And look up your command prompt.
  427. 15:10What I'm going to do is paste in that
  428. 15:12update.
  429. 15:17And then you can see it starts updating
  430. 15:19on this side of things.
  431. 15:21And I'll go through on that side and get
  432. 15:24everything ready for us.
  433. 15:27So I'll skip ahead when this is ready to
  434. 15:29go.
  435. 15:30All right. So update is now complete. So
  436. 15:34that's the only thing we're going to
  437. 15:35need for our command prompt here in uh
  438. 15:39this install. So feel free to close that
  439. 15:41out and then it's going to restart on
  440. 15:44this side of things. So just click
  441. 15:46restart. You're going to get this icon
  442. 15:48over here
  443. 15:50and then we're going to be good to go
  444. 15:51here pretty soon. So this is a pretty
  445. 15:54fast restart.
  446. 15:57but I will skip it to when it's ready.
  447. 16:01All right. So, this should be your
  448. 16:02Docker page now. Um, if you didn't have
  449. 16:06to do the update like I did, you'll
  450. 16:08probably get put right into here.
  451. 16:10[clears throat]
  452. 16:10But now, what we need to do is go onto
  453. 16:14the images tab over here to the left.
  454. 16:16You can find it right under containers.
  455. 16:19So, go to images. And then what we're
  456. 16:21going to do is we're going to search
  457. 16:23images to run. And this is where we can
  458. 16:26find NE. So click on that and then
  459. 16:28inside over here we're going to search
  460. 16:30NAN
  461. 16:31and it's going to be your top result
  462. 16:33most likely. Right? So 100 in 100
  463. 16:35million downloads on that side of
  464. 16:38things. So the first thing we're going
  465. 16:39to do is pull the latest version of
  466. 16:41that. Right? And see there's a lot of
  467. 16:44reviews on that too. So just click pull.
  468. 16:46And then you'll see again this loading
  469. 16:48icon over here. It'll take a little bit
  470. 16:50to get this ready. And I'm going to skip
  471. 16:53to when it's done.
  472. 16:56All right. So, it's going to stop here
  473. 16:58in a second. And perfect. We have that
  474. 17:01working.
  475. 17:02So, you can see status downloaded new
  476. 17:04image. It's the latest version. And
  477. 17:06we're almost ready to get this going.
  478. 17:09Okay.
  479. 17:11So, the next thing what we're going to
  480. 17:12want to do on this side of things is
  481. 17:15click on run. And then you're going to
  482. 17:17see optional settings. So, we're going
  483. 17:20to want to fill out our host port. Now,
  484. 17:23by default, it says 5678.
  485. 17:26So, that's what I did on this side of
  486. 17:29things, but from looking online, some
  487. 17:32people do have issues with 5678. So,
  488. 17:36feel free to change that. Or one that I
  489. 17:38saw that people used was 5680.
  490. 17:41And then it's going to say, do you want
  491. 17:42to allow public and private networks to
  492. 17:44access this app? Click allow on this
  493. 17:47side of things. And then you can close
  494. 17:49out. And then what you'll see is we have
  495. 17:51this going over here. And then at the
  496. 17:53very bottom it says localhost 5678. So
  497. 17:56click on that over here and then you get
  498. 18:00this page over here which is set up an
  499. 18:02owner account. Now if you already have
  500. 18:05credentials elsewhere um this is not
  501. 18:07going to work right. This is the
  502. 18:08credentials for your local version. So
  503. 18:11just set up computer first name, last
  504. 18:12name, email and then also a password.
  505. 18:15And then if you want to receive updates
  506. 18:17or not click that check box.
  507. 18:20And then what you want to do is click
  508. 18:22next. Now some people are going to get a
  509. 18:24524 error, but uh nothing will happen on
  510. 18:27that side of things. You still should be
  511. 18:29good to go. Then you get this survey
  512. 18:30over here. Fill it out. Right? So I'm
  513. 18:34just going to click on I'm not using any
  514. 18:36N for work just so I don't have to fill
  515. 18:38it out. And I'm going to put over
  516. 18:39YouTube on this side of things. And then
  517. 18:41get started.
  518. 18:43And then what I would recommend is you
  519. 18:45already set this up. So it says get paid
  520. 18:47features for free. It'll send you a key
  521. 18:49to your email. Now, personally, like I'm
  522. 18:52not going to be using this version after
  523. 18:54this tutorial, but if you do want to use
  524. 18:57it, right, uh, put in your email over
  525. 18:59there. It will send you a key. And then
  526. 19:01you want to sign up for on that side of
  527. 19:03things. Again, it's free, but I'm just
  528. 19:06going to skip because I don't really
  529. 19:08need it for this tutorial. So, what you
  530. 19:10can do is now start building. And what
  531. 19:13I'd recommend is just make sure to test
  532. 19:15one basic workflow to see if this is
  533. 19:18working properly. So, I'm just going to
  534. 19:19create a workflow.
  535. 19:21All right. So, click the plus icon in
  536. 19:22the top right. We're going to do a
  537. 19:24manual trigger. Um, so just go up here
  538. 19:26to the top. Trigger manually
  539. 19:29on that side of things. Yep. So, we have
  540. 19:32that over here, right?
  541. 19:34And then we're just going to go and add
  542. 19:36a few other nodes. So, what we're going
  543. 19:38to do now is do an edit set node.
  544. 19:42And inside over here, we're going to
  545. 19:44double click in there. We're just going
  546. 19:46to map a manual field. We're going to go
  547. 19:48over here and set an array. And then
  548. 19:50we're just going to essentially put a
  549. 19:52few different pieces of automation
  550. 19:54software in over here.
  551. 19:57And then what I'm going to put over here
  552. 20:01and then inside the array I'm going to
  553. 20:03put in nan. I'm going to put in make and
  554. 20:06then I'm also going to put in zap year.
  555. 20:09Right? Probably the three most common
  556. 20:10ones right now. Then you can see that is
  557. 20:14working over here on the output side of
  558. 20:16things.
  559. 20:18And then after that, what we're going to
  560. 20:20do is go over here and do a data
  561. 20:22transformation. And we're going to use a
  562. 20:24split out node. We're just going to drag
  563. 20:26and drop this over here, which is going
  564. 20:28to split out our array. Right? Very,
  565. 20:30very basic on this side of things, but
  566. 20:33just want to make sure that these nodes
  567. 20:34are working and it looks good to go on
  568. 20:37that side of things. And again, right,
  569. 20:40you're going to have issues if you set
  570. 20:41up a web hook in over here. So, you can
  571. 20:43mock that data up. Um, but if you want
  572. 20:46to get web hooks working, that is a
  573. 20:47whole different process on that side of
  574. 20:50things, right? Um, and outside the scope
  575. 20:53of this particular video. Lastly, I want
  576. 20:56to show you how to start and stop this.
  577. 20:57So, just load up Docker Desktop again,
  578. 21:00right? And by default, if you refresh
  579. 21:02it, right, nothing's going to happen.
  580. 21:04You're fine
  581. 21:06over there. So, let's go to our Docker
  582. 21:08Desktop on the side of things, right?
  583. 21:10So, click that icon and we're going to
  584. 21:12click stop, right? So then you can see
  585. 21:14it says stopping any n
  586. 21:17and we can go back to any n and then we
  587. 21:19refresh this and now it's not going to
  588. 21:22work and it says this site cannot be
  589. 21:24reached local host refused to connect we
  590. 21:26have issues over there. So then just
  591. 21:28click this start icon over here and then
  592. 21:31um it's going to restart it. So you'll
  593. 21:33see that happen here in a second and you
  594. 21:35can see we have all this information
  595. 21:36populating once again
  596. 21:39and just click on the URL
  597. 21:42and take a look. We have our workflow
  598. 21:44that we started building out right over
  599. 21:46here and we are good to go. Using any
  600. 21:50end cloud it's going to cost you over
  601. 21:52$20 every single month. But what if I
  602. 21:55told you that you can self-host N for
  603. 21:57just about $5 opportunity to save well
  604. 22:00over $100 a year. Not only are you going
  605. 22:03to be able to save this money, but you
  606. 22:05can also unlock a larger selection of
  607. 22:07community nodes and get even more
  608. 22:09control over your workflows. Now, I know
  609. 22:11what you're thinking, right?
  610. 22:12Self-hosting? This sounds pretty
  611. 22:13complicated, but don't worry. In this
  612. 22:15video, I'll be taking you step by step
  613. 22:16throughout the entire process. So, at
  614. 22:18the very end, you'll have nan running on
  615. 22:20your own server. Also, big shout out to
  616. 22:23Hostinger. They reached out and were
  617. 22:24able to give me free hosting for this
  618. 22:26full walkthrough. And for viewers of
  619. 22:28this channel, they're offering an extra
  620. 22:3010% off any of their subscriptions with
  621. 22:32code data science. Show you exactly
  622. 22:34where you can apply that discount code
  623. 22:35in throughout this video as we build
  624. 22:37this setup. So your different plans
  625. 22:39below over here. Uh KVM1, which is $4.99
  626. 22:43a month. KVM2, which is $6.99 a month,
  627. 22:45$9.99 for KVM4. Then KVM8 is $19.99.
  628. 22:49They have different specs for every
  629. 22:51plan, right? 4 GB of RAM 8632
  630. 22:55and you know feel free to choose which
  631. 22:57one that you would like to start. Now
  632. 22:59also if you use my code right you're
  633. 23:01going to get additional 10% off over
  634. 23:03here. So you're technically not paying
  635. 23:05the screen price you're actually paying
  636. 23:0710% less. And to be full fully
  637. 23:09transparent right like most things with
  638. 23:11hosting online the renewal rate is going
  639. 23:13to be a little bit different. And you
  640. 23:15can see over here it says renews at $10
  641. 23:18a month for two years right cancel
  642. 23:19anytime. So there is going to be that
  643. 23:23information, right? And I can tell you
  644. 23:25like I own a few different websites out
  645. 23:27there. Usually, you know, the get in
  646. 23:29price is going to be a little cheaper
  647. 23:31and then they increase it over time.
  648. 23:33That's just how it is anywhere that you
  649. 23:35go. So let's say you want to start this
  650. 23:37off, right? And let's say choose plan
  651. 23:39for KVM1. So then you choose plan over
  652. 23:41here and it goes into your cart. We're
  653. 23:45going to walk through this here in a
  654. 23:46second with you guys.
  655. 23:49Okay. So you can see you can choose your
  656. 23:52period. So again you can choose 24
  657. 23:55months, right? You can go here to 12
  658. 23:58months,
  659. 23:59right? It's going to be a little bit
  660. 24:00more expensive. If you choose one month,
  661. 24:02a little bit more expensive. I wouldn't
  662. 24:04recommend that you just do a one month.
  663. 24:05Like look at 12 or 24 months. Even at 12
  664. 24:08months, right, you're at 5.99. Um but
  665. 24:11lock in that rate at 24. Now also to
  666. 24:14show you where you want to put in your
  667. 24:15coupon code. If you go over here, right,
  668. 24:17put in data science. So data science,
  669. 24:22you click apply over here.
  670. 24:27You'll see saved you a little bit of
  671. 24:29money, right? So you saved actually 12
  672. 24:31bucks if you're doing the cheapest plan.
  673. 24:33So highly recommend you choose that code
  674. 24:34if you want. Uh regardless, right? Next
  675. 24:37thing you want to do is choose your
  676. 24:38server location. So choose the server
  677. 24:40that's closest to you, right? Um you can
  678. 24:43see United States over here. If you're
  679. 24:45in Europe, choose that side of things.
  680. 24:46South America or Asia, right? I'm
  681. 24:48obviously in the states, so I would want
  682. 24:49to choose that. And then also just make
  683. 24:52sure that you click Nan on the side of
  684. 24:55things, right? There's two N's. Just
  685. 24:57click the one that is here by default,
  686. 24:59right, with the thumbs up. Okay. Then
  687. 25:02what you're going to do is go over here
  688. 25:03and click continue. All right. Then
  689. 25:05you're going to jump into this screen,
  690. 25:06right? So you can do Google, you can do
  691. 25:08GitHub, or sign this. Let me just do a
  692. 25:10Google one for example.
  693. 25:12Continue. And then you're going to get
  694. 25:14to this screen with your billing address
  695. 25:16and stuff like that. So, I've already
  696. 25:18have my account, so I'm not going to go
  697. 25:20through this, but just fill out your
  698. 25:22information, right? Address, city,
  699. 25:24state, zip code, and then your payment
  700. 25:26details down below. Just make sure data
  701. 25:28science is over here to save you a
  702. 25:29little bit of money, and then you're
  703. 25:31going to be good to go. So, once you
  704. 25:33have that, we'll move on to the next
  705. 25:35step, and I'll show you where that goes.
  706. 25:38All right. So now we have our H panel
  707. 25:42within Hostinger. And what we're going
  708. 25:44to want to do is it says your KVM2 setup
  709. 25:47isn't finished yet. Set up your service
  710. 25:49to start using it. So we're going to go
  711. 25:51over here and click setup. Okay. So
  712. 25:53first we're going to do is set up a
  713. 25:55server location. Now you want to choose
  714. 25:58the location closest to you. So I'm
  715. 26:00going to go into North America over
  716. 26:02here.
  717. 26:04Yep. Click next. Okay. And then on this
  718. 26:08side of things, what it's going to ask
  719. 26:09you for is choose an operating system.
  720. 26:11So I'm just going to go over here and
  721. 26:12type in nan. I'm just going to go over
  722. 26:15this over here. So build 2404. Okay. And
  723. 26:20select that. And then it's going to say
  724. 26:22choose a root password. You'll use the
  725. 26:25root password to log into your VPS. So
  726. 26:28make sure to choose a password over
  727. 26:30here. And make sure it fits all these
  728. 26:32criteria. One number, one lowercase, 12
  729. 26:34to 50 characters, etc. Right. You can
  730. 26:37also set up an SSH key. Probably outside
  731. 26:40the scope a little bit on this video.
  732. 26:41Okay. Save the password over here. They
  733. 26:44have a malware scanner for free. So, you
  734. 26:46might as well just select that. And then
  735. 26:49it says setting up your VPS. This will
  736. 26:51take about 5 minutes. Feel free to leave
  737. 26:52this page. You'll get an email once your
  738. 26:54VPS is ready to go. So, we're going to
  739. 26:56do I'm going to save this recording real
  740. 26:59quick and I will be back when this is
  741. 27:00ready to go. All right. So, we're in
  742. 27:03now. Let's go over here to manage VPS.
  743. 27:07Sweet. And then we get this little
  744. 27:10survey. I'm just going to say personal
  745. 27:12reason on here. I'm going to say AI and
  746. 27:14machine learning. Save that. Awesome.
  747. 27:17And then you can see all of our
  748. 27:18information here on this side of things.
  749. 27:21And I'm just going to click over here to
  750. 27:22manage app. And then what you'll see is
  751. 27:24it says setup owner account. So what
  752. 27:27we're going to do is set this up all
  753. 27:29over again on this side of things,
  754. 27:31right?
  755. 27:33And what I'm going to do on this side is
  756. 27:35grab my email. So, and Nolan data. Okay.
  757. 27:38So, now we're going to want to do is set
  758. 27:40up our owner account. So, again, set up
  759. 27:42email, first name, last name, and a
  760. 27:44password. I want to receive security and
  761. 27:47product updates. I'm going to click next
  762. 27:49over here. And it says customize N for
  763. 27:52you, right? Best describe your company.
  764. 27:56I don't know. We'll just click over
  765. 27:57here. I'm going say YouTube. Yeah, it
  766. 28:00doesn't really matter too much. Data
  767. 28:03science. There we go.
  768. 28:06Myself,
  769. 28:07less than 20 people.
  770. 28:10How do I find out? Let's say YouTube
  771. 28:12also. Okay. And it says get paid
  772. 28:15features for free forever. So, receive a
  773. 28:18free activation key for more advanced
  774. 28:19features below. Lifetime access, right?
  775. 28:22Workflow history, advanced debugging,
  776. 28:23execution, tagging, folders. Sure, we'll
  777. 28:26send that over here. Why not? and take a
  778. 28:30look. We are now officially in Nan. So,
  779. 28:33this is really awesome, right?
  780. 28:36So, it says your license key is on the
  781. 28:38way. We have that over here and we
  782. 28:40should be good to go. All right. So, and
  783. 28:42to activate this, all I did is get this
  784. 28:44email over here. It says please find
  785. 28:45your license key to unlock select paid
  786. 28:48features. Right, click activated over
  787. 28:51here. And it says you have 14 days to
  788. 28:53activate it. Just activate it right now.
  789. 28:55And there's a little notification over
  790. 28:57here that's been activated. So awesome.
  791. 28:59And it says you're on the community
  792. 29:00edition registered and we are good to
  793. 29:02go. So just go back over here and let's
  794. 29:05create our first workflow. All right.
  795. 29:07And then we get taken into this screen
  796. 29:10over here. So we're going to keep this
  797. 29:12super simple for the video. What I'm
  798. 29:14going to do over here is click first
  799. 29:17step. I'm just going to do a chat
  800. 29:18trigger. We can say chat trigger over
  801. 29:21here. Okay. And then what we're going to
  802. 29:23do next is set up an AI agent. So, we'll
  803. 29:26say AI agent over here. Awesome. And
  804. 29:30then this is just going to be based off
  805. 29:31of the chat input. Now, we're going to
  806. 29:33have to set up our credentials. I'll
  807. 29:34show you really quick how we could do
  808. 29:36that. Uh chat model, right? This is
  809. 29:38where we're going to be setting up our
  810. 29:39credentials at. So, I'm going to say
  811. 29:40open AI. And you'll see that says select
  812. 29:44credentials. So, we're going to have to
  813. 29:44create credentials. And I have a few
  814. 29:46videos here on the channel talking about
  815. 29:47how to create credentials and such. I'm
  816. 29:49just going to create a new credential.
  817. 29:51It's super easy to get your credential
  818. 29:53on OpenAI. So just go to OpenAI like
  819. 29:55this, right? Log in. Then once we're in,
  820. 29:58we're just going to go over and get an
  821. 30:00API key. So we're just go over here,
  822. 30:02settings, API keys, create new key,
  823. 30:08test, nan cloud,
  824. 30:12set a project,
  825. 30:14and you can also set permissions like
  826. 30:16how much you want to spend your on your
  827. 30:17G. I'm just going to go over here and do
  828. 30:19that. So
  829. 30:22save that over here.
  830. 30:25Sweet. And it's been saved. Okay, great.
  831. 30:29Okay, great. And then just to stay up to
  832. 30:32date, our model is not GPT41. We
  833. 30:35actually want to set this up into GPT5.
  834. 30:39So make sure we save that over here.
  835. 30:42And also, what I want to do really quick
  836. 30:44is just say memory. I'm going to do a
  837. 30:45simple memory, right? We'll say context
  838. 30:485. So, we just want to open up our chat
  839. 30:51and just make sure this works. So, I'm
  840. 30:52going to click open up chat and I'm
  841. 30:54going to say,
  842. 30:55what is the alltime strikeout leader?
  843. 31:01And this should be pitcher-wise should
  844. 31:04be Nolan Ryan. Super easy question. You
  845. 31:07can see our workflow is running over
  846. 31:09here.
  847. 31:11And Nolan Ryan with 5,714 career
  848. 31:14strikeouts MLB. Sweet. So that is
  849. 31:17working on that side of things. So I
  850. 31:19also want to show you really quick a few
  851. 31:21other things. Number one, I want to show
  852. 31:23you community nodes as well as um how
  853. 31:26you can update this because there are
  854. 31:28going to be updates and this is a little
  855. 31:30bit different than when you work on any
  856. 31:31end cloud. All right. So I I closed out
  857. 31:34over here and what I'm going to do to
  858. 31:36update is we're going to go over here to
  859. 31:37browse terminal.
  860. 31:40You'll see this over here. Now, what I'd
  861. 31:42recommend is just click clear so that
  862. 31:45you have all this space now. And you're
  863. 31:47just going to follow these commands. And
  864. 31:48there's actually article on the website.
  865. 31:50Super super easy. So, all we're going to
  866. 31:52do is pull the latest version with
  867. 31:55Docker. So, we're going to go over here
  868. 31:56and say docker compose pull. So, go over
  869. 31:59here and say docker space compose space
  870. 32:03pull.
  871. 32:05Okay. Then we're going to say docker
  872. 32:09space compose down.
  873. 32:13And then lastly, what we're going to do
  874. 32:15once this is running, go to two.
  875. 32:23Okay. Lastly, we're going to say docker
  876. 32:26compose up dash d. Right. Three lines
  877. 32:31like that. I'll probably put in the
  878. 32:34description. But yeah, that's
  879. 32:36essentially it. Now you have all this
  880. 32:38updated on N and you can close this out,
  881. 32:41right? Let's close that out. And I'm
  882. 32:43here back in my terminal. All right. So
  883. 32:46now let me show you how to work with
  884. 32:47community nodes. So click these three
  885. 32:49dots over here and then go into
  886. 32:50settings.
  887. 32:53And then what we're going to go and go
  888. 32:55over here and say community nodes. So it
  889. 32:57says supercharge your workflows with
  890. 32:59community nodes. Install node packages
  891. 33:01contributed by your community. install a
  892. 33:02community node. So, find community nodes
  893. 33:05to add on the npm public registry. So,
  894. 33:08let's look on this side of things. So,
  895. 33:11here you can see there's over 1,000
  896. 33:13different community nodes that you could
  897. 33:15work with on this side of things. Now, I
  898. 33:17know Tavi is really, really popular. So,
  899. 33:20maybe we'll do a video like that here on
  900. 33:23the channel,
  901. 33:24but you can just keep going over here
  902. 33:26and see. Now, I know also MCP is really
  903. 33:29popular as well. So maybe we want to go
  904. 33:31on that side of things. We'll use this
  905. 33:33one. So then what we're going to do is
  906. 33:34just copy this name over here. So it
  907. 33:36says copy to clipboard over here. And
  908. 33:39then I'm just going to paste in the
  909. 33:40package name over here. I understand the
  910. 33:42risk of installing unverified code from
  911. 33:44public sources. So then just going to
  912. 33:47click install.
  913. 33:49And then you can see I have this
  914. 33:50community node. Now another way to
  915. 33:52install it, let me just show you that
  916. 33:54and go into this workflow. And one of
  917. 33:56the community nodes that has been out
  918. 33:58now is Appify. And you can see it's over
  919. 34:01here. And we want to just click install
  920. 34:03node. So two different ways on that side
  921. 34:06of things.
  922. 34:08And uh yeah, now you says package
  923. 34:10installed. And now we have amplify in
  924. 34:12here, right? And let's say I wanted to
  925. 34:14set up something with ampify, right? I
  926. 34:16just go over here to ampify.
  927. 34:18You can see we have all these different
  928. 34:20actor actions. And I've already covered
  929. 34:22this here in the channel. So make sure
  930. 34:24um to check that out. One thing's nice
  931. 34:26is this run task and get data set. when
  932. 34:29amplify community node was available in
  933. 34:31cloud it did not have that but now it
  934. 34:33does so it's super super nice but yeah
  935. 34:36that is essentially it with community
  936. 34:37nodes really quick before we jump into
  937. 34:39lecture too I quickly wanted to share
  938. 34:41with you guys where you can find all of
  939. 34:43the resources for this course for free
  940. 34:45that includes JSON files that includes
  941. 34:47notes for each lecture as well as a
  942. 34:50community so if you have any questions
  943. 34:51you could ask them and help you out with
  944. 34:54those uh I'm super active in here and I
  945. 34:56try to help out as many people as
  946. 34:57possible Again, this is all for free.
  947. 34:59You can join our school group. Let me
  948. 35:01show you this really quick. So, here is
  949. 35:04our school group. I'm recording this on
  950. 35:06New Year's. So, just made a post on
  951. 35:09that. We also have Hangouts as the
  952. 35:11group. So, I've been a little bit busy
  953. 35:13this week and last week recording this
  954. 35:15course, but you can see like whenever we
  955. 35:16have a hangout, we'll post it in over
  956. 35:18here. And uh a nice little shout out on
  957. 35:21that side of things. So to get all the
  958. 35:24resources for this course, and by the
  959. 35:25way, they'll all be added in over here
  960. 35:27once I finish the course. I just put a
  961. 35:29few over here for demo purposes. What
  962. 35:32we're going to do is go over to this NV2
  963. 35:34course. So click on that and then you'll
  964. 35:37see we're going to have a start here
  965. 35:39section which will the video talk about
  966. 35:41the best way to approach the course and
  967. 35:43then each of these lectures and there's
  968. 35:45going to be probably well over 30
  969. 35:46lectures all compiled together in the
  970. 35:49course. So for example, I just put this
  971. 35:50together really quickly. Lecture three c
  972. 35:52four concepts just a note every nan
  973. 35:55workflow is built with the same
  974. 35:56fundamental pieces understanding
  975. 35:57triggers nodes and data flow unlock
  976. 35:59everything else in this course and then
  977. 36:01uh just some notes like trigger starts a
  978. 36:03workflow nodes are the components of a
  979. 36:05workflow how to pin data modify and pin
  980. 36:07data like these are just my notes for
  981. 36:09the course and I'll throw these in over
  982. 36:11here and I'll expand this over time as
  983. 36:13well if people are enjoying this and
  984. 36:15have other feedback associated with it
  985. 36:18in addition we have our resources down
  986. 36:19here so you can just click on this and
  987. 36:21this is our JSON file. So every lecture,
  988. 36:23well, I'd say probably 95% of the
  989. 36:25lectures are going to have a JSON file.
  990. 36:27Some things won't. For example, lecture
  991. 36:28one where we just talk about the
  992. 36:30different types of NAN. So if I go over
  993. 36:33here and download this, you'll see we
  994. 36:34have section three core concepts. Let me
  995. 36:36show you really quick how we could
  996. 36:37upload this into NAN. So all you need to
  997. 36:40do is go over here and create a
  998. 36:43workflow. And we're going to go and
  999. 36:45click these three dots on the side of
  1000. 36:48things. And I know you don't know the
  1001. 36:49whole user interface. We're going to
  1002. 36:50talk about that in lecture two. Um, but
  1003. 36:52all you're going to do is click import
  1004. 36:54from file and then go to your downloads.
  1005. 36:57So, let me find our downloads on here.
  1006. 37:00So, this is our downloads and it says
  1007. 37:01section 3 core concepts. So, you click
  1008. 37:03on this and this is the exact workflows
  1009. 37:06that I used when I was teaching lecture
  1010. 37:093. So, as soon as I finished recording,
  1011. 37:11all I did is I saved this workflow and
  1012. 37:13then I essentially had this ready to go
  1013. 37:16to publish in the course. So, we'll talk
  1014. 37:18about edit fields. We'll talk about an
  1015. 37:20AI agent. Well, this over here would
  1016. 37:23build your first workflow, which was
  1017. 37:25kind of one of the homework assignments
  1018. 37:26directly in the video. And then I showed
  1019. 37:28you how to do this as well. So, all of
  1020. 37:30my notes as I was going through live and
  1021. 37:32teaching are in over here. And in
  1022. 37:35addition, in the future, uh, each of
  1023. 37:37these sections will have a bonus
  1024. 37:39homework section that is not available
  1025. 37:41in this video. So, um, if you want to
  1026. 37:43have extra credit and really learn the
  1027. 37:46concepts, there's going to be a bonus in
  1028. 37:48here. Uh, just also quickly show you
  1029. 37:50there is other additions in our
  1030. 37:52classroom section. So, we have discounts
  1031. 37:54and links for some of the different
  1032. 37:56things that we reference here in the
  1033. 37:57video. We also have an N road map if you
  1034. 38:00want to learn different concepts over
  1035. 38:02time. And we have a lot of the N
  1036. 38:03workflows and JSON files from our other
  1037. 38:05YouTube videos. This is still being
  1038. 38:07built out. So, um, by the time that
  1039. 38:09you're watching this, it might be a
  1040. 38:11little bit fuller. And then we have
  1041. 38:12member created workflows. So, if people
  1042. 38:14want to submit a workflow on here, uh,
  1043. 38:16they can. And we'll give a shout out to
  1044. 38:18that specific member. So, all this is
  1045. 38:20available in our school community. It is
  1046. 38:22100% free to join. It's not $100 a
  1047. 38:24month, $200 a month. This is our free
  1048. 38:26group. Giving as much value back to you
  1049. 38:28guys as possible, and I'd love to have
  1050. 38:30you be part of it. Join our calls. uh
  1051. 38:33post over here and uh learn to grow your
  1052. 38:35skill set whether it's an N data or AI.
  1053. 38:38A lot of us are just trying to improve
  1054. 38:40our skills and upskill in life. Anyways,
  1055. 38:43back into this course. I know we have a
  1056. 38:45long way to go. I just really quickly
  1057. 38:46wanted to share with you how you could
  1058. 38:48access everything. So, don't don't worry
  1059. 38:50too much about keeping very particular
  1060. 38:53notes on each section. Don't about
  1061. 38:55having to replicate everything because
  1062. 38:57it's all available for you in this free
  1063. 38:59group. All right. See you.
  1064. 39:02Okay, so hopefully that you have either
  1065. 39:05cloud or self-hosted right now. No
  1066. 39:07excuses. There's some free options,
  1067. 39:09trial options, and paid options. What I
  1068. 39:12want to do now is kind of walk you
  1069. 39:13through where everything lives in any.
  1070. 39:16Now, I'm going to be using cloud. So, if
  1071. 39:18you do have self-hosted, there's going
  1072. 39:20to be some slight variations, but
  1073. 39:22probably about 95% of what I show you
  1074. 39:24over here is going to be applicable. So,
  1075. 39:27I find it really helpful understanding
  1076. 39:29where everything lives within a piece of
  1077. 39:31software before I really dive into it
  1078. 39:34just because if I have an error or need
  1079. 39:36to find something, I typically spend a
  1080. 39:38lot of time trying to find it. So, I
  1081. 39:39want to clear up any confusion with
  1082. 39:41that. Next lecture, we're going to
  1083. 39:42actually start jumping into some of the
  1084. 39:44triggers and nodes and build your first
  1085. 39:46workflow. But with that out of the way,
  1086. 39:48let's take a look at this. Now, when you
  1087. 39:50log in, you're typically going to go
  1088. 39:51into this screen right over here. We
  1089. 39:53probably don't have any workflows as of
  1090. 39:55yet unless you've really started with
  1091. 39:57the program. So, let me show you a few
  1092. 39:59of the different sides. First thing what
  1093. 40:01we have is all of our flows and these
  1094. 40:04are essentially the automations that you
  1095. 40:06are creating. What's great is you can
  1096. 40:08see if it is a personal workflow over
  1097. 40:11here and then you can see if you've
  1098. 40:12shared it with anyone else and you can
  1099. 40:14see that there's a plus one. Up next
  1100. 40:16over here you have this icon right here.
  1101. 40:18So all these negative signs means it is
  1102. 40:20not published and I should have some
  1103. 40:23green check marks and these means that
  1104. 40:25they are published in general. You can
  1105. 40:28also sort this. So you have sort by last
  1106. 40:31updated, sort by last created, sort by
  1107. 40:33name, uh a toz or za. You can also add
  1108. 40:37in some additional filter criterias if
  1109. 40:39you want to. Uh so you can filter by
  1110. 40:41tags, by status, which is published or
  1111. 40:44unpublished, archived workflows as well
  1112. 40:47as the particular owner and go over here
  1113. 40:49and search as well. And you can see the
  1114. 40:52name of the workflow, when it was last
  1115. 40:54updated, and when it was officially
  1116. 40:56created. In addition, what you have over
  1117. 40:59here are different tabs. So you'll be
  1118. 41:01using workflows the most. Uh the second
  1119. 41:03one that you'll use quite a bit is going
  1120. 41:05to be credentials. And what credentials
  1121. 41:07is are your login to different services.
  1122. 41:10So you can see I have my Google Drive
  1123. 41:12credentials over here with OOTH. I have
  1124. 41:14HubSpot which is OOTH. Uh I have
  1125. 41:16anthropic over here. I have my Gmail
  1126. 41:18account. I have some header offs that I
  1127. 41:21have over here. I have Cloudflare. So
  1128. 41:22different options over here. You can see
  1129. 41:24if it's a personal one or if it's
  1130. 41:25someone on your particular team. Next is
  1131. 41:28going to be your executions. So this
  1132. 41:30tells you if there uh execution was
  1133. 41:33successful or not. And you can see we
  1134. 41:35have our specific workflow. And this is
  1135. 41:37going to be a probably a little bit out
  1136. 41:38of scope right now and you're going to
  1137. 41:40be confused about it. But we're going to
  1138. 41:42cover this a little bit later on in the
  1139. 41:44course. So if you have an error of some
  1140. 41:46capacity, it's going to populate over
  1141. 41:47here. If everything worked in
  1142. 41:49particular, you'll see this green check
  1143. 41:51mark. You can see when the workflow
  1144. 41:53specifically is started, how long it
  1145. 41:55took for that specific workflow, and
  1146. 41:58then also the execution ID. Next, we
  1147. 42:00have variables. I don't have this on my
  1148. 42:03plan and we're not going to be covering
  1149. 42:04this in the course today, but I may make
  1150. 42:08a another video in the future on this is
  1151. 42:11only available for pro and I'm not going
  1152. 42:13to pay for that. Lastly, we have data
  1153. 42:16tables and we are going to be covering
  1154. 42:18data tables. I want to say it's
  1155. 42:19somewhere from like lecture 8 to 10
  1156. 42:21somewhere around in that particular area
  1157. 42:23and it's going to be very helpful. You
  1158. 42:24can think of data tables like a Google
  1159. 42:27sheet but it's native directly into NEN.
  1160. 42:30And why this is amazing is you don't
  1161. 42:33have to worry about API calls. So you
  1162. 42:34don't need to worry about sending data
  1163. 42:36to Google Sheets. You don't have to
  1164. 42:37worry about sending data to Air Table.
  1165. 42:39And uh this is a really great way just
  1166. 42:42to store internal data. You pull data,
  1167. 42:44do some testing. We'll cover this in a
  1168. 42:47lot of detail, probably 20 to 30 minutes
  1169. 42:49alone a little bit later on in this
  1170. 42:51course, but that is going to be one of
  1171. 42:52the tabs that you could click over. In
  1172. 42:55addition, what you have over here is
  1173. 42:56your executions. Uh you have how many
  1174. 42:59failed executions. Obviously, this is my
  1175. 43:01kind of testing account for YouTube, the
  1176. 43:03failure rate, the time saved associated
  1177. 43:06with it, uh, which is calculations, and
  1178. 43:08maybe we'll cover that as well in the
  1179. 43:09course, and also the run time on
  1180. 43:12average. So, I'm going to just jump back
  1181. 43:14into workflows. I'm going to show you a
  1182. 43:16few other settings here before we move
  1183. 43:17on. You can also change the number of
  1184. 43:19workflows you show per page. So, by
  1185. 43:21default, it is 50, but you can change
  1186. 43:23this to 10, 25, or 100. You have also
  1187. 43:25multiple pages on that side of things.
  1188. 43:28If you go to the top right, you have a
  1189. 43:30few different options as well. So you
  1190. 43:32can create a workflow which is going to
  1191. 43:33be the automations that we're going to
  1192. 43:35be covering. You can create a credential
  1193. 43:37which is going to be your login to a
  1194. 43:38particular website like API. And then we
  1195. 43:41also have our create the data table. And
  1196. 43:44I just find it very helpful. I'm always
  1197. 43:46over here just creating workflow. And
  1198. 43:48you can see that we're in the workflow
  1199. 43:49tab. It says create workflow. We're in
  1200. 43:50the credential tab. It creates
  1201. 43:52credential. Then we go to data tab. It
  1202. 43:54goes to create data table. So, it's not
  1203. 43:57always going to say create workflow. And
  1204. 43:58I do like that component because the
  1205. 44:00NAND team made it really nice. Like if
  1206. 44:02I'm going to data tables and I don't
  1207. 44:03want to just click down and find data
  1208. 44:05table. Like it's already right over
  1209. 44:07here. And I just think that was a really
  1210. 44:08great design. Okay. So now what we have
  1211. 44:12is a lot of different settings over here
  1212. 44:13to the right. Microphone's actually a
  1213. 44:15little bit in the way. So might move a
  1214. 44:17little bit out of screen over here just
  1215. 44:19to see them. But the first one is to
  1216. 44:21expand the sidebar. So maybe out of the
  1217. 44:23gate you have a sidebar that looks like
  1218. 44:25this. Personally, I just hide it for
  1219. 44:27these YouTube videos to give you guys a
  1220. 44:28little bit more space. But you'll see we
  1221. 44:30have overview, personal, shared with
  1222. 44:32you, chat, admin panel, templates,
  1223. 44:36insights, help, as well as settings. So,
  1224. 44:39everything I've showed you so far is on
  1225. 44:41our overview side of things. What I want
  1226. 44:44to show you next is personal. So, this
  1227. 44:45is just what you personally have. And
  1228. 44:48you can see this has changed slightly.
  1229. 44:50So, this has workflows, credentials,
  1230. 44:52executions, and data tables. You can see
  1231. 44:54variables is not available on that
  1232. 44:56personal section. So that is gone as
  1233. 44:59well as this particular header. And you
  1234. 45:02know maybe in the future I see the any
  1235. 45:03end team kind of merging these together.
  1236. 45:06I don't know for sure but you have that
  1237. 45:09very very similar. Next what you have is
  1238. 45:11shared with you. So any workflows that
  1239. 45:13someone shared. Uh so this was one for a
  1240. 45:16particular YouTube video uh my editor
  1241. 45:18was helping me with. We haven't even
  1242. 45:20published a filter node video as of yet.
  1243. 45:22This was shared over here. Next, what we
  1244. 45:24have is our chat hub. And we're going to
  1245. 45:26talk about this entirely in a lecture
  1246. 45:29within this course. And this is
  1247. 45:31relatively new like within the last two
  1248. 45:33weeks or so. But I really like chatub
  1249. 45:35because essentially what chat hub is is
  1250. 45:37this is your internal essentially chat
  1251. 45:39GPT for nan. And the best part about
  1252. 45:42chatub is you can actually talk directly
  1253. 45:45into your workflows which is great. In
  1254. 45:49addition, what you can do is build out
  1255. 45:51personal agents. So you can have an
  1256. 45:53agent for a particular task and then you
  1257. 45:56can see the workflow agents. So this is
  1258. 45:58a personal agent. I have one that's
  1259. 46:01built out just for SQL debugging. And
  1260. 46:03then we have workflow agents over here.
  1261. 46:06And why these are helpful is you can use
  1262. 46:07these to talk to your particular
  1263. 46:10workflows if you have a chat trigger.
  1264. 46:12And a lot of this might not make sense
  1265. 46:14right now, but later on the course you
  1266. 46:16will uh use it and you're going to be
  1267. 46:17like, man, this is a awesome feature.
  1268. 46:20But again, think of this as like chat
  1269. 46:22GPT. You can just ask questions. You can
  1270. 46:24do whatever you want. And what's great
  1271. 46:26about this as well is you can go over
  1272. 46:28here and you can choose whatever model
  1273. 46:30you want as long as you've set up the
  1274. 46:32particular credential. So you can see
  1275. 46:33GPT uh all these over here. If we go to
  1276. 46:36anthropic, all that. So instead of
  1277. 46:38having like one tab open for anthropic,
  1278. 46:40one tab open for chat GPT, you can do
  1279. 46:43everything all over here in addition to
  1280. 46:45working with your workflows and asking
  1281. 46:47questions. Again, very very nice. And
  1282. 46:50just to show you what this looks like as
  1283. 46:51well. So, I just have some older stuff
  1284. 46:54over here. And you can see these were
  1285. 46:57examples just talking to workflows,
  1286. 47:00which is why these are workflow agents.
  1287. 47:02This over here was just another
  1288. 47:04question. I'm asking GBT5 Mini and I was
  1289. 47:07also asking about the personal agent a
  1290. 47:09little bit earlier and then I was
  1291. 47:11testing uh building out a UGC creator
  1292. 47:14over here. One limitation and I do think
  1293. 47:16the any end team will eventually solve
  1294. 47:18this is this does not work right now
  1295. 47:21with images or videos. In fact any end
  1296. 47:23team does know about that because a few
  1297. 47:25of our creators talked to them about
  1298. 47:27that in a call. So you know in the
  1299. 47:29future I can see this being changed but
  1300. 47:32again I just wanted to show you what is
  1301. 47:34available in chatub as of now and you
  1302. 47:36can see it is in beta version. All right
  1303. 47:38so you just click into any logo and
  1304. 47:40we're going to be back over here to the
  1305. 47:42homepage. So that's overview, that's
  1306. 47:44personal, shared with you. Now you have
  1307. 47:46a lot of other sections which is our
  1308. 47:47admin panel, templates, insights, help
  1309. 47:50as well as settings. So let's go into
  1310. 47:52our admin panel first. And we'll click
  1311. 47:55this. And here you see this option. It
  1312. 47:58says N. You have your dashboard manage.
  1313. 48:00You have your help setter. You have your
  1314. 48:02open your instance. It tells you that
  1315. 48:04the instance is currently online. that
  1316. 48:06tells you what version of Nan that you
  1317. 48:09are currently running which is important
  1318. 48:10because what ends up happening is Nan
  1319. 48:13team drops a ton of new features
  1320. 48:15literally weekly and it's super
  1321. 48:17important that you stay up to date on
  1322. 48:18that side of things if you want to
  1323. 48:20access new features. So you might be
  1324. 48:21going like, "Oh, how do I actually the
  1325. 48:24N?" And let me show you. So you click
  1326. 48:26over here into this gear icon and you
  1327. 48:28can see it says N version and I'm on the
  1328. 48:31latest stable version, but you'll find
  1329. 48:33that they often have a better release as
  1330. 48:34well as a stable version. So just go
  1331. 48:36over here and choose whatever one you
  1332. 48:39personally want. Since I'm making a lot
  1333. 48:40of videos on YouTube, I use this for
  1334. 48:42better releases just so that way I have
  1335. 48:44the newest nodes and newest settings
  1336. 48:46available. But uh if you want to just go
  1337. 48:49stable, you have that option as well.
  1338. 48:51You have your time zone over here,
  1339. 48:54executions to save. You have community
  1340. 48:57nodes, which we're going to talk a lot
  1341. 48:58more about. Know a little bit about
  1342. 49:00community nodes uh within the previous
  1343. 49:02lecture, but uh community nodes are
  1344. 49:05pretty important. Obviously, they are
  1345. 49:06limited on cloud versus self-hosted, but
  1346. 49:09if you want to access community nodes,
  1347. 49:11you have to go over here. You want to
  1348. 49:13disable them as well, you can choose uh
  1349. 49:15to to that option. Again, it really
  1350. 49:17depends on your data governance at your
  1351. 49:19job and what you want the particular
  1352. 49:22use. I can see some companies disabling
  1353. 49:24all community nodes. I can see some only
  1354. 49:26allowing verified. Um, okay. You can
  1355. 49:29also change your plan over here as well.
  1356. 49:31I'm just on starter for this particular
  1357. 49:33account. Next, you have the billing side
  1358. 49:35of it. You can see when payments were
  1359. 49:37coming through and things like that.
  1360. 49:39Just going to blur my payment method
  1361. 49:41down below so you guys do not see that.
  1362. 49:43But yeah, I am paying the $24 a month
  1363. 49:45for this account. And then you also have
  1364. 49:47an export. So click here to download a
  1365. 49:49copy of your workflows from the latest N
  1366. 49:51cloud backup, which is nice. So you
  1367. 49:53should probably download a copy of your
  1368. 49:55workflows occasionally just to save them
  1369. 49:57if you particular need that. So I'm
  1370. 49:59going to go back over here and go to
  1371. 50:01this dashboard on that side of things.
  1372. 50:04And we're going to go and click open
  1373. 50:07instance. And what you'll see if we
  1374. 50:09click open instance, take a look. We are
  1375. 50:11back on the overview side of things. So,
  1376. 50:14that is going to be the admin panel.
  1377. 50:17Next thing we're going to do is go into
  1378. 50:19templates. And honestly, I don't really
  1379. 50:21use templates that often, but if you
  1380. 50:24want to download a template specifically
  1381. 50:26from NAN's website, you can just click
  1382. 50:28on that. Here are some featured
  1383. 50:30templates. So, you can see for example,
  1384. 50:32create daily newsletter digest from
  1385. 50:33Gmail using GPT41 mini research
  1386. 50:36assistant for WhatsApp using Twilio
  1387. 50:38Flexity and Claude. analyze website
  1388. 50:40backlinks with top backlink checker and
  1389. 50:42API Google Sheets logging. So if you
  1390. 50:44have a particular use case and you don't
  1391. 50:46know where to start, sometimes templates
  1392. 50:48can be pretty helpful on that side of
  1393. 50:50things. And you know, honestly, I should
  1394. 50:51be using templates a lot more than I do.
  1395. 50:54Again, I don't really use templates that
  1396. 50:56often because I kind of stubborn and I
  1397. 50:57want to build everything myself, but
  1398. 50:59they could be a great starting point.
  1399. 51:01And if you click over to see more
  1400. 51:02templates, you can actually see 7,536
  1401. 51:05workflow automation templates over here.
  1402. 51:08You can see who wrote or who built a
  1403. 51:11specific template. They have a verified
  1404. 51:13graders and whatnot. And actually, I do
  1405. 51:16have a template on the website. In fact,
  1406. 51:18I plan on putting a lot more over here
  1407. 51:21in the future. I'm curious if I type my
  1408. 51:23name if we uh have it over here. No, I
  1409. 51:27don't. Believe I I put binary data on
  1410. 51:30here. So, let me see.
  1411. 51:32Oh, here we go. And I I haven't even
  1412. 51:34updated my image. This is some very poor
  1413. 51:38text and copywriting, but you can see I
  1414. 51:40I just wanted to test one out here on
  1415. 51:43the forums and we could also cover how
  1416. 51:45to publish a template as well on the
  1417. 51:48side of things. And I actually think
  1418. 51:49this would be a pretty cool uh video to
  1419. 51:51talk about or not video but a section in
  1420. 51:53the course because I do think there's
  1421. 51:54value in sharing some particular
  1422. 51:56templates whether you want to share it
  1423. 51:57for free or paid because both of them
  1424. 51:59are available over here. But yeah, this
  1425. 52:01is just an example. And when you take a
  1426. 52:03look at templates on the N forms, what
  1427. 52:06you can see is you can actually zoom in,
  1428. 52:08you can grab different sections. We'll
  1429. 52:10be covering a lot more here in the
  1430. 52:12future. I just talked about this was on
  1431. 52:14the YouTube channel. I embedded a
  1432. 52:15YouTube video over here. You can see the
  1433. 52:18different examples I put through over
  1434. 52:20here as well as some text. But you can
  1435. 52:22go back into templates if you want to
  1436. 52:24click on another one. Let's say generate
  1437. 52:25AI videos with Bolato.
  1438. 52:30And actually I just listened to a
  1439. 52:31podcast I believe by the creator of that
  1440. 52:33on and they publish a podcast but you
  1441. 52:36can see I'm going over here this person
  1442. 52:38over here uploaded a video as well
  1443. 52:41there's documentation so documentation
  1444. 52:44on notion requirement doc and then you
  1445. 52:46can see there's different steps over
  1446. 52:48here select idea step two image video ad
  1447. 52:52script posts automations and some really
  1448. 52:56cool stuff going on over here I still
  1449. 52:57like I said I still got to check out
  1450. 52:58that note I've heard some great things
  1451. 53:00about it. It's on my tutorial backlog.
  1452. 53:01Maybe we'll throw it in this course as
  1453. 53:03well. But yeah, so that's an option over
  1454. 53:06here. And if you actually click use for
  1455. 53:07free, this will populate directly within
  1456. 53:10your n instance. So you can see import
  1457. 53:13template to rhinol and data cloud
  1458. 53:15workspace, copy template to clipboard as
  1459. 53:17JSON, open self-hosting, installation
  1460. 53:20docs. We're going to cover this more in
  1461. 53:21the future, I promise you on that side
  1462. 53:23of things. I don't want to take away
  1463. 53:24from the UI side of it for this part of
  1464. 53:27the video. But yeah, that's what
  1465. 53:29templates essentially allows you to do.
  1466. 53:30Sorry if I spent a little too long over
  1467. 53:32there. Okay, next we have insights. And
  1468. 53:35I just don't have insights because I'm
  1469. 53:37not on the pro plan. This is more of an
  1470. 53:40impact if you have a a plan for a
  1471. 53:43particular business. You can see a lot
  1472. 53:45of stuff is just it's not filled out.
  1473. 53:48Again, I want to look at more time saved
  1474. 53:49here in the future, but you can see I
  1475. 53:51don't even really get that breakdown on
  1476. 53:54that side of things. So, I just haven't
  1477. 53:57really filled that out. Okay. So, next
  1478. 53:59you have your help section. So, there's
  1479. 54:01quite a few things over here. So, it
  1480. 54:02says, "Share your workflow with others,
  1481. 54:04unlock perks, and become a featured
  1482. 54:05template creator. Become a creator."
  1483. 54:07Again, we're going to cover that a
  1484. 54:08little bit for the future. You have a
  1485. 54:10quick start guide, which honestly, if
  1486. 54:11you guys are watching this video, you
  1487. 54:12probably won't need to use that. You
  1488. 54:14have documentation, which I use actually
  1489. 54:16quite a bit. I think some people think
  1490. 54:18they're too good for the documentation,
  1491. 54:19like, "Oh, I can figure things out." But
  1492. 54:21the N team does a really great job when
  1493. 54:23it comes to documenting how nodes work.
  1494. 54:26And u I would re really recommend if you
  1495. 54:28if you don't understand how a node works
  1496. 54:30or if you want to get some clarity,
  1497. 54:32check out the documentation. We're going
  1498. 54:34to open up that here in a second. Next,
  1499. 54:35you have NAN community forums. So we'll
  1500. 54:38go over there. You have a report of bugs
  1501. 54:39section about NE. Uh, next over here is
  1502. 54:42your change log like what is new, what
  1503. 54:44is NAM bringing in instance level MCP
  1504. 54:47guardrail nodes, new ways to
  1505. 54:49authenticate MCP client tool. All these
  1506. 54:51we're going to cover here in the course.
  1507. 54:52You can see the full change log and then
  1508. 54:54if you're behind on a version which you
  1509. 54:55guys saw I'm on the latest version. Uh,
  1510. 54:57you would want to click over here and
  1511. 54:59it'll go back into your admin panel. So
  1512. 55:01just to show you the any end docs really
  1513. 55:03fast. So where you go over here you can
  1514. 55:06look for a specific node and just try to
  1515. 55:08find it. So you could go and search
  1516. 55:11something. For example, let's say nan
  1517. 55:14loop over items
  1518. 55:18documentation.
  1519. 55:20So I'm just going to go over here and
  1520. 55:22you can see loop over items. It says
  1521. 55:24when to use it, node parameters and what
  1522. 55:27they have is templates and examples on
  1523. 55:29this side of things. Read RSS feed from
  1524. 55:32two different sources. There's an
  1525. 55:33example over here. View workflow file.
  1526. 55:36Again, more JSON on that side of things.
  1527. 55:38get the current running index of this
  1528. 55:40node. So like a lot of really great
  1529. 55:43documentation in my personal opinion all
  1530. 55:45on one side of things and you can see
  1531. 55:46built-in nodes you have cluster nodes
  1532. 55:48credentials community nodes again very
  1533. 55:51great documentation feel free to read
  1534. 55:52into it see cluster nodes talk a lot
  1535. 55:55more about that but uh one other thing
  1536. 55:57we'll cover this once we get into the UI
  1537. 55:59is actually if you click into a node
  1538. 56:01they'll often have a say a section that
  1539. 56:03says either look at a template or read
  1540. 56:05into the documentation so that is all
  1541. 56:07there here's the n community so this is
  1542. 56:10another great spot to kind of just
  1543. 56:11network with people, uh, see what people
  1544. 56:13are building and things like that. I
  1545. 56:15don't use the community as much as I
  1546. 56:17really should, but one of the best
  1547. 56:19aspects of NAN is kind of the community
  1548. 56:21that they've fostered. Like it's a very
  1549. 56:23great community. You can see we need
  1550. 56:24your help. There's 28 replies, 50,000
  1551. 56:26views. Welcome to N community, 16,000
  1552. 56:29views. So like a lot of people are
  1553. 56:31pretty active on here. OOTH issues. You
  1554. 56:33can see people put questions that aren't
  1555. 56:34working or they share things as well.
  1556. 56:37There's a lot of different topics,
  1557. 56:38announcements, questions, tutorials
  1558. 56:40built with N and you can see the people
  1559. 56:43that are responding or whatnot. Lastly,
  1560. 56:45our release notes. So, just based off of
  1561. 56:47here like what is going on with N. So,
  1562. 56:50you can see like when there's a new
  1563. 56:51version, they talk about what is being
  1564. 56:53changed. I use release notes just to
  1565. 56:55kind of know what's happening with N and
  1566. 56:57kind of helps me make some YouTube
  1567. 56:58videos like, oh, they just put this in
  1568. 57:00N. I should probably cover this on a a
  1569. 57:03video on the channel. So, you know,
  1570. 57:05maybe it's not as important for you, but
  1571. 57:07if you want to take a look at release
  1572. 57:09notes before you update, or if you just
  1573. 57:10want to see what's new to the software,
  1574. 57:12you know, you can see what's new over
  1575. 57:14here. Or you can just like really go
  1576. 57:16into the release notes and press that
  1577. 57:17used to release notes a little bit more.
  1578. 57:19All right, so that covers essentially
  1579. 57:21that side of it, which is insights.
  1580. 57:23Sorry, that covers also the helps
  1581. 57:25section. That wasn't insights. Lastly,
  1582. 57:27you have settings, which is quite a few
  1583. 57:29different settings over here. Uh, if we
  1584. 57:31click on one, it'll go to everything. So
  1585. 57:33we'll just go over here and go to
  1586. 57:34settings. So you have the personal side
  1587. 57:37of things. Then you have your users that
  1588. 57:39are in your instance. You have different
  1589. 57:41roles uh for projects, but that's only
  1590. 57:43available on enterprise plans. I'm not
  1591. 57:45going to click on that because
  1592. 57:46enterprise is really really expensive.
  1593. 57:48You have the N API, which I haven't used
  1594. 57:51as of yet. Maybe I'll take a look at
  1595. 57:53this here in the future. You have
  1596. 57:55external secrets. Again, available
  1597. 57:56enterprise plan. So I don't have that.
  1598. 57:58You have environments enterprise plan.
  1599. 58:00Don't have access to that. If you have
  1600. 58:02SSO again enterprise plan, I do not have
  1601. 58:05that. LDAP do not have that as well.
  1602. 58:10Loging uh is a paid feature. So don't
  1603. 58:13have available on that. You have
  1604. 58:14community notes that is something I do
  1605. 58:17have. So as I mentioned, you know,
  1606. 58:19community nodes are things that
  1607. 58:20companies will build and they want to
  1608. 58:22put this in directly into N because a
  1609. 58:24lot of people use their software. For
  1610. 58:26example, there's firecrawl over here.
  1611. 58:28There's ampify that I've used. their SER
  1612. 58:30API and you can see the versions of
  1613. 58:31these and it says you're up to date, you
  1614. 58:33up to date, you were up to date, but if
  1615. 58:35you weren't in the most current version,
  1616. 58:37it would tell you you could update it
  1617. 58:38over there. You can take a look at the
  1618. 58:40documentation and you can uninstall Ka
  1619. 58:41nodes as well all in one particular
  1620. 58:43place. You can also access all this on
  1621. 58:45your particular canvas. Uh you have a
  1622. 58:47migration report. Now why the migration
  1623. 58:50import is important when people are
  1624. 58:51moving from version one to version two
  1625. 58:53of any n there are things that are going
  1626. 58:56to break with the Python code node as
  1627. 58:58well as the subworkflow node and yeah so
  1628. 59:02this tells you what workflows are
  1629. 59:03particular impacted with that I've
  1630. 59:05actually covered this in a lot greater
  1631. 59:06detail in our nan v2 stuff but if you're
  1632. 59:09watching this video chances are you're
  1633. 59:11probably brand new to any you don't
  1634. 59:12really have to worry about this in
  1635. 59:14particular the next is the instance
  1636. 59:16level MCP so it says let mcp clients
  1637. 59:18like flawed, lovable, and other AI
  1638. 59:19tools. Discover and execute your NAN
  1639. 59:21workflows. So, actually, we're going to
  1640. 59:23be doing this a little bit later on in
  1641. 59:25this course. I haven't actually recorded
  1642. 59:28the particular YouTube video for this as
  1643. 59:30of yet. It's in my backlog. But, uh, I
  1644. 59:32guess we're going to put it in the
  1645. 59:32course first and then I'll have the
  1646. 59:34breakdown of a YouTube video on there.
  1647. 59:36And then lastly, you have chat settings.
  1648. 59:38So, we'll cover this a little bit more a
  1649. 59:40little bit later on in the course when
  1650. 59:41we cover into chat. But you can see we
  1651. 59:44have a specific provider, what models
  1652. 59:46are available and things like that. You
  1653. 59:48can you can choose different options,
  1654. 59:51whether you want to enable it in chat or
  1655. 59:52not, limit the models. Again, we're
  1656. 59:54going to talk about that later in the
  1657. 59:55course. I don't want to spend all the
  1658. 59:57time doing that. And then just clicking
  1659. 59:59back, you are back into uh this
  1660. 1:00:02homepage, which is going to be overview.
  1661. 1:00:04A few other just quick minor things I
  1662. 1:00:07want to cover really fast for you. So,
  1663. 1:00:09first we already covered the sidebar. So
  1664. 1:00:11you can see how that has next thing you
  1665. 1:00:13can click this plus you can create a new
  1666. 1:00:15workflow you can create a new credential
  1667. 1:00:17or you can create a new project and then
  1668. 1:00:19lastly what we have over here is a
  1669. 1:00:21command bar and a lot of people like the
  1670. 1:00:22command bar and I actually haven't seen
  1671. 1:00:23a lot of people talk about it but this
  1672. 1:00:25allows you to go into recent actions. So
  1673. 1:00:27you can see like open RSS feed node
  1674. 1:00:29which is a video I published open AI
  1675. 1:00:31nodes another video I published open any
  1676. 1:00:34chat you have workflows create a new
  1677. 1:00:36workflow open a workflow projects create
  1678. 1:00:38a project open a project uh credentials
  1679. 1:00:41you have data tables over here execution
  1680. 1:00:44you can go to navigation what's new chat
  1681. 1:00:46templates variables so a lot of things I
  1682. 1:00:48already showed you over here you have
  1683. 1:00:49the help guide but this is just all
  1684. 1:00:51available in uh this search rather than
  1685. 1:00:53just going through all that over here
  1686. 1:00:55which can save some time for some
  1687. 1:00:57particular power users. What I want to
  1688. 1:01:00do now is just go into create a workflow
  1689. 1:01:02and show you a few other things really
  1690. 1:01:04fast and then uh and we'll call this for
  1691. 1:01:07lecture number two. So I'm just going to
  1692. 1:01:09go over here into create workflow and
  1693. 1:01:12let's cover some of these specific
  1694. 1:01:14basics. So going into the canvas again,
  1695. 1:01:17you'll see that we have the sidebar.
  1696. 1:01:18Personally, I like having as much space
  1697. 1:01:20as possible. So, all I'm going to do is
  1698. 1:01:23just collapse this sidebar. And you can
  1699. 1:01:25see you have a little bit more room. And
  1700. 1:01:27the first thing you should notice is we
  1701. 1:01:29have our sections over here, which is
  1702. 1:01:31editor, executions, as well as
  1703. 1:01:33evaluations. Again, we'll cover all
  1704. 1:01:35these more in particular detail in the
  1705. 1:01:37future. Executions is when you run your
  1706. 1:01:39particular workflow. Obviously, we
  1707. 1:01:41haven't even built out a workflow yet.
  1708. 1:01:43So, this is going to be blank.
  1709. 1:01:44Valuations help when you're building out
  1710. 1:01:47AI workflows or AI orchestration. And
  1711. 1:01:50there's a lot of nuances behind it. You
  1712. 1:01:52can see you only have one uh for the
  1713. 1:01:55individual side of things and I'll have
  1714. 1:01:57to delete it for this course, but that's
  1715. 1:01:59fine. And we're back into our particular
  1716. 1:02:01editor. So those are your three options
  1717. 1:02:03over here. When you want to save a
  1718. 1:02:05workflow, what you want to do is click
  1719. 1:02:06over here and mention that it is save.
  1720. 1:02:09Uh so now you can see my workflow is
  1721. 1:02:11saved. You can change the name really,
  1722. 1:02:13really easily. So you can see how it
  1723. 1:02:15says my workflow 12 over here. All I'm
  1724. 1:02:17going to do over here is say section two
  1725. 1:02:20interface tour. Interface tour. And
  1726. 1:02:24boom, we have re saved our thing. And
  1727. 1:02:27you can see it's saved. We have the new
  1728. 1:02:29name as well. And if we go back into our
  1729. 1:02:31overview, you can see at the very top it
  1730. 1:02:33says section 2 interface store. And that
  1731. 1:02:35is our workflow that we have for here.
  1732. 1:02:37And it says last updated just now
  1733. 1:02:39created December 26. So all of that is
  1734. 1:02:43on that side of things. What's great is
  1735. 1:02:45you could add a first step. You could
  1736. 1:02:46start from a template which we've
  1737. 1:02:48already covered the templates or you
  1738. 1:02:49could build with AI as well. So just
  1739. 1:02:52going over here you could essentially
  1740. 1:02:54ask AI to start building out the
  1741. 1:02:56framework of a workflow or you can start
  1742. 1:02:59from a template or you could start from
  1743. 1:03:01scratch. Now I'm going to really preach
  1744. 1:03:02kind of learning the basics and building
  1745. 1:03:04things out first before you ask AI. It
  1746. 1:03:06kind of goes back into vibe coding. What
  1747. 1:03:09happens with vibe coding is a lot of
  1748. 1:03:10people just have no idea what is going
  1749. 1:03:11on in the code and you have bigger
  1750. 1:03:13issues later on. So it's super important
  1751. 1:03:14to know the fundamentals of any end
  1752. 1:03:16before you start using templates or
  1753. 1:03:18building with AI in my personal opinion.
  1754. 1:03:21All right, next side of it what you're
  1755. 1:03:24going to see. So you have all these
  1756. 1:03:25different things over here. Open nodes
  1757. 1:03:27panel, you have the command bar, you
  1758. 1:03:29have add a sticky note, you have the
  1759. 1:03:31focus panel, and then you have any nai
  1760. 1:03:33as well on that side of things. We're
  1761. 1:03:35going to cover each of these here in a
  1762. 1:03:37second. You have the three dots over
  1763. 1:03:38here which is more setting options. Uh
  1764. 1:03:40you can see edit description, duplicate,
  1765. 1:03:42download, share, change owner, rename,
  1766. 1:03:44import from URL or from file settings.
  1767. 1:03:47You could archive it and then you have
  1768. 1:03:49different things like it says zoom to
  1769. 1:03:50fit, uh zoom in, zoom out, and then also
  1770. 1:03:54tidy up. So let's walk through a few of
  1771. 1:03:56these over here. First, we've already
  1772. 1:03:58covered this command bar before, and you
  1773. 1:04:00can see it just shows up. It is the same
  1774. 1:04:02thing as over here, right? So two
  1775. 1:04:04different options just for these power
  1776. 1:04:06users that want to just go over here,
  1777. 1:04:07grab it, or you can go over here. Okay,
  1778. 1:04:09next thing. This is what you're going to
  1779. 1:04:11use a lot, which is your nodes panel.
  1780. 1:04:13So, you can click this plus icon. When
  1781. 1:04:15you initially start your workflow, it's
  1782. 1:04:17going to prompt you to use a trigger.
  1783. 1:04:19We're going to cover triggers in greater
  1784. 1:04:21detail, but let's go over here to the
  1785. 1:04:23basic one and say trigger manually. And
  1786. 1:04:26we'll just click that. And now, what
  1787. 1:04:27you'll see is it ask for a specific
  1788. 1:04:30node. You can use another trigger, which
  1789. 1:04:31again we're going to cover. You have AI
  1790. 1:04:33nodes. So you can click over here and
  1791. 1:04:35you can see all of these different nodes
  1792. 1:04:37as well as all these over here. Then you
  1793. 1:04:40have an action in a particular app which
  1794. 1:04:43you can see there's no way anyone's ever
  1795. 1:04:44going to cover all of these. There's
  1796. 1:04:46just so many and I'm and I keep
  1797. 1:04:48scrolling and you can see there's more
  1798. 1:04:49and more and more are going to be added
  1799. 1:04:51over here. If you see this check mark
  1800. 1:04:53over here, it says this is an official
  1801. 1:04:55node maintained by that specific
  1802. 1:04:57company. So these are going to be your
  1803. 1:04:58community nodes whereas these are native
  1804. 1:05:00nodes like the sticky notes on there.
  1805. 1:05:03You have data transformations which
  1806. 1:05:05again there's the popular section here
  1807. 1:05:06at the top add or remove items combine
  1808. 1:05:09items convert data and other. Then what
  1809. 1:05:12you have next is flow. So essentially
  1810. 1:05:14how you want to change the direction and
  1811. 1:05:16you guys might think I'm going fast
  1812. 1:05:17right now. Promise you we're going to
  1813. 1:05:19learn about everything over here. We're
  1814. 1:05:20just covering the interface right now.
  1815. 1:05:22Uh we have our core side of it as well
  1816. 1:05:26and given in the loop and again if you
  1817. 1:05:29want to add another trigger you have
  1818. 1:05:30that option. One thing as well is once
  1819. 1:05:32you know essentially what node you want
  1820. 1:05:35to use, you're going to be searching
  1821. 1:05:37quite a bit. So like imagine if I just
  1822. 1:05:38wanted a text classification node, uh
  1823. 1:05:40you can just see I say text and I
  1824. 1:05:42already know text classifiers here. So I
  1825. 1:05:44don't really have to dive in and click
  1826. 1:05:46AI and go say, "Hey, where's the text
  1827. 1:05:49classifier? Oh, right over here." And I
  1828. 1:05:51promise you like the more and more you
  1829. 1:05:53use any N you'll have ideas in your mind
  1830. 1:05:56like, "Oh, I need to use this type of
  1831. 1:05:57node." you just search it and it really
  1832. 1:05:59does save you quite a bit of time. I'm
  1833. 1:06:01going to close these out really fast so
  1834. 1:06:03we can just go back into this. Uh sticky
  1835. 1:06:05notes are really important. We're going
  1836. 1:06:07to talk about this on the documentation
  1837. 1:06:08side of the course. Uh but there's quite
  1838. 1:06:10a bit that you can do with sticky notes.
  1839. 1:06:12You saw I added in a video over here. I
  1840. 1:06:14add in text. You can do different
  1841. 1:06:15headers. Uh you could also add in images
  1842. 1:06:18over here. You can change the color of
  1843. 1:06:19these. And sticky notes populate behind
  1844. 1:06:22nodes which is really helpful. So let's
  1845. 1:06:24say I have a schedule trigger and you
  1846. 1:06:26can see the sticky note is behind it on
  1847. 1:06:28there. I just again I find sticky notes
  1848. 1:06:30very helpful on that side of things.
  1849. 1:06:33Again, I just find sticky notes very
  1850. 1:06:34helpful. One other thing that you have
  1851. 1:06:36is this focus panel. So let me just show
  1852. 1:06:38you when you're going to specifically
  1853. 1:06:39use that. So let me put in a agent and
  1854. 1:06:42we'll have a whole AI agent setting or
  1855. 1:06:44section multiple sections on AI agents.
  1856. 1:06:46So don't worry if you're a little
  1857. 1:06:48confused over there. But if I want to
  1858. 1:06:50click into the AI agent, I'm going to
  1859. 1:06:52click over here to define below. You'll
  1860. 1:06:54see that we have a prompt that we need
  1861. 1:06:56to specifically write. And if you're not
  1862. 1:06:58familiar with the prompt, don't worry.
  1863. 1:07:00It's just essentially text that you want
  1864. 1:07:02to tell an AI to do something. Well, you
  1865. 1:07:05know, this is just one screen. What if I
  1866. 1:07:06wanted to see the whole workflow while
  1867. 1:07:08I'm writing this prompt? So, click your
  1868. 1:07:10focus parameter. And you can see I'm
  1869. 1:07:12going to say write a generic
  1870. 1:07:16email. And I'm just going to say that
  1871. 1:07:19over here. And you can see write a
  1872. 1:07:21generic email is over here as well. And
  1873. 1:07:23if I actually click this, it's going to
  1874. 1:07:25start the workflow. And it says run the
  1875. 1:07:27current node will also run previous
  1876. 1:07:28nodes if they have not been run yet. So
  1877. 1:07:30I'm not going to do that. But you could
  1878. 1:07:32also just run this AI agent on this side
  1879. 1:07:34of things right here. And if you haven't
  1880. 1:07:36run the previous nodes, it'll run those
  1881. 1:07:38up into that AI agent to perform that
  1882. 1:07:40particular task. So something that's
  1883. 1:07:42pretty helpful. Again, we'll cover that
  1884. 1:07:44here in the future. Uh next with our our
  1885. 1:07:48specific chat trigger node, one of the
  1886. 1:07:50things you'll find if we actually open
  1887. 1:07:51this up, you can actually have a chat
  1888. 1:07:53with it and you'll see this down below.
  1889. 1:07:55Again, we'll cover this in greater
  1890. 1:07:56detail when we talk about the chat, but
  1891. 1:07:59that is available over there. Okay, so
  1892. 1:08:02now let's talk about these. So one of
  1893. 1:08:04the things I find sometimes is, and this
  1894. 1:08:07happens on my laptop more than my
  1895. 1:08:09desktop, sometimes it'll zoom like way
  1896. 1:08:11out. It's like these nodes just they
  1897. 1:08:14turn out to be like this and you can see
  1898. 1:08:17like I I don't know what's going on.
  1899. 1:08:19Honestly, I wish the N any team would
  1900. 1:08:20solve this because I just I can't see
  1901. 1:08:22what's going on and you don't even know
  1902. 1:08:23like there's a node like you can't see
  1903. 1:08:25that. Well, the way that you fix this is
  1904. 1:08:26you just say zoom in to fit and congrats
  1905. 1:08:29you are back into that area. I think the
  1906. 1:08:31N team shouldn't have it zoom out that
  1907. 1:08:33far. Like I don't think there's any ever
  1908. 1:08:35going to be a workflow that uh needs
  1909. 1:08:37that much space. In fact, you can't even
  1910. 1:08:39see the nodes. Uh so that should be
  1911. 1:08:40limited but [snorts] that ever happens
  1912. 1:08:42to you zoom to fit and that took me too
  1913. 1:08:45much time to admit again you can zoom in
  1914. 1:08:47you can zoom out over here uh you have
  1915. 1:08:50an action to reset the zoom which is
  1916. 1:08:52that over here which only populates when
  1917. 1:08:54you change your zoom. So again like if
  1918. 1:08:56you you go way out over here and you
  1919. 1:08:58want to reset it done. Okay. And next
  1920. 1:09:01thing is the tidy up. So again this is
  1921. 1:09:04going to be kind of more of a section
  1922. 1:09:06when we have a bunch of nodes going on.
  1923. 1:09:08Let's just throw in some random stuff
  1924. 1:09:10like not anything in too particular.
  1925. 1:09:13We'll go over here. We'll do like an
  1926. 1:09:14edit set. Do not do what I'm doing right
  1927. 1:09:17now. I'm just kind of just showing you
  1928. 1:09:19something really weird. And this means
  1929. 1:09:22absolutely nothing. So nothing in here
  1930. 1:09:25should be replicated with this workflow.
  1931. 1:09:27So please don't do that. I mean if you
  1932. 1:09:29want to you can but like really there's
  1933. 1:09:31nothing. So like this looks like
  1934. 1:09:33gibberish and you're like all right this
  1935. 1:09:35not something that's worth presenting on
  1936. 1:09:36YouTube. it's not worth something
  1937. 1:09:38presenting to a client like you need to
  1938. 1:09:40organize it and you know a lot of people
  1939. 1:09:42just go okay let me organize it and put
  1940. 1:09:45all this over here and this is simple
  1941. 1:09:47right we have five total nodes one
  1942. 1:09:49trigger and four nodes over here but it
  1943. 1:09:51does take time if you have 20 or 30
  1944. 1:09:53nodes so what can happen well if you
  1945. 1:09:56just click this tidy up boom like two
  1946. 1:09:59seconds like it doesn't matter how
  1947. 1:10:01disgusting this is like please again do
  1948. 1:10:04not make your workflows like this like I
  1949. 1:10:05have I have legit Legitimately no idea
  1950. 1:10:07what the order is. Taking a look at this
  1951. 1:10:09and this is terrible. Done. Tidy up. So
  1952. 1:10:12a very impactful setting. Lastly, you
  1953. 1:10:15have any N AI over here. So it says like
  1954. 1:10:18what would you like me to automate? You
  1955. 1:10:19have monthly credits associated with
  1956. 1:10:21this. So you can just ask it to help you
  1957. 1:10:23with your particular workflow. I'm going
  1958. 1:10:25to cover this later on in the course as
  1959. 1:10:28well as a particular video on my YouTube
  1960. 1:10:30channel. Uh and you can see that this is
  1961. 1:10:32in beta. You could ask a question or you
  1962. 1:10:34could also build and you have different
  1963. 1:10:36credits based off of your plan.
  1964. 1:10:40So that is essentially the interface. I
  1965. 1:10:43think we covered everything. Oh, few
  1966. 1:10:45things. So two things I forgot to show
  1967. 1:10:48you guys. Uh first is your workflow
  1968. 1:10:51history. So I'm just going to say leave
  1969. 1:10:53without saying and you can see your
  1970. 1:10:55versions over here. And it says version
  1971. 1:10:58history is limited to one day upgrade
  1972. 1:11:00plan to activate full history which I
  1973. 1:11:02think is kind of a bummer on that side
  1974. 1:11:04of things but you can see your version
  1975. 1:11:05history there. Uh the other thing as
  1976. 1:11:07well is you have these three dots and
  1977. 1:11:10you can see there's quite a few things.
  1978. 1:11:11So edit description clear descriptions
  1979. 1:11:13help other users and MCP clients
  1980. 1:11:14understand the purpose of your workflow.
  1981. 1:11:16So as you build out a lot more workflows
  1982. 1:11:18and you want to use your workflows
  1983. 1:11:20within MCP or chat, you should write a
  1984. 1:11:22description for that particular
  1985. 1:11:24workflow. So that is that section. If
  1986. 1:11:26you want to duplicate your workflow, so
  1987. 1:11:28essentially if you want to create a
  1988. 1:11:30second version of it, I do find this
  1989. 1:11:32helpful for when you want to do some
  1990. 1:11:33sort of evaluations, I just duplicate a
  1991. 1:11:36workflow for there. If you want to
  1992. 1:11:37download a workflow, so essentially how
  1993. 1:11:39this works is a workflow is JSON and you
  1994. 1:11:43download the JSON over here and you can
  1995. 1:11:45send it to a customer or you can use it
  1996. 1:11:48somewhere else. So that's where the
  1997. 1:11:49download is. You you can share as well.
  1998. 1:11:51So you just add in a particular user and
  1999. 1:11:54you can share your workflow. You can
  2000. 1:11:55change the owner of a workflow and
  2001. 1:11:58really like sharing or changing owner
  2002. 1:12:00helps if you have multiple people. If
  2003. 1:12:01you're just a soloreneur and you're not
  2004. 1:12:03doing workflows for other people, it's
  2005. 1:12:04not really there. You could rename it,
  2006. 1:12:06but it's like you could just go over
  2007. 1:12:08here. I just wouldn't recommend clicking
  2008. 1:12:10these three extra dots. Uh you could
  2009. 1:12:12import from a particular URL. Sometimes
  2010. 1:12:14you have a URL for a template. You can
  2011. 1:12:16just click and import that over here. Uh
  2012. 1:12:20you can import in from file. So this is
  2013. 1:12:21a JSON file. You can push this over to
  2014. 1:12:25git. Uh so let's say GitHub and then you
  2015. 1:12:27have settings over here. So you have
  2016. 1:12:29execution order there. You have error
  2017. 1:12:31workflow. So if your workflow errors,
  2018. 1:12:33you can send it to another workflow.
  2019. 1:12:34We're going to cover that later on in
  2020. 1:12:35the course. Uh this workflow can be
  2021. 1:12:37called by and this allows you
  2022. 1:12:40essentially for chat. So you can see no
  2023. 1:12:42other workflows, workflows created,
  2024. 1:12:43selected workflows or any workflows. Uh
  2025. 1:12:45time zone as well. You have save failed
  2026. 1:12:48production executions, save successful
  2027. 1:12:50production, manual. Uh again just some
  2028. 1:12:53other stuff over here. Timeout available
  2029. 1:12:55in MCP which you need to publish your
  2030. 1:12:57workflow. I'll show you how to do that
  2031. 1:12:58here in a second. And estimated time is
  2032. 1:13:01saved. So minutes per production
  2033. 1:13:03execution if you want to save that
  2034. 1:13:04there. Lastly, you might be wondering
  2035. 1:13:06like how do I publish a workflow
  2036. 1:13:09and should be a little bit later on. But
  2037. 1:13:11let's imagine we just have the super
  2038. 1:13:13basic workflow. We have a chat that goes
  2039. 1:13:16into an AI agent and we have a chat
  2040. 1:13:18model over here. We're just going to add
  2041. 1:13:19an anthropic. We'll say set45 and we
  2042. 1:13:23just open this up over here and say I
  2043. 1:13:25don't know, we'll ask a question and uh
  2044. 1:13:28open chat.
  2045. 1:13:31What metal band has the most Spotify
  2046. 1:13:36plays?
  2047. 1:13:38Not that it matters in any case. And you
  2048. 1:13:40can see our workflow is running. We
  2049. 1:13:42received the chat message. It's going
  2050. 1:13:43into our AI agent. Again, if you don't
  2051. 1:13:45know what is going on, we're going to
  2052. 1:13:47cover in greater details. But you can
  2053. 1:13:49see have our output over here on this
  2054. 1:13:50side of things. We have our input. It
  2055. 1:13:52says human which is us. Uh then you can
  2056. 1:13:54see the logs of what is going on. And
  2057. 1:13:56then you can see our response over here
  2058. 1:13:59on that side of things. So let's say hey
  2059. 1:14:01this is great. I want to publish this.
  2060. 1:14:03So how do you do that? First what you
  2061. 1:14:04should do is save this and then click on
  2062. 1:14:06publish. You just say version one. We'll
  2063. 1:14:09say section two. Section two interface.
  2064. 1:14:16Um and then we'll describe our changes
  2065. 1:14:18added in chat trigger AI agent. Now why
  2066. 1:14:22this is really important in software
  2067. 1:14:24programming what you do is something
  2068. 1:14:26called versioning. So essentially you
  2069. 1:14:27just keep building different versions of
  2070. 1:14:29your software. Sometimes things will
  2071. 1:14:30break. So it's super important that you
  2072. 1:14:32describe all of your changes in over
  2073. 1:14:34here. So that way someone more senior
  2074. 1:14:36within your company knows essentially
  2075. 1:14:37what is going on. And then you also you
  2076. 1:14:39set version naming as you can see like
  2077. 1:14:41with any they set specific versions of
  2078. 1:14:43their software. You can do the same
  2079. 1:14:44thing with like versions of your
  2080. 1:14:46particular workflows. So, I'll just
  2081. 1:14:47click publish and you'll see it says
  2082. 1:14:48workflow published. You can now make
  2083. 1:14:50calls to your production chat URL. So,
  2084. 1:14:53this is available in MCP as well as our
  2085. 1:14:54chat. And you can see there's a
  2086. 1:14:56production checklist over here as well.
  2087. 1:14:58I'm just going to ignore this for now.
  2088. 1:15:00We're going to probably cover this a
  2089. 1:15:01little bit later on as a section in this
  2090. 1:15:03course. And you like, okay, cool. Well,
  2091. 1:15:05I can't unpublish this over here. How do
  2092. 1:15:07I do that? Click these three dots. And
  2093. 1:15:09then you just go over here to unpublish.
  2094. 1:15:11We'll click unpublish. And the workflow
  2095. 1:15:13has been unpublished. And again, if you
  2096. 1:15:15want to hide the chat, just click that.
  2097. 1:15:18So, we have covered a ton for just uh
  2098. 1:15:22section two, which is our interface.
  2099. 1:15:24Hopefully, this cleared up any type of
  2100. 1:15:26confusion that you had. Our next
  2101. 1:15:28section, we're going to start covering
  2102. 1:15:29the core concepts of N. We're just going
  2103. 1:15:31to honestly start from the workflow page
  2104. 1:15:33over here. I'm going to create a brand
  2105. 1:15:34new workflow for us to go through and
  2106. 1:15:37keep up the great work. Uh we're about
  2107. 1:15:39to jump into some awesome stuff and
  2108. 1:15:41you're honestly just a few lectures away
  2109. 1:15:43from learning how this AI agent works
  2110. 1:15:45and building out your first AI
  2111. 1:15:47automations. All right, I'll see you in
  2112. 1:15:48lecture number three right now. So the
  2113. 1:15:50last section we talked about where
  2114. 1:15:52different components are within N. Now
  2115. 1:15:55what I want to do is really dive into
  2116. 1:15:57what makes up a workflow in Nan and talk
  2117. 1:16:00a little bit more about triggers as well
  2118. 1:16:02as nodes. We're going to actually build
  2119. 1:16:04our first workflow in this section as
  2120. 1:16:07well. So, some pretty exciting stuff
  2121. 1:16:08over there. Your hello world essentially
  2122. 1:16:10for Nan version two. So, let's jump
  2123. 1:16:13right into it. All right. So, what I
  2124. 1:16:17have is a another brand new section and
  2125. 1:16:19we're going to start off with a trigger.
  2126. 1:16:21Now, every workflow has to start with a
  2127. 1:16:25trigger. Triggers will start those off.
  2128. 1:16:27And as I showed you in the last section,
  2129. 1:16:29you'll go over here and it says what
  2130. 1:16:32triggers this workflow. You could start
  2131. 1:16:33off with manually, which personally I
  2132. 1:16:35use probably about 80% of the time
  2133. 1:16:38within testing. You can have an app
  2134. 1:16:41event. So imagine you have some sort of
  2135. 1:16:44uh CRM, which is essentially a way to
  2136. 1:16:47save data on customers and you just
  2137. 1:16:50added a new customer into your CRM that
  2138. 1:16:53could start a workflow. Or what happens
  2139. 1:16:56if you get a particular email for a
  2140. 1:16:58contract? Well, that could also start a
  2141. 1:17:00workflow. So this is where an on app
  2142. 1:17:02event looks like and just to show you
  2143. 1:17:04like there is hundreds if not thousands
  2144. 1:17:07in here in any end and what's really
  2145. 1:17:09cool is when we talk a little bit later
  2146. 1:17:11web hooks essentially are on app events
  2147. 1:17:13but for things that are not here in any
  2148. 1:17:16end and uh you can see I keep scrolling
  2149. 1:17:18and there's more and more and more you
  2150. 1:17:22can do a schedule so you can say hey I
  2151. 1:17:25want this workflow to run 9:00 a.m. on
  2152. 1:17:27business days and it will do that. Or
  2153. 1:17:30hey, I want this workflow to run three
  2154. 1:17:31times a day, 9:00 a.m., noon, as well as
  2155. 1:17:345:00 p.m. Well, you can set up a
  2156. 1:17:36schedule to do that as well. Here are
  2157. 1:17:38web hooks, which I talked about on App
  2158. 1:17:40Event. So, essentially, web hooks are
  2159. 1:17:42for things uh outside of Nan or if the
  2160. 1:17:44option is not available in Nan, they can
  2161. 1:17:47be a little bit complicated to set up.
  2162. 1:17:48So, web hooks is going to be a full
  2163. 1:17:50section by itself. Here in this course,
  2164. 1:17:53you'll have a specific form. So
  2165. 1:17:56essentially what you have is just like a
  2166. 1:17:58web form. Someone fills out some
  2167. 1:17:59information, it starts a workflow. You
  2168. 1:18:01can actually start a workflow from
  2169. 1:18:03another workflow. The chat message which
  2170. 1:18:05we covered a little bit earlier. Uh when
  2171. 1:18:07running evaluations which is a little
  2172. 1:18:09bit outside and then we have other ways
  2173. 1:18:11over here you have an email trigger
  2174. 1:18:14error triggers again outside MCP we'll
  2175. 1:18:16have a full section over it. Nan handle
  2176. 1:18:18events and perform actions on your nan
  2177. 1:18:20instance and then your SSE triggers. So
  2178. 1:18:23again, we'll just start something super
  2179. 1:18:25basic and have a trigger manually. So
  2180. 1:18:27again, we'll just start something basic
  2181. 1:18:28and do a trigger manual over here. Next,
  2182. 1:18:31you have nodes. And we already covered
  2183. 1:18:34all the different parts of nodes in the
  2184. 1:18:36previous section. So I'm not going to
  2185. 1:18:38cover that in greater detail, but
  2186. 1:18:40typically your workflow is going to be
  2187. 1:18:41filled with different nodes. And you
  2188. 1:18:43might be wondering like, oh, how like
  2189. 1:18:45how do I know what node to use? I
  2190. 1:18:47promise you, you'll pick up the skill
  2191. 1:18:48really, really fast. And sometimes
  2192. 1:18:50you'll want to build out diagrams
  2193. 1:18:52essentially kind of like a flowchart
  2194. 1:18:53like what's going to happen each step.
  2195. 1:18:55We'll cover that as well a little bit
  2196. 1:18:56later on in the course. And again we
  2197. 1:18:59covered also community nodes. So if you
  2198. 1:19:00want to look for a community node you
  2199. 1:19:02can see over here we have this this is a
  2200. 1:19:04node from our community. It's part of
  2201. 1:19:06the ampify side of it over here. And
  2202. 1:19:09then you can see this is official node
  2203. 1:19:10maintained by the WhatsApp notifications
  2204. 1:19:12by syncmate. Okay. So we have that over
  2205. 1:19:15there. Let's talk about how data flows
  2206. 1:19:18in NE. So what we're going to do is
  2207. 1:19:20actually build out a edit set and this
  2208. 1:19:23is going to be one of the most popular
  2209. 1:19:24nodes that we're going to use here in
  2210. 1:19:26NE. We'll actually cover this in greater
  2211. 1:19:28detail a little bit later on. But we
  2212. 1:19:31have our edit set and what we're going
  2213. 1:19:34to do in this edit set is we're just
  2214. 1:19:36going to go over here and write
  2215. 1:19:38something here in a section. So we'll
  2216. 1:19:41say put name and just put your name over
  2217. 1:19:44here. We'll see Ryan's
  2218. 1:19:49and what we'll do is have another edit
  2219. 1:19:51set
  2220. 1:19:53that's
  2221. 1:19:54just want to do this to show you how our
  2222. 1:19:56data flows. So essentially what you can
  2223. 1:19:58see is we start our workflow and it goes
  2224. 1:20:01over here and says one item and we go
  2225. 1:20:03into our edit fields over here and you
  2226. 1:20:06can see we have our input for the node.
  2227. 1:20:08We have our node settings and different
  2228. 1:20:11options and our parameters over here.
  2229. 1:20:13And then we have our particular output
  2230. 1:20:15on this side of things. And you can see
  2231. 1:20:16it says name Ryan Nolan. This is our
  2232. 1:20:18schema view. We have our table as well
  2233. 1:20:21as our JSON view. And most of the time
  2234. 1:20:23you'll see three different views over
  2235. 1:20:24here. There's option with binary files.
  2236. 1:20:27I don't even want you to worry about
  2237. 1:20:29that as of yet. We're going to cover
  2238. 1:20:30that later on. Um, but you can see
  2239. 1:20:33anytime we click into a node, you'll
  2240. 1:20:35have your input over here. You have the
  2241. 1:20:37settings and your output. And you can
  2242. 1:20:39see that there's no output over here
  2243. 1:20:40because I never really filled out any
  2244. 1:20:42settings. So that is why that is
  2245. 1:20:43particularly correct over here. And you
  2246. 1:20:46can see one item goes through each of
  2247. 1:20:48these things. Now, one of the confusing
  2248. 1:20:50points for people is like what happens
  2249. 1:20:52if there's multiple items? Some people
  2250. 1:20:54think, oh, each of these go one item at
  2251. 1:20:57a time throughout a workflow. That is
  2252. 1:20:59not the case. What I'm going to just
  2253. 1:21:01show you, it's a little bit more
  2254. 1:21:02advanced, but I think it's super
  2255. 1:21:04important for me to cover this right
  2256. 1:21:05now. So, I'm just going to go over here
  2257. 1:21:08and we're going to go and add our second
  2258. 1:21:10example. So, we're going to create a new
  2259. 1:21:11edit set. So, edit set and I'm going to
  2260. 1:21:14create something called an array. Now,
  2261. 1:21:16we'll say example array. And again,
  2262. 1:21:17don't worry too much about arrays. We're
  2263. 1:21:19going to cover this in greater detail.
  2264. 1:21:20I'm just going to go over here array and
  2265. 1:21:22we're going to put two metal bands.
  2266. 1:21:24We'll say Metallica and I'll put Mega
  2267. 1:21:27Death over here.
  2268. 1:21:31And this is an array. But why I want to
  2269. 1:21:33show this to you is
  2270. 1:21:36our array right now is one item. We're
  2271. 1:21:38going to split this out. Split out.
  2272. 1:21:41And with an array, when you split out an
  2273. 1:21:44array, it turns into multiple items.
  2274. 1:21:47And then what we're going to do is do an
  2275. 1:21:49AI agent.
  2276. 1:21:52What was the most popular album for?
  2277. 1:21:59Just pass this in over here. Again, a
  2278. 1:22:01lot of this is going to look foreign and
  2279. 1:22:03uh forgot to put a chat model over here.
  2280. 1:22:07It's fine. Don't worry about this for
  2281. 1:22:10this example. All we're doing is talking
  2282. 1:22:12about file data flows. So, I'm just
  2283. 1:22:14going to find many. Great.
  2284. 1:22:18Save that.
  2285. 1:22:22And once this populates, show you. All
  2286. 1:22:25right. So, this workflow ran. So let me
  2287. 1:22:28explain how nan works with particular
  2288. 1:22:31items. So what happens is we have one
  2289. 1:22:33item that starts the workflow and it
  2290. 1:22:35populates over here. Okay. Then we have
  2291. 1:22:38one item from this edit fields which is
  2292. 1:22:40just an array. Again we'll cover arrays
  2293. 1:22:42a little bit later. So that's one item.
  2294. 1:22:44It populates over here. We took each of
  2295. 1:22:47these elements within an array and we
  2296. 1:22:49split this out and turned it into two
  2297. 1:22:51items. Now this is where the confusion
  2298. 1:22:53happens for a lot of people. They think,
  2299. 1:22:55"Oh, well, how any end works is again,
  2300. 1:22:58maybe you start off with a trigger that
  2301. 1:23:00has multiple items." Well, it just goes
  2302. 1:23:02one item at a time for everything and
  2303. 1:23:04then it restarts and goes one item at a
  2304. 1:23:06time. That is not the case in nan
  2305. 1:23:10all the items process through one node
  2306. 1:23:12before it goes into the next node. So,
  2307. 1:23:14you can see one item that's self one
  2308. 1:23:16item and then it has two items. So, for
  2309. 1:23:20example, if I have another node over
  2310. 1:23:22here, right? And let's just say like I
  2311. 1:23:24don't know, we'll do like Google Sheets
  2312. 1:23:26or add it to a data table. Let's say we
  2313. 1:23:27want to insert a row into a data table.
  2314. 1:23:30Obviously, I'm not going to fill this
  2315. 1:23:30out right now. Um the two items are
  2316. 1:23:33going to process through the AI agent
  2317. 1:23:35and then the two items are sent to
  2318. 1:23:36insert row and these two items are going
  2319. 1:23:38to be inserted into row. It's not hey,
  2320. 1:23:40we're just going to go through one item
  2321. 1:23:42for each of these nodes. Go back around
  2322. 1:23:44and one item through each of these
  2323. 1:23:45nodes. And I think there's a lot of
  2324. 1:23:47confusion on that because what happens
  2325. 1:23:48is I see people that have a loop over
  2326. 1:23:51items and they think okay how and works
  2327. 1:23:54is it just has one item at a time. That
  2328. 1:23:56is not how it works. Again all items are
  2329. 1:23:58going to be processed through a specific
  2330. 1:24:00node. Once that is done it goes on to
  2331. 1:24:03that next node. So it does not work one
  2332. 1:24:07item at a time and goes through this.
  2333. 1:24:08Every single item will be processed
  2334. 1:24:10through a node and then it goes into the
  2335. 1:24:12next node. Again, this is a little bit
  2336. 1:24:14complicated right now and you'll see
  2337. 1:24:16this over time, but I just want to
  2338. 1:24:18preach this super early on because it
  2339. 1:24:21does trip up quite a few people. Again,
  2340. 1:24:23for a third time, every single item is
  2341. 1:24:26processed through a node before the next
  2342. 1:24:28node happens. So, when we have these two
  2343. 1:24:30items, but both items are processed in
  2344. 1:24:32our AI agent before we go into inserting
  2345. 1:24:36a row within this data table. And
  2346. 1:24:38obviously I didn't connect this up, but
  2347. 1:24:40then I would insert these two rows based
  2348. 1:24:43off of what's over here and then go on
  2349. 1:24:44to the next node with those those items.
  2350. 1:24:47All right, hopefully that makes sense.
  2351. 1:24:50Another thing that's pretty impactful
  2352. 1:24:52here in N is pinning items. And why this
  2353. 1:24:56is really important, two reasons. Number
  2354. 1:24:57one, when you use a service, let's say
  2355. 1:25:00for example, uh, OpenAI or use some sort
  2356. 1:25:03of API, there is a cost associated with
  2357. 1:25:05it. And you know, if you're going to
  2358. 1:25:07keep running the same data over and over
  2359. 1:25:09again, it's just going to cost you for
  2360. 1:25:11testing. So instead of constantly having
  2361. 1:25:14to go to OpenAI and run uh their model,
  2362. 1:25:18you can just pin their data. So you can
  2363. 1:25:19see it says pin data. Node will always
  2364. 1:25:20output the current data instead of
  2365. 1:25:22executing. So now anytime we go to this
  2366. 1:25:25node, the data is already saved over
  2367. 1:25:28here. And this is also sometimes
  2368. 1:25:31tripping up people because they forget
  2369. 1:25:33they pinned the data and they're like
  2370. 1:25:34why is my workflow not working? Well,
  2371. 1:25:36that's because you have pinned the data
  2372. 1:25:38and the data over here might be wrong or
  2373. 1:25:39it might not be what you're testing. So,
  2374. 1:25:42it's a double-edged sword. One side of
  2375. 1:25:44it, it's great because you don't have to
  2376. 1:25:46constantly call different APIs. You
  2377. 1:25:48aren't have to have additional costs in
  2378. 1:25:50here. You can save things for testing.
  2379. 1:25:52And just to show you like we can pin all
  2380. 1:25:54of these different items
  2381. 1:25:56and you'll see that they have this icon
  2382. 1:25:58over here for the pin. Again, super
  2383. 1:26:01super helpful on that side of things.
  2384. 1:26:03And when we run a workflow, it will
  2385. 1:26:05automatically populate through these.
  2386. 1:26:06Like this will take like a second and
  2387. 1:26:07you can see done. Whereas in the past
  2388. 1:26:10when you saw this screen, our AI agent
  2389. 1:26:12took a little bit to run. Might have cut
  2390. 1:26:14out how long it took for that AI agent.
  2391. 1:26:16Regardless, this took like 30 seconds,
  2392. 1:26:1860 seconds to get the answer for these
  2393. 1:26:20two particular items. Now, that's
  2394. 1:26:23pending. Literally takes a second, but
  2395. 1:26:24it's always going to be the same exact
  2396. 1:26:25data. So, it will save you a lot of
  2397. 1:26:29money when you're testing with
  2398. 1:26:30particular APIs and it can save you time
  2399. 1:26:32if you have an elaborate workflow of 30
  2400. 1:26:3440 nodes and uh you have to pin some of
  2401. 1:26:36this data because it just takes forever.
  2402. 1:26:38So, highly recommend learning about
  2403. 1:26:40pinning data and you can pin it, you can
  2404. 1:26:42unpin it. And just to show you when we
  2405. 1:26:44unpin it, go like that and it is gone.
  2406. 1:26:47Also to mention you can modify the data
  2407. 1:26:49that is in over here. All you have to do
  2408. 1:26:51is click the pencil icon and let's say I
  2409. 1:26:53want to put in slayer instead of meade.
  2410. 1:26:55You can just put slayer over here and
  2411. 1:26:57you can save it. And this data has been
  2412. 1:26:59modified in that particular. So we could
  2413. 1:27:02send that over here as well. And you can
  2414. 1:27:04see it's just saved. So just another
  2415. 1:27:07thing that's a little bit helpful. You
  2416. 1:27:08might see it in some YouTube videos and
  2417. 1:27:10you're confused what they're doing.
  2418. 1:27:11Well, they just updated that over there.
  2419. 1:27:14Okay. So, we talked about pinning data.
  2420. 1:27:16We talked about items. Uh we've already
  2421. 1:27:18talked about as well as the input
  2422. 1:27:20output, right? You can see input output
  2423. 1:27:22as well. You can see again we have this
  2424. 1:27:24data is pinned for test executions. You
  2425. 1:27:27see that over there. Okay. We've talked
  2426. 1:27:29about the different ways you could view
  2427. 1:27:31it with the schema, the table as well as
  2428. 1:27:34JSON. We'll cover that in greater detail
  2429. 1:27:36in the future. One of the other things I
  2430. 1:27:39want to talk about is passing data
  2431. 1:27:41between nodes. So, we saw this a little
  2432. 1:27:44bit here
  2433. 1:27:47and uh let me show you how that
  2434. 1:27:48particularly works. All right. So, what
  2435. 1:27:51we're going to do is we're just going to
  2436. 1:27:53grab our start over here and we're going
  2437. 1:27:57to go and grab our edit set.
  2438. 1:28:02So, edit set and we're going to just
  2439. 1:28:05start this off and we're going to do
  2440. 1:28:07another name side of it. So, you'll see
  2441. 1:28:10on this I think I'll just put like last
  2442. 1:28:12name
  2443. 1:28:14and we're I'll just put my last name
  2444. 1:28:15over here, Nolan.
  2445. 1:28:18And then what I'll do next is we'll just
  2446. 1:28:21uh we can use any node. Let's just use
  2447. 1:28:23an AI agent for fun.
  2448. 1:28:27And the only purpose of this, by the
  2449. 1:28:29way, is just to show you something
  2450. 1:28:31called an expression versus fix. So fix
  2451. 1:28:35essentially all you do is write some
  2452. 1:28:37text over here. And there's nothing
  2453. 1:28:39dynamic about this. You could say like
  2454. 1:28:41who won
  2455. 1:28:43series
  2456. 1:28:45in 2021 or 2022. It doesn't matter,
  2457. 1:28:48right? Like this is fixed. It's always
  2458. 1:28:50going to say the same exact message over
  2459. 1:28:52and over again. But that doesn't really
  2460. 1:28:54get the benefit of orchestration why
  2461. 1:28:57we're using any end. So one of the
  2462. 1:28:58things that's really cool is if we click
  2463. 1:29:00over here and go into expressions, we
  2464. 1:29:02can actually pass in dynamic data and we
  2465. 1:29:04can say who is the most famous person
  2466. 1:29:10with the name and you can just grab over
  2467. 1:29:13here. You can see I have last name Nolan
  2468. 1:29:16from the previous node and I can pass
  2469. 1:29:18that in. Who is the most famous person
  2470. 1:29:20with the name Nolan? Now, this probably
  2471. 1:29:22is going to be either Nolan Ryan or the
  2472. 1:29:26um film director. What is it?
  2473. 1:29:27Christopher Nolan. So, one of those two
  2474. 1:29:30will probably populate on that side of
  2475. 1:29:31things. But what's really cool is
  2476. 1:29:34because we're in this expression, we're
  2477. 1:29:36able to pass over this from the previous
  2478. 1:29:39node and it dynamically adds this in as
  2479. 1:29:41JSON in over here to our prompt.
  2480. 1:29:46Hopefully, a light bulb just clicked.
  2481. 1:29:48And you might be wondering like, do I
  2482. 1:29:49always have to click over here into
  2483. 1:29:50expression? Well, yeah, because you can
  2484. 1:29:52see if it's fixed, it just has this over
  2485. 1:29:54here and it's not highlighted. So again,
  2486. 1:29:56a source of debugging. If you see this,
  2487. 1:29:58you're going to get a specific error.
  2488. 1:30:00And one other thing to note is it
  2489. 1:30:01automatically goes to expression if you
  2490. 1:30:03drag this over here. Now, I find it a
  2491. 1:30:04little bit buggy at times. So you can
  2492. 1:30:06see what happens. I grab this last name,
  2493. 1:30:08go over here, and it's like it's kind of
  2494. 1:30:10forcing me to throw this here in the
  2495. 1:30:11beginning. So
  2496. 1:30:14sometimes it works and it populates in
  2497. 1:30:15the correct spot. Sometimes it'll
  2498. 1:30:17populate a little bit weird. I just find
  2499. 1:30:19it easier. I click into expression and
  2500. 1:30:21then drag and drop it because either way
  2501. 1:30:23I have to adjust this in some capacity,
  2502. 1:30:26but this will pass in that additional
  2503. 1:30:28data from the previous note. Again,
  2504. 1:30:30light bulbs should be clicking. You're
  2505. 1:30:31like, "Wow, this is really, really
  2506. 1:30:33cool." Um, okay. A few other things as
  2507. 1:30:36well. As I mentioned about the
  2508. 1:30:37documentation a little bit earlier, you
  2509. 1:30:39can see in the AI agent says, "Tip get a
  2510. 1:30:41feel for AI agents with our quick
  2511. 1:30:42tutorial or see an example how this node
  2512. 1:30:44works." You can actually click in over
  2513. 1:30:46these and you'll see a tutorial build an
  2514. 1:30:48AI agent with an N. So you have this
  2515. 1:30:51YouTube video they embedded. They have
  2516. 1:30:52all the information over here and lot of
  2517. 1:30:55great examples in their documentation
  2518. 1:30:56docs.n.io.
  2519. 1:30:59You can continue to do that with all
  2520. 1:31:01these particular nodes. If I go back
  2521. 1:31:03over here, oh sorry, this is the example
  2522. 1:31:05that they showed, right? I just
  2523. 1:31:07populated a new workflow. I'm not going
  2524. 1:31:09to save that. But if you go into our
  2525. 1:31:11edit set, we'll see as well. They
  2526. 1:31:14actually Oh, here's the docs on the side
  2527. 1:31:15of things. So, you can see you click
  2528. 1:31:17onto the docs and it says edit fields
  2529. 1:31:19set. It's a core node and it has all the
  2530. 1:31:22information on here. You can see also
  2531. 1:31:24there's templates and examples and uh
  2532. 1:31:27yeah, that's just built out directly on
  2533. 1:31:29that side of things. So, you can just
  2534. 1:31:31click onto those docs or if there's an
  2535. 1:31:33option right over here, they give you
  2536. 1:31:35both of those and go back into AI agent.
  2537. 1:31:37You can see the docs of the AI agent is
  2538. 1:31:39right over here. So, a lot of different
  2539. 1:31:41options and you can close this out if
  2540. 1:31:42you want. I'm just going to keep it uh
  2541. 1:31:44for this particular tutorial. I just
  2542. 1:31:46find it pretty helpful. All right. So,
  2543. 1:31:48we covered triggers, we covered nodes,
  2544. 1:31:51we covered how does the data flow.
  2545. 1:31:53Remember, one item at a time. All we
  2546. 1:31:55covered how data flows. Remember, all
  2547. 1:31:58the items pass through each node at a
  2548. 1:32:00time. It's not one item at a time like a
  2549. 1:32:02lot of people assume. We showed you how
  2550. 1:32:04to modify and pin data, the input and
  2551. 1:32:07output, different ways to view the data,
  2552. 1:32:09whether it's schema, table, or JSON. We
  2553. 1:32:12talked about going in over here and you
  2554. 1:32:15have the options for fix versus
  2555. 1:32:16expression and you can see like this
  2556. 1:32:18constantly is an option on these side of
  2557. 1:32:20things. Let's talk about like what
  2558. 1:32:22happens with an error now. So like how
  2559. 1:32:25do you know something errored out? Well,
  2560. 1:32:27I'm going to purposely error this AI
  2561. 1:32:29agent out because I don't have a chat
  2562. 1:32:30model associated with it. So you'll see
  2563. 1:32:33if there's an error, you said it says
  2564. 1:32:35problem with node. It says a chat sub
  2565. 1:32:38node must be connected and enabled. And
  2566. 1:32:40you'll see that this has a red X and it
  2567. 1:32:42says issues a chat. And it actually
  2568. 1:32:44tells you exactly what the error is. And
  2569. 1:32:46you know, the more that you build out
  2570. 1:32:48workflows and the more that you test,
  2571. 1:32:49the more you'll understand why specific
  2572. 1:32:52errors happen. And this one's a pretty
  2573. 1:32:53easy one. But this also just tells us
  2574. 1:32:56that there's an error. And it's easy
  2575. 1:32:58alert. Also, you could see this in
  2576. 1:33:00executions. I'm just going to save this
  2577. 1:33:02over here. And I'll go into executions.
  2578. 1:33:04And you'll see that there is an error.
  2579. 1:33:06and it says error in 28 milliseconds in.
  2580. 1:33:09What's really cool is we can actually
  2581. 1:33:11debug in the editor and it copies
  2582. 1:33:13exactly what you tested and it will go
  2583. 1:33:15back into our editor and save the data
  2584. 1:33:18that you tested with. And this is really
  2585. 1:33:20really helpful if you have a lot of
  2586. 1:33:21different items going on and like one
  2587. 1:33:23particular item breaks the workflow like
  2588. 1:33:25it's a weird edge case and I use that
  2589. 1:33:27all the time. I just go to executions I
  2590. 1:33:29debug an editor from that exact error.
  2591. 1:33:32Uh so you can use that and there's other
  2592. 1:33:35options as well if you want to restart
  2593. 1:33:36your workflow and again we'll talk a lot
  2594. 1:33:38more about this in error handling but
  2595. 1:33:40you can retry with currently saved
  2596. 1:33:41workflow or retry with the original
  2597. 1:33:43workflow as well. Uh but that is errors
  2598. 1:33:45just pretty important to cover this at
  2599. 1:33:47least the basics right now early on in
  2600. 1:33:50the course and yeah so what I want you
  2601. 1:33:53to do now is let's build our first
  2602. 1:33:55workflow together. So I have been
  2603. 1:33:59essentially teaching you the guys things
  2604. 1:34:02for the last what hour and a half and I
  2605. 1:34:05think it's time to build your work first
  2606. 1:34:06workflow. So I'm going to say build
  2607. 1:34:10your work first workflow
  2608. 1:34:13and essentially what we're going to do
  2609. 1:34:14is we're going to build out the hello
  2610. 1:34:16world hello world of any end. So how do
  2611. 1:34:20I want this to start? Well what I want
  2612. 1:34:23you to do is start with a manual
  2613. 1:34:24trigger. So start with the manual
  2614. 1:34:26trigger as I've showed you. Then what I
  2615. 1:34:28want you to do is go into the set node.
  2616. 1:34:30So we'll go to the set node and inside
  2617. 1:34:33the set node, what I want you to do is
  2618. 1:34:35literally just write
  2619. 1:34:37hello world.
  2620. 1:34:40I'm learning any [snorts]
  2621. 1:34:45and yeah. So what I want you to do now
  2622. 1:34:48is just pause the video and build this
  2623. 1:34:51out. And one thing to note before we do
  2624. 1:34:54that is this over here. This to start
  2625. 1:34:57the workflow. You only can have one of
  2626. 1:34:59these per uh workflow. So you're going
  2627. 1:35:02to have to detach this and just bring
  2628. 1:35:04that over here. Okay. Uh a little bit of
  2629. 1:35:07nuance. And if you already paused and
  2630. 1:35:09you're jumping into this, I am so sorry.
  2631. 1:35:10And that's why I've been dragging this
  2632. 1:35:12throughout the video. So pause the video
  2633. 1:35:14now, attempt this, and I will show you
  2634. 1:35:16the solution. Okay, guys. So hopefully
  2635. 1:35:19you were able to solve this. All we're
  2636. 1:35:22going to do is click this plus icon over
  2637. 1:35:24here. We're going to search for edit
  2638. 1:35:25set, edit field set, and you'll see we
  2639. 1:35:29have this over here. We're going to keep
  2640. 1:35:30the mode manual mapping. And we'll cover
  2641. 1:35:32a lot more of the detail here in a
  2642. 1:35:33second. And we're going to click add in
  2643. 1:35:36field. And I didn't tell you
  2644. 1:35:37specifically what to call this field,
  2645. 1:35:40but just going over here, I'm going to
  2646. 1:35:42call this hello world. So hello world.
  2647. 1:35:46And then we need to pass in a value. By
  2648. 1:35:48default, we're lucky this is strings and
  2649. 1:35:50you probably don't know what all these
  2650. 1:35:52are as of yet. It's tough to cover
  2651. 1:35:54everything at once, but this is a future
  2652. 1:35:55lecture. We're going to cover all of
  2653. 1:35:57these. But all we're going to do is copy
  2654. 1:35:59this. Hello
  2655. 1:36:01world. I'm learning nan. So just grab
  2656. 1:36:04all of that. Go in here and paste that.
  2657. 1:36:07Hello world. I'm learning nan. I'm going
  2658. 1:36:09to execute this step. And you can see we
  2659. 1:36:11have this over here. Hello world
  2660. 1:36:12learning nan. And let's run this and
  2661. 1:36:16take a look. We have our input which is
  2662. 1:36:18the manual trigger. We have our output.
  2663. 1:36:20Hello world. Hello world. I'm learning
  2664. 1:36:22n. And hopefully you're able to get that
  2665. 1:36:24right. Obviously this is super basic but
  2666. 1:36:26this is your uh first step in the right
  2667. 1:36:30direction. I do want to note one other
  2668. 1:36:33minor thing just about these workflows
  2669. 1:36:36that I think is a little bit helpful for
  2670. 1:36:38you guys. So, I didn't really cover this
  2671. 1:36:40in detail, but if you take a look at
  2672. 1:36:43these workflows, one things that any end
  2673. 1:36:45team does have is first these dots that
  2674. 1:36:49allow you to kind of drag and drop to go
  2675. 1:36:52from node to node. And then you can also
  2676. 1:36:54see uh these arrows. So, it tells you
  2677. 1:36:57data is going from this node into this
  2678. 1:37:00particular node. Another thing that's
  2679. 1:37:03really helpful is with triggers. You'll
  2680. 1:37:06notice that these are not squares. they
  2681. 1:37:07actually have a rounded left edge like
  2682. 1:37:10this. And obviously you might say, "Oh,
  2683. 1:37:11that's just maybe the manual one." If I
  2684. 1:37:13go to triggers and let's say on a
  2685. 1:37:15schedule,
  2686. 1:37:17same thing, right? And we're going to
  2687. 1:37:19cover this greater detail for the
  2688. 1:37:20trigger section. Um, but they're not
  2689. 1:37:22squares. Like the nodes are going to be
  2690. 1:37:23squares. The triggers are like that. And
  2691. 1:37:25one other thing, notice there's an icon
  2692. 1:37:27and there's something called execute
  2693. 1:37:28workflow. You can see like there's
  2694. 1:37:29lightning over here. So that also shows
  2695. 1:37:32you how to start a workflow. Okay. One
  2696. 1:37:37other thing and again there's there's so
  2697. 1:37:39much with any n how do you re label
  2698. 1:37:41these because it's just not helpful
  2699. 1:37:43seeing edit fields for if you go over
  2700. 1:37:45here and you click on this and you can
  2701. 1:37:47say this is uh print hello world
  2702. 1:37:53and it's super important within your
  2703. 1:37:55workflows that you label your notes. You
  2704. 1:37:57can see print hello world and you have
  2705. 1:37:59other settings as well. You can put
  2706. 1:38:00notes you can display the note in the
  2707. 1:38:02world and it's and we can say print
  2708. 1:38:06Hello world learning in AI
  2709. 1:38:09and we're going to display this note
  2710. 1:38:11inflow and you can see we have this down
  2711. 1:38:14below in that description super super
  2712. 1:38:16important again you can see the green
  2713. 1:38:18check mark this worked properly and we
  2714. 1:38:19have one item that is passed at the very
  2715. 1:38:20end you have this plus icon to add in
  2716. 1:38:22that next node and it populates this
  2717. 1:38:25screen over there and guys that is going
  2718. 1:38:29to be our section number three we've
  2719. 1:38:32covered a lot we covered the basics of
  2720. 1:38:34triggers We covered the basics of some
  2721. 1:38:37of these different nodes. Showed you how
  2722. 1:38:38to the data flows. I showed you how to
  2723. 1:38:41pin data, modify the data as well. We
  2724. 1:38:44talked about expressions. We talked
  2725. 1:38:46about different types uh whether SCA
  2726. 1:38:48table or JSON an error and we built our
  2727. 1:38:51first workflow together. So really
  2728. 1:38:54really happy about that. Uh next thing
  2729. 1:38:56we're going to be covering is the most
  2730. 1:38:58common ways to build out a workflow with
  2731. 1:39:01uh triggers. So, we're going to cover a
  2732. 1:39:03few different triggers like the manual
  2733. 1:39:05schedule chat form and much more in that
  2734. 1:39:09next video. Keep up the great work and I
  2735. 1:39:10will see you in section four. Now, well,
  2736. 1:39:13congrats on building out your first
  2737. 1:39:15workflow. What we're going to do now is
  2738. 1:39:16talk about other ways that you could
  2739. 1:39:18start a workflow. There is well over 10
  2740. 1:39:21different options, but we're going to
  2741. 1:39:22break it down into some of the first
  2742. 1:39:24ones that are easier for beginners to
  2743. 1:39:27comprehend. And don't worry, we'll cover
  2744. 1:39:29the other ones throughout this course.
  2745. 1:39:31So that way you're familiar with all of
  2746. 1:39:32those. We're going to start with a blank
  2747. 1:39:34canvas. And let's get started. Okay. So
  2748. 1:39:37the first one that we should talk about
  2749. 1:39:38is our manual trigger. That is what used
  2750. 1:39:42quite a lot already. And I can just go
  2751. 1:39:44over here and search manual trigger.
  2752. 1:39:45Again, we have this icon over here. And
  2753. 1:39:48we have the rounded corner. It says the
  2754. 1:39:50execute workflow. I use the manual
  2755. 1:39:52trigger all the time for testing
  2756. 1:39:54purposes. It's great because you can
  2757. 1:39:56just click this and then everything else
  2758. 1:39:58starts running. Um, not much honestly to
  2759. 1:40:01it. So, we're going to just fly through
  2760. 1:40:03it. The next one, which we're going to
  2761. 1:40:05do, which I often pair with the manual
  2762. 1:40:07trigger, is going to be a schedule. So,
  2763. 1:40:10we can go over here, add another
  2764. 1:40:11trigger, and then we can say on a
  2765. 1:40:13schedule. And we're going to actually
  2766. 1:40:14jump in a little bit more detail on the
  2767. 1:40:17side of it. And why I use on a schedule
  2768. 1:40:19with execute workflow. Well, in reality,
  2769. 1:40:23sometimes you want to run a workflow
  2770. 1:40:25once at any given time and sometimes you
  2771. 1:40:27want to run it on a specific schedule.
  2772. 1:40:30And what's nice is you can actually pair
  2773. 1:40:32multiple triggers together. So imagine I
  2774. 1:40:34have a workflow and our first node in it
  2775. 1:40:37is the edit set fields. Now, it's not
  2776. 1:40:39always the case. Either one of these can
  2777. 1:40:42technically start the workflow, whether
  2778. 1:40:44it's execution over here manually or if
  2779. 1:40:47it's on a specific schedule. So like
  2780. 1:40:50let's say every day at midnight, right?
  2781. 1:40:51You can run this and every day at
  2782. 1:40:53midnight it runs it. Or if you're
  2783. 1:40:54testing there, you can run this over
  2784. 1:40:56here or if you want to do whatever you
  2785. 1:40:57want. So one of the things that people
  2786. 1:40:59don't understand is you can have
  2787. 1:41:00multiple triggers start a specific
  2788. 1:41:03workflow. And that's just, you know, one
  2789. 1:41:05of the different use cases over here. Uh
  2790. 1:41:07jumping into the schedule trigger,
  2791. 1:41:09you'll see we have different trigger
  2792. 1:41:10intervals. You can go all the way to
  2793. 1:41:12seconds, minutes, hours, days, weeks,
  2794. 1:41:14months, or a custom cron job. And the
  2795. 1:41:17thing with cron jobs, it's quite
  2796. 1:41:19complicated. In fact, you can see it has
  2797. 1:41:21this format over here. And I would
  2798. 1:41:24recommend if you want to learn a little
  2799. 1:41:25bit more about cron jobs, you check out
  2800. 1:41:27our video that we have already based
  2801. 1:41:28around it. Um, we have a full trigger
  2802. 1:41:31video talking about that side of it. And
  2803. 1:41:32honestly, it's a little bit outside the
  2804. 1:41:34scope because I don't you you will need
  2805. 1:41:36it in some sort of cases, but it's not
  2806. 1:41:39used as often as you think. um just
  2807. 1:41:41based off of what's already available
  2808. 1:41:43here directly in any and if this wasn't
  2809. 1:41:45a drop down and you just had cron jobs I
  2810. 1:41:47would recommend learning about it but
  2811. 1:41:49you can see minutes between triggers you
  2812. 1:41:51can set this up as well so you can see
  2813. 1:41:52like 5 minutes or you can go over here
  2814. 1:41:55in hours 1 hour trigger at a minute days
  2815. 1:41:58you have different options as well and
  2816. 1:41:59you have other rules as well so um why I
  2817. 1:42:02mentioned like the crown job is nice to
  2818. 1:42:04have but like you can set up different
  2819. 1:42:06rules over here and have multiple rules
  2820. 1:42:08like maybe you have one on a specific
  2821. 1:42:09day and you have one on a specific
  2822. 1:42:11month. Um, so for example, let's say you
  2823. 1:42:14have a report that needs to be sent out
  2824. 1:42:16once a month, but then also every
  2825. 1:42:18Friday. You can build that out off of
  2826. 1:42:21these specific rules over here. But set
  2827. 1:42:24them up. You can set up a specific time
  2828. 1:42:27with the schedule trigger or you could
  2829. 1:42:29set up something automatically. And both
  2830. 1:42:31of these populate this over here. Okay,
  2831. 1:42:34the next one is a chat trigger. So, I'm
  2832. 1:42:37just going to delete this edit. And what
  2833. 1:42:39we'll do is go into our chat. So,
  2834. 1:42:43actually, you know what? I'll keep these
  2835. 1:42:44here. We'll go into chat and we'll do
  2836. 1:42:45something else. So, go into chat.
  2837. 1:42:51And chat trigger is used a lot more than
  2838. 1:42:54in the past because of chatub because
  2839. 1:42:57ideally you can start your workflow from
  2840. 1:42:59this in chatub. But this is kind of like
  2841. 1:43:02a chatbot and you can open up the chat
  2842. 1:43:04and you can send a message. You can say
  2843. 1:43:06hi, right? And it starts this and the
  2844. 1:43:09first item past it in here. And you can
  2845. 1:43:11see action send message chat input is
  2846. 1:43:14hi. And it's really common to have some
  2847. 1:43:17sort of AI node directly after a chat
  2848. 1:43:21message. And the most common one is
  2849. 1:43:23going to be your AI agent. So if you go
  2850. 1:43:25in your AI agent, and again, we're not
  2851. 1:43:27covering AI agents in this section.
  2852. 1:43:28We're actually going to cover it into
  2853. 1:43:30the next one. Uh but you can see
  2854. 1:43:32connected chat trigger node is the
  2855. 1:43:33source for the prompt. You can either
  2856. 1:43:35define it below or the chat trigger
  2857. 1:43:36node. It's just so common to use it. And
  2858. 1:43:39you can see prompt user message is
  2859. 1:43:40JSON.put.
  2860. 1:43:42Literally, this is one of the most
  2861. 1:43:43common use cases for chat message
  2862. 1:43:45received and any is used to it. And
  2863. 1:43:48that's why they built this in. It's so
  2864. 1:43:49nice. You don't have to paste in this
  2865. 1:43:51chat input and it's just set by default.
  2866. 1:43:54And you can see right over here,
  2867. 1:43:56parameter text has expression. You can
  2868. 1:43:58open this up and you can't update this
  2869. 1:44:00because it automatically pulls whatever
  2870. 1:44:02is in that chat into that specific AI
  2871. 1:44:05agent. And you don't always have to go
  2872. 1:44:07directly an AI agent. Again, you can use
  2873. 1:44:09other approaches for your workflows, but
  2874. 1:44:12it's just very very common uh to have
  2875. 1:44:14that there. Okay. So, another thing with
  2876. 1:44:16chat, you can see uh we have this over
  2877. 1:44:19here. There's been no response from our
  2878. 1:44:20AI agent. So, what I want to do is
  2879. 1:44:23actually just add a chat model really
  2880. 1:44:24quick. And we're just going to ask it a
  2881. 1:44:26very basic question. So, I'm going to go
  2882. 1:44:29over here.
  2883. 1:44:31We'll go over in GPT5 Mini. I got to go
  2884. 1:44:33to my other account. And don't worry,
  2885. 1:44:35we're going to talk about credentials a
  2886. 1:44:36bit. Uh we'll just go to GPT 5 minutes
  2887. 1:44:39since it's cheap. And we'll ask the
  2888. 1:44:42question,
  2889. 1:44:44who won the World Series
  2890. 1:44:47in 1972
  2891. 1:44:50and it's going to go in our AI agent. It
  2892. 1:44:52runs. And by the way, another thing you
  2893. 1:44:54mentioned is you see how it added that
  2894. 1:44:55animation that determines like, hey,
  2895. 1:44:58this note is currently running. I don't
  2896. 1:44:59think we covered that. Um but you can
  2897. 1:45:00see the Oakland Athletics won 1972 World
  2898. 1:45:02Series. given the Cincinnati Reds four
  2899. 1:45:04games to three. MVP was Jean Tennis,
  2900. 1:45:07which I don't know who Gene Tennis is,
  2901. 1:45:09and I probably mispronounced it, but um
  2902. 1:45:11yeah, that's the chat trigger. Very,
  2903. 1:45:13very common to set this up with an AI
  2904. 1:45:15agent. You can see we have our chat
  2905. 1:45:17window over here, which again, we can
  2906. 1:45:19expand. We can also expand it this way
  2907. 1:45:23if we want. We have our logs over here.
  2908. 1:45:26You can clear your logs. You have your
  2909. 1:45:27model. It tells you how many tokens. You
  2910. 1:45:28have your output. A lot more other kind
  2911. 1:45:30of more advanced. And uh we're just
  2912. 1:45:32gonna hide the chat and we're going to
  2913. 1:45:33move on to our next one. So the next one
  2914. 1:45:36we're going to specifically use is a
  2915. 1:45:37form. And another one that I just use
  2916. 1:45:40all the time. And you can go to the Nan
  2917. 1:45:42form and you'll see trigger and it says
  2918. 1:45:45on a new N form opinion. Now you have
  2919. 1:45:47two different URLs for your form. We're
  2920. 1:45:50not going to really talk too much about
  2921. 1:45:51production as of yet. Uh but just
  2922. 1:45:54jumping in over here, you'll see we have
  2923. 1:45:56our test URL and we have our production
  2924. 1:45:59URL. And you also have authentication
  2925. 1:46:00with your form. We're going to cover
  2926. 1:46:02authentication in a whole section, but
  2927. 1:46:04you can set your title for the form. So
  2928. 1:46:06feel free to set title as you want. I'm
  2929. 1:46:08just going to say nan starter form.
  2930. 1:46:12And then you can set a form description.
  2931. 1:46:15So we'll say take user input. And what's
  2932. 1:46:18really cool is there's a lot of
  2933. 1:46:20different form elements. So if we go
  2934. 1:46:22over here, you'll see we add a form
  2935. 1:46:24element. And then first thing you do is
  2936. 1:46:26set a field name. This could be fixed or
  2937. 1:46:28an expression but you can say okay let's
  2938. 1:46:31say person name person name
  2939. 1:46:36and then you can say label what is your
  2940. 1:46:39name next you have your element type so
  2941. 1:46:42you could specify if hey is this a
  2942. 1:46:44checkbox you can adding custom HTML is
  2943. 1:46:47this a date is this a dropown email file
  2944. 1:46:49a hidden field a number password radio
  2945. 1:46:52buttons text or text area you know out
  2946. 1:46:54of all these the most common ones you're
  2947. 1:46:56going to use checkbox boxes quite a bit.
  2948. 1:46:58You're going to use dates a lot, drop
  2949. 1:47:00downs, super super popular, numbers,
  2950. 1:47:02also very popular, radio buttons, text
  2951. 1:47:04and text area. So, uh you can also put
  2952. 1:47:07placeholder values and as well as a
  2953. 1:47:09default value. Um again, depends on your
  2954. 1:47:12use case, but your placeholder would
  2955. 1:47:15just kind of show you what's there and
  2956. 1:47:16what the default value if something
  2957. 1:47:17isn't there. You also have your required
  2958. 1:47:20field. So, sometimes people won't fill
  2959. 1:47:21out a form and hey, I actually need this
  2960. 1:47:24data point. So you can just turn this on
  2961. 1:47:26or turn this off. And you have different
  2962. 1:47:28options when uh the form is submitted or
  2963. 1:47:30workflow finishes. Most of the time I
  2964. 1:47:31just use form is submitted. In addition,
  2965. 1:47:33you can add in multiple form elements.
  2966. 1:47:35You can see how I'm just adding in all
  2967. 1:47:37these,
  2968. 1:47:39but we'll just go very basic and we'll
  2969. 1:47:41use the person's name. In addition, you
  2970. 1:47:44have other options down below. You can
  2971. 1:47:45append any attribution labels, paths,
  2972. 1:47:49you can ignore bots. This is helpful
  2973. 1:47:50when you're in production. Uh you can
  2974. 1:47:52use the time time zone of the workflow
  2975. 1:47:55which we've already showed you set this
  2976. 1:47:56up and you can do custom styling which
  2977. 1:47:59is just over here and you can change
  2978. 1:48:01different fonts. You can change all the
  2979. 1:48:03colors associated with it. So if you
  2980. 1:48:05want to change the design on the form I
  2981. 1:48:07would just recommend you send it to an
  2982. 1:48:09LLM. I'll show you how we can do this
  2983. 1:48:11here in a second. But let's just execute
  2984. 1:48:13step to show you what this form looks
  2985. 1:48:15like. So I'll execute the step and you
  2986. 1:48:18can see it says any n starter form take
  2987. 1:48:20user input. I put my name over here.
  2988. 1:48:22Let's say Ryan Nolan
  2989. 1:48:25submit. And then you can see over here
  2990. 1:48:26it says person name submitted at the
  2991. 1:48:28exact time stamp and then form mode
  2992. 1:48:30test. So you can see we're in our our
  2993. 1:48:32test URL. So if I click the copy of this
  2994. 1:48:34form URL and I put this over here,
  2995. 1:48:44you can see that this says form trigger
  2996. 1:48:46isn't listening yet. But if I go over
  2997. 1:48:48here to execute step
  2998. 1:48:51or if I go over here,
  2999. 1:48:54refresh this,
  3000. 1:48:55you'll see that this is available and it
  3001. 1:48:57says this is a test version of your
  3002. 1:48:58form. And uh again, be very careful with
  3003. 1:49:01your form. I'm just going to stop the
  3004. 1:49:03execution over here, which by the way, I
  3005. 1:49:05didn't even really talk about this, but
  3006. 1:49:07you can execute your workflow from down
  3007. 1:49:08over here. You can see chat as an option
  3008. 1:49:11here, too. But be very careful with that
  3009. 1:49:13production URL. So that is an option
  3010. 1:49:16over there. That was just text. We can
  3011. 1:49:18go and take a look at a few other ones
  3012. 1:49:20and do checkboxes. Let's do a drop down
  3013. 1:49:23and we'll say instead of person name, oh
  3014. 1:49:26actually let's go and do the name and
  3015. 1:49:28what we'll do instead is we'll have
  3016. 1:49:31another section and we'll say N
  3017. 1:49:34skill level.
  3018. 1:49:37We'll say what is your N skill level?
  3019. 1:49:44And what we can do is go down over here.
  3020. 1:49:46Let's do something like a dropown
  3021. 1:49:48default value. We're going to say
  3022. 1:49:49beginner.
  3023. 1:49:51So option beginner
  3024. 1:49:54their option over here. Advanced.
  3025. 1:49:57Obviously like you could add in a lot of
  3026. 1:49:59different things over here. But we'll
  3027. 1:50:00just do this to save some time. And you
  3028. 1:50:03can see this just as a drop down over
  3029. 1:50:05there. We'll stop listening. And you can
  3030. 1:50:08say
  3031. 1:50:10I didn't want to add option but I want
  3032. 1:50:11to add another form. Uh field name used
  3033. 1:50:15N before.
  3034. 1:50:20Have you used N before? And we can go
  3035. 1:50:24over here. Element type. Let's use a
  3036. 1:50:26checkbox. Default value. Let's say we're
  3037. 1:50:30going to actually fill this out this
  3038. 1:50:31time. We're going to say yes. Go over
  3039. 1:50:33here and say yes as a label. Add a
  3040. 1:50:36checkbox. And then, you know, then you
  3041. 1:50:38can limit selection. Um, and you can set
  3042. 1:50:41stuff like that, too. Anyways, we'll go
  3043. 1:50:43execute step. I've used an end before.
  3044. 1:50:46This allows both of these. Obviously,
  3045. 1:50:48that's not correct. So, you could stop
  3046. 1:50:50listening. You could set exact number.
  3047. 1:50:53You could set one over here. And if you
  3048. 1:50:56go to exact step this time, it says you
  3049. 1:50:58must submit exactly one option. So, you
  3050. 1:51:00can't choose both. And this is forcing
  3051. 1:51:03you to choose one option. So you can go
  3052. 1:51:05over here, put Ryan, and you can really
  3053. 1:51:08see how we can build this out. So here's
  3054. 1:51:10what I want you guys to do just get used
  3055. 1:51:13to stuff. And obviously there's more
  3056. 1:51:15triggers, but I want to give you guys an
  3057. 1:51:17assignment again just to kind of build
  3058. 1:51:20this out. I want you to take a form. So
  3059. 1:51:23we're going to say
  3060. 1:51:24step one,
  3061. 1:51:26like we're going to build out an AN
  3062. 1:51:28form. little anyn form
  3063. 1:51:32that asks
  3064. 1:51:33about
  3065. 1:51:36job. So what this might have questions
  3066. 1:51:39is like
  3067. 1:51:41one is like job title,
  3068. 1:51:44two is a job description,
  3069. 1:51:49three
  3070. 1:51:50join date or the job and I put data over
  3071. 1:51:55here but let's say join date. Um, what
  3072. 1:51:57else can we throw in over here really
  3073. 1:51:59quick? And I want you to go over here
  3074. 1:52:01and add in different form elements for
  3075. 1:52:03these. So like try different form
  3076. 1:52:07elements. What else can we just throw in
  3077. 1:52:09over here really fast? So we put the
  3078. 1:52:10title, description.
  3079. 1:52:12I know there's other things that we
  3080. 1:52:14could put over here as well, but I'm
  3081. 1:52:16just going to go over here and take out
  3082. 1:52:18how to form elements.
  3083. 1:52:20We're not going to cover files. Oh, um,
  3084. 1:52:24we could put over here. I'm just going
  3085. 1:52:26to say four fake work email. Don't put
  3086. 1:52:29in your exact email for this demo, but I
  3087. 1:52:31think that'd be another good ad on here.
  3088. 1:52:33I'm just trying to get you guys to use
  3089. 1:52:34different things, right? Um, what else
  3090. 1:52:37can we add in over here? Text, drop
  3091. 1:52:41down, number, password.
  3092. 1:52:43I have a number in here. Uh, might be
  3093. 1:52:45the last thing.
  3094. 1:52:48Title, description. Oh, yeah. Put
  3095. 1:52:50salary.
  3096. 1:52:51Salary. Cool. So, what I want you to do
  3097. 1:52:54is pause this video, build out a form
  3098. 1:52:57based around this, and uh yeah, we'll
  3099. 1:53:01take a look at that output. We'll throw
  3100. 1:53:03all this also into an edit set field
  3101. 1:53:06right after. And let's put this over
  3102. 1:53:08here. Add edit set field after this. And
  3103. 1:53:14I know we haven't really talked about
  3104. 1:53:15that in greater detail as of yet, but I
  3105. 1:53:17want you to pause the video, do this,
  3106. 1:53:20and I'll cover the solution, and then
  3107. 1:53:22after what we'll do next is talk about
  3108. 1:53:25the styling of the form. All right,
  3109. 1:53:27ready? Pause the video. 3 2 1, try it
  3110. 1:53:30out, and I will be right back.
  3111. 1:53:32All right, I am back. Let's build out
  3112. 1:53:34this form. So, we'll go and go and grab
  3113. 1:53:38the form, the nan form, and we'll say on
  3114. 1:53:41a new form event, and let's build this
  3115. 1:53:44out. So, the first thing we want to do
  3116. 1:53:46is grab our job title. So, this is
  3117. 1:53:48pretty easy. We'll say job form
  3118. 1:53:52um job form for nan video. I guess it's
  3119. 1:53:56more of a course than that. We'll add an
  3120. 1:53:58element field name. We'll say job name.
  3121. 1:54:03What is your job title?
  3122. 1:54:07No, it's just like we'll do job name
  3123. 1:54:10like this. That's fine. This is text.
  3124. 1:54:13Again, you can make things required or
  3125. 1:54:15not, but I'm not going to do that. Next,
  3126. 1:54:18we're going to go into our job
  3127. 1:54:19description.
  3128. 1:54:22We'll just call this job description
  3129. 1:54:23label job description as well. We'll
  3130. 1:54:26call this over here instead of text a
  3131. 1:54:28text area. So that way someone can fill
  3132. 1:54:29out a little bit more information. The
  3133. 1:54:31next is join date for job or job start
  3134. 1:54:34date. Again, I could really fix this and
  3135. 1:54:37make it better, but I don't think it
  3136. 1:54:38really matters too much for a tutorial.
  3137. 1:54:40Obviously, if you're building things for
  3138. 1:54:42customers, be as detailed as possible.
  3139. 1:54:45Um, all right. So, this time we're going
  3140. 1:54:46to grab a date over here. And it says
  3141. 1:54:49the display date is formatted based on
  3142. 1:54:51local of the user's browser. Right? Fake
  3143. 1:54:54work email. Go over here and add in work
  3144. 1:54:58email.
  3145. 1:55:01And uh we'll just grab that. We'll go
  3146. 1:55:04over here and grab email this time. And
  3147. 1:55:06then lastly, let's grab our salary. So
  3148. 1:55:08just going back in over here, add form
  3149. 1:55:10element. Put in field name as a salary
  3150. 1:55:13label. This time we're going to go into
  3151. 1:55:15a number. And yeah, so we have
  3152. 1:55:17everything over here. Obviously, I I've
  3153. 1:55:19kind of rushed through this. Hopefully
  3154. 1:55:21you take your time and you can execute
  3155. 1:55:23the step. And you can see we have a full
  3156. 1:55:24form now. We have this calendar. We have
  3157. 1:55:27a work email that expects an email. So
  3158. 1:55:30you can see it says enter a valid email
  3159. 1:55:32address. I have a salary. So if I type
  3160. 1:55:34in this like it's not letting me um but
  3161. 1:55:37if I type in number that's fine over
  3162. 1:55:38here. This expands out. So you can see
  3163. 1:55:41that expanding out over here. Whereas
  3164. 1:55:42this does not. And if I put this over
  3165. 1:55:45here I'll say data scientist
  3166. 1:55:49job description but underwriting and
  3167. 1:55:51risk.
  3168. 1:55:53It's my full-time job. Job doing date is
  3169. 1:55:56way in the past. Work email, we're just
  3170. 1:55:59going to say ryangoogle.com.
  3171. 1:56:02Now, obviously, I don't work at Google,
  3172. 1:56:04but I'm just going to put that over
  3173. 1:56:05here. And salary, we're just going to
  3174. 1:56:06add in this over here. I do make way
  3175. 1:56:09more than that, but uh we'll click
  3176. 1:56:10submit. And you'll see we have all this
  3177. 1:56:12information over here. And what's great
  3178. 1:56:14is we can pass all this data into our
  3179. 1:56:17edit set field. And you can take a look
  3180. 1:56:19at this. And we can actually just grab
  3181. 1:56:23and drag and drop
  3182. 1:56:25all of our data points directly into
  3183. 1:56:27edit set and we're going to learn a lot
  3184. 1:56:28more about this here in a second. Um you
  3185. 1:56:31can even see we grab the submitted at
  3186. 1:56:33which wasn't in the form. You can
  3187. 1:56:35execute step and take a look. We have
  3188. 1:56:37all that on that side of things. Great.
  3189. 1:56:40Okay. One other thing I did promise you
  3190. 1:56:41guys is just showing you how we can
  3191. 1:56:44update this form. And let me just stop
  3192. 1:56:47this really fast.
  3193. 1:56:49This not run.
  3194. 1:56:52I guess some weird stuff. Let me save
  3195. 1:56:53this. I'll refresh it and uh we'll just
  3196. 1:56:56change the formatting really quick
  3197. 1:56:59of this form.
  3198. 1:57:03I guess I never Oh, I never filled this
  3199. 1:57:04out. That's why. It's like why did it
  3200. 1:57:07not allow me to do that? That's all
  3201. 1:57:09right. We'll save it and let's add in
  3202. 1:57:11the colors now. So, just to grab this,
  3203. 1:57:16I'm going to go and put Claude up. So,
  3204. 1:57:19we're going to go Claude AI.
  3205. 1:57:21throw this in over here. And what I'm
  3206. 1:57:24going to do is just grab this form. We
  3207. 1:57:27have this. And I'm going to grab all
  3208. 1:57:30this code and then say,
  3209. 1:57:33can you change this code?
  3210. 1:57:37So the form is red and blue. Super
  3211. 1:57:41simple.
  3212. 1:57:43And I'm just going to throw this over
  3213. 1:57:44here. Obviously, there's a lot of things
  3214. 1:57:46that you could change,
  3215. 1:57:50but it's going to go over here,
  3216. 1:57:53make those changes for you.
  3217. 1:57:56And you can see key changes applied.
  3218. 1:57:58Just copy that. And this is something
  3219. 1:58:00you'll learn over time is like you can
  3220. 1:58:02prompt large language models to help you
  3221. 1:58:06solve things faster because take a look
  3222. 1:58:08at that form. We completely changed it.
  3223. 1:58:10It took us two seconds. And in the past,
  3224. 1:58:13historically, we would have to know our
  3225. 1:58:14colors. We would have to change this up.
  3226. 1:58:16I could have provided exact colors as
  3227. 1:58:18well to our LM or ideas of a form like a
  3228. 1:58:21design. But at the end of the day, this
  3229. 1:58:24took two seconds for a YouTube video.
  3230. 1:58:26And uh yeah, I'm pretty happy with it.
  3231. 1:58:28I'm curious if I click submit. That's
  3232. 1:58:30pretty cool. All right, so I'm going to
  3233. 1:58:32close out of that. We're going to save
  3234. 1:58:33this. And we're just going to recap this
  3235. 1:58:36video before we move into our next
  3236. 1:58:37section, which by the way, our next
  3237. 1:58:39section we're actually going to learn
  3238. 1:58:40about using an AI agent, which I'm super
  3239. 1:58:43thrilled uh to get over there. I know
  3240. 1:58:45obviously there's still so much to
  3241. 1:58:46learn, but I want to get you using AI.
  3242. 1:58:49Regardless, first you can use multiple
  3243. 1:58:51triggers uh to start a workflow. Very
  3244. 1:58:54common one is manual execution with a
  3245. 1:58:56schedule trigger. Schedule trigger is
  3246. 1:58:59for timing in real world, especially
  3247. 1:59:01like for my job, I do data analysis. I
  3248. 1:59:04have reports getting sent out every day,
  3249. 1:59:06sometimes every week, sometimes every
  3250. 1:59:07month. So, schedule trigger helps with
  3251. 1:59:09your workflows on that side of things.
  3252. 1:59:11You have a chat message received, very
  3253. 1:59:13common to use with an AI agent. Also,
  3254. 1:59:15using a chat message received, um you'll
  3255. 1:59:17need that for specifically ChatHub to
  3256. 1:59:20start a workflow. So, you'll see these
  3257. 1:59:22being used way more in workflows just
  3258. 1:59:24based off of ChatHub and how awesome it
  3259. 1:59:26is. Uh, and form. I use forms a lot for
  3260. 1:59:29when I want to process binary data or I
  3261. 1:59:31want to grab a lot of different inputs
  3262. 1:59:33from a specific user. And we covered a
  3263. 1:59:35lot of different examples of what you
  3264. 1:59:37could throw into a form. And uh, yeah,
  3265. 1:59:40for testing, I'm just using the testing
  3266. 1:59:42URL. I'm not even going to cover
  3267. 1:59:43production URL until we're a little bit
  3268. 1:59:45later in the video. Probably talking
  3269. 1:59:46about web hooks when we talk about
  3270. 1:59:48production URL. So, don't worry about
  3271. 1:59:49that over now. Um, but one of the
  3272. 1:59:51benefits of this form is we get in our
  3273. 1:59:53data and then it already has one item
  3274. 1:59:54and we can start passing it forward.
  3275. 1:59:56Lastly, I showed you how we could change
  3276. 1:59:58the colors on the form. And remember,
  3277. 1:59:59there's other triggers out there. We're
  3278. 2:00:01just covering the basics in this
  3279. 2:00:03particular video. But now, we're going
  3280. 2:00:05to cover AI agents, and I will see you
  3281. 2:00:07shortly in section five. So, in this
  3282. 2:00:10section, I want to get you guys some of
  3283. 2:00:11your first wins using an AI agent.
  3284. 2:00:14Obviously, there's a lot of details with
  3285. 2:00:16AI agents, and we're going to go into a
  3286. 2:00:17little bit more of an advanced section
  3287. 2:00:19quite later in this course, but the goal
  3288. 2:00:22and objective of this section is to
  3289. 2:00:24learn how to set up a AI agent with LMS
  3290. 2:00:27from a few different popular providers.
  3291. 2:00:29I'm going to show you how to set up Open
  3292. 2:00:31AI. I'm going to show you how to do
  3293. 2:00:32Cloud Enthropic as well as Google. We're
  3294. 2:00:35also going to go through two exercises
  3295. 2:00:37together uh to get used to this as well.
  3296. 2:00:40And yeah, let's jump right into it. So,
  3297. 2:00:43the first thing we're going to do is go
  3298. 2:00:45over and just set up a chat trigger.
  3299. 2:00:47Now, you should be somewhat familiar
  3300. 2:00:48with this based off of the last two
  3301. 2:00:50videos. So, we're going to have a chat
  3302. 2:00:52trigger over here. And then what we're
  3303. 2:00:54going to do next is go and grab a AI
  3304. 2:00:57agent. So, we'll go over here, have our
  3305. 2:00:59AI agent, and by default, it'll have the
  3306. 2:01:02chat trigger go into the AI agent.
  3307. 2:01:04Again, we've covered this before where
  3308. 2:01:06the prompt for the chat should say
  3309. 2:01:08JSON.put.
  3310. 2:01:09It already does. So, we're pretty good
  3311. 2:01:11to go on that side of things. But now,
  3312. 2:01:14what we need to do is fill out our
  3313. 2:01:16property where it says chat model. And
  3314. 2:01:19this is really important because this
  3315. 2:01:21defines what model you're going to be
  3316. 2:01:22working with. If you don't have this,
  3317. 2:01:24nothing's going to happen. And just to
  3318. 2:01:25show you, I'll put over here um I don't
  3319. 2:01:29know, we'll say what is the most
  3320. 2:01:33expensive
  3321. 2:01:35Babe Ruth baseball card. And I I might
  3322. 2:01:38be misspelling this over here. My
  3323. 2:01:40microphone is in the way, but you'll see
  3324. 2:01:43we'll get an error because it says a
  3325. 2:01:45chat sub node must be connected enabled.
  3326. 2:01:47And we just don't have our chat model.
  3327. 2:01:49So it's super important to set this up.
  3328. 2:01:52So let's click on this plus icon and
  3329. 2:01:56you'll see over here we have all of our
  3330. 2:01:57different language models we can work
  3331. 2:01:58with. You have cloud andropic over here.
  3332. 2:02:01You have Azure, AWS, go here, Deep Seek,
  3333. 2:02:04Google Gemini, Vert.Ex, Grock, Mistral,
  3334. 2:02:07Lemonade, Olama, Open Router, Grock,
  3335. 2:02:10Open AI, and there's just so many and
  3336. 2:02:12you're like, man, I I don't know what to
  3337. 2:02:14use. So, a few notes like obviously the
  3338. 2:02:17most popular one out there, and this may
  3339. 2:02:20change in the future, but as of
  3340. 2:02:22essentially 2026, I'm recording late
  3341. 2:02:24December, OpenAI is probably used by the
  3342. 2:02:27most amount of users. Okay? So you'll
  3343. 2:02:30see a lot of different workflows that
  3344. 2:02:31use OpenAI. It's pretty popular in
  3345. 2:02:34corporate environments. But some of the
  3346. 2:02:35other ones that are really really
  3347. 2:02:37popular, you have Google Gemini, which
  3348. 2:02:40uh Gemini 3 has really taken off and put
  3349. 2:02:43Gemini a little bit higher up in the
  3350. 2:02:45rankings. And then you also have Cloud
  3351. 2:02:47Enthropic that a lot of people like as
  3352. 2:02:49well. There is some local models over
  3353. 2:02:52here which I'm not going to dive into.
  3354. 2:02:54You also have specifically open router
  3355. 2:02:57which allows you to choose between
  3356. 2:02:59different models. And then in addition,
  3357. 2:03:01you have things like grock um which may
  3358. 2:03:04be helpful if you want to use specific
  3359. 2:03:05Twitter data. You also have something
  3360. 2:03:07over here called the model selector. And
  3361. 2:03:09it says use this node to select one or
  3362. 2:03:10more of the connected say node based on
  3363. 2:03:12the workflow data. Outside the scope of
  3364. 2:03:14today's video, but yeah, we're going to
  3365. 2:03:17go through and set up multiple of these.
  3366. 2:03:20Let's start off with OpenAI. So, I'll
  3367. 2:03:22just go over here and click open AI chat
  3368. 2:03:24model. And the first thing you want to
  3369. 2:03:26do is set up an account. So, I'm going
  3370. 2:03:28to show you how to create a new
  3371. 2:03:29credential right now. We're going to
  3372. 2:03:30click this. And you get this popup
  3373. 2:03:33screen and it says, "Need help filling
  3374. 2:03:35out these fields? Open Docs." Again, any
  3375. 2:03:37is fantastic for documentation, but
  3376. 2:03:39honestly, this is going to be pretty
  3377. 2:03:40easy. All we need to do is get an API
  3378. 2:03:42key. So, how do you get an API key?
  3379. 2:03:44Well, you go to a website,
  3380. 2:03:45openai.com/api,
  3381. 2:03:48and we're just going to log in over
  3382. 2:03:49here. If you don't have a account, make
  3383. 2:03:52sure to set one up. But we're going to
  3384. 2:03:53go login and we're going to go to API
  3385. 2:03:55platform. I'm just going to log in with
  3386. 2:03:57my Google account. Cool. And then we're
  3387. 2:03:59right over here. We're going to click
  3388. 2:04:01this settings icon. We're going to go
  3389. 2:04:03into API keys. And then you're going to
  3390. 2:04:06create a new secret key. So just click
  3391. 2:04:09plus create new secret key. Whatever
  3392. 2:04:12we're going to say. We're going to say N
  3393. 2:04:14tutorial
  3394. 2:04:17full course. I don't know. We're going
  3395. 2:04:19to delete these shortly after. You can
  3396. 2:04:22set a project if you want. You can set
  3397. 2:04:24up specific permissions if you want. I'm
  3398. 2:04:26just going to say a default project. I'm
  3399. 2:04:28going to create the new secret key. And
  3400. 2:04:29then you see I have a key over here. So
  3401. 2:04:32it says save your key. Please save your
  3402. 2:04:34secret key is safe. So we won't be able
  3403. 2:04:35to view it again. Blah blah blah. Right?
  3404. 2:04:38Best practices. Also to mention with API
  3405. 2:04:40keys, you can set limits in a in a
  3406. 2:04:43platform. So just in case it gets lost
  3407. 2:04:45or anything like that, but you only can
  3408. 2:04:48copy this once. So, copy that key and
  3409. 2:04:50then go back into your API key over
  3410. 2:04:51here. You'll see it's been pasted. If
  3411. 2:04:53you click save, then it'll say
  3412. 2:04:55credential created inside your own
  3413. 2:04:56personal workspace. And what I would
  3414. 2:04:58recommend is you actually label your
  3415. 2:05:00credential over here. Uh because if you
  3416. 2:05:03don't, you'll be confused like what's
  3417. 2:05:05account one, what's account two, what's
  3418. 2:05:06account three. I made that mistake a
  3419. 2:05:08long time ago and I just never cleaned
  3420. 2:05:10it up on here. So, just label this right
  3421. 2:05:12away. If you want to delete your
  3422. 2:05:13credential, you can go over here and
  3423. 2:05:14delete it. I'm going to delete this one
  3424. 2:05:16because I don't want to use it. So, I'm
  3425. 2:05:17going to say delete. Obviously, you see
  3426. 2:05:19what this credential is. It's going to
  3427. 2:05:21be gone. And go over here, and I'm
  3428. 2:05:25actually going to delete this one as
  3429. 2:05:26well. So, I'm going to remove that key
  3430. 2:05:28so that way you guys can't use it. And
  3431. 2:05:30we are good to go. So, I'm going to go
  3432. 2:05:32to my OpenAI account. And what you'll
  3433. 2:05:34see next is we have different models
  3434. 2:05:36over here. Now, I think one of the
  3435. 2:05:38things that N should improve on is just
  3436. 2:05:41changing out the recent model that
  3437. 2:05:43populates here. It's 41. I'm not using
  3438. 2:05:4541 at all. And by the time you watch
  3439. 2:05:47this video, we might be on like GPT6 or
  3440. 2:05:49GPT7. Um, but GPT52 is out, so you could
  3441. 2:05:52use that. I tend to use just mini
  3442. 2:05:55because it's a cheaper model in a lot of
  3443. 2:05:56my videos. So, I'll say GPT5 mini. You
  3444. 2:05:59also have the responses API, which has a
  3445. 2:06:01lot of information outside the scope of
  3446. 2:06:03this video. But just like that, like 5
  3447. 2:06:07minutes, we were able to set up this
  3448. 2:06:09OpenAI chat model. Now, I'm going to
  3449. 2:06:11save this over here. And I'm also going
  3450. 2:06:13to show you something pretty cool that
  3451. 2:06:14we haven't covered yet in this course.
  3452. 2:06:17And actually, it kind of escaped me when
  3453. 2:06:19I was covering the nodes and stuff like
  3454. 2:06:20that. One of the things that you should
  3455. 2:06:22be able to do as well is turn on and off
  3456. 2:06:24nodes. So, if you see this over here,
  3457. 2:06:26I'm just going to deactivate it. And
  3458. 2:06:28this is no longer being used. Now,
  3459. 2:06:29obviously, this is a a chat model
  3460. 2:06:32attached to an AI agent, but the same
  3461. 2:06:33thing happens with nodes. So, you can
  3462. 2:06:34see it's deactivated or not. Um, outside
  3463. 2:06:38the scope of this particular lecture,
  3464. 2:06:40but feel like that's important. So
  3465. 2:06:42that's OpenAI. Next, what I want to have
  3466. 2:06:45us to set up is going to be Cloud
  3467. 2:06:47Enthropic. So again, we're going to just
  3468. 2:06:49click this chat model and I'm going to
  3469. 2:06:51go to anthropic chat model like this.
  3470. 2:06:54What I'm going to do is click down over
  3471. 2:06:55here and create new credential. So once
  3472. 2:06:58again, we have to get an API key. So if
  3473. 2:07:00we go to claude console, so
  3474. 2:07:02platform.cloud.com,
  3475. 2:07:04sign in with your Google account, which
  3476. 2:07:05I'm going to do right now. Yep. Then you
  3477. 2:07:07have this main screen over here. Make
  3478. 2:07:09sure to get API key. We're going to
  3479. 2:07:11create a key and then name your key.
  3480. 2:07:14I'll say n live tutorial.
  3481. 2:07:19I'll add this key. And again, you'll see
  3482. 2:07:22our key right over here. Probably be
  3483. 2:07:24blurred out for this video, but go over
  3484. 2:07:27here to API key, paste that in, and
  3485. 2:07:29you'll see save again. Rename your
  3486. 2:07:31thing. And it says connection tested
  3487. 2:07:33successfully if it works. I'm just going
  3488. 2:07:35to delete this one because we don't need
  3489. 2:07:36that. And I'm going to go back over here
  3490. 2:07:39and this as well. So just going to go
  3491. 2:07:43over here and delete this. Obviously you
  3492. 2:07:45guys should not
  3493. 2:07:47do that for your keys. I'm just doing
  3494. 2:07:49this right now because it's for the
  3495. 2:07:51video. So it's been disabled. And delete
  3496. 2:07:53it.
  3497. 2:07:55Great. So have both of those
  3498. 2:07:57particularly in here. And again you have
  3499. 2:08:00a lot of different models associated
  3500. 2:08:02with Claude. You can go over here. You
  3501. 2:08:04can see Sonnet 45 I use quite a bit.
  3502. 2:08:06Opus 45 is a really expensive model. And
  3503. 2:08:09maybe we'll have a section talking about
  3504. 2:08:10like what model to use and what
  3505. 2:08:12particular use cases, but again, I'm
  3506. 2:08:14just trying to get you set up and going.
  3507. 2:08:17So that's Enthropic. I'm going to just
  3508. 2:08:19remove that over here and then
  3509. 2:08:21deactivate it. Next, what we're going to
  3510. 2:08:23work on is adding in Gemini. So click
  3511. 2:08:26this plus icon. You'll notice Google has
  3512. 2:08:28multiple models. I'm going to use Gemini
  3513. 2:08:30over here. And uh again, we're going to
  3514. 2:08:32just create a new account. So just click
  3515. 2:08:34over here, create new credential. It's
  3516. 2:08:36going to ask for an API key. So how you
  3517. 2:08:39get this is you go to Google AI studio.
  3518. 2:08:41So AI studio.google.com.
  3519. 2:08:44And then uh we're going to just can go
  3520. 2:08:45and get API key in the bottom left.
  3521. 2:08:48Create new API key. I'm going to say
  3522. 2:08:52n course like this. You choose a cloud
  3523. 2:08:55project as well if you want. And uh you
  3524. 2:08:58choose a cloud project as well. I'm just
  3525. 2:09:00going to say any nut. We grab that.
  3526. 2:09:04And then we have our key. And again, you
  3527. 2:09:07can just copy over the key. You can see
  3528. 2:09:09copy API key like this. And uh yeah,
  3529. 2:09:13this one was here. So, copy that. Go
  3530. 2:09:15back in over to Nan API key. You can
  3531. 2:09:20save that. And if it works, connection
  3532. 2:09:22tested successfully. One thing to
  3533. 2:09:24mention as well, and again, I'm just
  3534. 2:09:25going to delete this key because I don't
  3535. 2:09:27need it.
  3536. 2:09:31One thing to mention as well though is
  3537. 2:09:33you need to fund all of your accounts
  3538. 2:09:36because these are paid. Now it you do
  3539. 2:09:39not use a lot of money with large
  3540. 2:09:41language models if you're doing a small
  3541. 2:09:44amount of testing. Like there's it's
  3542. 2:09:46very rarely like I spend more than $50 a
  3543. 2:09:48month on projects just for YouTube
  3544. 2:09:51tutorials and things like that and
  3545. 2:09:52testing and building out things.
  3546. 2:09:54Obviously if you have a SAS product or
  3547. 2:09:56you're selling services that's going to
  3548. 2:09:57be a little bit different. Um, but just
  3549. 2:10:00keep that in mind. These models tend to
  3550. 2:10:02be pretty cheap. There is expensive
  3551. 2:10:03models out there as well. Uh, for
  3552. 2:10:05OpenAI, Anthropic, and Google Gemini. So
  3553. 2:10:08like Gemini over here, we can go over
  3554. 2:10:10and choose a specific model. I'm using
  3555. 2:10:13Gemini 3 for a lot of stuff. So this pro
  3556. 2:10:15preview over here. And yeah, we'll talk
  3557. 2:10:18about cost of models and a lot more in
  3558. 2:10:20our advanced section. This is just our
  3559. 2:10:23basics. So what I want us to do now is
  3560. 2:10:25build out a workflow. We're going to use
  3561. 2:10:27our chat trigger. We're going to use our
  3562. 2:10:28AI agent over here. And then um let's
  3563. 2:10:32ask each of these over here a question.
  3564. 2:10:34What we're going to ask is and I'll put
  3565. 2:10:37this over here. What is the most
  3566. 2:10:40important
  3567. 2:10:42any end skill? So we're going to ask
  3568. 2:10:43each model that.
  3569. 2:10:46Let's jump through this. So first I'm
  3570. 2:10:49going to unactivate these or make them
  3571. 2:10:52live I should say and we'll test them
  3572. 2:10:54one at a time.
  3573. 2:10:56So, let's open up our chat. I'm going to
  3574. 2:10:59clear the chat log. So, I just click
  3575. 2:11:01reset chat session like that. And let's
  3576. 2:11:04jump into it. So, our first one, what is
  3577. 2:11:06the most important N skill? And I'm
  3578. 2:11:08actually very curious what each of these
  3579. 2:11:10say. So, our first one's going to be
  3580. 2:11:11open AI.
  3581. 2:11:14And I just want to document this, too.
  3582. 2:11:16Uh, we're going to use Claude
  3583. 2:11:19and then we're going to use
  3584. 2:11:21All right.
  3585. 2:11:23So short answer the single most
  3586. 2:11:25important N skill is knowing how to work
  3587. 2:11:26with data and APIs reading
  3588. 2:11:29and transforming JSON HTTP between
  3589. 2:11:31systems debug inflow again my mic is
  3590. 2:11:34like right here and that's in the bottom
  3591. 2:11:36left so it's kind of tough to read so
  3592. 2:11:39we'll just copy this obviously they
  3593. 2:11:41wrote a lot over here
  3594. 2:11:43you can see that is our answer I don't
  3595. 2:11:45know why I'm copying this here it
  3596. 2:11:47doesn't matter so now what I'll do is
  3597. 2:11:49I'll just deactivate this or move this
  3598. 2:11:51out of the way and I will throw in
  3599. 2:11:54anthropic.
  3600. 2:11:55Cool. Let's run this again. So, I'm just
  3601. 2:11:58going to go reset chat session. And uh
  3602. 2:12:01we'll go through on this side of things.
  3603. 2:12:05And what you'll notice as well, each of
  3604. 2:12:07these models have their own personality.
  3605. 2:12:08Like they respond short, fast,
  3606. 2:12:11efficiently.
  3607. 2:12:12And there's a there's a lot of nuances
  3608. 2:12:14behind it, but you're getting the ground
  3609. 2:12:16started. And you can see there's a ton.
  3610. 2:12:19Understanding logic flow and conditional
  3611. 2:12:21thinking is the most important N skill.
  3612. 2:12:23Interesting.
  3613. 2:12:26And then uh we'll go into Gemini next.
  3614. 2:12:31Again, we'll just clear this out. Ask
  3615. 2:12:34the same question.
  3616. 2:12:36You'll see we get three different
  3617. 2:12:38results.
  3618. 2:12:41All right. And then it says, "If you had
  3619. 2:12:42to pick just one skill that separates an
  3620. 2:12:44average and end user from an expert, it
  3621. 2:12:46is data transformations using
  3622. 2:12:47JavaScript." I don't think that's the
  3623. 2:12:50most important skill. Um,
  3624. 2:12:53low code and etc. So, three different
  3625. 2:12:56results, three different models. There
  3626. 2:12:59you go. So, I'm just going to hide the
  3627. 2:13:01chat right now. And what I want you guys
  3628. 2:13:04to do is work on a mini project for this
  3629. 2:13:07section. So, let's outline your small
  3630. 2:13:09project. Again, we're keeping things
  3631. 2:13:11simple. It's going to get a little bit
  3632. 2:13:12more complicated towards the end, but
  3633. 2:13:17let's jump into it. So, large language
  3634. 2:13:20models are pretty good at researching.
  3635. 2:13:22And one of the things I want you to do,
  3636. 2:13:24see if you share a birthday with someone
  3637. 2:13:26that is famous. So, how are we going to
  3638. 2:13:28do this? Well, step one, what we need to
  3639. 2:13:31do is have a form trigger. Form trigger.
  3640. 2:13:35And what this does is this accepts
  3641. 2:13:40a uh date
  3642. 2:13:43or a birthday.
  3643. 2:13:45Then step two is we're going to send
  3644. 2:13:49the information
  3645. 2:13:51into an AI agent.
  3646. 2:13:54And then step three, we're going to ask
  3647. 2:13:57the agent,
  3648. 2:14:00do I share
  3649. 2:14:02the same
  3650. 2:14:04birthday? We'll say day and month
  3651. 2:14:10as someone famous. And then part four,
  3652. 2:14:16we're going to also expand on this and
  3653. 2:14:18we're going to say this should be within
  3654. 2:14:25I guess like industries or something
  3655. 2:14:27like that. Um
  3656. 2:14:30these let's say music genres. Sorry,
  3657. 2:14:32this one makes more sense. these music
  3658. 2:14:34genres
  3659. 2:14:38or
  3660. 2:14:40and we're gonna say sports.
  3661. 2:14:43Okay, so let me explain what we're going
  3662. 2:14:45to do on this one a little bit better.
  3663. 2:14:48Famous birthday matcher.
  3664. 2:14:52So here's how this works. We're going to
  3665. 2:14:55set a form as a trigger. And this should
  3666. 2:14:57accept the date for a birthday
  3667. 2:15:01music
  3668. 2:15:02genre like that as well as favorite
  3669. 2:15:08sports. So it could be one or more for
  3670. 2:15:10music genres, one or more for favorite
  3671. 2:15:12sports
  3672. 2:15:14a date as a birthday. Then what we're
  3673. 2:15:16going to do is send that information
  3674. 2:15:18into an AI agent like this. Then we're
  3675. 2:15:21going to ask the agent. So, we're going
  3676. 2:15:24to ask it. We're going to open this up
  3677. 2:15:25over here. Instead of a chat trigger,
  3678. 2:15:27we're going to define below. We're going
  3679. 2:15:29to ask the agent, do I share the
  3680. 2:15:30birthday with someone famous? And then
  3681. 2:15:33this should be within these music genres
  3682. 2:15:36or sports. Again, you could have one or
  3683. 2:15:37more for each of these. So, lot going
  3684. 2:15:40on, but I think you could do it based
  3685. 2:15:42off of everything we've covered so far.
  3686. 2:15:44Pause the video and uh attempt to do
  3687. 2:15:47this. I'm going to pause it in three,
  3688. 2:15:49two, one. Go for it. and uh come back
  3689. 2:15:53once this is ready to go.
  3690. 2:15:55All right, we are back. Let's try it.
  3691. 2:15:57So, first thing we're going to do is set
  3692. 2:15:59up our form trigger. So, you go to any
  3693. 2:16:01end form and we're going to say on a new
  3694. 2:16:03form event and this is our form. So,
  3695. 2:16:06let's first ask our specific questions
  3696. 2:16:09and we're going to say birthday matcher
  3697. 2:16:11is the name. Again, you can use whatever
  3698. 2:16:13you want. Matcher, we'll say matches
  3699. 2:16:18famous birthdays.
  3700. 2:16:20And let's we have to have three form
  3701. 2:16:22elements. So the first one is going to
  3702. 2:16:24say birthday
  3703. 2:16:26and label. We're going to go over here
  3704. 2:16:29and it say birthday
  3705. 2:16:33or we should put like your birthday or
  3706. 2:16:34something like that. Birthday.
  3707. 2:16:38Then what we're going to specifically do
  3708. 2:16:40is go over here and look for a date.
  3709. 2:16:44That is a required field. Then we're
  3710. 2:16:46going to have another form element.
  3711. 2:16:48We're gonna say music genres,
  3712. 2:16:55favorite styles
  3713. 2:16:58of music. And you know, this could be
  3714. 2:17:01multiple things if you want it to be.
  3715. 2:17:03Um, you know, you could have kind of a
  3716. 2:17:05drop down if you already have defined
  3717. 2:17:07genres. You could also choose uh
  3718. 2:17:11checkboxes. You could also technically
  3719. 2:17:14go over here and choose radio buttons,
  3720. 2:17:17but I'm just going to keep this as just
  3721. 2:17:18simple text like that.
  3722. 2:17:22Yep. And then we're going to do is have
  3723. 2:17:25sports.
  3724. 2:17:28Sports. And I'm just going to say um
  3725. 2:17:32favorite sports.
  3726. 2:17:34And a lot of options that you can choose
  3727. 2:17:36if you want to customize this to your
  3728. 2:17:38liking. We already covered this a little
  3729. 2:17:39bit in the last video. Then what we're
  3730. 2:17:41going to do is we're going to create an
  3731. 2:17:42AI agent. So go over here to AI agents
  3732. 2:17:46and we'll grab that and you'll see we
  3733. 2:17:49have this over here. However, this won't
  3734. 2:17:50work right away. So what we need to do
  3735. 2:17:53is define below and we'll write this
  3736. 2:17:55here in a second. But we need to add in
  3737. 2:17:57our chat model. I'm going to be lazy and
  3738. 2:17:59I'm just going to use Google Gemini. So
  3739. 2:18:02just copy that and then paste it. Uh so
  3740. 2:18:06crV works really well in nan. So, we
  3741. 2:18:10already have this set up with my
  3742. 2:18:12credentials.
  3743. 2:18:13And what we're going to do now is test
  3744. 2:18:17this form out. So, I'm actually going to
  3745. 2:18:19disconnect this really fast and we're
  3746. 2:18:22going to test the form out. So, execute
  3747. 2:18:24step your birthday. So, put in your
  3748. 2:18:28birth date over here. I'm just going to
  3749. 2:18:31use today's date, but obviously uh way
  3750. 2:18:35back. So, let's go.
  3751. 2:18:39I'll say like 1990 December 26. Today is
  3752. 2:18:43not my birthday, by the way. Favorite
  3753. 2:18:45style of music. You know, I like rock,
  3754. 2:18:50metal,
  3755. 2:18:52some bluegrass. I like
  3756. 2:18:55And favorite sports. We're going to say
  3757. 2:18:57baseball,
  3758. 2:18:59running, we'll put cricket in here. Um,
  3759. 2:19:03I think that should be fine. So, we'll
  3760. 2:19:04say submit. And you'll see we have our
  3761. 2:19:07data that is over here. We can pin this
  3762. 2:19:10if we want. We could change this data,
  3763. 2:19:12but I'm just going to pin it for now.
  3764. 2:19:14And then we're going to go and attach
  3765. 2:19:16our AI agent. And we're going to say uh
  3766. 2:19:20create a prompt. Now, I haven't taught
  3767. 2:19:21you anything about writing good prompts,
  3768. 2:19:24but that's okay. Uh, we're going to say
  3769. 2:19:27what birthday what famous people have a
  3770. 2:19:33birthday
  3771. 2:19:36on this month
  3772. 2:19:39and day. We're going to go over here and
  3773. 2:19:42then pass in this birthday.
  3774. 2:19:46So, you can see it turned into an
  3775. 2:19:47expression. I'm also going to expand
  3776. 2:19:49this out. So, if you click this bottom
  3777. 2:19:51icon, it expands it out.
  3778. 2:19:54And let's write this out.
  3779. 2:19:57The famous person or famous people
  3780. 2:20:03must play
  3781. 2:20:06in this sport
  3782. 2:20:09in these sports I should say and
  3783. 2:20:12obviously my grammar is not perfect
  3784. 2:20:13today but I'm writing this on the on the
  3785. 2:20:16spot or
  3786. 2:20:19they are a musician
  3787. 2:20:23and
  3788. 2:20:24and play this style of music.
  3789. 2:20:31Production-wise prompts, there's a lot
  3790. 2:20:33that I would change over here, but all
  3791. 2:20:35we're asking the AI is what famous
  3792. 2:20:39people what famous people have a
  3793. 2:20:40birthday on this month and day. So, we
  3794. 2:20:42pass in the birthday from the form. The
  3795. 2:20:44famous people must play in these sports
  3796. 2:20:48like that. And the musician play in this
  3797. 2:20:51style in these
  3798. 2:20:55styles
  3799. 2:20:57of music and then you can pass in
  3800. 2:20:58multiple genres. And you can see over
  3801. 2:21:00here to the right the result the birth
  3802. 2:21:02date baseball running cricket rock
  3803. 2:21:04middle. So now save that and let's test
  3804. 2:21:10out this workflow. Obviously I've pinned
  3805. 2:21:11this data so I don't run the form again.
  3806. 2:21:13And now I'm very curious what results
  3807. 2:21:16we're going to get. We didn't even
  3808. 2:21:17define what type of output we want from
  3809. 2:21:20the AI agent. We can specify that in
  3810. 2:21:22multiple ways, but we're just we're
  3811. 2:21:25getting our feet wet right now. We're
  3812. 2:21:27only on section five and there's a lot
  3813. 2:21:30more to cover. And you'll see we have a
  3814. 2:21:32results. So we can go over here based on
  3815. 2:21:35the specific date of December 26, 1990
  3816. 2:21:37and your required categories. There's
  3817. 2:21:39one prominent famous person who fits at
  3818. 2:21:42cretire
  3819. 2:21:44criteria and I can't say it. Andy
  3820. 2:21:46Biserk, founder and lead vocalist of the
  3821. 2:21:49metal of the band Blackville Brides
  3822. 2:21:52plays rock, metal. Well, there other
  3823. 2:21:55famous people in this day such as soccer
  3824. 2:21:56player Ramsey. They do not fit the sport
  3825. 2:21:59or music genres you requested. That's
  3826. 2:22:01pretty cool. Now, what we could do as
  3827. 2:22:03well is let's change this up and I'll
  3828. 2:22:06click this over here and let's make it
  3829. 2:22:09tomorrow's date 1227. So, I'll save that
  3830. 2:22:12and we will run this again and you'll
  3831. 2:22:15see we're going to get different
  3832. 2:22:16results. We're going to get probably
  3833. 2:22:18different text as well from Gemini just
  3834. 2:22:20because we didn't really define our
  3835. 2:22:22prompt that well. This is like a very
  3836. 2:22:24mediocre prompt. I would probably give
  3837. 2:22:26it like a C minus, but you know, it is
  3838. 2:22:29what it is. It's good for a tutorial.
  3839. 2:22:32Now I'm curious like who did you guys
  3840. 2:22:33share a birthday with? Put that below in
  3841. 2:22:36the comments section. Obviously this is
  3842. 2:22:38a very early project like a form
  3843. 2:22:40submission AI agent and when you get
  3844. 2:22:42further in the course you're like man
  3845. 2:22:44this was so basic. I wish everything was
  3846. 2:22:45this basic but it's good to get some
  3847. 2:22:48wins.
  3848. 2:22:50So we'll run this one more time and
  3849. 2:22:53it'll take a little bit but that's fine.
  3850. 2:22:55Also show you a few other quick wins in
  3851. 2:22:57here. And you can see over here there's
  3852. 2:22:59a lot more stuff. So based on the
  3853. 2:23:00specific birth date and the strict
  3854. 2:23:02categories provided there are no
  3855. 2:23:03internationally renowned celebrities.
  3856. 2:23:05However, there are professional athletes
  3857. 2:23:07in cricket category fit the exact
  3858. 2:23:09description. Horus Miller a Jamaican
  3859. 2:23:12cricketer which I didn't even know they
  3860. 2:23:13played uh cricket in Jamaica.
  3861. 2:23:16All right. These are famous born on that
  3862. 2:23:18exact day. Professional tennis player,
  3863. 2:23:21ice hockey player.
  3864. 2:23:24Yeah. So a lot more stuff going on on
  3865. 2:23:26that side of things. So either way that
  3866. 2:23:30is
  3867. 2:23:32essentially
  3868. 2:23:34how we built this out. So one other
  3869. 2:23:37thing I really wanted to quickly show
  3870. 2:23:38you is sometimes a large language model
  3871. 2:23:42will fail like a company is down or like
  3872. 2:23:45that. So how do you actually build a
  3873. 2:23:47backup and let me just show you this
  3874. 2:23:48over here because this takes like two
  3875. 2:23:50seconds. You enable a fallback model. So
  3876. 2:23:53imagine like
  3877. 2:23:56OpenAI is down but that's your primary
  3878. 2:23:58driver. You could have a fallback model
  3879. 2:24:00and let's say you want to have your
  3880. 2:24:01fallback model be Google Gemini. So this
  3881. 2:24:04will get priority but if something's
  3882. 2:24:06going on with OpenAI you have something
  3883. 2:24:08as a fallback and this is something I
  3884. 2:24:10highly recommend that you do if you
  3885. 2:24:12build out some sort of production grade
  3886. 2:24:14system or something that cannot fail. It
  3887. 2:24:15literally takes two seconds to add a
  3888. 2:24:17fallback model in over here and it's
  3889. 2:24:19just a really good thing to do.
  3890. 2:24:21Obviously, we are going to have a lot of
  3891. 2:24:22other things we talk about later, but
  3892. 2:24:25there is going to be that. So, hopefully
  3893. 2:24:28you learned uh quite a bit in this
  3894. 2:24:30section. Our next section we're going to
  3895. 2:24:32do is we're going to cover a lot more
  3896. 2:24:34about data types as well as JSON. But
  3897. 2:24:37before we get into some technical stuff,
  3898. 2:24:38I wanted to get you guys a win. We
  3899. 2:24:41haven't even covered the the basic nodes
  3900. 2:24:43yet really outside of edit set and some
  3901. 2:24:45of these triggers. And that'll be coming
  3902. 2:24:47up in section number seven. Uh thanks
  3903. 2:24:50guys for watching so far and if you are
  3904. 2:24:53getting a lot of value make sure to
  3905. 2:24:55subscribe but yeah see you in section
  3906. 2:24:57six. So this next section is going to be
  3907. 2:24:59a little bit more complicated than the
  3908. 2:25:01previous ones and we're be focusing on
  3909. 2:25:03in particular is going to be data types.
  3910. 2:25:06And data types is critical especially in
  3911. 2:25:09like software engineering or data
  3912. 2:25:10analytics or anytime you're going to be
  3913. 2:25:12doing some sort of programming because
  3914. 2:25:14if you don't have your correct data
  3915. 2:25:16types you're going to have errors in
  3916. 2:25:18your specific program. So we're going to
  3917. 2:25:20cover what any has available today.
  3918. 2:25:23We'll go through a lot of different
  3919. 2:25:24examples and then we're going to also
  3920. 2:25:26show you a little bit of insights as
  3921. 2:25:27well as how JSON works with these
  3922. 2:25:30particular data types. So let's jump
  3923. 2:25:32right into NN. Uh we're going to be on
  3924. 2:25:34our section number six. And we're going
  3925. 2:25:38to keep this very basic. We'll have a
  3926. 2:25:39manual trigger. And then what we're
  3927. 2:25:41going to have next is just an edit set.
  3928. 2:25:44And the reason why is if you go over
  3929. 2:25:46into the edit set and we're just going
  3930. 2:25:48to put like example one. You can see
  3931. 2:25:52that we have different data in over
  3932. 2:25:54here. We have something called a string.
  3933. 2:25:56We have a number. We have a boolean
  3934. 2:25:58array object as well as binary data. So
  3935. 2:26:03we're going to go through each of these
  3936. 2:26:04one at a time and kind of give you some
  3937. 2:26:06examples with that. So what we're going
  3938. 2:26:09to do is say this is example string
  3939. 2:26:13and a string is pretty straightforward.
  3940. 2:26:15All a string asks us to do is have text.
  3941. 2:26:19So you could say for example um Trent
  3942. 2:26:24Resner, the lead singer of 9inch nails.
  3943. 2:26:27You can go over here and you can see
  3944. 2:26:29example string and it says Trent Resnal
  3945. 2:26:32which is pretty cool. And one of the
  3946. 2:26:34other things with strings is you could
  3947. 2:26:36technically have a number as a string as
  3948. 2:26:38well. So if you type in 99999
  3949. 2:26:42like this execute step and that is
  3950. 2:26:45perfectly valid and you could mix both
  3951. 2:26:49these together. So I'll go over further
  3952. 2:26:50here like that and we'll run this
  3953. 2:26:53example and you can see we have
  3954. 2:26:55technically a number with a string but
  3955. 2:26:57this is all together as a string. It
  3956. 2:27:00really doesn't matter and you can put
  3957. 2:27:01special characters in over here as well.
  3958. 2:27:04I meant to press shift on my keyboard
  3959. 2:27:07but this is totally valid as well. So
  3960. 2:27:11our next data type is a little bit more
  3961. 2:27:13restrictive and this is going to be a
  3962. 2:27:15number. So we'll call this example
  3963. 2:27:18number
  3964. 2:27:19example number and you know it has zero
  3965. 2:27:23by default. Let's keep it. And you'll
  3966. 2:27:25see over here in the output we actually
  3967. 2:27:27have a difference as well. So I'm just
  3968. 2:27:29taking a look at the schema view. But
  3969. 2:27:30you can see how this says T for like a
  3970. 2:27:33string or text. Well, this one has a
  3971. 2:27:35number icon which is really nice from
  3972. 2:27:37the Nan team because you can just look
  3973. 2:27:39over here really quick and tell the
  3974. 2:27:40different data types. If you go over to
  3975. 2:27:42your table, you you don't know for sure,
  3976. 2:27:44but the schema will tell us that JSON,
  3977. 2:27:47it does tell us that that as well
  3978. 2:27:49because you can see the string has
  3979. 2:27:51double quotes, whereas the example
  3980. 2:27:53number, it does not. And again, just to
  3981. 2:27:56show you the difference, if we remove
  3982. 2:27:58all that and just keep it as 9999 and we
  3983. 2:28:01use the same thing for our number,
  3984. 2:28:05it does not have these double quotes,
  3985. 2:28:07whereas the string does. So if you're in
  3986. 2:28:08the JSON view and you see this
  3987. 2:28:13right string number. So where people get
  3988. 2:28:17tripped up is you cannot put a string as
  3989. 2:28:22a number. So if I go over here and say
  3990. 2:28:23print
  3991. 2:28:25or I put anything in here. So you can
  3992. 2:28:27see it says E4. And it's actually pretty
  3993. 2:28:30restrictive because I'm trying to spam
  3994. 2:28:31my keyboard. I believe in the past you
  3995. 2:28:33could um but now they probably have some
  3996. 2:28:35sort of logic based in there. Uh you can
  3997. 2:28:38see example number is null. This just
  3998. 2:28:40generally does not work. It actually did
  3999. 2:28:42not take that as input. Also in the past
  4000. 2:28:44this used to specifically crash and it
  4001. 2:28:47would have an error. But it looks like
  4002. 2:28:49now any end team just has this as
  4003. 2:28:52particularly null which is I think a
  4004. 2:28:54pretty good ad over here. But again you
  4005. 2:28:57cannot include anything else over here
  4006. 2:28:59minus a specific number. And uh yeah
  4007. 2:29:03that's the difference. String you can
  4008. 2:29:05have a number in there. Number you
  4009. 2:29:06can't. All right. So, what we have next
  4010. 2:29:10over here is going to be a boolean. And
  4011. 2:29:13boolean is so simple. Either something
  4012. 2:29:15is going to be true or it's going to be
  4013. 2:29:17false. So, let's take a look at a true
  4014. 2:29:19example. We'll go over here and call
  4015. 2:29:21this example boolean. So, example
  4016. 2:29:24boolean like that. Okay. Now, we're
  4017. 2:29:27going to do example three and four. So,
  4018. 2:29:30example three we're going to take a look
  4019. 2:29:32at is our booleans in the array.
  4020. 2:29:36So, we're going to make sure we click
  4021. 2:29:38onto array. And in over here, it will
  4022. 2:29:40say true and false,
  4023. 2:29:43true and false.
  4024. 2:29:46That you can see again, no double
  4025. 2:29:50quotes, but it grabs our example from
  4026. 2:29:52the boolean. And lastly, let's combine
  4027. 2:29:54everything together. Let's have an array
  4028. 2:29:56that has string, a boolean, and a
  4029. 2:30:00number. So, go for that. We'll just copy
  4030. 2:30:04each of our records. that we've had so
  4031. 2:30:06far each of our items inside these
  4032. 2:30:07arrays. So,
  4033. 2:30:10pretty straightforward.
  4034. 2:30:11So, if I say so myself
  4035. 2:30:15and we'll just go down here and choose
  4036. 2:30:18array.
  4037. 2:30:19You can see we just have a lot of
  4038. 2:30:21different data types inside of that
  4039. 2:30:23particular array.
  4040. 2:30:25Again, one thing to differentiate our
  4041. 2:30:27array from everything else. You can see
  4042. 2:30:29we have these brackets here at the very
  4043. 2:30:31end. So brackets like that, brackets
  4044. 2:30:34like that. And uh everything else
  4045. 2:30:37doesn't, right? Our string doesn't have
  4046. 2:30:38those brackets. Our number doesn't have
  4047. 2:30:40those. We have true or false directly in
  4048. 2:30:42here. But when you have a string inside
  4049. 2:30:44of array, you have to make sure that you
  4050. 2:30:46have these quotes. And I just put single
  4051. 2:30:48quotes in over here. Numbers have none.
  4052. 2:30:51And then true or false have none as
  4053. 2:30:53well. Okay. So now what we're going to
  4054. 2:30:55do is we're going to take a look at
  4055. 2:30:57something called an object. And because
  4056. 2:31:00I didn't want to make this pretty
  4057. 2:31:01complicated, we're just going to say
  4058. 2:31:03example object one. I actually had this
  4059. 2:31:06generated by Claude
  4060. 2:31:09because it's kind of a pain to create an
  4061. 2:31:10object.
  4062. 2:31:13Just grab an object over here for 9in
  4063. 2:31:15nails. That's why I was given those
  4064. 2:31:16examples. And uh I'll just paste this in
  4065. 2:31:19over here. Obviously, again, you could
  4066. 2:31:20just make this way larger, but still
  4067. 2:31:23even there. And you can see I can make
  4068. 2:31:24it like this. Feel like it's just easier
  4069. 2:31:27explained.
  4070. 2:31:29And if I execute the step, no issues.
  4071. 2:31:31You can see all this is populated over
  4072. 2:31:33there. To take a look at the schema for
  4073. 2:31:35example once again, we have our text for
  4074. 2:31:38string number. We have kind of a
  4075. 2:31:41checkbox or boolean an array has these
  4076. 2:31:43three lines. You can see that. And then
  4077. 2:31:45our object kind of has that specific
  4078. 2:31:48cube. And inside of that, you can see we
  4079. 2:31:50have a 9-in nails release, an album, a
  4080. 2:31:52track, production, and then additional
  4081. 2:31:54metadata. This is quite complicated for
  4082. 2:31:57you right now. But because we're showing
  4083. 2:32:00these other data types over here, it was
  4084. 2:32:02pretty important to do that. Uh so you
  4085. 2:32:04can see Nails and we have other
  4086. 2:32:07information inside of the album year
  4087. 2:32:09label, the track, the production
  4088. 2:32:11associated with it as well as the
  4089. 2:32:13metadata. One other thing that you're
  4090. 2:32:14going to see in this edit set is
  4091. 2:32:17something called binary data. And what
  4092. 2:32:19binary data is is any sort of file
  4093. 2:32:22within the NAN and it is also outside of
  4094. 2:32:26the scope. I'm not going to be covering
  4095. 2:32:28binary data in this uh specific section.
  4096. 2:32:30In fact, there's a full section we're
  4097. 2:32:32going to dedicate towards binary data
  4098. 2:32:34because binary data is weird in N and
  4099. 2:32:37it's something that trips up a lot of
  4100. 2:32:39beginners. So do not want to cover
  4101. 2:32:41binary data within this JSON basic in
  4102. 2:32:44data types. So the next thing I just
  4103. 2:32:46want to quickly cover is like how do you
  4104. 2:32:48access specific parts uh in particular
  4105. 2:32:51like with an array or an object because
  4106. 2:32:53you'll see this when you work with APIs
  4107. 2:32:56or you're working with data. You might
  4108. 2:32:57want to have a a specific section. So
  4109. 2:33:00what we're going to do is have another
  4110. 2:33:01edit set and I'm just going to show you
  4111. 2:33:03the JSON associated behind it. So all
  4112. 2:33:06you got to do and like obviously this is
  4113. 2:33:09pretty easy is just grab a section. So
  4114. 2:33:13for example, if I'm grabbing this
  4115. 2:33:14example array 4 and
  4116. 2:33:17why is this not running?
  4117. 2:33:20Oh, you know why it's not running is I
  4118. 2:33:22have this binary data that's complete
  4119. 2:33:24garbage. All right, now now it's going
  4120. 2:33:26to run. I'm like, why is this not
  4121. 2:33:28running? All right, so you'll see that I
  4122. 2:33:30was able to populate this example of it
  4123. 2:33:34should be Trent, but it's tent. So I'm
  4124. 2:33:36grabbing the array for and I'm grabbing
  4125. 2:33:38the first element of it. And this also
  4126. 2:33:40trips up a lot of people initially. A
  4127. 2:33:42lot of times in programming, you're
  4128. 2:33:44going to start from zero. So zero is
  4129. 2:33:46going to be that first position. So the
  4130. 2:33:49item over here within the array, the
  4131. 2:33:51first one is zero, then goes one, two,
  4132. 2:33:53and it ends with n minus one, which is
  4133. 2:33:55the number of items minus one. So if you
  4134. 2:33:58have an array of three length, you start
  4135. 2:33:59with zero, you're then you have one and
  4136. 2:34:01two, your last item will be the length
  4137. 2:34:03minus one. Uh so just to go over here
  4138. 2:34:06and grab another example, you can see if
  4139. 2:34:09we want to grab 75 that's over there. Um
  4140. 2:34:12again, you can just go here and take a
  4141. 2:34:14look at the JSON as well for that
  4142. 2:34:16specific object
  4143. 2:34:18and you'll see JSON.ample object
  4144. 2:34:21tracktitle. So it goes example object
  4145. 2:34:23one, right, which is our JSON side of
  4146. 2:34:26it. Then you dottrack, which is our next
  4147. 2:34:29part of it. And you grab the title
  4148. 2:34:31section. So, a little bit more
  4149. 2:34:33complicated JSON, but honestly, it's a
  4150. 2:34:35pretty easy because you can just drag
  4151. 2:34:36and drop um based off of what
  4152. 2:34:39expressions you have and everything like
  4153. 2:34:41that over here to the side. So, I
  4154. 2:34:43typically kind of use the the schema
  4155. 2:34:45view for this most of the time. Could
  4156. 2:34:47use the JSON view. I don't know why I've
  4157. 2:34:49just kind of defaulted to schema over
  4158. 2:34:51time. Each of these tell a different
  4159. 2:34:52story. Schema will give you just one
  4160. 2:34:54example and the different data types
  4161. 2:34:55behind it. table is really good when
  4162. 2:34:57you're working with particular tabular
  4163. 2:34:59data which we haven't even really
  4164. 2:35:00covered data tables and sheets and air
  4165. 2:35:03table yet in this course but I use the
  4166. 2:35:05table view for that and then JSON as
  4167. 2:35:07well gives you a lot of different
  4168. 2:35:08examples so it can be really helpful to
  4169. 2:35:10see everything that is going on um again
  4170. 2:35:13you can see data types JSON gives you
  4171. 2:35:16multiple examples table is really good
  4172. 2:35:18for tabular data um I'm trying to think
  4173. 2:35:21anything else you can also grab like
  4174. 2:35:23specific dates and times and things like
  4175. 2:35:25that With JSON, there's a lot of
  4176. 2:35:27different shortcuts and things that you
  4177. 2:35:28can combine together. Um, maybe I'll
  4178. 2:35:31show you this really quick. You can also
  4179. 2:35:34have something, let's say we want to do
  4180. 2:35:35full name. You can combine multiple
  4181. 2:35:37together. So, what we might want to do
  4182. 2:35:39for the string is have this over here.
  4183. 2:35:43And uh, we'll grab next side.
  4184. 2:35:50It's actually,
  4185. 2:35:56you can see I'm just putting both of
  4186. 2:35:58these example arrays over here for Trent
  4187. 2:36:01Resner. And I just put a space in
  4188. 2:36:03between that. You can also add with
  4189. 2:36:06math. So,
  4190. 2:36:08for example, I'm just going to go over
  4191. 2:36:10here and choose this as a number. Oops,
  4192. 2:36:12I accidentally deleted it. We'll do this
  4193. 2:36:14as a number.
  4194. 2:36:16So you can see it automatically changed
  4195. 2:36:18that to the number side of things. But I
  4196. 2:36:20can go over here and say plus and then
  4197. 2:36:22over here just going to grab
  4198. 2:36:28that and we'll put this over here. So
  4199. 2:36:30when you're using strings and you want
  4200. 2:36:32to combine them together, make sure that
  4201. 2:36:33you have these like double curly
  4202. 2:36:35brackets on the outside. Put a space and
  4203. 2:36:37then put that. But when you're adding
  4204. 2:36:38numbers together, you have to do this
  4205. 2:36:40all with inside one curly bracket like
  4206. 2:36:43this and just add them in between. And
  4207. 2:36:46you'll see we get 150 because we have
  4208. 2:36:49100 over here and then we're adding 50.
  4209. 2:36:52Run this one over here. We're getting
  4210. 2:36:53tent reser. Um so first part is the tren
  4211. 2:36:56or tent in this example then reser. So
  4212. 2:36:59space um you can also get now. So we'll
  4213. 2:37:03say like time just go over here and say
  4214. 2:37:08and this should be an expression by the
  4215. 2:37:09way.
  4216. 2:37:12now like this
  4217. 2:37:15and you can see it gets the exact time
  4218. 2:37:17stamp as a datetime right in over here.
  4219. 2:37:20So you can see we have all this together
  4220. 2:37:24and uh yeah so what I'd say for your
  4221. 2:37:27example over here and we're not going to
  4222. 2:37:29walk through it but really mess with
  4223. 2:37:32these data types and uh put this over
  4224. 2:37:34here example to try
  4225. 2:37:37is like
  4226. 2:37:39example
  4227. 2:37:41create more data
  4228. 2:37:45within edit set
  4229. 2:37:48create an array
  4230. 2:37:52I'll say create an advanced array
  4231. 2:37:57with five elements
  4232. 2:38:00and then
  4233. 2:38:02grab specific pieces of information
  4234. 2:38:06of information with an edit set.
  4235. 2:38:11I think that's probably going to be a
  4236. 2:38:12good example on the side of things. No
  4237. 2:38:14need for me to kind of do this with you
  4238. 2:38:17guys. I think it's pretty
  4239. 2:38:18self-explanatory how to do it, but
  4240. 2:38:21really get these data types down because
  4241. 2:38:23it's going to help you a lot even
  4242. 2:38:24outside of nan. All right, so now that's
  4243. 2:38:28pretty much the end of this specific
  4244. 2:38:30lecture. We're going to jump into some
  4245. 2:38:33more of the basic nodes um kind of like
  4246. 2:38:35added set things that you're going to
  4247. 2:38:37use in almost every workflow or a good
  4248. 2:38:40amount of those next. So we'll take a
  4249. 2:38:41look at like if as well as filter,
  4250. 2:38:43switch, merge, and much more. I I
  4251. 2:38:46believe it's going to be a bit of a
  4252. 2:38:47lengthier section. So before we jump in
  4253. 2:38:48there, obviously make sure you're all
  4254. 2:38:50set, you have some water, you have some
  4255. 2:38:52snacks, and uh you're eager to learn
  4256. 2:38:54because it's going to be quite a long
  4257. 2:38:57section. So I will see you guys right
  4258. 2:38:59there and keep up the awesome work.
  4259. 2:39:01Okay, so we've covered a decent amount
  4260. 2:39:03so far in this course and I think it's
  4261. 2:39:05time to cover some of the most essential
  4262. 2:39:07nodes that you need to know. We're going
  4263. 2:39:09to cover things that split up your
  4264. 2:39:12workflows. For example, an if else
  4265. 2:39:13branch where if a condition is met, it
  4266. 2:39:16goes in one direction or if a condition
  4267. 2:39:18is not met, it goes into another
  4268. 2:39:20direction. Uh things like filtering
  4269. 2:39:22where we have x amount of items in a
  4270. 2:39:24workflow hits that filter and it
  4271. 2:39:26decreases it. And merges where you have
  4272. 2:39:30multiple flows and they merge together
  4273. 2:39:32into one direction. There's a ton of
  4274. 2:39:35different nodes we're going to cover in
  4275. 2:39:36this section. I think like 10 or so. And
  4276. 2:39:39yeah, without wasting time, let's jump
  4277. 2:39:41into it because we also have a few
  4278. 2:39:43different example workflows we'll build
  4279. 2:39:44here at the very end of it. All right,
  4280. 2:39:46so the first one that we need to cover
  4281. 2:39:48is our edit set node. And you might say,
  4282. 2:39:51well, I've already learned a lot about
  4283. 2:39:53this node. And that is 100% correct. But
  4284. 2:39:57there is a few different use cases of
  4285. 2:39:59why edit set is really impactful. And I
  4286. 2:40:03just wanted to cover those first before
  4287. 2:40:05we jump into these other notes. So why
  4288. 2:40:07is edit set helpful? Well, the first
  4289. 2:40:10thing that you can do with edit set is
  4290. 2:40:12rename a field.
  4291. 2:40:14So let's go over here and I'll show you
  4292. 2:40:16this example. Let's say for example you
  4293. 2:40:18had something as name and I'll just put
  4294. 2:40:21name as Ryan over here. However, you
  4295. 2:40:24decide at some point and maybe this is
  4296. 2:40:26like an item a little bit earlier in we
  4297. 2:40:28have this name but you say hey in the
  4298. 2:40:31final output this name over here should
  4299. 2:40:34actually just be first name. And guess
  4300. 2:40:36what? We have officially
  4301. 2:40:39cleaned this up. And you can see we have
  4302. 2:40:41first name like that. I showed you in
  4303. 2:40:44the last lecture, we could combine
  4304. 2:40:46multiple inputs into one specific field.
  4305. 2:40:50So that is another option that is quite
  4306. 2:40:53popular. Another thing is just cleaning
  4307. 2:40:56up your data. Sometimes you might have,
  4308. 2:40:59you know, 10 or 15 different fields. So,
  4309. 2:41:01say, imagine you have a spreadsheet and
  4310. 2:41:03you don't care about having all the
  4311. 2:41:05fields. Like, let's imagine you have a
  4312. 2:41:06name. We'll have income. Let's say I
  4313. 2:41:09make 5,000, which obviously I don't. Um,
  4314. 2:41:12we'll put over here that is a number.
  4315. 2:41:14And we'll add one more thing. Let's say
  4316. 2:41:17we add in
  4317. 2:41:19nan YouTube videos. Nan YouTube vids.
  4318. 2:41:22And I have 75,
  4319. 2:41:25which I believe this is video 75 if it's
  4320. 2:41:27out in time. But really like I only care
  4321. 2:41:31about name and income. I don't I don't
  4322. 2:41:33care if someone made any on YouTube
  4323. 2:41:34videos. Well, your edit set will allow
  4324. 2:41:36you to do that because it only passes
  4325. 2:41:38for the things that you clarify in over
  4326. 2:41:40here. So you can see the option you have
  4327. 2:41:42include other input fields if you create
  4328. 2:41:44a field and this will put everything in
  4329. 2:41:46over here, right? Including this one
  4330. 2:41:49that's been relabeled. You can go over
  4331. 2:41:51here and filter and choose selected
  4332. 2:41:53fields all accept. So there's a lot of
  4333. 2:41:55different options that you could
  4334. 2:41:57specifically choose from over there. You
  4335. 2:42:00could strip binary data as well, include
  4336. 2:42:02type conversion or support dot notation.
  4337. 2:42:05So reality what you want to use edit set
  4338. 2:42:08first. You can re label data as I showed
  4339. 2:42:11you over here. You can create new fields
  4340. 2:42:13as I showed you as well. So like again
  4341. 2:42:16I'll just do it one more time. We'll say
  4342. 2:42:18income YouTube
  4343. 2:42:21and let's just say for some reason we
  4344. 2:42:23wanted to add our name and income. So
  4345. 2:42:26you literally just can go over here.
  4346. 2:42:28We'll do name and not name. Sorry. I
  4347. 2:42:32meant to go over here and use a number
  4348. 2:42:34and choose income and YouTube videos. So
  4349. 2:42:37like for whatever reason you want to do
  4350. 2:42:39that. Remember these need to be inside
  4351. 2:42:41here as well. Um put that over here like
  4352. 2:42:45that. There's other ways you could add
  4353. 2:42:47too, but you can do some sort of
  4354. 2:42:50modification to a field. You could put
  4355. 2:42:51that over there. You can add in fields.
  4356. 2:42:54You can exclude fields. Really helpful
  4357. 2:42:56after a spreadsheet. I use this all the
  4358. 2:42:58time. And you'll see a lot of people
  4359. 2:43:00also use edit set for just testing
  4360. 2:43:02purposes to create uh specific data. So
  4361. 2:43:05that is our edit set. Next one we should
  4362. 2:43:08talk about is our if node and if node is
  4363. 2:43:12very very popular if you come from
  4364. 2:43:14programming. If you are a programmer,
  4365. 2:43:16you know about if else and that's
  4366. 2:43:19essentially what we have in any end. So
  4367. 2:43:21we have this if and you'll see we have a
  4368. 2:43:24lot of different options. So we can go
  4369. 2:43:26over here and have options for a string.
  4370. 2:43:29So we have string variations. So we have
  4371. 2:43:31number variations like if a number
  4372. 2:43:33exists or not is equal to etc. We'll
  4373. 2:43:36cover a lot more of these here in a
  4374. 2:43:38second. We have date and time. We also
  4375. 2:43:41have our booleans. Right? If you
  4376. 2:43:43remember our true and false, well that's
  4377. 2:43:45our booleans. We have array and we have
  4378. 2:43:49object. Now object is quite simplified
  4379. 2:43:51because it is a complex data type but
  4380. 2:43:54array has a lot more interesting
  4381. 2:43:56information such as the length of the
  4382. 2:43:58array which is the number of items
  4383. 2:43:59inside that specific array. So you can
  4384. 2:44:02set specify that uh your boolean. So
  4385. 2:44:04let's just cover some of these examples.
  4386. 2:44:07We'll create an edit fields over here,
  4387. 2:44:10an edit set, and we'll populate that
  4388. 2:44:13into if. And let's take a look at this.
  4389. 2:44:15This is the first time we've actually
  4390. 2:44:17started uh adding in some cool logic
  4391. 2:44:20into our workflows where our workflow
  4392. 2:44:22will go in one direction or our workflow
  4393. 2:44:24will go in other direction based off of
  4394. 2:44:26the incoming item. So, let's take a look
  4395. 2:44:29at it. First thing we should take a look
  4396. 2:44:31at is let's do our string. And we'll set
  4397. 2:44:35a string over here.
  4398. 2:44:36We'll say this is a band and let's put
  4399. 2:44:40in goose. Listen them a little bit
  4400. 2:44:43earlier today. And we have our band
  4401. 2:44:46being goose. So let's take a look at
  4402. 2:44:48some of our stuff. First thing we're
  4403. 2:44:50going to put our value one over here.
  4404. 2:44:52And we'll put value two. And we'll say
  4405. 2:44:54this is equal to goose. So if that is
  4406. 2:44:57true, it goes into this branch. And then
  4407. 2:44:59we could do some logic a little bit
  4408. 2:45:01later on. And if it's false, it goes
  4409. 2:45:04into this branch. So that is very
  4410. 2:45:07simple, right? Like goose is equal to
  4411. 2:45:08goose. Well, and what if it's not equal
  4412. 2:45:11to? Well, goes into the false branch.
  4413. 2:45:12And you can see in the output now we
  4414. 2:45:14have two different sides. We have a true
  4415. 2:45:16branch and we have a false branch. And
  4416. 2:45:19one of the things that you'll find kind
  4417. 2:45:20of interesting is when we start having
  4418. 2:45:23control logic like an if statement, we
  4419. 2:45:26can't pin our data. So you can see that
  4420. 2:45:29pin icon is gone whereas it's available
  4421. 2:45:32over here. So take a look at it once
  4422. 2:45:35again. You do not have that particular
  4423. 2:45:38option.
  4424. 2:45:39All right. So going back into this over
  4425. 2:45:42here, exists, does not exist, is empty,
  4426. 2:45:44is not empty. So obviously we have
  4427. 2:45:46values in this JSON.band. So these are
  4428. 2:45:50going to exist and it's not empty. So
  4429. 2:45:52you can see like for example is not
  4430. 2:45:53empty. This helps depending on like when
  4431. 2:45:56you have data coming through a workflow.
  4432. 2:45:58In some weird cases, you're not going to
  4433. 2:46:00have uh specific data and you would want
  4434. 2:46:02to filter based around that. Very common
  4435. 2:46:04if you're working with databases and
  4436. 2:46:06things like that, but um you're quite
  4437. 2:46:08early on in your NAN uh learnings. So I
  4438. 2:46:11wouldn't focus primarily to about it,
  4439. 2:46:13but something worth bringing up. Uh we
  4440. 2:46:15already covered is equal to not equal to
  4441. 2:46:17contains. So contains is interesting. So
  4442. 2:46:20obviously goose is going to contain
  4443. 2:46:22goose. But if we do contain all we have
  4444. 2:46:26to do is look for something in it. So
  4445. 2:46:28let's imagine we're looking for the
  4446. 2:46:29string OS within goose. Well, it's true
  4447. 2:46:32because OS is OS right over here. And
  4448. 2:46:35that means goose contains OS. Uh if we
  4449. 2:46:39keep going through does not contain well
  4450. 2:46:41this will turn false because OS is
  4451. 2:46:43available in there. Starts with is the
  4452. 2:46:45beginning of a string. So this will turn
  4453. 2:46:47false because uh goose does not start
  4454. 2:46:50with OS. However, if you just start un
  4455. 2:46:52with a G, it's going to be true because
  4456. 2:46:54that is the first letter. But you can
  4457. 2:46:56obviously add in others as well. Let's
  4458. 2:46:58say goo like this. Obviously, it will
  4459. 2:47:00still be true. The opposite does not
  4460. 2:47:03start with ends with also kind of the
  4461. 2:47:05opposite, right? And this is at the very
  4462. 2:47:07end of our particular string. This is
  4463. 2:47:10going to turn false. But if we go over
  4464. 2:47:12here and say E, we know it's going to be
  4465. 2:47:15true because it ends in O. And again, it
  4466. 2:47:19could be any of these variations over
  4467. 2:47:21there. does not end with you have that
  4468. 2:47:24reg X I wouldn't really worry about reg
  4469. 2:47:27X on the side of it reg X is pretty
  4470. 2:47:30powerful and if you want to use reg X at
  4471. 2:47:33this point I would probably just
  4472. 2:47:35recommend prompting ALM but this is just
  4473. 2:47:37from uh complicated ways of matching and
  4474. 2:47:42regex is really popular within
  4475. 2:47:43programming in fact when I did a Python
  4476. 2:47:45video on regex it was like an hour and a
  4477. 2:47:47half long I didn't even memorize all
  4478. 2:47:49these regex codes I just literally
  4479. 2:47:51looked them up So a lot of the things
  4480. 2:47:53that you're particularly probably going
  4481. 2:47:55to search for are going to be in most of
  4482. 2:47:57these where it's like is empty all the
  4483. 2:47:59way down to does not end with these are
  4484. 2:48:01some rare obscure cases we're going to
  4485. 2:48:03look at specific regex. So that is the
  4486. 2:48:06string side of it. What I want to do now
  4487. 2:48:08is cover integers. So I'm just going to
  4488. 2:48:11go or sorry numbers and we'll put
  4489. 2:48:13something called like Spotify plays
  4490. 2:48:16and let's say Spotify plays is a
  4491. 2:48:19million. So, we're at a thousand now.
  4492. 2:48:22We're at a million over there. Pretty
  4493. 2:48:24sure. Let me just double check. Yeah,
  4494. 2:48:26we're good. Cool. So, we have Spotify
  4495. 2:48:28plays and let's jump into our next one.
  4496. 2:48:32So, this is number again. We talked
  4497. 2:48:34about exist versus not empty. We can put
  4498. 2:48:37our number over here.
  4499. 2:48:40And
  4500. 2:48:42yeah, so we'll go on that side of things
  4501. 2:48:44and just take a look at Spotify plays.
  4502. 2:48:46So, I'll drag and drop that over here.
  4503. 2:48:49And uh looks like I have an issue. And
  4504. 2:48:53you know what? I do have an issue
  4505. 2:48:55because this is still a string. I should
  4506. 2:48:56have checked that. You can see now it is
  4507. 2:48:59fixed. And you know this is would be a
  4508. 2:49:01common example. If you have a workflow,
  4509. 2:49:02you get an error like what is going on?
  4510. 2:49:05I I can't solve it. Well, it's because
  4511. 2:49:06of the data type. So now we can see our
  4512. 2:49:10true branch is as well as 1 million. So
  4513. 2:49:14another interesting thing to add on when
  4514. 2:49:16we're using if else everything gets
  4515. 2:49:18dragged along with it. You can see over
  4516. 2:49:21in our edit set we had both a band as
  4517. 2:49:25well as Spotify plays and those are in
  4518. 2:49:27our output. You can see that in the
  4519. 2:49:28schema and well both of that is passed
  4520. 2:49:31into our true branch. Just to skim
  4521. 2:49:34through these you have equal to not
  4522. 2:49:35equal to you have greater than or less
  4523. 2:49:38than. So with the greater than side of
  4524. 2:49:40things, this is actually going to turn
  4525. 2:49:41false because they are actually equal.
  4526. 2:49:44And it's specifically looking for a
  4527. 2:49:46number that is greater than a million.
  4528. 2:49:48And because a million is equal to it,
  4529. 2:49:50that is not the case. Same with is less
  4530. 2:49:52than. A million is not a less than
  4531. 2:49:54million. It's equal. So that'll also
  4532. 2:49:56turn false. However, if you want to have
  4533. 2:49:58it where it's greater than or equal to
  4534. 2:50:00or less than or equal to, you have those
  4535. 2:50:02options in here. Again, something that's
  4536. 2:50:04pretty popular with programming. And
  4537. 2:50:06those will both return true over there
  4538. 2:50:09for either of them. And then we'll just
  4539. 2:50:10go over there and choose stats.
  4540. 2:50:14Great. Now, let's add on another in
  4541. 2:50:17here. And we'll say like live dates.
  4542. 2:50:21We can put something over here. And
  4543. 2:50:23we'll want to put this as a string as
  4544. 2:50:26well. And let's say 01 01 2026.
  4545. 2:50:34and we'll actually remove those single
  4546. 2:50:35quotes and you'll see we have that. And
  4547. 2:50:39let's take a look at changing that up.
  4548. 2:50:41So our live date over here, we'll take a
  4549. 2:50:44look at date and time. And we'll start
  4550. 2:50:46off with is not empty just to show you
  4551. 2:50:49that it's not empty. It's true. Great.
  4552. 2:50:51Uh we'll say is equal to and we can put
  4553. 2:50:55in our exact date. So we can go over
  4554. 2:50:57here and choose this and we'll grab
  4555. 2:51:00specifically this over here.
  4556. 2:51:04And this actually shows as false. And
  4557. 2:51:07that is because this date over here is
  4558. 2:51:09formatted differently. You can see 0101
  4559. 2:51:122026. Whereas this one over here, take a
  4560. 2:51:15look at the date format. We actually
  4561. 2:51:16have that timestamp over here like that.
  4562. 2:51:19And by default, it has that. So this
  4563. 2:51:21isn't the approach to write in specific
  4564. 2:51:24dates. And I'll show you that a little
  4565. 2:51:25bit later on how we could solve this
  4566. 2:51:28particular date issue. So that does
  4567. 2:51:31throw up or throw some confusion into
  4568. 2:51:33people. And actually has a specific date
  4569. 2:51:35node. So we'll cover that here in a
  4570. 2:51:37little bit, but you can see we have is
  4571. 2:51:39after, is before, is after equal to or
  4572. 2:51:42is before, equal to. Again, we'll cover
  4573. 2:51:44dates. I believe I actually have that in
  4574. 2:51:45this section too. Yeah, that's one of my
  4575. 2:51:48next nodes we're going to cover. So
  4576. 2:51:50don't worry about that side of it. Okay.
  4577. 2:51:52Uh we're going to cover really quick
  4578. 2:51:54booleans. This is super easy. So we'll
  4579. 2:51:57say
  4580. 2:51:59I don't know still touring. We'll say
  4581. 2:52:01like still
  4582. 2:52:04touring. And obviously Goose is still
  4583. 2:52:05touring as of now. We'll go over here
  4584. 2:52:08and do boolean. And we'll say that is
  4585. 2:52:11true.
  4586. 2:52:13Great. We have that. And then we can
  4587. 2:52:16just go over here and do still touring.
  4588. 2:52:19We'll go into our boolean
  4589. 2:52:22is true. And it goes to true branch.
  4590. 2:52:25It's false.
  4591. 2:52:27And honestly, like any ant team probably
  4592. 2:52:30should have just kept it there because
  4593. 2:52:31you have is equal to and is not equal
  4594. 2:52:33to. But personally, I would just
  4595. 2:52:35recommend staying that is true is false.
  4596. 2:52:38Then we have our array side of it. And
  4597. 2:52:40really array is just based off of the
  4598. 2:52:42lengths. So you can just put array.
  4599. 2:52:45We'll say like songs.
  4600. 2:52:47It'll say songs.
  4601. 2:52:50We could just fill this out over here.
  4602. 2:52:52Here you can put like your direction
  4603. 2:52:57site.
  4604. 2:52:59Just put those two like that. Cool.
  4605. 2:53:03And uh actually, you know, this is
  4606. 2:53:05probably a string right now. I need to
  4607. 2:53:07fix that.
  4608. 2:53:08Good call out.
  4609. 2:53:12And I need to put a comma.
  4610. 2:53:15Whoops. I do have an error. And that's
  4611. 2:53:17because the other single quote. Third
  4612. 2:53:19times the charm, right? Boom. There we
  4613. 2:53:21go. Great. So now we can just do some uh
  4614. 2:53:25if else based off of our array. So you
  4615. 2:53:28can see JSON songs array.
  4616. 2:53:32So what we can do is if it contains a
  4617. 2:53:34value,
  4618. 2:53:36we'll say contains your direction.
  4619. 2:53:41And you'll see it goes into the true
  4620. 2:53:43branch. If I do your directions, it's
  4621. 2:53:45going to be false. It's looking for that
  4622. 2:53:47exact case.
  4623. 2:53:49Then we can go back over here. We'll
  4624. 2:53:51change this out and say is length is
  4625. 2:53:53equal to and this time it's going to
  4626. 2:53:55look for a length of two for it to be
  4627. 2:53:57true. And it is because we have two
  4628. 2:53:59songs in here and that's why it's true.
  4629. 2:54:01So you can array interesting because you
  4630. 2:54:03can look and filter based off of
  4631. 2:54:05multiple things whether it is strings or
  4632. 2:54:08numbers.
  4633. 2:54:10Um you can go also over here length not
  4634. 2:54:13equal to and it's the same as earlier
  4635. 2:54:15the length greater than or less than. So
  4636. 2:54:17this is looking just absolutely is this
  4637. 2:54:19greater than something or less than
  4638. 2:54:21whereas then or equal to if the values
  4639. 2:54:22are equal or not. So when it's like less
  4640. 2:54:25than or equal to two that'll be correct.
  4641. 2:54:27However, if you go over here and say
  4642. 2:54:29less than two or greater than two both
  4643. 2:54:31those are going to go into that
  4644. 2:54:33particular false branch. You'll see that
  4645. 2:54:35there's other things for objects. It's
  4646. 2:54:36literally just asking if it exists or
  4647. 2:54:38not. Uh you can also convert types when
  4648. 2:54:41it's required. You have this option over
  4649. 2:54:43there. And you can ignore case. So, let
  4650. 2:54:46me show you an example of ignore case.
  4651. 2:54:47Let's go first and go into our array and
  4652. 2:54:51we're going to do a contains and we're
  4653. 2:54:52going to go your direction like this.
  4654. 2:54:55And you'll see even though we have your
  4655. 2:54:56direction here as well as right over
  4656. 2:54:58here, it's going to show false. You'll
  4657. 2:55:01see both populate as false. Why? This is
  4658. 2:55:04your direction. So, if you think someone
  4659. 2:55:06has some bad data in some sort of
  4660. 2:55:08capacity,
  4661. 2:55:10there you go. Your direction now is
  4662. 2:55:13matching. It ignores the capitalization
  4663. 2:55:16associated with it. This was like a
  4664. 2:55:18super fast walkthrough of the if node.
  4665. 2:55:22And like all the nodes I'm going to
  4666. 2:55:24cover here, I have detailed videos,
  4667. 2:55:26sometimes 20, 30, 40 minutes on each of
  4668. 2:55:28these to be respectful for your guys
  4669. 2:55:31time watching this course. I'm not going
  4670. 2:55:33to go over every single example. But if
  4671. 2:55:36you really want that detail of, hey, I
  4672. 2:55:38want to know everything about the if
  4673. 2:55:39node. I want to know everything about a
  4674. 2:55:41filter note or a date and time.
  4675. 2:55:43just watch the individual videos on the
  4676. 2:55:45channel. I go into greater detail, but
  4677. 2:55:47there's so much to cover in one video.
  4678. 2:55:48Um, I'm not going to do 40 minutes of if
  4679. 2:55:51within this course. So, the next one I
  4680. 2:55:54wanted to do really fast is switch. So,
  4681. 2:55:57switch is a little bit more of a leveled
  4682. 2:56:00up if because essentially what you can
  4683. 2:56:02do is you can create multiple branches
  4684. 2:56:06whereas if is stuck with true or false.
  4685. 2:56:09So if I go into switch, you'll notice I
  4686. 2:56:12keep adding out routing rules and we
  4687. 2:56:14have route one, we have route two, we
  4688. 2:56:17have route three and you know 012 just
  4689. 2:56:20doesn't doesn't hit it. So we can go
  4690. 2:56:22over here and we can rename these
  4691. 2:56:25outputs
  4692. 2:56:26and let's go back to some of the music I
  4693. 2:56:28listen to. We could say one of these
  4694. 2:56:30outputs is rock or metal
  4695. 2:56:34or
  4696. 2:56:36bluegrass.
  4697. 2:56:39miscellaneous.
  4698. 2:56:45Okay. And now you can see these are
  4699. 2:56:48relabeled. We have rock, metal,
  4700. 2:56:49bluegrass. We can add in an edit set.
  4701. 2:56:52And let me show you how this works. So
  4702. 2:56:53we'll go over here. We'll just say a
  4703. 2:56:56genre.
  4704. 2:57:00Go over here. We'll say artists first.
  4705. 2:57:03Throw in good old Billy Strings.
  4706. 2:57:06And then we'll go in and say genre
  4707. 2:57:11but bluegrass
  4708. 2:57:13bats. So pretty basic two two strings
  4709. 2:57:16over here artist and genre. We go into
  4710. 2:57:19our switch and then we're going to look
  4711. 2:57:21for this. We're going to say genre is
  4712. 2:57:24equal to rock. So we'll say rock over
  4713. 2:57:27here. Do the same thing over here. Is
  4714. 2:57:30the genre equal to metal?
  4715. 2:57:36And actually, we don't need this third
  4716. 2:57:38one over here. Because what I like doing
  4717. 2:57:40is if these conditions aren't met, we
  4718. 2:57:43can actually go into an add option and
  4719. 2:57:45create some sort of fallback output. So
  4720. 2:57:49none, you can say extra output, output
  4721. 2:57:51rock, output metal. I always call it an
  4722. 2:57:53extra output over here. So items will be
  4723. 2:57:55sent to the extra separate output. You
  4724. 2:57:58can also rename that fallback output.
  4725. 2:58:00And I can just rename it blue grass or
  4726. 2:58:02miscellaneous. So you can see since we
  4727. 2:58:05have over here bluegrass and that
  4728. 2:58:08doesn't fit rock or metal, it goes into
  4729. 2:58:10this additional one over here. So that's
  4730. 2:58:13just kind of your fallback. Now if I
  4731. 2:58:15just wanted to say, hey, you know,
  4732. 2:58:16bluegrass really should be its own genre
  4733. 2:58:19over here. And we'll just say the other
  4734. 2:58:23one's miscellaneous. So bluegrass like
  4735. 2:58:26this.
  4736. 2:58:27And uh rename that. And hey, again, we
  4737. 2:58:31just want to keep this as miscellaneous.
  4738. 2:58:33So now you'll see it populates under
  4739. 2:58:35bluegrass. And now we have a fourth one.
  4740. 2:58:38So pretty important that you set a
  4741. 2:58:40fallback of some capacity. Otherwise,
  4742. 2:58:42you're going to lose some sort of data.
  4743. 2:58:44So highly recommend that you build out
  4744. 2:58:47that as we talked about in the previous
  4745. 2:58:49node, convert types when required.
  4746. 2:58:52Probably highly recommend you do that as
  4747. 2:58:54well if you have some capitalization
  4748. 2:58:55issues. As I showed in the the previous
  4749. 2:58:57node, you have the option for ignore
  4750. 2:59:00case as well as convert type. So if your
  4751. 2:59:02capitalization is going to be messed up,
  4752. 2:59:04ignore case. And one interesting thing
  4753. 2:59:06is this send data to all matching
  4754. 2:59:08outputs. So let's say you have some sort
  4755. 2:59:11of switch statement where hey an item
  4756. 2:59:13could fit in multiple buckets
  4757. 2:59:16and you know in music side of it there's
  4758. 2:59:18artists that you know play a mixture of
  4759. 2:59:22rock and bluegrass or metal and
  4760. 2:59:24bluegrass or whatever else the case may
  4761. 2:59:25be.
  4762. 2:59:27So they might want to populate in each
  4763. 2:59:28of these over here. So that's where this
  4764. 2:59:31option would be send data all matching
  4765. 2:59:33outputs. So if they match and matches
  4766. 2:59:35multiple it goes over there. And yeah,
  4767. 2:59:37that's kind of the basics of our switch.
  4768. 2:59:40Ideally, you can really build this out
  4769. 2:59:42and add a lot of different uh conditions
  4770. 2:59:45around that. Okay, so our next thing is
  4771. 2:59:49going to be very similar to our switch
  4772. 2:59:52and if and this is going to be our
  4773. 2:59:54filter. And our filter essentially what
  4774. 2:59:56it does is it removes items based off of
  4775. 2:59:59a filter. So, and we've already talked
  4776. 3:00:02about some of the different rules within
  4777. 3:00:04our if, you can see we have things for
  4778. 3:00:06our string. So, if a string is equal to
  4779. 3:00:09something, you see all this over here.
  4780. 3:00:12Number, date and time, boolean, array,
  4781. 3:00:15object. You can see we can convert types
  4782. 3:00:17as well. We also have the ignore case.
  4783. 3:00:20And we can start off with just a very
  4784. 3:00:22basic filter. And why this helps is
  4785. 3:00:26let's imagine you have 100 items in your
  4786. 3:00:28workflow and you want to filter some of
  4787. 3:00:30these out uh just based off a condition
  4788. 3:00:32and it'll go down to 25 items. So I'm
  4789. 3:00:35not going to give you that direct
  4790. 3:00:36example, but what we'll do is we'll
  4791. 3:00:39create an edit fields of an array and
  4792. 3:00:42we'll split this out. So we'll go over
  4793. 3:00:45here and we'll start off with just some
  4794. 3:00:48numbers in an array. So, we'll just say
  4795. 3:00:51random numbers, which are not
  4796. 3:00:52technically random, but for purposes of
  4797. 3:00:56this video, they are random numbers.
  4798. 3:00:59We're going to go into an array and
  4799. 3:01:01we're going to put a bunch of different
  4800. 3:01:03values. So, say 55, 21, 66, 77, 22, 11.
  4801. 3:01:10Done. I'm not caring too much about
  4802. 3:01:12these numbers, but what we'll do is turn
  4803. 3:01:16each of those from an array into a
  4804. 3:01:18specific item. I do that with split out.
  4805. 3:01:21So, it says start a list inside items
  4806. 3:01:23into separate items. Again, this is very
  4807. 3:01:26popular with arrays. Should probably
  4808. 3:01:28execute the previous node. Pass that in
  4809. 3:01:31over here. And we'll cover this also in
  4810. 3:01:33this section, but you'll see now we have
  4811. 3:01:35six particular items. Schema view
  4812. 3:01:38doesn't really show that that well.
  4813. 3:01:39table view does as well as JSON. So, as
  4814. 3:01:43I mentioned earlier in the course,
  4815. 3:01:44schema just pretty much shows you what
  4816. 3:01:46data types you have. A table is really
  4817. 3:01:48good for CSV data and JSON shows you a
  4818. 3:01:51lot as well. So, okay, great. We have
  4819. 3:01:53six different numbers now we can pass
  4820. 3:01:55into this filter. Let's take a look at a
  4821. 3:01:57number value. So, we'll say random
  4822. 3:01:59numbers. If random number over here is
  4823. 3:02:02less than, we'll say 25, we're going to
  4824. 3:02:05filter that out. And then we're going to
  4825. 3:02:07look at random numbers. If this is less
  4826. 3:02:08than 25, we're going to keep it.
  4827. 3:02:10Otherwise, we're going to filter it out.
  4828. 3:02:12So, it kept 21, it kept 22, it kept 11,
  4829. 3:02:15and it filtered out 55, 66, and 77. And
  4830. 3:02:19you can see that we only have three
  4831. 3:02:21items afterwards
  4832. 3:02:23when we're only going to have the items
  4833. 3:02:24that are kept. So, if we flip it and say
  4834. 3:02:27we're going to only keep numbers that
  4835. 3:02:29are greater than 25, you can see 55, 66,
  4836. 3:02:32and 77. So let's say we want to change
  4837. 3:02:35this up and say greater than 55. We only
  4838. 3:02:37keep 66 and 77 where we disregarded
  4839. 3:02:40these four other items. Pretty powerful
  4840. 3:02:43on that. And then we can also add in
  4841. 3:02:45additional condition as well. So we can
  4842. 3:02:48say it's greater than 55 and less than
  4843. 3:02:5170. So we can use either an and or. So
  4844. 3:02:55we're going to use and in this example.
  4845. 3:02:57So, we're going to copy the same exact
  4846. 3:02:59thing and we're going to say number is
  4847. 3:03:02less than and we're going to say less
  4848. 3:03:04than
  4849. 3:03:0575.
  4850. 3:03:08And you'll see we only have one.
  4851. 3:03:10However, if we do or that means one of
  4852. 3:03:13these conditions has to be true. So,
  4853. 3:03:16technically the number has to be greater
  4854. 3:03:18than 55 which will populate the 66 or it
  4855. 3:03:22has to be less than 75. So, that's less
  4856. 3:03:25than 75. it'll populate less than 75.
  4857. 3:03:28This is false for both. So it'll still
  4858. 3:03:30be disregarded. This hits the criteria
  4859. 3:03:32as well. And this hits it. So you can
  4860. 3:03:34see it kept all of these over here
  4861. 3:03:37because all these numbers are either
  4862. 3:03:39greater than 55 or less than 75. Uh we
  4863. 3:03:43could change this up as well. I will say
  4864. 3:03:46is greater than um we'll actually make
  4865. 3:03:50this to 70.
  4866. 3:03:53You can see it's all the same as well.
  4867. 3:03:55Let me change this up. So, we're going
  4868. 3:03:56to say it's greater than 55
  4869. 3:03:59or is less than 20.
  4870. 3:04:03So, this should get us a different
  4871. 3:04:04number. So, 66, 77, and 11 because
  4872. 3:04:08that's greater than 55, greater than 55.
  4873. 3:04:11This is less than 20. You go to 55,
  4874. 3:04:14right? It's not greater than 55 and it's
  4875. 3:04:17not less than 20. Uh, this is not less
  4876. 3:04:19than 20 over here, but it's greater than
  4877. 3:04:21that. And 22 like that, too. So kept
  4878. 3:04:24three of those disregarded and can or
  4879. 3:04:27only one of these has to be true and
  4880. 3:04:29every condition has to be true and you
  4881. 3:04:30can see you can add more conditions as
  4882. 3:04:32well depending on how complicated you
  4883. 3:04:34want this filter to be and it's really
  4884. 3:04:36great because you can limit the amount
  4885. 3:04:38of results. Another thing that's kind of
  4886. 3:04:39used within testing and we'll just
  4887. 3:04:42briefly cover it is limit. So you can
  4888. 3:04:44see it says restrict the number of items
  4889. 3:04:47over here and you can see it says max
  4890. 3:04:50items that you want to keep. So I am
  4891. 3:04:53just going to remove this filter and
  4892. 3:04:54we'll keep it in this workflow because
  4893. 3:04:56you guys can download this workflow and
  4894. 3:04:58I really don't want to ruin it for you
  4895. 3:05:00guys. But we'll throw that over here.
  4896. 3:05:02And actually you know what we are just
  4897. 3:05:04going to copy that way you guys can
  4898. 3:05:07follow along.
  4899. 3:05:09And we'll just limit this. So this we
  4900. 3:05:13can say limit items into three. And this
  4901. 3:05:16escapes the first items over here. So
  4902. 3:05:18you can see we have 55 216. It kept
  4903. 3:05:21first three or we can keep the last
  4904. 3:05:23items. So it'll keep the last three over
  4905. 3:05:25here. We can change this number as well.
  4906. 3:05:27Uh we can put this to five. Keeps five
  4907. 3:05:30items. We can put this to two. If it's
  4908. 3:05:32larger, it keeps everything. Let's say
  4909. 3:05:33we keep 10. Can keep them all. So
  4910. 3:05:36another way just to limit the amount of
  4911. 3:05:38results that are passed through. I use
  4912. 3:05:40limit a lot when it comes to testing. So
  4913. 3:05:43if I don't want to send all my items
  4914. 3:05:44throughout a workflow and I'm personally
  4915. 3:05:46using testing in some sort of capacity,
  4916. 3:05:48that's when I use uh limit. Okay. Next,
  4917. 3:05:52I think what we should cover in a little
  4918. 3:05:54bit greater detail is date and time. So
  4919. 3:05:58going back into our date and time is I I
  4920. 3:06:01did mention I was going to talk about
  4921. 3:06:03this. You can also get a date pretty
  4922. 3:06:06easily or format a date. So all you have
  4923. 3:06:09to do on the side of things is use this
  4924. 3:06:11node and you can see it says format a
  4925. 3:06:14date. It does mention you could also do
  4926. 3:06:17this over here with the schema. So your
  4927. 3:06:19date.format.
  4928. 3:06:20Uh so let me show you this example from
  4929. 3:06:23earlier.
  4930. 3:06:25We had this if I think this is it. Just
  4931. 3:06:27double check. Yeah. So we'll grab that.
  4932. 3:06:32We'll pass it over here. And let's say
  4933. 3:06:34we want to pass in our dates. So I'm
  4934. 3:06:37just going to execute the previous node
  4935. 3:06:40and I will grab this live date. So now
  4936. 3:06:43we can actually format this date and you
  4937. 3:06:45can see we have 11 1 2026 but we have
  4938. 3:06:48different formats and you can see
  4939. 3:06:50depending where you're at people format
  4940. 3:06:52dates differently. So this is month
  4941. 3:06:54month day year year. You can change it
  4942. 3:06:56where years are first. You can add in
  4943. 3:06:58time stamps as well. So you can see that
  4944. 3:07:01it's a specific time stamp. Uh you can
  4945. 3:07:03go MS. It really obviously depends on
  4946. 3:07:07what you particularly want to do. You
  4947. 3:07:09have also custom formatting as well. And
  4948. 3:07:12uh you can see we have more info over
  4949. 3:07:14here. And this talks about all the
  4950. 3:07:16different format options. And obviously
  4951. 3:07:18I'm not going to cover that in today's
  4952. 3:07:19video because that just crazy. But I
  4953. 3:07:22have a full video talking about
  4954. 3:07:23formatting and dates and things like
  4955. 3:07:25that. You can also change the name of
  4956. 3:07:28the date as well. You can include the
  4957. 3:07:30input fields, which I would just
  4958. 3:07:32recommend that you include this because
  4959. 3:07:34it has everything else over here. You
  4960. 3:07:36could literally just filter out in the
  4961. 3:07:38future this specific live date. Um, what
  4962. 3:07:42else? You could use the workflow time
  4963. 3:07:43zone. I think that's pretty important.
  4964. 3:07:47And you have opt other options too. So,
  4965. 3:07:49this was just formatting. You could also
  4966. 3:07:51extract part of a date, which I mean you
  4967. 3:07:53could do that with JSON as well. You
  4968. 3:07:55could add to a date. So you can have a
  4969. 3:07:58date and say what's 180 days from now.
  4970. 3:08:00So you can just say what's 180 days,
  4971. 3:08:03right? Uh you can also get the current
  4972. 3:08:06date which I would just use now anyways
  4973. 3:08:08in JSON. Get the time between two
  4974. 3:08:11particular dates. So if you want to find
  4975. 3:08:14start date and end date, how many days
  4976. 3:08:16are they between? You can grab that. You
  4977. 3:08:18can round dates. And also the opposite
  4978. 3:08:20of adding to a date, you could subtract
  4979. 3:08:23from a date. also mentions this over
  4980. 3:08:26here as the expression that you could
  4981. 3:08:27utilize but you could also just throw
  4982. 3:08:29this in the particular node. So if you
  4983. 3:08:32are working with date and time which I
  4984. 3:08:34think everyone does in some capacity I I
  4985. 3:08:37don't really see this node talked about
  4986. 3:08:39that often and obviously a lot of this
  4987. 3:08:41could be just used with JSON you could
  4988. 3:08:44just format your dates based around it
  4989. 3:08:46but I kind of like having that
  4990. 3:08:48particular node. All right. Uh, so we
  4991. 3:08:51covered edit, we covered if, covered
  4992. 3:08:53filter, date and time, we covered
  4993. 3:08:55switch. So let's talk about another way
  4994. 3:08:58that you guys could clean up your data.
  4995. 3:09:01And what we have is a node for removing
  4996. 3:09:04duplicates. So we'll see over here it
  4997. 3:09:07says remove items repeated within
  4998. 3:09:08current input. Remove items process in
  4999. 3:09:10previous executions or clear
  5000. 3:09:12dduplication history. For ease of use,
  5001. 3:09:16what we're going to do is remove items
  5002. 3:09:17repeated within a current input. We'll
  5003. 3:09:19talk about the other one here in a
  5004. 3:09:21second. So I want to go back over here
  5005. 3:09:23and use this example. We're actually
  5006. 3:09:25going to modify this a little bit. So in
  5007. 3:09:28over here, what we're going to take a
  5008. 3:09:30look at is pretend we have another
  5009. 3:09:33duplicate. So let's say we have 11 and
  5010. 3:09:36then we have 21. So a few duplication
  5011. 3:09:4022. So few numbers that are duplicated.
  5012. 3:09:42You can see we have nine total numbers.
  5013. 3:09:46We split these out. So each of these
  5014. 3:09:48numbers are an item. And then we're
  5015. 3:09:50going to go into remove duplicates. And
  5016. 3:09:53what we're going to do is compare
  5017. 3:09:55selected fields. And I would just
  5018. 3:09:57recommend that you choose a field. So
  5019. 3:09:59I'm going to use random numbers over
  5020. 3:10:01here. And this is only going to remove
  5021. 3:10:03items repeated within the current input.
  5022. 3:10:06And you can see this now goes down into
  5023. 3:10:08six. We're at nine items now six. And
  5024. 3:10:10the reason is the last three were
  5025. 3:10:12duplicated. You can take a look at this
  5026. 3:10:13table. 22, 21, and 11. So it removes
  5027. 3:10:16that in here directly. Now this is where
  5028. 3:10:19you need to be a little bit careful or
  5029. 3:10:21uh this is kind of in your benefit as
  5030. 3:10:23well. So if we actually choose remove
  5031. 3:10:25items process in previous executions,
  5032. 3:10:28imagine you have some sort of like a a
  5033. 3:10:30unique identifier and you only want that
  5034. 3:10:32identifier to go once through a
  5035. 3:10:34workflow. Well, uh that is where this
  5036. 3:10:37would take place. So remove items
  5037. 3:10:40process and previous executions. If you
  5038. 3:10:41don't want this item ever to be through
  5039. 3:10:43this workflow again, which is rare that
  5040. 3:10:45you choose that and then if you choose
  5041. 3:10:48that, you'd want to have something uh
  5042. 3:10:50for the clear the duty duplication
  5043. 3:10:52history. So just one use case for
  5044. 3:10:55example is let's say you want to I don't
  5045. 3:10:58know reach out to people in your CRM
  5046. 3:11:01once a month and you reach out to
  5047. 3:11:04everyone and they have a unique
  5048. 3:11:06identifier and well you want to reset
  5049. 3:11:08that maybe one time a month you reset it
  5050. 3:11:10automatically with this clear
  5051. 3:11:11dduplication history. I don't know
  5052. 3:11:13that's just something I thought of on
  5053. 3:11:14top of my head. I don't use it that
  5054. 3:11:16often but that is an option over there.
  5055. 3:11:18And you can see disable dot notation or
  5056. 3:11:21remove other fields if you want to use
  5057. 3:11:22that. I just choose selected fields and
  5058. 3:11:25go through there. Um, okay. So, we
  5059. 3:11:28remove duplicates. Let's talk a little
  5060. 3:11:30bit more about split out as well. I
  5061. 3:11:33think it's time to talk about this. So,
  5062. 3:11:35essentially what we're doing with split
  5063. 3:11:37out is, and you hopefully you kind of
  5064. 3:11:39figured this out by now. within an
  5065. 3:11:42array. You have multiple items in over
  5066. 3:11:44here like 55, 21, 66, 77, like discounts
  5067. 3:11:48as one item currently, the array, but
  5068. 3:11:50you could split this out and go from one
  5069. 3:11:52item to many. And actually, if you take
  5070. 3:11:54a look at the icon, that's literally
  5071. 3:11:55what it's showing you. You have one item
  5072. 3:11:57coming in and it builds out multiple.
  5073. 3:11:59So, you just choose the field that you
  5074. 3:12:01want to split out. You can also include
  5075. 3:12:03other fields or selected other fields.
  5076. 3:12:06So let's say for example I had I don't
  5077. 3:12:09know what's going to be a good thing.
  5078. 3:12:11We'll just say um
  5079. 3:12:14I don't know random number ID. I don't
  5080. 3:12:19know let's say like when you generate
  5081. 3:12:22random numbers you have like an integer
  5082. 3:12:24associated with it. So let's say the the
  5083. 3:12:26repeat results in programming. I'll just
  5084. 3:12:27say like 11 on the side of it. So we
  5085. 3:12:30have this random number ID. It's kind of
  5086. 3:12:32bizarre, but I think we can throw that
  5087. 3:12:35in over here and we'll include all their
  5088. 3:12:38fields. So now you can see 11 is
  5089. 3:12:40associated with each of these where
  5090. 3:12:43earlier we had 11 once and then this
  5091. 3:12:45array. So hopefully that kind of makes
  5092. 3:12:47sense as an example. Um 11's kind of
  5093. 3:12:50attributed to each of these and we can
  5094. 3:12:51just pass them like that. You could also
  5095. 3:12:54choose selected other fields and choose
  5096. 3:12:56one thing if you really want to. Um, so
  5097. 3:12:58you can see if I want to grab that or
  5098. 3:13:00that over here. This depends obviously
  5099. 3:13:02if you have a lot of fields. So you can
  5100. 3:13:04either choose all of them or select it
  5101. 3:13:06as well. This will get the same exact
  5102. 3:13:08results. Disable dot notations here.
  5103. 3:13:10Again, destination field name. You can
  5104. 3:13:12re label this and you say instead of
  5105. 3:13:14random numbers, let's say randomly
  5106. 3:13:17generated number.
  5107. 3:13:21And uh yeah, that's essentially it. You
  5108. 3:13:24have binary files, you can pass that
  5109. 3:13:26through, too. But you can re label that
  5110. 3:13:28and it's honestly a pretty easy node
  5111. 3:13:31just to kind of walk through on that
  5112. 3:13:33side of things. So I'm back another day
  5113. 3:13:37recording. So if you see this shirt
  5114. 3:13:39change that is why um we're going to
  5115. 3:13:42continue to move forward with a few
  5116. 3:13:44other nodes. I also made the choice to
  5117. 3:13:48put some of the essential nodes in later
  5118. 3:13:50parts of the course such as like when we
  5119. 3:13:52start working with binary files because
  5120. 3:13:54I think they'll make sense over there.
  5121. 3:13:57Um but I still have three more to cover
  5122. 3:14:00in this section and then also to
  5123. 3:14:02workflows. So the next two nodes are
  5124. 3:14:04going to be very similar. Uh they're
  5125. 3:14:06going to be called agate as well as
  5126. 3:14:08summarize and it's the opposite of split
  5127. 3:14:10out. So if we go over here and we go to
  5128. 3:14:13aggregate, you'll see it's combined a
  5129. 3:14:15field from many items from a list into a
  5130. 3:14:17single item. So I just want to populate
  5131. 3:14:20this probably after split out just to
  5132. 3:14:22show you how this works. So I'm just
  5133. 3:14:24going to copy this over here and throw
  5134. 3:14:26it in. And I'm just going to like that.
  5135. 3:14:30And check this out. So in our edit
  5136. 3:14:32fields, if you remember, we had this
  5137. 3:14:34array on this random number ID. We
  5138. 3:14:37actually split out the random numbers
  5139. 3:14:39over here. And actually may execute this
  5140. 3:14:41to refresh it. So you can see all these
  5141. 3:14:43were split out over there. I'm not going
  5142. 3:14:47to include this random number ID anymore
  5143. 3:14:49as well. So I'm just going to remove
  5144. 3:14:50this over here. I'm going to execute
  5145. 3:14:52this step and
  5146. 3:14:56hold on a second. Let's go over here.
  5147. 3:14:59Okay. So we have our random numbers like
  5148. 3:15:02that.
  5149. 3:15:04And uh no other fields. That's why I
  5150. 3:15:07have the error. And you can see in our
  5151. 3:15:09table we have nine items over here. But
  5152. 3:15:12when we go into aggregate we're going to
  5153. 3:15:14do the opposite. So we're going to take
  5154. 3:15:17those nine items and then populate a new
  5155. 3:15:19field. So you can see we are back into
  5156. 3:15:22one particular item essentially how we
  5157. 3:15:24started. Right? If we go to our schema
  5158. 3:15:26view, go to our schema view, these are
  5159. 3:15:28nearly identical minus this random
  5160. 3:15:30number ID which honestly we didn't
  5161. 3:15:32really need for this example over here.
  5162. 3:15:35Now there is a few other options that
  5163. 3:15:37are worth mentioning. So first you can
  5164. 3:15:39rename this field. A lot of the time I
  5165. 3:15:41do find this helpful just keeping things
  5166. 3:15:44clean. So you should be able to throw
  5167. 3:15:46that in over here. Uh you can also merge
  5168. 3:15:48lists include binary files as well. Keep
  5169. 3:15:51missing and null values. So if your data
  5170. 3:15:54is just gone and you want to still keep
  5171. 3:15:57these uh you would put in this missing
  5172. 3:16:00and no values field. So obviously I have
  5173. 3:16:03all these numbers defined over here, but
  5174. 3:16:05if that's the case that there's stuff
  5175. 3:16:06that's missing, you would want to choose
  5176. 3:16:08that. I find it helpful. So that is
  5177. 3:16:11pretty easy. It's simple. You could also
  5178. 3:16:15have all item data into a single list
  5179. 3:16:18over there. But that's aggregate. And I
  5180. 3:16:21don't use a aggregate actually as much
  5181. 3:16:23as this other node. And uh why I use
  5182. 3:16:26this other node, I just find there's a
  5183. 3:16:27little bit more that you could do with
  5184. 3:16:29it. And this is summarize over here. And
  5185. 3:16:33with summarize essentially what we could
  5186. 3:16:36do is you have different types of
  5187. 3:16:38aggregations. So like this aggregate on
  5188. 3:16:42steroids is essentially summarize.
  5189. 3:16:46And you can see we have append average
  5190. 3:16:48concatenate count count unique max min
  5191. 3:16:51sum. So, we're going just going to
  5192. 3:16:53literally copy what we have over here
  5193. 3:16:55and we're going to walk through a few of
  5194. 3:16:56these different examples and also kind
  5195. 3:16:58of explain why this node should probably
  5196. 3:17:01used a lot more than aggregate or an AN
  5197. 3:17:04team could should probably combine these
  5198. 3:17:06together. Um, I honestly think that's
  5199. 3:17:08probably the best approach, but it's
  5200. 3:17:09probably too late because of just how
  5201. 3:17:11workflows are out there. All right, so
  5202. 3:17:13we're just going to execute this step.
  5203. 3:17:14Again, I'm just going to remove this
  5204. 3:17:16random number ID just to keep things
  5205. 3:17:17clean. And uh we'll split this out. And
  5206. 3:17:22now we go to the summarize. And let's go
  5207. 3:17:24through some of these aggregations. And
  5208. 3:17:26you could think of this as like
  5209. 3:17:28different tasks that a data analyst or a
  5210. 3:17:31data scientist would perform on a data
  5211. 3:17:33set. So you might say like, oh, how many
  5212. 3:17:35items are in here? And well, there's
  5213. 3:17:38nine. And you can see it automatically
  5214. 3:17:40creates count random numbers. So we see
  5215. 3:17:42account and then it populates in front
  5216. 3:17:44of random numbers. So I think it's
  5217. 3:17:45pretty helpful that we already rename
  5218. 3:17:47it. We can also find the average. So you
  5219. 3:17:50can see there's 34 over here. You can
  5220. 3:17:53count unique. So how many of these
  5221. 3:17:55numbers are truly unique or not? And you
  5222. 3:17:58can see six. We have a few different
  5223. 3:17:59duplicates. What's the maximum over
  5224. 3:18:02here? What is the minimum?
  5225. 3:18:05What is the sum? Again, just something
  5226. 3:18:09really easy that you could populate in
  5227. 3:18:11two seconds to find some statistics.
  5228. 3:18:13Obviously, there's other data points I
  5229. 3:18:15wish that were in here like median. Um,
  5230. 3:18:17maybe that's helpful thinking, but
  5231. 3:18:20really it's like, okay, why
  5232. 3:18:23why does this matter? Like, you keep
  5233. 3:18:26saying summarize is better than
  5234. 3:18:28aggregate. Well, what happens sometimes
  5235. 3:18:30I want to send all of my items to our AI
  5236. 3:18:34agent. One of the ways that we could do
  5237. 3:18:36this actually is go into concatenate.
  5238. 3:18:39And what's really nice is we have
  5239. 3:18:40different options on how to concatenate
  5240. 3:18:42all these numbers. All right. So you can
  5241. 3:18:44see there's different options to how we
  5242. 3:18:46would want to concatenate. So by just
  5243. 3:18:48putting a comma we put all this together
  5244. 3:18:50like this. You can also put comma and a
  5245. 3:18:53space. And you can see now we have a
  5246. 3:18:54little bit more formatting associated
  5247. 3:18:56with that. Then you can also put all
  5248. 3:18:58these on new lines. You'll see slashn
  5249. 3:19:00that stands for a specific new line.
  5250. 3:19:04Then we have none. So this is just going
  5251. 3:19:06to put everything all together. I don't
  5252. 3:19:08really use this that often with none. We
  5253. 3:19:10have space and you can see all these are
  5254. 3:19:12space like that. And then we have other
  5255. 3:19:14which you can define whatever separator
  5256. 3:19:17you want. And you can see like for
  5257. 3:19:19example I just put three dashes and then
  5258. 3:19:21there's the dashes like that. So
  5259. 3:19:22sometimes I have a bunch of different
  5260. 3:19:24items and I want to populate these
  5261. 3:19:26within let's say for an example an email
  5262. 3:19:28newsletter. uh summarize will allow me
  5263. 3:19:30to do that like really really easily and
  5264. 3:19:32then apply the formatting where I want
  5265. 3:19:34to where aggregate really doesn't give
  5266. 3:19:36me that option to do that and uh again
  5267. 3:19:39just look at concatenate where we're
  5268. 3:19:41combining all these together concatenate
  5269. 3:19:43them and we can just specify however
  5270. 3:19:45format we want we also do have the
  5271. 3:19:47option append over here and you can see
  5272. 3:19:50all these are together like that um and
  5273. 3:19:53you can take a look at the table view
  5274. 3:19:55this is essentially what we've already
  5275. 3:19:57had go back over here just to show you
  5276. 3:20:00right 0 through eight this is an array
  5277. 3:20:02we have all this over here again just
  5278. 3:20:05going we have specific array
  5279. 3:20:09cool so you can also include empty
  5280. 3:20:11values if you want there's other options
  5281. 3:20:13so disable nitation output format um so
  5282. 3:20:16you can each split into separate item or
  5283. 3:20:18all splits into a single item and you
  5284. 3:20:21have ignore items with valid fields to
  5285. 3:20:23group by um so you can also group by
  5286. 3:20:26specific things as necessary But there's
  5287. 3:20:28a lot more nuances associated with this.
  5288. 3:20:30I just wanted to share this with you
  5289. 3:20:32guys uh because it's really really
  5290. 3:20:35impactful. All right, the last node and
  5291. 3:20:38and actually with this node itself,
  5292. 3:20:40we're going to have to grab our manual
  5293. 3:20:42trigger just because it does bug out if
  5294. 3:20:45you don't have this. And this is going
  5295. 3:20:47to be the merge node. And merges are
  5296. 3:20:51used all the time by people in data
  5297. 3:20:54because what ends up happening is at
  5298. 3:20:57least in a database you have data coming
  5299. 3:20:59from multiple tables and you want to
  5300. 3:21:01combine this together in some sort of
  5301. 3:21:03report and obviously you're like well
  5302. 3:21:05that doesn't matter for any end. Well
  5303. 3:21:07kind of does because in any end often
  5304. 3:21:10you're going to have multiple branches
  5305. 3:21:12in a workflow and you're going to have
  5306. 3:21:14to merge them together. So why this
  5307. 3:21:17happens? So first off in nan itself
  5308. 3:21:20sometimes you're going to have a
  5309. 3:21:22decision logic like an if else and your
  5310. 3:21:24workflow will split into multiple parts
  5311. 3:21:27sometimes it can be really difficult to
  5312. 3:21:29access data a little bit earlier on in
  5313. 3:21:31the workflow. So what I tend to do is
  5314. 3:21:34from I have a data point earlier in a
  5315. 3:21:36workflow I'll create another line and
  5316. 3:21:38then merge it post everything going on.
  5317. 3:21:41I know that doesn't really make sense
  5318. 3:21:43right now because we've gone through a
  5319. 3:21:44lot of very basic examples, but I
  5320. 3:21:46promise you like if you want to access
  5321. 3:21:48data that's a little bit earlier in your
  5322. 3:21:50workflow and sometimes you can't access
  5323. 3:21:52it with JSON, merge is going to be your
  5324. 3:21:54best friend. In addition, sometimes
  5325. 3:21:56you're going to have to merge from
  5326. 3:21:57different sources. Like merge is a very
  5327. 3:22:00important skill to have if you want to
  5328. 3:22:01build out um some great workflows. So
  5329. 3:22:05obviously there's a lot going on with
  5330. 3:22:07merge and I do want to also show you a
  5331. 3:22:10small bug within merge 2 that I hope
  5332. 3:22:12that any end team does eventually solve.
  5333. 3:22:15I haven't flagged this to them but I
  5334. 3:22:17will bring that up. So first let me show
  5335. 3:22:20you how this is done properly. We're
  5336. 3:22:22going to just create uh two different
  5337. 3:22:24data points over here. We're going to
  5338. 3:22:26say edit fields. We're going to do this
  5339. 3:22:29twice and we're going to start off with
  5340. 3:22:31the the most basics of merges and we're
  5341. 3:22:34going to do something called append. And
  5342. 3:22:36if you come from the data world, this is
  5343. 3:22:37union. Essentially, what we're doing is
  5344. 3:22:39stacking data on top of each other. So,
  5345. 3:22:41let's go over here and we're going to
  5346. 3:22:42create two long runs. So, one of my
  5347. 3:22:46favorite sports is running. And uh when
  5348. 3:22:48you're doing training, you're going to
  5349. 3:22:49have to do long distance runs. Today,
  5350. 3:22:51for recording this video, I did 30
  5351. 3:22:53miles. Last weekend, my long run was 19
  5352. 3:22:56miles. It's completely different long
  5353. 3:22:58run. That one was 19 miles on the road.
  5354. 3:23:01Today was on the trail. So we have both
  5355. 3:23:04of our long runs over here. And you know
  5356. 3:23:06what? Again, imagine like we have a lot
  5357. 3:23:08more items of trail runs over here, a
  5358. 3:23:10lot more items of road run. We actually
  5359. 3:23:12want to merge these together. And real
  5360. 3:23:16world, you can imagine maybe I have a
  5361. 3:23:17spreadsheet with just trail runs, a
  5362. 3:23:20spreadsheet with just road running. And
  5363. 3:23:23now I want to combine this together over
  5364. 3:23:24there. Again, you might say like, well,
  5365. 3:23:26you could just have had that in general.
  5366. 3:23:28Sure, but trying to just give you an
  5367. 3:23:30idea. All right, so you can see and
  5368. 3:23:33these pretty basic. We have long run 30,
  5369. 3:23:36etc. Why we need this? Let me just
  5370. 3:23:38populate this over here and execute
  5371. 3:23:41this. You'll see that we have um and
  5372. 3:23:44that's actually another good point. Make
  5373. 3:23:46sure when you're using append, these are
  5374. 3:23:49the exact same because you'll see I have
  5375. 3:23:51long runs and then long run. And if
  5376. 3:23:54these aren't the same exact value,
  5377. 3:23:57you'll have undefined as the other one.
  5378. 3:23:59So super important that you make sure
  5379. 3:24:03are the same. Watch what happens now.
  5380. 3:24:06Great. So we have a long run. We have 30
  5381. 3:24:09and then 19. So these are stacked
  5382. 3:24:10together. We have two items over here.
  5383. 3:24:12So we have the item over here. We have
  5384. 3:24:14the item over here. And we just stacked
  5385. 3:24:16them. So they're individual items. But
  5386. 3:24:17now we have two items with our specific
  5387. 3:24:21append. And this is also kind of where a
  5388. 3:24:24bug in Nan is. So let me show you this
  5389. 3:24:27bug because I've encountered it a few
  5390. 3:24:28different times. And I was really hoping
  5391. 3:24:30this was something that would be solved
  5392. 3:24:31in V2. So imagine we're doing some sort
  5393. 3:24:34of testing. I'm not using a trigger over
  5394. 3:24:36here. And I know some people are going
  5395. 3:24:38to probably say like should always have
  5396. 3:24:39a trigger even with testing purposes or
  5397. 3:24:42making up videos. That's fine. So uh we
  5398. 3:24:46go back into this merge over here. Try
  5399. 3:24:48to execute this step. Now this doesn't
  5400. 3:24:50the merge doesn't work. it only grabs
  5401. 3:24:52the bottom section.
  5402. 3:24:54You can see
  5403. 3:24:57that doesn't work. So, if if we put our
  5404. 3:25:00manual over here, now we get the two
  5405. 3:25:03items. So, if you're doing some sort of
  5406. 3:25:04testing and you're like, man, why is my
  5407. 3:25:07merge not working? Um, make sure that
  5408. 3:25:11you have a trigger over here. I learned
  5409. 3:25:13this the hard way and it's it's
  5410. 3:25:14embarrassing to say this. uh my
  5411. 3:25:16full-time job, we had a hackathon with
  5412. 3:25:18some of our customers and essentially
  5413. 3:25:22and I I don't do AI consulting
  5414. 3:25:24full-time. I work at a fintech as a data
  5415. 3:25:26scientist, but ideally one of our
  5416. 3:25:28customers was building out an AN
  5417. 3:25:31workflow and we're trying to get a merge
  5418. 3:25:33to work and I didn't have a trigger here
  5419. 3:25:36and I was getting these results on the
  5420. 3:25:38end. I'm like obviously the one item not
  5421. 3:25:40too. I'm like what is going on? Why can
  5422. 3:25:42I not get this to work? And I literally
  5423. 3:25:44tried to spend like 15 minutes trying to
  5424. 3:25:46solve the issue. I'm like, I know how
  5425. 3:25:48bridge works, just couldn't get it to
  5426. 3:25:50work. And then I threw on a manual
  5427. 3:25:53trigger for testing and it worked. So, a
  5428. 3:25:55very weird bug that's in any N. I need
  5429. 3:25:58I'll bring it up to the team and see if
  5430. 3:26:00they do anything about it. But if you do
  5431. 3:26:02have that issue, just make sure in
  5432. 3:26:04testing you have that. There's other
  5433. 3:26:06options as well for the merge node, not
  5434. 3:26:09just appending, which is like stacking
  5435. 3:26:11our data together. Uh, so you could
  5436. 3:26:12actually write a SQL query and this is
  5437. 3:26:16for the people that may have a like data
  5438. 3:26:18analytics background and I'm not going
  5439. 3:26:20to cover all SQL in today's video. In
  5440. 3:26:22fact, um, I have probably like 10 or 15
  5441. 3:26:24different SQL videos here on the
  5442. 3:26:26channel. If you honestly watch my 1 hour
  5443. 3:26:28SQL course, plenty enough information to
  5444. 3:26:31jump into this over here, but this is
  5445. 3:26:33just kind of a little bit for more
  5446. 3:26:34advanced joins of your data. So, we'll
  5447. 3:26:37not cover that over here. You can choose
  5448. 3:26:39a branch over here as well. Um, so a
  5449. 3:26:42choosing branch will only grab data from
  5450. 3:26:44one side. So you can see I chose this
  5451. 3:26:47one. Use data of input one. It's long
  5452. 3:26:49run 30. We choose this one over here.
  5453. 3:26:51It's long run of 19. And then you have
  5454. 3:26:54combine. So what combine allows you to
  5455. 3:26:56do is merge data together. Uh there's a
  5456. 3:26:59few different ways that you could
  5457. 3:27:00combine it. You could combine by
  5458. 3:27:02matching fields. So combine items with
  5459. 3:27:03the same field values. You could combine
  5460. 3:27:05by position. to combine items based off
  5461. 3:27:08of their order or all possible
  5462. 3:27:09combinations. Typically, I'll either use
  5463. 3:27:12matching fields or specifically
  5464. 3:27:15positions.
  5465. 3:27:16And um again, just depending on what
  5466. 3:27:19type of join you particular want, why I
  5467. 3:27:21use position, just how I have a workflow
  5468. 3:27:25populating and I just want to have
  5469. 3:27:26everything together. Uh, so just to show
  5470. 3:27:28you over here, this isn't really going
  5471. 3:27:30to do much because our data over here
  5472. 3:27:32doesn't really make that much sense um
  5473. 3:27:34to combine by position and I didn't
  5474. 3:27:37really prep for the merge. But if you
  5475. 3:27:39watch our merge video on the channel,
  5476. 3:27:40it's like well over an hour and actually
  5477. 3:27:42maybe I'll give you an example right now
  5478. 3:27:44of combine by position. It might be a
  5479. 3:27:46little bit out of scope, but I'll just
  5480. 3:27:48pause this fill this out really quick
  5481. 3:27:50for you and we'll be right back. All
  5482. 3:27:52right. So, I made the two other examples
  5483. 3:27:54really quick just so that way you guys
  5484. 3:27:56can kind of visualize what is going on.
  5485. 3:27:58Otherwise, if I didn't, I feel like this
  5486. 3:28:00course just wouldn't go in as much
  5487. 3:28:02detail. So, the first one we're going to
  5488. 3:28:05be taking a look at over here is combine
  5489. 3:28:07by matching fields. You also notice that
  5490. 3:28:10we have code nodes over here. And
  5491. 3:28:11listen, we're going to have a code node
  5492. 3:28:13section within this course. So, don't
  5493. 3:28:16fret. All I'm using the code node over
  5494. 3:28:18here just to show you is we're building
  5495. 3:28:20out multiple items. So you can see that
  5496. 3:28:22there's four items associated with it. I
  5497. 3:28:25could still technically go over here and
  5498. 3:28:28use an edit fields and split out to
  5499. 3:28:29build out multiple items. I personally
  5500. 3:28:32find the code node is a lot quicker to
  5501. 3:28:35build out multiple items for testing.
  5502. 3:28:37And I'll often do this all the time.
  5503. 3:28:39Again, we'll cover it in more detail,
  5504. 3:28:40but what I have going on over here is I
  5505. 3:28:44have different products as well as their
  5506. 3:28:46category over here. So, four products,
  5507. 3:28:47laptop, desk, monitor, and chair
  5508. 3:28:50category, electronics, furniture,
  5509. 3:28:51electronics, and furniture. And then
  5510. 3:28:54over here in our second one, what we
  5511. 3:28:56have is a discount that the store is
  5512. 3:28:58applying for specific categories. So,
  5513. 3:29:00you can see 10%, 15, 5% electronics,
  5514. 3:29:03furniture, and clothing. We can actually
  5515. 3:29:05join both of these data points off of
  5516. 3:29:08category, right? There's category in
  5517. 3:29:11here. There is category in over here.
  5518. 3:29:14And there's a lot of different ways that
  5519. 3:29:15we could join. We'll quickly go through
  5520. 3:29:17these. So, how we go over here, we go do
  5521. 3:29:20combine by position. How we go over
  5522. 3:29:22here, we do combine, merge matching
  5523. 3:29:25items together, and then combine by
  5524. 3:29:27matching fields. And
  5525. 3:29:31these are the same in name. However, if
  5526. 3:29:33they have different names, which is very
  5527. 3:29:35common in the real world, you just click
  5528. 3:29:37on this fields to match have different
  5529. 3:29:39names. Obviously, I did not do that to
  5530. 3:29:41make this more simple for you. Next,
  5531. 3:29:43fields to match. They both have a
  5532. 3:29:46category. So, we're going to choose
  5533. 3:29:47category. And then you have different
  5534. 3:29:49types of output. And I'm just saying
  5535. 3:29:51over here to keep matches and output
  5536. 3:29:54data from both inputs merged together.
  5537. 3:29:56You can only choose input one and input
  5538. 3:29:58two if you want, but most likely if
  5539. 3:30:00you're going to be combining matching
  5540. 3:30:01fields, you'll want to have both inputs
  5541. 3:30:02merged together. And when I use a step,
  5542. 3:30:05you can see our product category, and
  5543. 3:30:07then you can see the discount all in one
  5544. 3:30:09section. This is essentially what a data
  5545. 3:30:11analyst does when they're combining
  5546. 3:30:12tables. um very rarely you only need you
  5547. 3:30:15combine two tables but uh in general
  5548. 3:30:19this is just a very basic MVP. Now
  5549. 3:30:22there's a lot of different ways that you
  5550. 3:30:24could join data together. So over here
  5551. 3:30:27it says output type keep matches and
  5552. 3:30:29you'll notice it says an inner join.
  5553. 3:30:31This is probably the most popular
  5554. 3:30:32options over here. So only if there's a
  5555. 3:30:35match it will join. One of the other
  5556. 3:30:37common ones that you'll often see in the
  5557. 3:30:40real world is a left join. And N is kind
  5558. 3:30:43of interesting because um you have a
  5559. 3:30:45left joint or a right joint over here.
  5560. 3:30:47No one really uses right joints in the
  5561. 3:30:49real world. Typically you'll use the
  5562. 3:30:51main table as um your build out for your
  5563. 3:30:54left join. However, based off of
  5564. 3:30:56orchestration, sometimes you'll want to
  5565. 3:30:58have the source of truth either input
  5566. 3:31:00one or input two. That's kind of where
  5567. 3:31:01you have your left join or right join.
  5568. 3:31:03So if we do left join over here, you can
  5569. 3:31:07see it doesn't really change much. Then
  5570. 3:31:10you can see it's called enrich input
  5571. 3:31:12one. And that's just because all four of
  5572. 3:31:14these items have a category that's in
  5573. 3:31:16here. However, if I change one of these
  5574. 3:31:19and uh you can see it's electronic
  5575. 3:31:20clothing furniture. Let's say I just
  5576. 3:31:22call laptop consulting. Again, this
  5577. 3:31:24makes no sense to do this. But we're
  5578. 3:31:27going to do this on purpose just to show
  5579. 3:31:29you what's going to happen. I rerun
  5580. 3:31:33this.
  5581. 3:31:36You'll see this is undefined. Whereas
  5582. 3:31:38earlier if we did in join that laptop is
  5583. 3:31:40going to be dropped. And you can see if
  5584. 3:31:42I execute step that is no longer there.
  5585. 3:31:45So inner join will only keep the
  5586. 3:31:48matches. If you do this left join over
  5587. 3:31:51here even if there's a null value in
  5588. 3:31:53that first input
  5589. 3:31:55it's okay. And the opposite for input
  5590. 3:31:58two. So this time we start from the
  5591. 3:32:01discount and you can see there was no
  5592. 3:32:03clothing. So that's why that is
  5593. 3:32:04undefined. So you have that. Uh the
  5594. 3:32:06other things over here is non-matches.
  5595. 3:32:09So just show things that don't match in
  5596. 3:32:10general. This is kind of good for data
  5597. 3:32:12cleanup in some capacity. So you can see
  5598. 3:32:13our laptop which is consulting doesn't
  5599. 3:32:15have a discount. And then you can see
  5600. 3:32:17clothing which doesn't have an item that
  5601. 3:32:18is missing over there. And then lastly,
  5602. 3:32:21you have a full outer join which will
  5603. 3:32:23show everything all together. Again, I
  5604. 3:32:25understand it's not going to click, but
  5605. 3:32:27maybe do some practice with merges. It's
  5606. 3:32:30it's really really important. Okay. The
  5607. 3:32:32other option over here is to combine by
  5608. 3:32:35position. And you can see that we have
  5609. 3:32:37two inputs. This is a little bit
  5610. 3:32:39different. So what we have over here are
  5611. 3:32:41different metal bands. Mishuga Tulle and
  5612. 3:32:43then Orbit Culture. And then over here
  5613. 3:32:46what we have is different iconic venues.
  5614. 3:32:48So Red Rock Amphitheater as well as
  5615. 3:32:50Madison Square Garden. I've never been
  5616. 3:32:51to either of those, but they seem like
  5617. 3:32:53they're going to be pretty close. And uh
  5618. 3:32:55what we do is merge over here. We do
  5619. 3:32:57combine my position
  5620. 3:32:59and
  5621. 3:33:01nothing is populating because I don't
  5622. 3:33:03have this execute workflow. It is such a
  5623. 3:33:07bummer that you have to always do this
  5624. 3:33:09testing. All right, so let's rerun this
  5625. 3:33:12again.
  5626. 3:33:14And now it should work. And you can see
  5627. 3:33:16we only have Mishuga and Tulle. And
  5628. 3:33:18you're like, what what happened to the
  5629. 3:33:20third one? Well, there wasn't a third
  5630. 3:33:22venue. You can see we only have two
  5631. 3:33:24venues over here. And we have three
  5632. 3:33:26bands. So, unfortunately, Orbit Culture
  5633. 3:33:28is not playing an iconic menu. They will
  5634. 3:33:30in the future. They're going to grow
  5635. 3:33:31quite a bit as a band, but because it's
  5636. 3:33:34missing, uh, we have item one over here,
  5637. 3:33:37which is Mishuga. They are playing Red
  5638. 3:33:40Rock AIT, and that'd be an interesting
  5639. 3:33:41show. Then you have Tulle, and they're
  5640. 3:33:44going to play Madison Square Garden,
  5641. 3:33:46which I think they've played probably
  5642. 3:33:48multiple times. And unfortunately, Orbit
  5643. 3:33:50Culture does not have a venue assigned
  5644. 3:33:52because they're combining by position.
  5645. 3:33:54And that is no longer the case. And you
  5646. 3:33:56can see the output over here is two
  5647. 3:33:58particular items. And hopefully that
  5648. 3:34:00cleared up at least the basics of
  5649. 3:34:03merges. And as I've been saying multiple
  5650. 3:34:06times, if you want to watch another
  5651. 3:34:07video to talk about merges where it's
  5652. 3:34:09just only focused on merges and has like
  5653. 3:34:1120 examples, um, go check that out. But
  5654. 3:34:15I want to give you guys the examples for
  5655. 3:34:18this section.
  5656. 3:34:19So we're going to talk about these. So,
  5657. 3:34:23example problems and I actually we're
  5658. 3:34:25going to try to solve two of them
  5659. 3:34:27together. So, the first one and I'm just
  5660. 3:34:29going to copy this over from my notes.
  5661. 3:34:33So, what we're going to do is have a
  5662. 3:34:34form submission. We're going to look at
  5663. 3:34:36the form submission with an if node to
  5664. 3:34:38see if someone has budget and we could
  5665. 3:34:42say also have a switch based off of the
  5666. 3:34:45company size. we can build out some
  5667. 3:34:47score calculation and then it sends into
  5668. 3:34:50a CRM which obviously I haven't shown
  5669. 3:34:52you how to do the CRM yet so this step
  5670. 3:34:54will not exist score calculation we can
  5671. 3:34:58make something up if you want on that
  5672. 3:35:00side of things like hey we're just going
  5673. 3:35:01to sum things up honestly it does not
  5674. 3:35:04really matter but I want you to try
  5675. 3:35:06building this out and I'll just make
  5676. 3:35:08this note not available yet but this
  5677. 3:35:12would be an example of kind of a real
  5678. 3:35:14workflow that someone might want they
  5679. 3:35:15have a form, you know, we do some sort
  5680. 3:35:17of calculation based off of the form,
  5681. 3:35:19which, you know, real world, we might be
  5682. 3:35:21using a code node for this. Obviously,
  5683. 3:35:23we haven't currently covered the code
  5684. 3:35:24node, but really it's just to test out,
  5685. 3:35:26you know, the form submission, which
  5686. 3:35:27we've covered, the if node, and then
  5687. 3:35:29switch. So, honestly, if you just want
  5688. 3:35:31to do these three steps and stop there,
  5689. 3:35:34I'm perfectly okay with this. And I'll
  5690. 3:35:36just put over here like don't worry
  5691. 3:35:38about the rest. how we can always expand
  5692. 3:35:40on this later in the course, but feel
  5693. 3:35:42free to pause the video, try to solve
  5694. 3:35:44this, and then uh I'll give you the
  5695. 3:35:46solution. All right, I'm back. Let's
  5696. 3:35:48solve this. So, what we're going to do
  5697. 3:35:49is have a form submission and go in
  5698. 3:35:53form. We'll go into a trigger. And the
  5699. 3:35:56first thing we're going to want to do is
  5700. 3:35:57build out our two data points. So, uh
  5701. 3:36:00obviously, actually, we're going to
  5702. 3:36:01probably have three data points. So,
  5703. 3:36:02we're going to say, um consulting
  5704. 3:36:05services. consulting
  5705. 3:36:07services
  5706. 3:36:09and maybe we have three different form
  5707. 3:36:10elements. So first we would have like a
  5708. 3:36:12business name
  5709. 3:36:15or you could have like a contact name.
  5710. 3:36:17It it doesn't matter. We'll just assume
  5711. 3:36:18we don't need the contact name obviously
  5712. 3:36:20where we will um what is the business
  5713. 3:36:24name
  5714. 3:36:25and what we'll have next is our first
  5715. 3:36:28one over here is based off of the
  5716. 3:36:29budget. So let's set up our budget. So,
  5717. 3:36:32we're going to call this budget.
  5718. 3:36:35How much can you pay for AI services?
  5719. 3:36:42And then lastly, we'll do company size.
  5720. 3:36:47And obviously, based off the company
  5721. 3:36:49size, there might be see different data
  5722. 3:36:50governance rules. Um, companies with
  5723. 3:36:53larger amount of people typically pay a
  5724. 3:36:55little bit higher for services. Uh,
  5725. 3:36:57there's obviously more rules that you're
  5726. 3:36:58going to have to follow.
  5727. 3:37:00We're going to say how many
  5728. 3:37:02are in
  5729. 3:37:05make sure that both of these are going
  5730. 3:37:07to be numbers. So we'll go into numbers
  5731. 3:37:09like that and uh let's test this out. So
  5732. 3:37:14execute. What is the business name?
  5733. 3:37:15Great. So good to go on that side of
  5734. 3:37:18things. First thing what we're going to
  5735. 3:37:20do is build out an if. So we're going to
  5736. 3:37:22say if and maybe you have a specific
  5737. 3:37:26rule for what this budget should be. I'm
  5738. 3:37:28also just going to test this out one
  5739. 3:37:30more time and just fill out some blank
  5740. 3:37:32data. Uh we're going to say Ryan's SEO.
  5741. 3:37:37How much can you pay for AI services?
  5742. 3:37:40We'll say 1,200. Also, by the way, when
  5743. 3:37:43you're building out forms, you should be
  5744. 3:37:45explicit because someone might try to
  5745. 3:37:46put, you know, dollar sign over here.
  5746. 3:37:48Obviously, it's locked right now. I'm
  5747. 3:37:50trying to spam it and it's not working,
  5748. 3:37:51but just be explicit. And how many
  5749. 3:37:53people are in your company? We're going
  5750. 3:37:54to say one. And uh great, we have this
  5751. 3:37:58over here. I'm going to pin this data
  5752. 3:37:59just for testing. Next, we have our if
  5753. 3:38:02node. I'm going to zoom in a little bit
  5754. 3:38:03for you guys. First, we're going to take
  5755. 3:38:05a look at our budget. We're going to
  5756. 3:38:07say, is this budget, and it
  5757. 3:38:09automatically defaults for a number, and
  5758. 3:38:11we're going to say is greater than, and
  5759. 3:38:13maybe you don't want to take on
  5760. 3:38:14customers that are less than $1,000. Um,
  5761. 3:38:17so we'll put a,000. And typically, a lot
  5762. 3:38:19of people will put like round numbers
  5763. 3:38:20and things like that. So maybe you want
  5764. 3:38:22to change this to greater than or equal
  5765. 3:38:23to. And you'll see this goes into the
  5766. 3:38:25true branch. And maybe we don't want to
  5767. 3:38:27deal with anything that goes into the
  5768. 3:38:28false branch, right? And then next we'll
  5769. 3:38:31want to have some sort of switch. And
  5770. 3:38:34maybe we have a different template we
  5771. 3:38:36build out later on or, you know,
  5772. 3:38:38obviously this one is sending into the
  5773. 3:38:40CRM, which you know, maybe we label
  5774. 3:38:42based off of the company size. Again,
  5775. 3:38:43there's a lot of different things we
  5776. 3:38:44could think about why we're using the
  5777. 3:38:46switch based off of this company size,
  5778. 3:38:48but I just want you guys to have some
  5779. 3:38:50testing with it. So, we're going to say
  5780. 3:38:52value for company size. And we're going
  5781. 3:38:54to do this probably by um let's just do
  5782. 3:38:57it three times. So, we'll three over
  5783. 3:38:59here. So, drag in company size over
  5784. 3:39:01here. And we'll do company size. And
  5785. 3:39:04we'll do small, medium, large. So, we'll
  5786. 3:39:06go small, medium, large.
  5787. 3:39:10Call this small.
  5788. 3:39:13Call this medium.
  5789. 3:39:15Call this large. Maybe you want to call
  5790. 3:39:17this large company. Small company.
  5791. 3:39:20what is considered a small company? And
  5792. 3:39:24actually, let's think about this. Um,
  5793. 3:39:26maybe if it's less than 20 employees.
  5794. 3:39:30So, we're going to say 20 over here. And
  5795. 3:39:32instead of is equal to, we're going to
  5796. 3:39:33say less than or equal to. Okay. Then
  5797. 3:39:37let's say medium. Maybe that's under 99
  5798. 3:39:40employees. So, we'll go over here.
  5799. 3:39:42Number we, we'll say less than or equal
  5800. 3:39:45to 99. And then honestly instead of this
  5801. 3:39:48large, what we should do is probably
  5802. 3:39:51remove that. We're going to go over here
  5803. 3:39:53to add option. We'll fall back output
  5804. 3:39:55and think about it. Actually, we should
  5805. 3:39:58keep large. We'll have a fallback output
  5806. 3:40:00as well. And we'll still label this.
  5807. 3:40:03Just going to copy this expression in.
  5808. 3:40:08And then we're going to say
  5809. 3:40:10value number
  5810. 3:40:13is greater than 99.
  5811. 3:40:16Call this large and this is just in case
  5812. 3:40:18someone sends us in bad data. We won't
  5813. 3:40:19have our fallback over here. And uh
  5814. 3:40:23we'll say items will be sent to an extra
  5815. 3:40:25separate output. And um
  5816. 3:40:29I think we're going to be good. And then
  5817. 3:40:30we'll rename fallback output. Um we'll
  5818. 3:40:34say like missing
  5819. 3:40:36size doesn't matter too much. But now if
  5820. 3:40:41we execute this workflow, you can see
  5821. 3:40:43this populated into small. We go over
  5822. 3:40:46here and we change this. And this is
  5823. 3:40:47what we can do for CH testing. Let's say
  5824. 3:40:50we want to test these edge cases. We'll
  5825. 3:40:51put 100 over here. You can see now it
  5826. 3:40:55goes to large. We go over here and
  5827. 3:40:58change this out again. Sorry, I meant to
  5828. 3:41:01go to the form submission. We'll test
  5829. 3:41:03that and uh do now is 50. Save that.
  5830. 3:41:10And you'll see it goes to medium. We
  5831. 3:41:12could also go back over here and say,
  5832. 3:41:14"Hey, Brian's SEO, they have $200 a
  5833. 3:41:17month. Are we going to do any services
  5834. 3:41:19with them?" Nope. It goes into the false
  5835. 3:41:22branch. But now you know how if works in
  5836. 3:41:25a world scenario as well as switch.
  5837. 3:41:28Again, very basic on this side of
  5838. 3:41:30things. I just want to get your feet wet
  5839. 3:41:31with it. The next one we're going to do
  5840. 3:41:34is a little bit of cleaning up data.
  5841. 3:41:38So, let's just copy this note. and I
  5842. 3:41:41will go over here. Great. And let me
  5843. 3:41:45just copy that I have in my notes. All
  5844. 3:41:48right. So, a workflow that processes
  5845. 3:41:50contact list from multiple sources,
  5846. 3:41:52removes duplicates, and then creates a
  5847. 3:41:54clean master list. So, let's
  5848. 3:41:59go and build that out. How I want you to
  5849. 3:42:03build this out is first we're going to
  5850. 3:42:07take in two edit fields.
  5851. 3:42:12fields.
  5852. 3:42:13Then what we're going to do is expand
  5853. 3:42:16that out. Expand these out. And you can
  5854. 3:42:20think of this
  5855. 3:42:22edit twoit fields. And we're going to
  5856. 3:42:24actually just populate arrays. So
  5857. 3:42:25populate arrays. We're going to expand
  5858. 3:42:29both of these out.
  5859. 3:42:31Then we're going to append
  5860. 3:42:34in our merge.
  5861. 3:42:37And then we're going to remove
  5862. 3:42:38duplicates.
  5863. 3:42:41So, I want you to build out this
  5864. 3:42:42workflow. We'll build it out here in a
  5865. 3:42:44second. But again, pause the video. Try
  5866. 3:42:47this for yourself.
  5867. 3:42:49Obviously, our edit fields are going to
  5868. 3:42:51be a little bit different just based off
  5869. 3:42:53of what we want to populate in there,
  5870. 3:42:54but that's all right. All right, we're
  5871. 3:42:55back. Let's go and do that. I'm lazy.
  5872. 3:42:59Actually, I'm not going to copy it. I'm
  5873. 3:43:00just going to show you where edit fields
  5874. 3:43:01are. We're going to go over here and say
  5875. 3:43:04edit fields. We're going to do that
  5876. 3:43:06twice.
  5877. 3:43:08Why is that connected all the way over
  5878. 3:43:09here? Look at that connection. That is
  5879. 3:43:13should have been lazy and just copied
  5880. 3:43:15it. That's all right. Edit fields over
  5881. 3:43:17here. Edit fields. Right. We need to
  5882. 3:43:20expand these out. If you remember from a
  5883. 3:43:22little bit earlier, how do we do this?
  5884. 3:43:24Well, we go to split out. So, just copy
  5885. 3:43:27split out. So, we'll split out twice.
  5886. 3:43:32Great. So, we have one split out.
  5887. 3:43:35our second split out. Then we're going
  5888. 3:43:38to want to merge these together. So
  5889. 3:43:39we're gonna go into our merge like that.
  5890. 3:43:43Awesome. Let's remove that. And then
  5891. 3:43:45we're going to want to remove
  5892. 3:43:46duplicates.
  5893. 3:43:49All right. Remove items process previous
  5894. 3:43:52executions. No. Repeated with current
  5895. 3:43:53input. Yep. So we're going to have our
  5896. 3:43:55clean list. This will go right here.
  5897. 3:43:57This will go right here. And then let's
  5898. 3:43:59find where our manual trigger is because
  5899. 3:44:02we know it has some issues. And this is
  5900. 3:44:05going to be our workflow. Now, let's go
  5901. 3:44:07in over here and we'll say names.
  5902. 3:44:11Duh. We'll change that into an array.
  5903. 3:44:14And I'll just put Ryan
  5904. 3:44:21over here.
  5905. 3:44:23Let's go Nolan.
  5906. 3:44:26Over here, we'll do another name. I'll
  5907. 3:44:28put C.
  5908. 3:44:30Crucial.
  5909. 3:44:32that.
  5910. 3:44:33Great. And honestly, I'm just going to
  5911. 3:44:36copy this. We're going to actually
  5912. 3:44:37replace this because I want to have some
  5913. 3:44:38duplicates.
  5914. 3:44:41Great.
  5915. 3:44:43Then over here, we'll change Ryan to
  5916. 3:44:46Carlton.
  5917. 3:44:47Keep Nolan and we'll put Maddox over
  5918. 3:44:49here. Awesome. So, we have those. Let's
  5919. 3:44:53just test one of these edit fields. So,
  5920. 3:44:55that way we can just populate this for
  5921. 3:44:57here. We'll call this names. Just super
  5922. 3:44:59easy. Just execute this to make sure.
  5923. 3:45:01Great, that works. And obviously, like I
  5924. 3:45:04like testing out each node at a time.
  5925. 3:45:08Great. We have our output there. We're
  5926. 3:45:10going to merge these together. We're
  5927. 3:45:11going to pin that. That's fine. So, I'm
  5928. 3:45:14going to run this up into this remove
  5929. 3:45:15duplicates. Should have no issues. So,
  5930. 3:45:18you have six names. Great. I'm going to
  5931. 3:45:20pin this data just for testing purposes.
  5932. 3:45:22And then we go into remove duplicates.
  5933. 3:45:24And uh we're going to do is compare all
  5934. 3:45:27fields. That's fine. Uh we can specify
  5935. 3:45:30fields selected fields. Let's go over
  5936. 3:45:32here and choose names
  5937. 3:45:35and we have five and take a look at
  5938. 3:45:38that. So we remove the extra I want to
  5939. 3:45:41say there was an extra Ryan or extra
  5940. 3:45:43Nolan but we have Ryan Nolan Kershaw
  5941. 3:45:45Carlton and Maddox. That is two more
  5942. 3:45:49workflows that we built together. If any
  5943. 3:45:52of this did not make sense, I'd probably
  5944. 3:45:54just pause the video, go back into that
  5945. 3:45:56specific node because this video is
  5946. 3:45:59going to this video and honestly just
  5947. 3:46:01working with any and you're going to
  5948. 3:46:03expand out and um really use these in
  5949. 3:46:06workflows and if you don't understand
  5950. 3:46:07the basic fundamentals of these nodes,
  5951. 3:46:10you're going to struggle and I don't
  5952. 3:46:12want to sound rude, but it's super
  5953. 3:46:14important that you understand the
  5954. 3:46:16basics.
  5955. 3:46:17So yeah, those this is a longer section,
  5956. 3:46:21but to kind of recap, edit fields, we
  5957. 3:46:25can create data in there. Uh we use it
  5958. 3:46:27often when we're using spreadsheets and
  5959. 3:46:29we don't want all the specific fields or
  5960. 3:46:31we have other things going in over here.
  5961. 3:46:32We can manipulate the JSON as well. If
  5962. 3:46:36allows us to build out different
  5963. 3:46:38branches within our workflow, true,
  5964. 3:46:39false, super basic, switch, you have
  5965. 3:46:42multiple options associated with it. Uh
  5966. 3:46:44so you can think of a little bit kind of
  5967. 3:46:45a more advanced if nodes. You can see
  5968. 3:46:48for example I built out four. Filter
  5969. 3:46:50helps you clean up data. Limit is really
  5970. 3:46:52good for testing. Date and time allow
  5971. 3:46:54you to build out as it says date and
  5972. 3:46:57time. You can add in dates or additional
  5973. 3:47:00days or hours or whatever else. You can
  5974. 3:47:02remove it. You can format dates. You'll
  5975. 3:47:05use dates occasionally, but it's just
  5976. 3:47:07important to know where it's at. Remove
  5977. 3:47:08duplicates. Removes any duplicated data.
  5978. 3:47:11Some people don't want to have
  5979. 3:47:12duplicated data. split out. It
  5980. 3:47:15essentially takes an array and builds
  5981. 3:47:17out multiple items associated with it.
  5982. 3:47:19Aggregates the opposite. It takes
  5983. 3:47:21multiple items, turns that into an
  5984. 3:47:22array. Summarize allows us to do
  5985. 3:47:24calculations such as like what's the
  5986. 3:47:27average, what's the min, max, what's the
  5987. 3:47:29count. Um, and then also allows you to
  5988. 3:47:32aggregate, but has a lot more
  5989. 3:47:33functionality associated with it. Again,
  5990. 3:47:35I use summarize more than aggregate, my
  5991. 3:47:38personal opinion. Merge, we have a ton
  5992. 3:47:40of different options with merge. You can
  5993. 3:47:42append which essentially allows us to
  5994. 3:47:43stack data. You could combine by
  5995. 3:47:45position or you could combine by field.
  5996. 3:47:48If you combine by field, just know that
  5997. 3:47:50there's multiple types of joins. Most
  5998. 3:47:52popular one is just to keep only data
  5999. 3:47:54that matches together, which is your
  6000. 3:47:56inner join. You have the inverse as
  6001. 3:47:57well, which you can see things that
  6002. 3:47:58weren't matched. And you either use the
  6003. 3:48:00left or right join to see those sides.
  6004. 3:48:02Outer join shows you everything all
  6005. 3:48:05together. And then we went through two
  6006. 3:48:07of these different examples. So
  6007. 3:48:10hopefully that cleared up or I shouldn't
  6008. 3:48:13say clear up but hopefully you learned
  6009. 3:48:15the basics of these nodes. You know we
  6010. 3:48:17have one over one two three four five
  6011. 3:48:20six 7 8 9 10 in this section. Man that's
  6012. 3:48:24a lot but uh we still have quite a more
  6013. 3:48:26that we're going to go through. Our next
  6014. 3:48:28section actually is going to jump into
  6015. 3:48:30data tables native data tables here in
  6016. 3:48:32Nan. uh one of the gamechanging things
  6017. 3:48:34that the Nan team developed in 2012 2025
  6018. 3:48:38and uh we will take a look at that again
  6019. 3:48:42feel free to take a break because this
  6020. 3:48:44uh section was very long I don't expect
  6021. 3:48:47data tables to be as long as this but
  6022. 3:48:49yeah we'll definitely need to use it all
  6023. 3:48:51right see you in section number eight
  6024. 3:48:53all right so good job so far through the
  6025. 3:48:56course today we're going to be talking
  6026. 3:48:58about data tables and what are data
  6027. 3:49:01tables well you can think of this as
  6028. 3:49:03like a spreadsheet internal to any end.
  6029. 3:49:05So instead of having to call let's say
  6030. 3:49:09air table or call Google sheets, you can
  6031. 3:49:13have the data directly in any end and
  6032. 3:49:15you don't even need to import in a
  6033. 3:49:16Google Sheets file. So what we're going
  6034. 3:49:19to be doing is we're going to go over
  6035. 3:49:20how to access data tables. We're going
  6036. 3:49:22to create a few different data tables as
  6037. 3:49:23well and I believe we also have one or
  6038. 3:49:25two different small minor projects at
  6039. 3:49:27the end of this lesson. So let's not
  6040. 3:49:30waste any time and jump right into it.
  6041. 3:49:33Okay, so I'm over here in a new workflow
  6042. 3:49:37and but I want to jump back into our
  6043. 3:49:40overview tab because that is going to be
  6044. 3:49:43where the best place to access your data
  6045. 3:49:45tables are. So I'm just going to click
  6046. 3:49:47overview like that and we're going to
  6047. 3:49:49head over here. We're going to jump into
  6048. 3:49:52our fifth tab which is going to be data
  6049. 3:49:54tables. And what we're going to do is
  6050. 3:49:56we're going to create our first data
  6051. 3:49:58table together. And I'm just going to
  6052. 3:50:00click this create table over here. And
  6053. 3:50:04then what we want to do is enter in a
  6054. 3:50:06table name. You can either create
  6055. 3:50:08something from scratch or you could
  6056. 3:50:10import in a CSV file. And your CSV file
  6057. 3:50:13must contain a header row. Otherwise,
  6058. 3:50:15you need to define it. So I'm just going
  6059. 3:50:18to click from scratch. We'll also create
  6060. 3:50:20one from CSV here in a second. And I'm
  6061. 3:50:22going to say this is a running log. So
  6062. 3:50:25like what my different runs are. Feel
  6063. 3:50:28free to use whatever examples you want
  6064. 3:50:31and uh we're just going to generate this
  6065. 3:50:32over here. There's also nodes on how we
  6066. 3:50:34could generate it, but we're going to
  6067. 3:50:35start over here for running logs. I'm
  6068. 3:50:38also going to create one from a CSV here
  6069. 3:50:40in a second, but let's start off with
  6070. 3:50:42that. So, first thing you'll see is we
  6071. 3:50:44have a created app by default as well as
  6072. 3:50:47updated at. So, these are going to be
  6073. 3:50:51here originally. You also have an ID
  6074. 3:50:54which is your row number. Over here you
  6075. 3:50:57have an add row section. You also have
  6076. 3:51:00an add column section. You also have a
  6077. 3:51:03search over here too if you wanted to
  6078. 3:51:04search for specific data. Uh this plus
  6079. 3:51:08icon allows you to add in additional
  6080. 3:51:10columns. So row column, but you also
  6081. 3:51:13have these options over here. So what I
  6082. 3:51:16want to do is add in a column. And we're
  6083. 3:51:18going to go over here and say this is
  6084. 3:51:20miles. And you'll notice that we have
  6085. 3:51:22different types available to us. We
  6086. 3:51:24either have string, number, boolean, or
  6087. 3:51:27datetime. And I'm going to say miles is
  6088. 3:51:29that over here. And we're going to add a
  6089. 3:51:32column. And you'll see miles now is
  6090. 3:51:35populated over here. Now, let's say I
  6091. 3:51:38want to add in a date. So, what we're
  6092. 3:51:40going to do is add in run dates. And we
  6093. 3:51:45can go over here and choose our daytime.
  6094. 3:51:48So, we have now created miles, right?
  6095. 3:51:52How many miles I ran, what day of the
  6096. 3:51:54run. Now, let's add in another column
  6097. 3:51:57and we're going to say difficulty or
  6098. 3:51:59let's say um is it a difficulty? We're
  6099. 3:52:02going to go and say location, whether
  6100. 3:52:04it's like a a trail or a road or
  6101. 3:52:07mountain, whatever the case may be.
  6102. 3:52:09There's no mountains in Florida, by the
  6103. 3:52:10way. Uh we're going to go over here and
  6104. 3:52:12add column.
  6105. 3:52:14And then lastly, what we're going to do
  6106. 3:52:16is a boolean. And we can say like, I
  6107. 3:52:20don't know, spelt difficult.
  6108. 3:52:26And uh you know what? Actually, what
  6109. 3:52:28we're going to do, I'm going to change
  6110. 3:52:29our location. I'm going to delete this
  6111. 3:52:31column. And why I want to show you that
  6112. 3:52:33is so we can delete stuff here as well.
  6113. 3:52:35So I'm actually going to delete that.
  6114. 3:52:37And I'm thinking about, you know what,
  6115. 3:52:39we should have a boolean instead of
  6116. 3:52:42roadr run.
  6117. 3:52:45And this is either true or false, right?
  6118. 3:52:46You ran on the road or you ran on the
  6119. 3:52:49trail. So, we're going to say this is a
  6120. 3:52:51road run. And then lastly, we need to
  6121. 3:52:54have a string. And then we're just going
  6122. 3:52:56to say run notes.
  6123. 3:52:59And you know what? Actually, I want to
  6124. 3:53:01change run notes. I want to go over here
  6125. 3:53:04and go and rename this column and say
  6126. 3:53:06runner notes. And obviously I'm making
  6127. 3:53:09these mistakes on purpose or changes on
  6128. 3:53:11purpose just to show you that we can
  6129. 3:53:13delete. We can change the name. We can
  6130. 3:53:17also change the order like hey you know
  6131. 3:53:19what I want runner notes before road
  6132. 3:53:20runner. I want this before the run date.
  6133. 3:53:23Or actually you know what I want run
  6134. 3:53:24date first then miles runner notes road
  6135. 3:53:26run. And you can change all these as you
  6136. 3:53:29want. Again you can add in a column over
  6137. 3:53:30here if you wanted to or you could just
  6138. 3:53:32um click on that side of things. There's
  6139. 3:53:35also filters and things like that. and
  6140. 3:53:37we'll we'll cover that here in a second.
  6141. 3:53:39But yeah, let's jump into adding our
  6142. 3:53:42first thing. So, we're going to add in
  6143. 3:53:44today's run. And this is 1227
  6144. 3:53:47miles. I did 30 miles. Uh road run is
  6145. 3:53:51false because that
  6146. 3:53:55over here like that. Yeah, it was old
  6147. 3:53:57trail running. Uh runner notes and we'll
  6148. 3:54:01just say felt felt pretty good overall.
  6149. 3:54:07roll tested newer shoes
  6150. 3:54:12on the trail. A bit dehydrated, which is
  6151. 3:54:15true because I'm kind of a little tired
  6152. 3:54:17right now. Hydrated. And I probably
  6153. 3:54:19misspelled dehydrated.
  6154. 3:54:21That was terrible spelling. That's fine.
  6155. 3:54:24And you can see created at it says
  6156. 3:54:2612:27. We have a time stamp over here.
  6157. 3:54:28So, it is 6:21. And you can see that
  6158. 3:54:32it's built over here at 6:20. And then
  6159. 3:54:34updated at as well. You can see it's uh
  6160. 3:54:372056 which is essentially 621. And you
  6161. 3:54:40know we can change these if we want.
  6162. 3:54:42There's nothing telling us we have to
  6163. 3:54:44put this in general supposed to do 31
  6164. 3:54:46miles today but there is was on the
  6165. 3:54:48trail and you know what 31 miles now?
  6166. 3:54:50No. You know what I want to go back over
  6167. 3:54:52here and make it 30. Again you have the
  6168. 3:54:55options to change that as you want. And
  6169. 3:54:57you can also see I can change the time.
  6170. 3:54:59Well, you know I started running this
  6171. 3:55:00morning at 6:00 a.m. And uh we can put
  6172. 3:55:03that over here. So you can see now it's
  6173. 3:55:05at six. Well, actually, you know what?
  6174. 3:55:08It's not at six. We started at 610. So,
  6175. 3:55:11what we're going to do is click okay.
  6176. 3:55:14And we're going to change that over here
  6177. 3:55:16to 610.
  6178. 3:55:18Boom. We have that over here. Obviously,
  6179. 3:55:21there's more fields that I'd put in a
  6180. 3:55:23run tracker or not. And you can keep
  6181. 3:55:25expanding that out. Another time earlier
  6182. 3:55:28this week I I ran on I took a break the
  6183. 3:55:32last two days but I did run on Wednesday
  6184. 3:55:36and on that day I ran specifically what
  6185. 3:55:39did I run eight miles want to say and
  6186. 3:55:42that was a road run so we're going to
  6187. 3:55:44put over here and uh kind of felt really
  6188. 3:55:47tired felt tired and it was a speed day
  6189. 3:55:51I don't like doing speed work but you
  6190. 3:55:53can see we we changed this up as well
  6191. 3:55:55when this created at time is different.
  6192. 3:55:58Updated at is different. You know what?
  6193. 3:56:00I change this over here. Updated ad is
  6194. 3:56:03going to change as well. Cool. So, next
  6195. 3:56:06what we can do is add in different types
  6196. 3:56:08of filters and take a look at it from
  6197. 3:56:09that perspective. So, if I wanted to go
  6198. 3:56:12over here and hey, you know what? I only
  6199. 3:56:13want to take a look at things that were
  6200. 3:56:15not uh road runs. I can go over here,
  6201. 3:56:18false. You know what? I want to actually
  6202. 3:56:20show anything that was at a road run.
  6203. 3:56:22That is true. You know what? I want to
  6204. 3:56:24just remove the filter. it goes to both
  6205. 3:56:26U. And these are going to always be
  6206. 3:56:28different because you can see like this
  6207. 3:56:30is a boolean miles over here. We can
  6208. 3:56:33choose our different options. These
  6209. 3:56:35options are going to be very similar to
  6210. 3:56:36what we've already covered with our if
  6211. 3:56:39node or our filter node. You can see we
  6212. 3:56:41have equals, does not equal, less than,
  6213. 3:56:42greater than, greater than, greater than
  6214. 3:56:44equal to, between, is null. And maybe I
  6215. 3:56:47want to see anything that's like larger
  6216. 3:56:48than a marathon. So I say like 26.2.
  6217. 3:56:52Um actually it should be just greater
  6218. 3:56:54than so greater than 22 over there or
  6219. 3:56:58you know what I want to see between
  6220. 3:57:00anything 26.2 to 100 miles 100 miles is
  6221. 3:57:04a very common ultra and you can see we
  6222. 3:57:06saw that one over there. So you know
  6223. 3:57:07what I want to find things that are less
  6224. 3:57:09than a marathon 8 miles over here. All
  6225. 3:57:12right so again those are some of the
  6226. 3:57:14different options over here and uh yeah
  6227. 3:57:16so we also have this option for dates.
  6228. 3:57:19You can see we have equals, is not
  6229. 3:57:20equal, less than, less than, equal,
  6230. 3:57:22greater than, greater than equal to,
  6231. 3:57:23between, is null, is not null. We have
  6232. 3:57:26our runner notes which we can filter. So
  6233. 3:57:28you have something that contains and
  6234. 3:57:30maybe want to search for things that are
  6235. 3:57:31tired. Also, let me remove this filter.
  6236. 3:57:35And I don't know why this filter
  6237. 3:57:38is not working. There we go. Reset. You
  6238. 3:57:42would think it would be easier just to
  6239. 3:57:43click on and off, but let's say I want
  6240. 3:57:45to filter for anything that says tired.
  6241. 3:57:47So I'm just going to go search tired
  6242. 3:57:49over here. And you see tired shows. I am
  6243. 3:57:52curious if it is case sensitive or not.
  6244. 3:57:55It is not case sensitive which is great.
  6245. 3:57:57But that's contained. You have equals.
  6246. 3:57:59Obviously the full thing needs a match.
  6247. 3:58:00Does not equal is empty not empty not
  6248. 3:58:02old. And then you have other things for
  6249. 3:58:05when a no specific row is created
  6250. 3:58:08or last updated at. Okay. I'm going to
  6251. 3:58:11reset this over here. You get the gist
  6252. 3:58:13of essentially how this works. uh
  6253. 3:58:16directly in this view. However, we can
  6254. 3:58:19do a lot of modifications as well uh
  6255. 3:58:21directly within any end. I also just
  6256. 3:58:23want to show you really fast uploading a
  6257. 3:58:25CSV file because that is something that
  6258. 3:58:27has been recently added to data tables.
  6259. 3:58:29People have requested it. So, I'm going
  6260. 3:58:32to find a CSV file really fast and then
  6261. 3:58:35uh we're going to upload that. Actually,
  6262. 3:58:37I won't even need to find one or create
  6263. 3:58:39a new uh CSV file because if you click
  6264. 3:58:42these three dots, I forgot to show you.
  6265. 3:58:44We can rename uh we can just change this
  6266. 3:58:46first to runner logs. Okay. Then what we
  6267. 3:58:50can do over here is delete, which I'm
  6268. 3:58:51not going to delete this yet, but I'm
  6269. 3:58:53going to download the CSV first. So you
  6270. 3:58:54can see we have runner logs.csv.
  6271. 3:58:56And I'm going to delete this over here.
  6272. 3:58:59Delete. Now we go to data tables. I'm
  6273. 3:59:01going to say create new data table.
  6274. 3:59:02Import CSV. And I'm going to grab my
  6275. 3:59:05runner logs. Then I'm just going to drag
  6276. 3:59:07that in over here. My CSV contains a
  6277. 3:59:09header row, which I assume it does. Uh
  6278. 3:59:12uh.
  6279. 3:59:15Oh, I need to put in a name. I was like
  6280. 3:59:17I would have thought it would have just
  6281. 3:59:18kept the exact name. That's all right.
  6282. 3:59:20We're going to create this over here.
  6283. 3:59:22Log CSV been uploaded. We found seven
  6284. 3:59:24columns and two rows. Column name, which
  6285. 3:59:28is interesting.
  6286. 3:59:31You can't use the default ones if you
  6287. 3:59:33just download this one over here. So,
  6288. 3:59:39and you can't
  6289. 3:59:42I guess you also can't just change this
  6290. 3:59:45as well. I'm just going to call these
  6291. 3:59:47ID2 and things like that. Yeah, this is
  6292. 3:59:49my first time literally looking at the
  6293. 3:59:51new updates over here.
  6294. 3:59:54Um, all right. So,
  6295. 3:59:57cool. So, I'm just going to say this is
  6296. 3:59:58created at two and then ID2.
  6297. 4:00:02I wish if you had the same column names
  6298. 4:00:04like for ID and then updated at and
  6299. 4:00:07created at it would just automatically
  6300. 4:00:09populate those. So like that should be
  6301. 4:00:12edited and maybe it will in the future.
  6302. 4:00:14All right, so we have all those. I'm
  6303. 4:00:15just going to create this really fast
  6304. 4:00:17and then you can see we have these over
  6305. 4:00:19here. I would just recommend you delete
  6306. 4:00:21this ID2
  6307. 4:00:23for putting that in. And then you have
  6308. 4:00:25these created and updated out. And
  6309. 4:00:27obviously you can't modify these
  6310. 4:00:30but yeah. So these unfortunately are
  6311. 4:00:33going to have to go as well. So you
  6312. 4:00:35won't see exactly when these were
  6313. 4:00:37created at or updated at, which is a
  6314. 4:00:39bummer. You can't upload that within a
  6315. 4:00:41CSV, but we essentially have the same
  6316. 4:00:43runner log that we had before. All
  6317. 4:00:46right, so now let's talk about the nodes
  6318. 4:00:49here in any. Hopefully that cleared up
  6319. 4:00:51any confusion. Again, you can add row,
  6320. 4:00:53add column, created is when you add in
  6321. 4:00:55that row, updated as last modification.
  6322. 4:00:58You can move these around. Make sure to
  6323. 4:01:00get your data type correct because you
  6324. 4:01:02cannot change it. You can change the
  6325. 4:01:04column name and you can also delete a
  6326. 4:01:06column as necessary. Uh multiple
  6327. 4:01:09options. Add a column here, add column
  6328. 4:01:12there, add a row here, add rows. All
  6329. 4:01:14right. So now let's talk about data
  6330. 4:01:16tables in general. And uh what we'll see
  6331. 4:01:19is we have data table and it's a
  6332. 4:01:20recommended node. Uh so what we're going
  6333. 4:01:23to do is take a look at our data table
  6334. 4:01:26and we have delete rows, get rows, if
  6335. 4:01:28row exists, if row does not exist,
  6336. 4:01:29insert row, update rows, and upsert
  6337. 4:01:32rows. Now I am going to say I believe
  6338. 4:01:35here in the future and I I saw a note
  6339. 4:01:37from the Nan team that there's going to
  6340. 4:01:40be like a a create data table option as
  6341. 4:01:43part of the node. I could be wrong, but
  6342. 4:01:45I believe I did see that they were going
  6343. 4:01:48to populate that soon. So depending when
  6344. 4:01:51you're watching this video that should
  6345. 4:01:53be out. Um we're just going to go and
  6346. 4:01:56take a look at some of these options. I
  6347. 4:01:58guess we can't Oh, let me go to
  6348. 4:02:00operations. Yeah. So we have all the
  6349. 4:02:02different stuff over here. Let's just go
  6350. 4:02:04into these. So first thing
  6351. 4:02:07you have is resource. This one's just
  6352. 4:02:09based off of rows over here. There's no
  6353. 4:02:11option yet to update columns, which I
  6354. 4:02:14would think that there's going to be a
  6355. 4:02:16node option for that in the future, but
  6356. 4:02:17you can see rows, row, row, row. Um,
  6357. 4:02:20they obviously put this in here, so you
  6358. 4:02:22could have columns here in the future.
  6359. 4:02:23Again, I I don't know the full in
  6360. 4:02:25development, but I would assume it's
  6361. 4:02:27going to come at some time in the
  6362. 4:02:29future. This one will delete a specific
  6363. 4:02:31row. You could get rows if a row exists,
  6364. 4:02:34match input items that are in data
  6365. 4:02:35table, match input items that are not in
  6366. 4:02:37the data table, insert a new row,
  6367. 4:02:39update, upsert as well. So, let me just
  6368. 4:02:42show you a few of these really fast. So,
  6369. 4:02:44what we can do is get row um you have to
  6370. 4:02:47find your data table. So, you just go
  6371. 4:02:49over here and search for your table. If
  6372. 4:02:51you're not sure what the table looks
  6373. 4:02:52like, you see this icon? This actually
  6374. 4:02:54opens up your data table here into the
  6375. 4:02:56side. And now we have that populated
  6376. 4:02:58over there. So, I'm just going to do
  6377. 4:02:59runner logs. Uh what we're going to do
  6378. 4:03:01is match any condition, but you can also
  6379. 4:03:03match all conditions. I don't have any
  6380. 4:03:06filters over here. I'll show you some
  6381. 4:03:07filters in a second. You can also return
  6382. 4:03:09all the data or you could limit it based
  6383. 4:03:11off the results. And why they have that
  6384. 4:03:13is any end tends to lag if you have a
  6385. 4:03:16ton of data. Data tables can be pretty
  6386. 4:03:18large. Obviously, I only put two rows in
  6387. 4:03:21there. So, you'll see if I execute this,
  6388. 4:03:22we have all this information. But, you
  6389. 4:03:24know what? Maybe I just want to limit
  6390. 4:03:26this to one row. And you see now we only
  6391. 4:03:28have one row. It says limit is not.
  6392. 4:03:30There may be more items returned. Tweak
  6393. 4:03:32the return all. I'm just going to return
  6394. 4:03:34all. But now what we're going to do is
  6395. 4:03:35match a condition. And what we're going
  6396. 4:03:37to do is take a look at miles. And we're
  6397. 4:03:40going to say if miles equals 30. So let
  6398. 4:03:43me want to just find all the runs that
  6399. 4:03:44are 30 miles. And boom, we have this
  6400. 4:03:47over here. And you can see that this is
  6401. 4:03:49defined as a zero. If we go back into
  6402. 4:03:52our data table. Oh, you know what? This
  6403. 4:03:54actually didn't pick up the boolean
  6404. 4:03:56value. If you take a look at this
  6405. 4:03:58earlier, we had this as
  6406. 4:04:01boolean and let's say road running and
  6407. 4:04:08we'll just go back over here and make
  6408. 4:04:09this a boolean column. That's another
  6409. 4:04:12thing I did not even notice. Um, that's
  6410. 4:04:15interesting.
  6411. 4:04:17All right, we're just going to delete
  6412. 4:04:19that over here. So, another thing to
  6413. 4:04:22mention if you are working on this
  6414. 4:04:27sure to change your booleans because it
  6415. 4:04:29might not always be correct. Going back
  6416. 4:04:31over here, I'm just going to execute the
  6417. 4:04:33step again. And you can see this is
  6418. 4:04:35turned into false. That is interesting.
  6419. 4:04:37I feel like that's another bug. Um,
  6420. 4:04:39obviously the software just pro or not
  6421. 4:04:42software, but the team has made some
  6422. 4:04:43changes. So maybe that was something
  6423. 4:04:45they didn't address. But regardless, you
  6424. 4:04:48can see now it is false. Over here I can
  6425. 4:04:50change our different conditions. We can
  6426. 4:04:52go to another column. Let's go into road
  6427. 4:04:54running.
  6428. 4:04:56as a boolean and you can see is true. I
  6429. 4:04:58just want to show whatever is a road run
  6430. 4:05:00and you can see that is true. Obviously
  6431. 4:05:02there's more things we can take a look
  6432. 4:05:03at if we really wanted to. Uh and this
  6433. 4:05:06could be way longer. Obviously you can
  6434. 4:05:07delete a row which would just completely
  6435. 4:05:09get rid of it from our data table. I
  6436. 4:05:11don't want to do that because I already
  6437. 4:05:12spent enough time building that out and
  6438. 4:05:15you can insert a new row. So let me just
  6439. 4:05:17show you how to insert this in really
  6440. 4:05:18fast. Let's say I am going to run
  6441. 4:05:21another thing over here. I actually ran
  6442. 4:05:24a half marathon though half in Orlando.
  6443. 4:05:27So I will say that half marathon's
  6444. 4:05:30nothing by the way. That's only 13 miles
  6445. 4:05:32and that is a road running runner notes.
  6446. 4:05:36Felt great. Didn't really feel great. I
  6447. 4:05:38kind of cramped a little bit but I put
  6448. 4:05:41that over here. You can see this has
  6449. 4:05:43been updated the 13th. We have a time
  6450. 4:05:45which I could put in the exact time if I
  6451. 4:05:47really wanted to. But now if I go and
  6452. 4:05:49get rows, you can see this is now
  6453. 4:05:53populated in over there, which is
  6454. 4:05:55awesome. And you know, we can sort these
  6455. 4:05:57results as well. And I wanted to cover
  6456. 4:06:01this node in this area. So let's say you
  6457. 4:06:05have a a spreadsheet and you want to
  6458. 4:06:06sort these. You can go over here to sort
  6459. 4:06:09and changes the the order of items. So
  6460. 4:06:12we have three items, which is the each
  6461. 4:06:14row is a specific item in a spreadsheet.
  6462. 4:06:17And I want to sort these now by run
  6463. 4:06:21date. So I go over here to sort and I'm
  6464. 4:06:24going to do a simple sort. There's other
  6465. 4:06:25options as well. You could sort by code.
  6466. 4:06:27You could sort random also by code. I
  6467. 4:06:29believe it's only JavaScript now. Yeah,
  6468. 4:06:31they need to put Python in here. Um
  6469. 4:06:34JavaScript, but we'll do a simple sort.
  6470. 4:06:37Add fields of sort by. We're going to go
  6471. 4:06:39and grab our run date. And we're going
  6472. 4:06:40to put this in ascending order which is
  6473. 4:06:42A to Z or earliest or smallest number to
  6474. 4:06:45largest in this case like earliest date.
  6475. 4:06:49And you'll see that has changed uh 1213.
  6476. 4:06:531224. You know what? I don't want to do
  6477. 4:06:55run date. I want to take a look at
  6478. 4:06:57miles. Do this in ascending order. You
  6479. 4:06:59can see it goes from small to large. You
  6480. 4:07:00know what? I want descending order. You
  6481. 4:07:02can see it goes from 30 into eight.
  6482. 4:07:05Again, we can change this as well for
  6483. 4:07:08other things, but I think it's pretty
  6484. 4:07:10self-explanatory. There you have other
  6485. 4:07:12options over here. Disablenotation, but
  6486. 4:07:14that's really it. And you can sort by
  6487. 4:07:16multiple fields if there is things that
  6488. 4:07:18are tied. So, typically if there's a
  6489. 4:07:21tiebreaker, you'll want to have a
  6490. 4:07:22secondary sort. Very, very common in the
  6491. 4:07:25real world. I can tell you that because
  6492. 4:07:27I pull a lot of data from SQL databases
  6493. 4:07:29and there's a lot of sorting. You can
  6494. 4:07:30sort by random as well. Um, this can
  6495. 4:07:33randomly generate your data. So you can
  6496. 4:07:34see it's changing every time that I run
  6497. 4:07:36it. So if you need to have any sort of
  6498. 4:07:39randomization, maybe you want to go with
  6499. 4:07:40this approach. Although the one downside
  6500. 4:07:43is this is not replicatable. You just
  6501. 4:07:46don't have that specific seed number if
  6502. 4:07:48you want to get it randomized. But yeah,
  6503. 4:07:51that is essentially a sort. I just
  6504. 4:07:53wanted to throw this in over here really
  6505. 4:07:54fast. This was something I was going to
  6506. 4:07:56throw within the data tables or like
  6507. 4:07:58Google Sheets, but I felt like it was
  6508. 4:08:00pretty applicable. Now, so again,
  6509. 4:08:03go into data tables and create a table.
  6510. 4:08:06In the future, the end team is going to
  6511. 4:08:07be building this into a native node. Um,
  6512. 4:08:10I thought it was going to be out by now,
  6513. 4:08:12but it's not. And you can create a table
  6514. 4:08:14from there. You can also create a table
  6515. 4:08:17from scratch or you could upload a CSV,
  6516. 4:08:19although it seems like the CSV
  6517. 4:08:21functionality is down just a little bit.
  6518. 4:08:23Again, it's a small bug. Uh, data table
  6519. 4:08:25node over here is based off of rows.
  6520. 4:08:28Right now you can get rows, delete rows,
  6521. 4:08:30update rows as well, upsert and
  6522. 4:08:32different things like that. You have
  6523. 4:08:34options to return everything or limit
  6524. 4:08:36it. So that way uh your N instance
  6525. 4:08:38doesn't bug out if you have a ton of
  6526. 4:08:40data. And that essentially is data
  6527. 4:08:44tables. I want to jump into our projects
  6528. 4:08:46now for this section. Obviously, we we
  6529. 4:08:49don't have a ton going on on the node
  6530. 4:08:51side of things. obviously give you guys
  6531. 4:08:54the spreadsheet that I used, but let's
  6532. 4:08:58talk about two projects. And what we'll
  6533. 4:09:01do first is add in project number one.
  6534. 4:09:05I'm just going to grab this from my
  6535. 4:09:06notes, which is on our second screen.
  6536. 4:09:08Great. So, this project today, what
  6537. 4:09:10we're going to take a look at is a
  6538. 4:09:12birthday emailer. So, imagine you have a
  6539. 4:09:14a schedule that takes a look at your
  6540. 4:09:16table on like a daily basis or runs the
  6541. 4:09:19operation on a daily basis. you filter
  6542. 4:09:21for today's birthday. And I say send a
  6543. 4:09:24personalized email. Obviously, I haven't
  6544. 4:09:25shown you guys how to send a personal
  6545. 4:09:27email yet. So, we could ignore that
  6546. 4:09:29section. Although, if you want to try
  6547. 4:09:31doing it, awesome. And this is pretty
  6548. 4:09:33basic. So, spend a few minutes, try to
  6549. 4:09:36see if you could do that. Try to throw
  6550. 4:09:37also a different trigger just to start
  6551. 4:09:38this workflow for you guys. And uh yeah,
  6552. 4:09:42pause the video. Three, two, one, and
  6553. 4:09:45let's take a look at it. All right, I'm
  6554. 4:09:47back. Let's build this out. So, first
  6555. 4:09:49what we should do is create a new data
  6556. 4:09:51table. And what we're going to do is
  6557. 4:09:53call this birthday.
  6558. 4:09:56And we'll create this. And we're just
  6559. 4:09:58going to go and add a column. And we're
  6560. 4:10:01going to say this is birthday. And it's
  6561. 4:10:03going to be specifically a datetime over
  6562. 4:10:06here. Awesome. And what we're going to
  6563. 4:10:10do first is also create another name.
  6564. 4:10:13And we're say like employee name.
  6565. 4:10:16And oh that's another thing I forgot to
  6566. 4:10:18bring in this video. You can't have
  6567. 4:10:19spaces. You can see it says invalid
  6568. 4:10:21column name. So if you want to have
  6569. 4:10:24space essentially do an underscore. So
  6570. 4:10:26we'll say like employee name. Obviously
  6571. 4:10:28there's database principles associated
  6572. 4:10:29with this in database. You should not
  6573. 4:10:31have a space in your column name. All
  6574. 4:10:33right. So we're going to go over here.
  6575. 4:10:34We're going to say someone has a
  6576. 4:10:36birthday of today.
  6577. 4:10:38Employee name. Um I I click cards. So,
  6578. 4:10:42the first card that I have over here
  6579. 4:10:44just to show you like from 1986 Fleer.
  6580. 4:10:47Um, put his name in over here. Danny.
  6581. 4:10:49So, see Danny
  6582. 4:10:52Sanjay. I completely butchered that. I
  6583. 4:10:55clicked mostly baseball cards, not
  6584. 4:10:58basketball, but that was on my stack.
  6585. 4:11:01Cool. So, we have that over here. And
  6586. 4:11:04then we'll create another row over here.
  6587. 4:11:06Let's grab a baseball card. This is
  6588. 4:11:09Derek Jeter. We'll throw Derek Jeter in
  6589. 4:11:11over here. Obviously, I could look up
  6590. 4:11:13their birthdays or just grab it from the
  6591. 4:11:15back of the card, but I'm not going to
  6592. 4:11:17do that. We're gonna say Derek Jeter has
  6593. 4:11:19a birthday of And we're just going to go
  6594. 4:11:23Oh, sorry. And obviously, I'm looking at
  6595. 4:11:262025. I should put actual days over
  6596. 4:11:31here, but it does not matter.
  6597. 4:11:34I mean, it does matter, but we're just
  6598. 4:11:36going to literally filter by month and
  6599. 4:11:38day. Cool. So we have both of those over
  6600. 4:11:40here. I think this is fine and let's
  6601. 4:11:43jump into it. So first thing we want to
  6602. 4:11:45do is go over here. We're going to look
  6603. 4:11:47for a trigger. So let's go into our
  6604. 4:11:50triggers. So we should go over here and
  6605. 4:11:52then we say on a schedule. So we have
  6606. 4:11:55this. The first thing we need to do is
  6607. 4:11:57take a look at a trigger interval. We'll
  6608. 4:12:01say this runs at every day. We could
  6609. 4:12:03choose a specific hour. Let's say this
  6610. 4:12:06runs every day at like 8 a.m. or 9:00
  6611. 4:12:08a.m. when a workplace starts. A little
  6612. 4:12:11bit on my view because of the mic, but
  6613. 4:12:13that's okay. Then what we're going to do
  6614. 4:12:15is get rows. So we'll go into our data
  6615. 4:12:18table, data table, and what we're going
  6616. 4:12:21to do is get rows. I first want to just
  6617. 4:12:24make sure that we can pull all of our
  6618. 4:12:25data. So I'm just going to go into
  6619. 4:12:27birthday. And we're going to execute
  6620. 4:12:28this step. And you can see now that
  6621. 4:12:32specifically works. And let's we might
  6622. 4:12:35actually have to pull the data over here
  6623. 4:12:36and add in another filter into the next
  6624. 4:12:39node, but I'm just going to double
  6625. 4:12:41check. So, we can add in a condition.
  6626. 4:12:43We're going to look at birthday over
  6627. 4:12:44here. And yeah, so we can say it's equal
  6628. 4:12:48to something.
  6629. 4:12:50Um, wonder if we can actually make an
  6630. 4:12:52expression,
  6631. 4:12:54but we might be able to make an
  6632. 4:12:56expression. I'm going to actually pause
  6633. 4:12:58the video and show you really fast how
  6634. 4:13:00we could do this.
  6635. 4:13:02All right, I'm back. Here is the other
  6636. 4:13:05part of the solution. So, I tried to get
  6637. 4:13:07this working down in the conditions.
  6638. 4:13:09Since it's a little bit more
  6639. 4:13:10complicated, I decided, hey, let's pull
  6640. 4:13:13all of our data over here and let's
  6641. 4:13:15actually use a node after to filter. I'm
  6642. 4:13:17not ashamed of that. Next thing, what I
  6643. 4:13:20did is I essentially was trying to grab
  6644. 4:13:22an expression uh to just grab the month
  6645. 4:13:25and date. Here's the deal with it. I'm
  6646. 4:13:28not going to memorize all the different
  6647. 4:13:30patterns for month and date and time and
  6648. 4:13:35all this stuff. LMS are pretty good at
  6649. 4:13:37this if you want to prompt it. So you
  6650. 4:13:40can see what it did is it said datetime
  6651. 4:13:41from JSON. To format month month day day
  6652. 4:13:46from the daytime now to format month
  6653. 4:13:48month day. probably could have easily
  6654. 4:13:49figured this out over here as well as
  6655. 4:13:51this if I put a little bit more effort
  6656. 4:13:53into it, but and I'll show you also what
  6657. 4:13:55I prompted, but you can see kept the one
  6658. 4:13:57item. So, we kept the birthday over here
  6659. 4:13:59that I said was 12:27. It does have that
  6660. 4:14:01time stamp, but you know what? It still
  6661. 4:14:03matched specifically what today is. And
  6662. 4:14:07uh yeah, we can send a personalized
  6663. 4:14:08message after. And you know, we could
  6664. 4:14:12actually build that out with an AI
  6665. 4:14:13agent. Obviously, you guys know a little
  6666. 4:14:16bit of the basics. And what I'll do is
  6667. 4:14:18put this over here. We'll add in a chat
  6668. 4:14:21model. We'll go in here and add in what
  6669. 4:14:24are we going to add? We'll add in tropic
  6670. 4:14:26for this one. Great. And then all I'm
  6671. 4:14:28going to say is go here and say write a
  6672. 4:14:34unique
  6673. 4:14:36birthday
  6674. 4:14:40message
  6675. 4:14:42for our employee. Let's pretend these
  6676. 4:14:45are employees. And we'll put over here
  6677. 4:14:49his birthday is his birthday
  6678. 4:14:52is and we'll go over here json.now
  6679. 4:14:58not JSON.now sorry it's uh we're going
  6680. 4:15:01back over not this one it is
  6681. 4:15:04datetime.now
  6682. 4:15:06see I make mistakes as well
  6683. 4:15:10datetime.now Now good. Great. So we have
  6684. 4:15:14this information. Let's write this. You
  6685. 4:15:18know what? This is probably going to be
  6686. 4:15:19a little bit weird because it might
  6687. 4:15:20think it's birthday is 2025
  6688. 4:15:23is the month month day. It's the month
  6689. 4:15:28and day from that's a little bit better.
  6690. 4:15:31We haven't obviously talked about
  6691. 4:15:32prompts and this is a pretty bad prompt.
  6692. 4:15:35But let's write this and uh we'll get
  6693. 4:15:37the birthday message as well based on
  6694. 4:15:39the date. Here you go. Happy birthday
  6695. 4:15:42Danny. Wishing you a fantastic December
  6696. 4:15:4323rd. Hope your day is special joy,
  6697. 4:15:45relaxation, all your favorite things.
  6698. 4:15:47And it's sounds straight up from HR. And
  6699. 4:15:50here you go. Your team company name.
  6700. 4:15:52Cool. So, we're able to build this out
  6701. 4:15:54the nuance um based off the filtering of
  6702. 4:15:57the dates. I just found it easier to
  6703. 4:15:58throw this in the filter side of it. And
  6704. 4:16:01again, just to show you how I prompted
  6705. 4:16:03this, which I don't believe I showed it
  6706. 4:16:05to you. If I did, I I apologize. I said,
  6707. 4:16:07"And can you write me an expression? I
  6708. 4:16:09want to have it grab the birthday
  6709. 4:16:10matches this." So, I initially sent in
  6710. 4:16:12this screenshot. Obviously, that didn't
  6711. 4:16:14work. So, I continue to prompt it. And
  6712. 4:16:16then I sent what this looked like based
  6713. 4:16:19off of the the code that they gave us
  6714. 4:16:21for each of these across the board
  6715. 4:16:23showing that the time stamp over here.
  6716. 4:16:25And this also had a different result.
  6717. 4:16:28And then it gave me both of those. and
  6718. 4:16:30uh should give you that which is 100%
  6719. 4:16:33correct because that is what I got. And
  6720. 4:16:35again, we filtered out Derek Jeter
  6721. 4:16:37because apparently he was born 107.
  6722. 4:16:41Hopefully you guys enjoyed that example.
  6723. 4:16:44What we're going to do next is do
  6724. 4:16:47another data table.
  6725. 4:16:50And what we're going to do, this one's
  6726. 4:16:53actually a little bit easier. Maybe we
  6727. 4:16:54should have started with this.
  6728. 4:16:58Cool. So, we're doing a product
  6729. 4:16:59inventory tracker. So, let's say we have
  6730. 4:17:01data table for different products. We
  6731. 4:17:03want to schedule some sort of check.
  6732. 4:17:06Maybe this isn't a daily check, but uh
  6733. 4:17:09we're going to do a weekly check. So,
  6734. 4:17:11weekly
  6735. 4:17:13check. And then we're going to say if
  6736. 4:17:15low stock, we'll say like less than five
  6737. 4:17:17items, then five items, we're going to
  6738. 4:17:21do an email alert, which again, I
  6739. 4:17:22haven't shown you an email alert yet,
  6740. 4:17:24but can ignore that section. and uh we
  6741. 4:17:28can do still the first parts of it. So
  6742. 4:17:31let's spend a few minutes, you try to
  6743. 4:17:33solve it first and then I will give you
  6744. 4:17:35guys the solution. All right, ready? 3 2
  6745. 4:17:381 Let's get that.
  6746. 4:17:41All right, we're back. Let's solve this.
  6747. 4:17:43So first thing we need to do is create
  6748. 4:17:44that data table. And we're just going to
  6749. 4:17:46say we're going to say inventory as our
  6750. 4:17:49table name.
  6751. 4:17:51We're going to just keep this super busy
  6752. 4:17:53easy. I'm gonna say items and what we're
  6753. 4:17:57going to do is say stock.
  6754. 4:18:00Obviously, in real database, there's a
  6755. 4:18:02lot better designs and things like that,
  6756. 4:18:04but uh let's add in some items. So,
  6757. 4:18:06we'll say Hoka Speed Goats,
  6758. 4:18:09which I've never ran in, but I've heard
  6759. 4:18:11great things about. Let's say the stock
  6760. 4:18:13on these are 20. And then we'll go over
  6761. 4:18:16here and we'll add in Nike Alphally.
  6762. 4:18:21Obflies. We'll keep that misspelling.
  6763. 4:18:24And the inventory is two. Great. And
  6764. 4:18:27what we're going to do is build this
  6765. 4:18:29out. So, first thing we're going to do
  6766. 4:18:30is a schedule trigger. So, we have the
  6767. 4:18:32schedule trigger over here. This time we
  6768. 4:18:35set a weekly check. So, just go in over
  6769. 4:18:37here and change this into weeks. We can
  6770. 4:18:40choose the day. Let's maybe make this as
  6771. 4:18:41like a Monday morning. So, that way it
  6772. 4:18:43can be on the task for an employee.
  6773. 4:18:45We'll say 8:00 a.m. We can say also
  6774. 4:18:48minute. Let's put this to 30 minutes
  6775. 4:18:50like 8:30. Then what we're going to do
  6776. 4:18:52is grab our data table. So we're going
  6777. 4:18:53to go to data table like that. And we're
  6778. 4:18:56going to say get rows. And we're going
  6779. 4:18:59to go over here and choose inventory.
  6780. 4:19:01And we're going to add in a condition
  6781. 4:19:02directly over here. So we're going to
  6782. 4:19:04look at stock. And we're going to say
  6783. 4:19:06stock is less than or equal to five.
  6784. 4:19:09That's a low. And boom. We have that
  6785. 4:19:12right over there. Literally two nodes.
  6786. 4:19:14Now we have a trigger that goes and runs
  6787. 4:19:17this on weekly cadence and then we get
  6788. 4:19:19the rows from our database and obviously
  6789. 4:19:21we could schedule an email and things
  6790. 4:19:23like that a little bit later. Uh that is
  6791. 4:19:26coming though because I'm going to be
  6792. 4:19:27showing you guys how we could set up
  6793. 4:19:28Gmail and just a few different sections
  6794. 4:19:30so we can really expand these out. And
  6795. 4:19:32honestly if you want to go backwards
  6796. 4:19:33later on the course and expand these out
  6797. 4:19:35that's perfectly fine. These are going
  6798. 4:19:37to all be saved as JSON files so you
  6799. 4:19:40guys can access them. And that is data
  6800. 4:19:44tables. Obviously, I should have
  6801. 4:19:46probably put this one here first rather
  6802. 4:19:47than this one. But the day just wanted
  6803. 4:19:50to show you two use cases. Thank you for
  6804. 4:19:53uh checking this one out. And I will see
  6805. 4:19:56you guys in section number nine. Now,
  6806. 4:19:58all right. So, we're now going to cover
  6807. 4:20:00something called binary files. And
  6808. 4:20:03binary files seem really scary, but
  6809. 4:20:06they're really not. It's really any type
  6810. 4:20:07of file that you want to pass along your
  6811. 4:20:10workflow. There's some weird quirks
  6812. 4:20:12about binary files in comparison to the
  6813. 4:20:15things that we've covered so far. And
  6814. 4:20:18I'm also going to teach you about two
  6815. 4:20:19new nodes in this section which I think
  6816. 4:20:22will be pretty helpful for you to learn.
  6817. 4:20:25I didn't want to put them in the common
  6818. 4:20:26node section because they really pair
  6819. 4:20:28well with binary files. So we're going
  6820. 4:20:32to jump into NE right now and let's uh
  6821. 4:20:35learn a little bit more about binary
  6822. 4:20:37files. Okay. So, first, you know, the
  6823. 4:20:41easiest way to start working with binary
  6824. 4:20:43files is honestly a form trigger. So,
  6825. 4:20:46we're going to go and grab on form
  6826. 4:20:47submission. And you'll see we have this
  6827. 4:20:50right over here. Okay. And what we're
  6828. 4:20:52going to just call this on the side of
  6829. 4:20:54things is file uploader. And uh we're
  6830. 4:20:58going to add in a form element. So, I'm
  6831. 4:21:01just going to call this field name data.
  6832. 4:21:03And I say upload
  6833. 4:21:05file.
  6834. 4:21:07And what we're going to do is change our
  6835. 4:21:10element type. So this is brand new. And
  6836. 4:21:14you know, we've covered a lot of these,
  6837. 4:21:15but this time we have something called
  6838. 4:21:18file. And you could accept either one
  6839. 4:21:20file or multiple files. For simplicity
  6840. 4:21:23sake in this video, we're just going to
  6841. 4:21:25do a single file. You could also specify
  6842. 4:21:28the specific file type. If you're going
  6843. 4:21:30to go into production, highly, highly
  6844. 4:21:33recommend you define what file types
  6845. 4:21:35that you want in over here. Right now,
  6846. 4:21:39since I am going to be giving you guys
  6847. 4:21:40this through multiple examples, I'm just
  6848. 4:21:42going to leave it blank. So, we have our
  6849. 4:21:45form. And if you go and execute the
  6850. 4:21:46step, you'll see it says choose file,
  6851. 4:21:49which is great. So, we're going to go
  6852. 4:21:52through this as an example and we're
  6853. 4:21:54going to go and upload our CSV file, the
  6854. 4:21:57runner logs that we just used. You can
  6855. 4:22:00see I just drag and drop this or you
  6856. 4:22:02could choose a file on your computer.
  6857. 4:22:03And I'm going to click submit. And
  6858. 4:22:07look at this. Wait, we have our fourth
  6859. 4:22:10option. So, we've covered schema, table,
  6860. 4:22:13and JSON. And now we have this section
  6861. 4:22:16over here that has a binary file. The
  6862. 4:22:20field name will be populated here at the
  6863. 4:22:22top. And you can see file name is runner
  6864. 4:22:25logs.csv.
  6865. 4:22:27It has our file extension over here. And
  6866. 4:22:30we can actually view our file and
  6867. 4:22:32download it view. We'll go and do that
  6868. 4:22:35over here. And it downloads that as a
  6869. 4:22:37file. Uh when you view an image, it'll
  6870. 4:22:39actually show over here. So I want to
  6871. 4:22:42just show you that as an example as
  6872. 4:22:44well. Let me actually grab a image
  6873. 4:22:48and uh throw that in. All right. So I'm
  6874. 4:22:51going to execute this step. I have just
  6875. 4:22:53this running image. Believe we used it
  6876. 4:22:56in uh a YouTube video or just some
  6877. 4:22:58testing purposes. And I click submit.
  6878. 4:23:02And you see if I click view, we actually
  6879. 4:23:05have an image that populates over here,
  6880. 4:23:07which is cool because if you do any sort
  6881. 4:23:09of image editing or image manipulation,
  6882. 4:23:12uh you can just preview it on that side
  6883. 4:23:14of things. And again, I could download
  6884. 4:23:15this as well. This time it's a PNG file
  6885. 4:23:17and you can see PNG has been uploaded
  6886. 4:23:20over there on that. So I want to execute
  6887. 4:23:23this step one more time and we're going
  6888. 4:23:25to actually just go back and throw in
  6889. 4:23:27the CSV file. We're going to go to
  6890. 4:23:29images a little bit later and we'll
  6891. 4:23:31click submit.
  6892. 4:23:33And you'll see oh I actually upload the
  6893. 4:23:35wrong one and we click submit and you
  6894. 4:23:37can see we have our CSV file here once
  6895. 4:23:39again. Okay so we showed you that this
  6896. 4:23:43is the fourth type over here and you'll
  6897. 4:23:46see this with other stuff as well. First
  6898. 4:23:48thing I want to do is show you how we
  6899. 4:23:49can actually extract our information
  6900. 4:23:52because you might have uploaded a CSV or
  6901. 4:23:54someone uploads a CSV and you're like
  6902. 4:23:55how do I actually grab this data out? So
  6903. 4:23:58you can go over here and say extract
  6904. 4:24:00from file. And it says convert binary
  6905. 4:24:02data into JSON. And you can see we have
  6906. 4:24:05a lot of different options over here. So
  6907. 4:24:07you want to match this based around the
  6908. 4:24:10file that you're using. And I'm going to
  6909. 4:24:12show you also just a a quick pipeline.
  6910. 4:24:14If you're working with like CSV files,
  6911. 4:24:16how we could also approach this or CSV
  6912. 4:24:18or Excel files. We're going to just say
  6913. 4:24:20extract from CSV. You have input binary
  6914. 4:24:22field name. Make sure whatever is here
  6915. 4:24:26matches over here. I called this data.
  6916. 4:24:28So it's one two one. You're not matching
  6917. 4:24:30on file name. You're matching on
  6918. 4:24:33whatever this is called. This is called
  6919. 4:24:34data over here. Again, we define this as
  6920. 4:24:38the field name. So our field name needs
  6921. 4:24:40to match what it says input binary
  6922. 4:24:42field. So that is at the very top. I
  6923. 4:24:45know when I first started working with
  6924. 4:24:46binary files, I always thought it was
  6925. 4:24:47like this. I just could not get it to
  6926. 4:24:49work. So make sure it's that field
  6927. 4:24:51image. So if I execute the step, we have
  6928. 4:24:54all of our data. You can see table. we
  6929. 4:24:56have our table that's been extracted
  6930. 4:24:58from a CSV file. Then what we can do as
  6931. 4:25:01well is use an edit
  6932. 4:25:05and say edit fields like this.
  6933. 4:25:09And what we can do now is
  6934. 4:25:13go over here and choose what fields we
  6935. 4:25:15want. Now I don't care about the ID.
  6936. 4:25:17Maybe I just want to have the run date,
  6937. 4:25:20miles, and whether it was a road run or
  6938. 4:25:23not.
  6939. 4:25:25And look, we've just populated these
  6940. 4:25:27three and we have all this over here.
  6941. 4:25:29And this is one of the ways I use edit
  6942. 4:25:30fields all the time. I alluded to it a
  6943. 4:25:32little bit earlier in uh this video or
  6944. 4:25:35this course, however you want to define
  6945. 4:25:36it. But edit fields allows you to really
  6946. 4:25:40clean things up because now I don't have
  6947. 4:25:42all this junk. I just have these three
  6948. 4:25:45over here. So now I want to show you the
  6949. 4:25:47opposite of extract from file and show
  6950. 4:25:49you to convert to file. So convert to
  6951. 4:25:53file will take our JSON data and turn it
  6952. 4:25:55into binary data. And we could define
  6953. 4:25:58hey we want to turn this into a CSV,
  6954. 4:26:00HTML, ICS, JSON, ODS, RTF, text file,
  6955. 4:26:03XLS, XLSX. Like you can choose whatever
  6956. 4:26:06you want. Let's say I want an Excel
  6957. 4:26:08file. We're going to call this data over
  6958. 4:26:10here. And I execute the step. And now we
  6959. 4:26:12have created a binary file. So we have
  6960. 4:26:17the option over here to extract from our
  6961. 4:26:20binary file. You can see extract from
  6962. 4:26:22CSV, HTML, etc. And then we have the
  6963. 4:26:25option over here to convert back into a
  6964. 4:26:29file. And why this is really cool, if
  6965. 4:26:31you go back to some of our other
  6966. 4:26:32previous examples, like we could have
  6967. 4:26:34used this convert to file in multiple
  6968. 4:26:37different ways. So now we know if like,
  6969. 4:26:39hey, we end off with some sort of JSON.
  6970. 4:26:42We can turn this into a spreadsheet and
  6971. 4:26:45then we could attach this spreadsheet
  6972. 4:26:47into an email. And again there's a lot
  6973. 4:26:50of different opportunities out there but
  6974. 4:26:52uh extract from file grabs from a binary
  6975. 4:26:54file. You have to define the file type
  6976. 4:26:58and then convert the file converts it to
  6977. 4:27:00a specific file type. And again you
  6978. 4:27:02could download this right over here. You
  6979. 4:27:04could also essentially take this file
  6980. 4:27:07and move it up into Google Drive.
  6981. 4:27:09There's a there's a really a lot of
  6982. 4:27:11different options for you. So I showed
  6983. 4:27:14you how to download it. I showed you
  6984. 4:27:15that. Let me show you as well working
  6985. 4:27:17with binary data because it it can be
  6986. 4:27:20weird in your workflows. So what I want
  6987. 4:27:23to show you is this note and I just save
  6988. 4:27:27this all the time and I access it
  6989. 4:27:29because it can be confusing. Like if
  6990. 4:27:31let's imagine you have a binary file a
  6991. 4:27:33little bit earlier in workflow and then
  6992. 4:27:34you do some other data manipulations or
  6993. 4:27:37uh have other nodes and you want to
  6994. 4:27:38access this binary file again. How do
  6995. 4:27:40you actually access the binary file? So,
  6996. 4:27:43what I'm going to do is just copy this
  6997. 4:27:44and literally just going to be called on
  6998. 4:27:46form submission one. And let's imagine
  6999. 4:27:48we have two edit fields. So, I'm going
  7000. 4:27:51to go over here and say edit fields. And
  7001. 4:27:53then maybe I want to go and have another
  7002. 4:27:56edit fields after. I don't know. We're
  7003. 4:27:58just going to go and make some weird
  7004. 4:28:00stuff happen over here. All right. So,
  7005. 4:28:02we have two edit fields. Put like name.
  7006. 4:28:07We're going to say I don't know. Keep
  7007. 4:28:09chugging. Keep chugging. Cool. And uh
  7008. 4:28:13let's say we want to access this binary
  7009. 4:28:15file later in edit fields. So I'm going
  7010. 4:28:17to go over here. I'm going to go and
  7011. 4:28:20execute this workflow. We are going to
  7012. 4:28:22access a image. I'm going to go find
  7013. 4:28:25another image for you guys. Okay. So now
  7014. 4:28:28I want to share with you guys how we can
  7015. 4:28:30actually access binary data a little bit
  7016. 4:28:33later on in a workflow. So from the
  7017. 4:28:36example above over here, if I execute
  7018. 4:28:38this workflow again, and I upload a
  7019. 4:28:41file, which I'll just grab our runner
  7020. 4:28:43logs again and upload this over here,
  7021. 4:28:46you'll notice that if we go to the edit
  7022. 4:28:48fields, we no longer see the binary
  7023. 4:28:51file. Um, we only have schema, table,
  7024. 4:28:53and JSON. However, when you go to
  7025. 4:28:55extract from file, you'll have u our
  7026. 4:28:58data, which is our binary file on this
  7027. 4:29:00side of things. You're like, all right,
  7028. 4:29:02how do I actually access this? And let
  7029. 4:29:05me show you how we could do this. So
  7030. 4:29:08here's how this code works. And I'm just
  7031. 4:29:10going to make this a little bit more
  7032. 4:29:12clear. So essentially what we want to do
  7033. 4:29:16is define the node where the binary data
  7034. 4:29:18is at. In this case it's the form
  7035. 4:29:22submission which is our trigger. And uh
  7036. 4:29:25so I just put that as node but node or
  7037. 4:29:27trigger. We do do item.binary and then
  7038. 4:29:30the name of the file. So not name of the
  7039. 4:29:33file but the field name. So you can see
  7040. 4:29:35over here the field name is data. So in
  7041. 4:29:38this case when I duplicate this we're
  7042. 4:29:40going to say on form submission one
  7043. 4:29:42because we're going to get a second
  7044. 4:29:43version of this do item.binary
  7045. 4:29:46data. Again if this is something else
  7046. 4:29:49let's say it's like file you just change
  7047. 4:29:51file in right over here. You say
  7048. 4:29:54spreadsheet right there. You change this
  7049. 4:29:57over here to spreadsheet. So we'll do
  7050. 4:29:59that really quick. I'm going to make a
  7051. 4:30:01one modification
  7052. 4:30:03over here. So hopefully you guys don't
  7053. 4:30:05mind. So I'm just going to go over here
  7054. 4:30:07and just put a limit because it's going
  7055. 4:30:09to duplicate my binary files if I don't.
  7056. 4:30:12And I'm just going to put a limit of
  7057. 4:30:13one. So let's just go there. Great. And
  7058. 4:30:16then I'm going to add in an edit fields.
  7059. 4:30:18And I'm also going to show you really
  7060. 4:30:19quick how edit fields works with the
  7061. 4:30:21binary file. So what we're going to do
  7062. 4:30:23is grab our code side things. And you'll
  7063. 4:30:27notice the curly braces brackets. So
  7064. 4:30:30that's going to be a expression. So
  7065. 4:30:33we'll go over here and automatically
  7066. 4:30:34changes to an expression. Instead of
  7067. 4:30:36string this time, we want to go into
  7068. 4:30:38binary data. And by default, we can keep
  7069. 4:30:41our name. I'll just keep a data, but
  7070. 4:30:43I'll show you we can we can change it as
  7071. 4:30:44well. So let's run this workflow.
  7072. 4:30:46Execute step. I'm going to run in put in
  7073. 4:30:48my runner logs over here. I'll click
  7074. 4:30:50submit. And you'll see we have the green
  7075. 4:30:52check. And we have our binary data once
  7076. 4:30:55back again. So again, how you access
  7077. 4:30:57this is we we're node has the binary
  7078. 4:31:01file, the item.binary, and then the file
  7079. 4:31:04name. But hey, what if we don't like
  7080. 4:31:06data? I want to name this to
  7081. 4:31:07spreadsheet. Well, that's one of the
  7082. 4:31:09cool things with uh edit set. So I can
  7083. 4:31:12go over here and call this spreadsheet.
  7084. 4:31:14Now I execute this step. And now if I
  7085. 4:31:17want to access this later on, it's just
  7086. 4:31:19called spreadsheet. Again, you can view
  7087. 4:31:20or download this. Same thing is
  7088. 4:31:22applicable to images as well. So
  7089. 4:31:25hopefully that clears up how to access
  7090. 4:31:27it later. Remember the node that the
  7091. 4:31:29file is at the item.binary and then also
  7092. 4:31:32the binary name. Okay, next thing and
  7093. 4:31:35this is a little bit outside the scope
  7094. 4:31:37of binary data but I'm still going to
  7095. 4:31:39throw it into this section and this is
  7096. 4:31:42converting a file uh from base 64. So a
  7097. 4:31:46little bit weird but yeah, let me show
  7098. 4:31:49you how we could specifically do that.
  7099. 4:31:51Okay. So, how we're going to do this,
  7100. 4:31:53we're going to start with a manual
  7101. 4:31:54trigger. So, I'm going to go over here
  7102. 4:31:55to a manual trigger. And next thing
  7103. 4:31:59we're going to do is do an edit fields.
  7104. 4:32:02So, we're going to go edit fields and
  7105. 4:32:04we'll grab that. Awesome. So, now we
  7106. 4:32:06have our edit fields over here. Next
  7107. 4:32:08thing we want to do is grab a base 64
  7108. 4:32:11image encoder. The website I'm using for
  7109. 4:32:13this encoding. And I'll just put this as
  7110. 4:32:14a sticky note for you guys so you can
  7111. 4:32:16see it just because I believe I have my
  7112. 4:32:18browser tabs cut off. So go to this
  7113. 4:32:21website, b64 image.de. So all we want to
  7114. 4:32:24do is drag and drop an image over here.
  7115. 4:32:27And what I'm going to do is just grab a
  7116. 4:32:29recent screenshot that I had. And inside
  7117. 4:32:31over here, I just have an image from
  7118. 4:32:34kind of a YouTube video I was watching.
  7119. 4:32:37I thought it'd be kind of interesting to
  7120. 4:32:40at least save this on my computer. So
  7121. 4:32:42over here, you'll see now that we have
  7122. 4:32:44all of this code associated with it. And
  7123. 4:32:47that is a lot of code all the way down
  7124. 4:32:51over here. Wow, that is a ton. And it
  7125. 4:32:54says for image elements. And essentially
  7126. 4:32:57what this is is this is code for this
  7127. 4:33:00particular image. I can't tell you the
  7128. 4:33:02math behind it. I never really
  7129. 4:33:04researched that. But all this can turn
  7130. 4:33:08into an image. So what I want to do is
  7131. 4:33:10grab all of this minus the first part
  7132. 4:33:13because we don't care about data, image,
  7133. 4:33:15PNG, B 64. We just want this very long
  7134. 4:33:19string. And all I'm going to do is go
  7135. 4:33:21over here to manual mapping and we're
  7136. 4:33:24going to label that. And how we want to
  7137. 4:33:26label this, we're just going to call
  7138. 4:33:27this as image. So image like this. We're
  7139. 4:33:29going to keep it a string. And we're
  7140. 4:33:31going to paste in that very long value.
  7141. 4:33:33And again, if you want to make sure it
  7142. 4:33:34works correctly, open this up. And
  7143. 4:33:36you'll see this is all of the base 64.
  7144. 4:33:40That is it's insane for an image. Okay.
  7145. 4:33:42So, if we execute this step, you'll see
  7146. 4:33:45we just have that over here. Like the
  7147. 4:33:49craziness. Now, the next thing we're
  7148. 4:33:51going to do is go back into convert to
  7149. 4:33:53file. So, search for convert to file and
  7150. 4:33:56we're going to turn this into an image.
  7151. 4:33:59And you can see it says move B 64 string
  7152. 4:34:01to file. So, now what we're going to do
  7153. 4:34:04is go over here on that side of things.
  7154. 4:34:07We're gonna say B 64 input field. We
  7155. 4:34:10call this image. So make sure we put
  7156. 4:34:11this is image and then we could change
  7157. 4:34:13the output file name as I showed you
  7158. 4:34:15like we change it from data to
  7159. 4:34:16spreadsheets. It's commonly called data.
  7160. 4:34:19I'm just going to call this video
  7161. 4:34:20screenshot. So video screenshot and
  7162. 4:34:24change it to how you would like and
  7163. 4:34:26hopefully that this works. We're going
  7164. 4:34:28to execute step. Oh, look at that. And
  7165. 4:34:30now I can view this. Boom. This is from
  7166. 4:34:34a school live stream or school video.
  7167. 4:34:36And you can see um we have 101.8% 8%
  7168. 4:34:40retention which is not accurate but uh
  7169. 4:34:43yeah we have this screenshot and it
  7170. 4:34:45worked correctly. So essentially what we
  7171. 4:34:47did is we encoded this image I used a B
  7172. 4:34:5064 coder and we got all of the string
  7173. 4:34:54associated with it. Then we put this
  7174. 4:34:56into our edit fields as an image name.
  7175. 4:34:59Uh we just called this a string or not
  7176. 4:35:01called this a string but put this as
  7177. 4:35:02data type of string. Pasted that in over
  7178. 4:35:04here and then we converted that B64
  7179. 4:35:07string into a particular image. So I
  7180. 4:35:10know their approach that sometimes
  7181. 4:35:11you'll see is people want to have an
  7182. 4:35:13image as B 64 and then convert it a
  7183. 4:35:15little bit later on. So now that's like
  7184. 4:35:18the basics. I want to give you guys an
  7185. 4:35:21example workflow working with binary
  7186. 4:35:24files. And here is going to be your mini
  7187. 4:35:27project on this side of things. This is
  7188. 4:35:29going to be a little bit abstract.
  7189. 4:35:31And obviously there's other things I
  7190. 4:35:32want to do with B 64, but we haven't
  7191. 4:35:34really covered OC or not B 64, but
  7192. 4:35:36sorry, binary files, but we really
  7193. 4:35:38haven't covered OCR yet, and that'll be
  7194. 4:35:40a little bit later on in this course.
  7195. 4:35:42So, what we're going to do is we're
  7196. 4:35:44going to have a form upload. We're going
  7197. 4:35:46to download the attachment. We're going
  7198. 4:35:47to remove extra columns from it. We're
  7199. 4:35:50going to remove duplicate uh issues. I
  7200. 4:35:52put billing, but maybe we're going to do
  7201. 4:35:55like a billing spreadsheet. add in one
  7202. 4:35:57data point as it from a merge and then
  7203. 4:35:59save as a brand new CSV. So, let me give
  7204. 4:36:02you a little bit of context. What we're
  7205. 4:36:04going to do on this side of things is
  7206. 4:36:06we're going to have like a billing
  7207. 4:36:08file uploader uploader and we have just
  7208. 4:36:12name
  7209. 4:36:14and we'll say we'll pretend like the
  7210. 4:36:16name is unique. This is unique. So, each
  7211. 4:36:19name cannot be built multiple times and
  7212. 4:36:22then we'll have like a a cost. So let's
  7213. 4:36:25just say like this is a dollar amount
  7214. 4:36:28in integers. It's I just want to keep it
  7215. 4:36:31super basic. So we upload a spreadsheet.
  7216. 4:36:36We download the attachments associated
  7217. 4:36:38with it. Right? Once we go through over
  7218. 4:36:40here, remove any extra columns. So let's
  7219. 4:36:42add an extra column as well. Um extra
  7220. 4:36:45column. Let's think about what we're
  7221. 4:36:47going to say. Um let's do something way
  7222. 4:36:50out there. Does not make sense to put in
  7223. 4:36:52billing. favorite color,
  7224. 4:36:54right? Uh we're going to remove the
  7225. 4:36:57duplicate billing issues as well. So,
  7226. 4:36:58we're going to have one person that's
  7227. 4:36:59duplicated. We're going to have a merge
  7228. 4:37:01to add in another data point. Let's say
  7229. 4:37:03the spreadsheet was missing one row.
  7230. 4:37:05We're going to have another edit set.
  7231. 4:37:07We're going to bring that in over here
  7232. 4:37:09and we're going to save as a new CSV.
  7233. 4:37:11So, I want you guys to kind of test this
  7234. 4:37:14out and see if you can get the solution
  7235. 4:37:18and pause the video. Ready? Three, two,
  7236. 4:37:20one, pause it and I will be right back
  7237. 4:37:22with the solution. All right, guys. I'm
  7238. 4:37:25back. So, let's build this out. First, I
  7239. 4:37:28don't even have the spreadsheet yet, but
  7240. 4:37:30we're just going to build out this
  7241. 4:37:31workflow. So, what I want to do is go to
  7242. 4:37:34a form. So, we're going to say any end
  7243. 4:37:35form. We're going to go to a trigger and
  7244. 4:37:38do on a new form event. So, this is
  7245. 4:37:40going to upload our our spreadsheet.
  7246. 4:37:42Next thing that we want to do is ract
  7247. 4:37:44our spreadsheet. So extract from file
  7248. 4:37:47and we're going to extract from a CSV.
  7249. 4:37:50Great. And obviously I'm not connecting
  7250. 4:37:52these yet. We need to remove extra
  7251. 4:37:54columns. Well, I showed you how to do
  7252. 4:37:55this through edit set. So we can put
  7253. 4:37:57edit set for here as well. Great. Next,
  7254. 4:38:01what we want to do is remove duplicate
  7255. 4:38:03billing issues. So we're going to go to
  7256. 4:38:04remove duplicates for here. And we're
  7257. 4:38:08going to remove within the current
  7258. 4:38:10input.
  7259. 4:38:12Okay. Then what we're going to do is add
  7260. 4:38:14in one more data point from a merge. So
  7261. 4:38:15we're going to get another edit set.
  7262. 4:38:19And again, I'll show you how to put
  7263. 4:38:21everything together here in a minute.
  7264. 4:38:23Then we need to merge in everything
  7265. 4:38:25together. So we're going to say merge.
  7266. 4:38:29And uh the merge will take in those
  7267. 4:38:30inputs. And then lastly, we want to
  7268. 4:38:33convert to a file. So we're going to say
  7269. 4:38:34convert to file.
  7270. 4:38:37And let's convert this back into a CSV.
  7271. 4:38:39Great. So, let's actually build out our
  7272. 4:38:43spreadsheet. And what I'm going to do is
  7273. 4:38:45just go into personal and I'm going to
  7274. 4:38:47create a just very quick data table. And
  7275. 4:38:50obviously, like you can call the data
  7276. 4:38:51table in here instead of uploading
  7277. 4:38:53a spreadsheet, but I'm just going to do
  7278. 4:38:55this really fast. And we're going to say
  7279. 4:38:57billing.
  7280. 4:38:59So, this creates awesome. So, what did
  7281. 4:39:03we need in billing? Well, we wanted to
  7282. 4:39:05have over here name. I go over here and
  7283. 4:39:09say name.
  7284. 4:39:12Next, we said we want to have cost. So,
  7285. 4:39:15we're going to say cost. That is an
  7286. 4:39:17integer.
  7287. 4:39:19So, a number. And then lastly, we're
  7288. 4:39:21going to say favorite color. So,
  7289. 4:39:23favorite
  7290. 4:39:24color. It's going to be a string. Great.
  7291. 4:39:26Let's just put some BS data in over
  7292. 4:39:30here. So, we're going to add in a new
  7293. 4:39:32row. And we'll add in another row. And
  7294. 4:39:35we'll add in a third row. All right. So
  7295. 4:39:37now what we want to do is just throw in
  7296. 4:39:39some names. I'm going to grab uh itch
  7297. 4:39:42over here. Baseball player Ichiro.
  7298. 4:39:46We're going to say max for Max Sherzer.
  7299. 4:39:49And then we'll have it in over here
  7300. 4:39:51again
  7301. 4:39:54like that. Cool. The cost over here
  7302. 4:39:56let's say is 100
  7303. 4:40:0050
  7304. 4:40:03100.
  7305. 4:40:05Let's say it's favorite color is blue.
  7306. 4:40:09Blue. Max's favorite color is black.
  7307. 4:40:12Done.
  7308. 4:40:14Simple. Done in two seconds. So, we're
  7309. 4:40:16just going to go over here and export
  7310. 4:40:18this as a CSV. So, download CSV like
  7311. 4:40:20that. And now we see we have
  7312. 4:40:21billink.csv. Great. So, what we're going
  7313. 4:40:25to do is go into our form. We're going
  7314. 4:40:27to say billing uploader.
  7315. 4:40:30And we're going to add in a form
  7316. 4:40:31element. And over here we're going to
  7317. 4:40:33say billing spreadsheet.
  7318. 4:40:38And uh we're going to say upload.
  7319. 4:40:43The billing spreadsheet.
  7320. 4:40:47We're going to say element type file.
  7321. 4:40:49We're only accept one file. We can go
  7322. 4:40:51over here and say it's a CSV only. And
  7323. 4:40:54execute step. And you'll see it says
  7324. 4:40:56choose a file. I'm going just go on my
  7325. 4:40:59computer really quick. Find this billing
  7326. 4:41:01CSV. Great, we have it. Going to click
  7327. 4:41:03submit. And we have our billing
  7328. 4:41:05spreadsheet. Great. Next. Oh, one other
  7329. 4:41:08thing I need to tell you guys. You can't
  7330. 4:41:10pin binary data. So, you can see pin
  7331. 4:41:11data is disabled as this node output
  7332. 4:41:13contains binary data. Didn't cover that
  7333. 4:41:15in this video. I apologize. I was on my
  7334. 4:41:18notes and I skipped over. Okay. So, now
  7335. 4:41:20we need to extract from the binary data.
  7336. 4:41:22So, you notice how I called this billing
  7337. 4:41:24spreadsheet and it says input binary
  7338. 4:41:26field. Again, make sure this over here,
  7339. 4:41:29the field name is the same as this input
  7340. 4:41:31binary field name. So, we're going to
  7341. 4:41:33execute this step. And if we go to table
  7342. 4:41:35view, we have ID, name, cost, favorite
  7343. 4:41:37color, created, updated. So, we're
  7344. 4:41:39looking pretty good over there. Next
  7345. 4:41:41step, we wanted to remove all these
  7346. 4:41:42extra things that we don't care about.
  7347. 4:41:44Only thing we care about is name and
  7348. 4:41:46cost. That's it. So, execute step. Boom.
  7349. 4:41:50We cleaned that up. Okay. Now, we want
  7350. 4:41:52to remove duplicates because we have
  7351. 4:41:54duplicates in our data set. You can see
  7352. 4:41:56of it 100, max 50, itro 100. We're going
  7353. 4:42:00to compare all fields. And then you can
  7354. 4:42:03see it is now down into two. We have it
  7355. 4:42:05and max cost 150. Great. Okay. Now,
  7356. 4:42:09let's add in additional data. Let's say
  7357. 4:42:12we have another data point we want to
  7358. 4:42:14add into the spreadsheet. So, what we're
  7359. 4:42:17going to do is create two new fields. To
  7360. 4:42:20keep these accurate, we have name and
  7361. 4:42:21cost. So, we're going to go over here
  7362. 4:42:22and call these name and cost. So name
  7363. 4:42:26of cost and then let's put in those
  7364. 4:42:29values. So namewise, let's say we have
  7365. 4:42:31like Justin for Justin Verlander and
  7366. 4:42:34we'll put a cost of 75. Let's execute
  7367. 4:42:36the step just to make sure it works. And
  7368. 4:42:38it works. However, you notice I put
  7369. 4:42:40string here. I should put a number and
  7370. 4:42:42boom, we have that working correctly.
  7371. 4:42:43You can see that we don't want to have
  7372. 4:42:45mismatch over here. Next, we want to put
  7373. 4:42:47both of these into the merge like that
  7374. 4:42:50over here. Um, we're also going to have
  7375. 4:42:53to do a um test over here because this
  7376. 4:42:56might not necessarily work, but we'll
  7377. 4:42:58see. Remember, we had that issue a
  7378. 4:43:00little bit earlier when we're talking
  7379. 4:43:02about merges.
  7380. 4:43:04And uh we have a problem over here.
  7381. 4:43:08See what our issue was. Oh, you know
  7382. 4:43:11what? It's empty. We should probably
  7383. 4:43:12append that data. We're going to just
  7384. 4:43:14execute workflow. And we're gonna load
  7385. 4:43:16this up over here. Submit.
  7386. 4:43:20And you can take a look over here in
  7387. 4:43:23that table. We actually didn't call
  7388. 4:43:26that. So what I'm going to do is say
  7389. 4:43:28that also starts this over here. Again,
  7390. 4:43:31just kind of a weird bug with merges,
  7391. 4:43:33but that's okay. So we're going to just
  7392. 4:43:35clean this up a little bit. So that way
  7393. 4:43:38this trigger starts this edit fields and
  7394. 4:43:40also goes into the merge as well. All
  7395. 4:43:42right, this should be fine here. We're
  7396. 4:43:44going to execute this again. Upload that
  7397. 4:43:47billing. Click submit. And now you can
  7398. 4:43:50see we have both items going into that
  7399. 4:43:52merge node. Item one there, two. And now
  7400. 4:43:55we have three items. We have Justin, it
  7401. 4:43:57ro and max. Awesome. So now all we need
  7402. 4:44:00to do is convert this into a file. So
  7403. 4:44:04what we want to do is name the file. And
  7404. 4:44:06did I mention a name? I can't remember.
  7405. 4:44:09No, I didn't. I'll say like new billing.
  7406. 4:44:15And let's go to add option. You can
  7407. 4:44:17actually change the file name. So I'll
  7408. 4:44:19say new
  7409. 4:44:21or let's call this like final billing
  7410. 4:44:25CSV.
  7411. 4:44:27Actually, I don't think I even need the
  7412. 4:44:28CSV section. I think I should just call
  7413. 4:44:30it file billing. Let me just double
  7414. 4:44:32check really quick.
  7415. 4:44:34No, I need to actually put CSV. So, make
  7416. 4:44:36sure you put the exact name over here.
  7417. 4:44:38When it says convert to CSV, make sure
  7418. 4:44:40you put that. Otherwise, it's not going
  7419. 4:44:41to work. And now you can see it says
  7420. 4:44:43final billing.csv.
  7421. 4:44:45And I can download our data that we have
  7422. 4:44:47over here. And this would be also
  7423. 4:44:49another case where you use edit set over
  7424. 4:44:50here just to make sure that um every
  7425. 4:44:53every column that you want in the
  7426. 4:44:54spreadsheet is there. And you could also
  7427. 4:44:56reorder things in edit set. So you can
  7428. 4:44:58see like name is here first then cost.
  7429. 4:45:00So if you want to reorder things you can
  7430. 4:45:01use edit set. Didn't really cover that
  7431. 4:45:03also. Apologies but essentially download
  7432. 4:45:07it here. And you can see we have final
  7433. 4:45:09billing.csv.
  7434. 4:45:11So that is our workflow. Essentially
  7435. 4:45:13what we did is we submitted a file over
  7436. 4:45:16here which was our CSV file. We forced
  7437. 4:45:18it to be a CSV on one path. We extracted
  7438. 4:45:21from the file. We removed the extra
  7439. 4:45:24columns we didn't care about. We removed
  7440. 4:45:25any duplicates on the other path over
  7441. 4:45:28here. What we did specifically is added
  7442. 4:45:31another data point that was just missing
  7443. 4:45:32from this form. Then we merged all of
  7444. 4:45:35this together. All we need to do is
  7445. 4:45:37append because we're just stacking these
  7446. 4:45:39particular inputs. and then we convert
  7447. 4:45:41it to the file at the very end to have
  7448. 4:45:43our brand new spreadsheet. So, awesome
  7449. 4:45:46job on this section. What we're going to
  7450. 4:45:49do next is actually take a look at how
  7451. 4:45:51you can set up your Google credentials
  7452. 4:45:53and uh this is going to be a big step
  7453. 4:45:55for you guys because Google is used all
  7454. 4:45:57the time. You can think of this Gmail,
  7455. 4:46:00sheets, drive and uh it's pretty
  7456. 4:46:02exciting stuff. So, I will see you guys
  7457. 4:46:04in that video now and uh great work. So
  7458. 4:46:08this section is going to cover how you
  7459. 4:46:10could set up the Google suite within any
  7460. 4:46:13end. This is going to use something
  7461. 4:46:14called OOTH. And honestly, the first
  7462. 4:46:17time you do it or take a look at it,
  7463. 4:46:19you're going to think this is really,
  7464. 4:46:20really confusing. But you know, kind of
  7465. 4:46:22the best part about it is once you set
  7466. 4:46:24up the Google Suite once, you don't have
  7467. 4:46:26to do it again unless you're obviously
  7468. 4:46:28working with customers in some sort of
  7469. 4:46:30capacity. So once we set this up, you'll
  7470. 4:46:33have access to using the different Gmail
  7471. 4:46:35nodes. you're going to have access to
  7472. 4:46:36Sheets, Google Drive, Google Docs, and
  7473. 4:46:39some of the other Google services if you
  7474. 4:46:41specifically want to do that. Um, I
  7475. 4:46:43would recommend you just follow this
  7476. 4:46:45step by step. And also, the full
  7477. 4:46:47documentation on how to set this up will
  7478. 4:46:49also be available to download.
  7479. 4:46:51Obviously, pause the video as I go
  7480. 4:46:52through this and follow it because it is
  7481. 4:46:55super important not to miss a step.
  7482. 4:46:56Otherwise, you are going to have issues
  7483. 4:46:58and something that would take you 10
  7484. 4:47:00minutes is now going to take you 20, 30
  7485. 4:47:02minutes or longer. After we go through
  7486. 4:47:05those specific documentation to set
  7487. 4:47:08everything up, we're going to actually
  7488. 4:47:10go through the specific triggers and
  7489. 4:47:12nodes. I'm going to cover some of the
  7490. 4:47:13use cases that I see from building real
  7491. 4:47:15world workflows and then we're going to
  7492. 4:47:17go over to projects. So, uh it's going
  7493. 4:47:20to be another kind of a lengthy section
  7494. 4:47:22over here, but it's really important
  7495. 4:47:24because this unlocks a ton of
  7496. 4:47:26capabilities for you guys. So, first
  7497. 4:47:28let's jump into uh setting up the OOTH
  7498. 4:47:31for all these. All righty. So, what
  7499. 4:47:34we're going to do is set up Google Drive
  7500. 4:47:36into any and uh so what I'm going to do
  7501. 4:47:39over here is just click over here to add
  7502. 4:47:41first step. I'm just going to search for
  7503. 4:47:42Google Drive over here. And you can see
  7504. 4:47:45that we have Google Drive
  7505. 4:47:48and actions. I'm just going to go over
  7506. 4:47:50here and click download a file. Right
  7507. 4:47:52now, there's a few different ways that
  7508. 4:47:54we could specifically set up our Google
  7509. 4:47:56Drive connection. We could go right
  7510. 4:47:59through here and build this out in our
  7511. 4:48:01workflow. Or we can go into our account
  7512. 4:48:03and do that as well. I'm just going to
  7513. 4:48:05go over here and go through this side of
  7514. 4:48:08things and set it up like that just
  7515. 4:48:10because I feel like this is where most
  7516. 4:48:12people are probably going to start at.
  7517. 4:48:14And the first thing that you're going to
  7518. 4:48:16want to do is go into your Google Cloud.
  7519. 4:48:19Just Google search Google Cloud
  7520. 4:48:21Platform. And what you're going to do is
  7521. 4:48:22grab this link right over here. It says
  7522. 4:48:24Google Cloud Cloud Computing Services.
  7523. 4:48:26Make sure you go to your account and
  7524. 4:48:28choose the specific account with your
  7525. 4:48:30NAN account. Right? In this tutorial,
  7526. 4:48:32I'm using the Ryan Nolan data. And then
  7527. 4:48:34what we're going to do on this side of
  7528. 4:48:36things is click over here to console. So
  7529. 4:48:39this will load up. And what I'm going to
  7530. 4:48:40do is create a brand new link from
  7531. 4:48:42Google Cloud into N8N. So how I'm going
  7532. 4:48:45to do that is we go over here to open
  7533. 4:48:47project picker. And then we're going to
  7534. 4:48:49click on new project, right? And I'm
  7535. 4:48:52going to name this project N
  7536. 4:48:55G Drive tutorial. Drive tutorial. Uh
  7537. 4:49:00it's going to say location, no
  7538. 4:49:02organization. That's perfectly fine for
  7539. 4:49:04this. So I'm going to click create. And
  7540. 4:49:06it says now viewing N Google Drive
  7541. 4:49:09organization, no organization.
  7542. 4:49:13But we're going into this N G Drive
  7543. 4:49:16tutorial. So make sure you click on
  7544. 4:49:18that. And then we have this up over
  7545. 4:49:20here. So there's a few steps that we are
  7546. 4:49:22going to have to take to set this up.
  7547. 4:49:25And depending when you watch this, the
  7548. 4:49:27user interface may have changed. So
  7549. 4:49:29click over here to these three lines.
  7550. 4:49:32And then we're going to go into API and
  7551. 4:49:34services. Click on to the library over
  7552. 4:49:37here. And then what we're going to look
  7553. 4:49:38for is drive. You should really put
  7554. 4:49:41Google Drive.
  7555. 4:49:44Drive over here. And we're looking for
  7556. 4:49:46the Google Drive API, right? So, we're
  7557. 4:49:49going to click on that over here. And
  7558. 4:49:51the first thing we're going to do is
  7559. 4:49:52click on enable.
  7560. 4:49:55This will take a second. Make sure that
  7561. 4:49:56this runs and I will be back once this
  7562. 4:50:00is ready to go. Okay. So, we have this
  7563. 4:50:02over here. The first thing that we're
  7564. 4:50:03going to want to do on this side of
  7565. 4:50:04things is go over to the OOTH consent
  7566. 4:50:07screen. So, click that on here and
  7567. 4:50:09you're going to get this blank page. So,
  7568. 4:50:11click get started. Uh, we're going to
  7569. 4:50:13put our app name. I'm just going to call
  7570. 4:50:15this N Google Drive tutorial. Right. And
  7571. 4:50:19then what we're going to have to do as
  7572. 4:50:20well is put in our email, which I have
  7573. 4:50:22this already over here. Data. Next.
  7574. 4:50:25Since this is going to be an external
  7575. 4:50:27application, click over here to
  7576. 4:50:29external. Click next. Contact
  7577. 4:50:31information. Make sure to put in your
  7578. 4:50:32email again. So,
  7579. 4:50:35[email protected].
  7580. 4:50:39Click next. And then I agree to Google
  7581. 4:50:41API services. Awesome. continue and then
  7582. 4:50:44click create on this side of things. So
  7583. 4:50:47once that is done, our next step is
  7584. 4:50:49we're going to want to go over here to
  7585. 4:50:50the audience tab and we're going to want
  7586. 4:50:52to click on publish app. Now if you
  7587. 4:50:54don't click publish app, you're going to
  7588. 4:50:56have issues within nan when you do set
  7589. 4:50:58up this connection. So make sure that
  7590. 4:50:59you publish your app. Click confirm
  7591. 4:51:03and your app is done. Awesome. So now
  7592. 4:51:05what we're going to do is go back into
  7593. 4:51:07N8N. So it's going to say credentials to
  7594. 4:51:11connect with right over here. I'm just
  7595. 4:51:12going to click create new credentials
  7596. 4:51:14and then we get to this popup screen
  7597. 4:51:16over here. Right. So, a few things that
  7598. 4:51:19we are going to want to set up
  7599. 4:51:20specifically for that. What we're going
  7600. 4:51:22to do is go back to home where we get
  7601. 4:51:24this on this side of things. Go to APIs
  7602. 4:51:26and services and then click on
  7603. 4:51:28credentials. Uh so then we're going to
  7604. 4:51:30get into this side of things. We're
  7605. 4:51:32going to click on create credentials and
  7606. 4:51:34select OOTH client ID. So then we have
  7607. 4:51:37the application type. Now click on to
  7608. 4:51:40web application. I'm just going to call
  7609. 4:51:42this
  7610. 4:51:44Google Drive NN put
  7611. 4:51:50that. And then what we're going to do is
  7612. 4:51:52authorize redirect URI. So click add new
  7613. 4:51:55URI. Now go back in over here and you
  7614. 4:51:58see it says OOTH redirect URL. Click to
  7615. 4:52:01copy that. Go down below over here and
  7616. 4:52:04paste that in over here and then click
  7617. 4:52:07create. Okay. Now we have our client ID
  7618. 4:52:09as well as our client secret. So really
  7619. 4:52:11important that you copy these in. Also
  7620. 4:52:13save these just in case. So first we're
  7621. 4:52:16going to do is grab our client ID. All
  7622. 4:52:18we go over here to client ID, paste that
  7623. 4:52:20in. Then we go to our client secret.
  7624. 4:52:23Copy that. We're going to paste in the
  7625. 4:52:25client secret over here. So both of
  7626. 4:52:27those are there. Next we're going to
  7627. 4:52:28have to do is sign in with Google. Now
  7628. 4:52:31if we didn't publish our app, we will
  7629. 4:52:32have issues with the signin with Google,
  7630. 4:52:35right? It's going to say N is
  7631. 4:52:36authorized. So again, make sure you your
  7632. 4:52:39app. So we're going to click over here
  7633. 4:52:40to sign in with Google. And you can also
  7634. 4:52:43see it says credentials successfully
  7635. 4:52:44created. So what I'm going to do is grab
  7636. 4:52:46the Ryan Nolan data account. And it says
  7637. 4:52:48Google hasn't verified this app. That is
  7638. 4:52:50okay. So click over here to advanced and
  7639. 4:52:53click go to N cloud unsafe.
  7640. 4:52:57And then make sure you select all on
  7641. 4:52:59this side of things and click continue.
  7642. 4:53:02And it says connection successful. This
  7643. 4:53:04window will close in 5 seconds. Right?
  7644. 4:53:07It closes down the window and then we
  7645. 4:53:09have this in over here. The save
  7646. 4:53:12password once, right? And we have that.
  7647. 4:53:14Okay. So now I want to show you
  7648. 4:53:17essentially how we could grab
  7649. 4:53:19essentially images within a folder in
  7650. 4:53:21Google Drive. This won't be a full
  7651. 4:53:23tutorial on Google Drive within any but
  7652. 4:53:26I feel like it is applicable just to
  7653. 4:53:28throw this in here at the very end. So
  7654. 4:53:29what I have on this side of things and
  7655. 4:53:31this is actually going to be a tutorial
  7656. 4:53:32I'm recording right after here. So
  7657. 4:53:35essentially I have different images of
  7658. 4:53:37cards and I want to grab them in nan
  7659. 4:53:41right. So I haven't fully decided what
  7660. 4:53:43I'm going to do with these images as of
  7661. 4:53:44yet. I'm kind of still in the tutorial
  7662. 4:53:45planning stages but regardless it's
  7663. 4:53:48going to be part of it. So I felt like
  7664. 4:53:49show this on this side of things. Uh so
  7665. 4:53:51we're going to do is resource. We're
  7666. 4:53:53going to grab file and folder. We're
  7667. 4:53:56going to search for JPEG images. So put
  7668. 4:53:58JPEG like this. Uh next we're going to
  7669. 4:54:01do a filter. So click add filter. We're
  7670. 4:54:03going to go over here to folder from
  7671. 4:54:05list. And what we're going to do is look
  7672. 4:54:07for the card images on this side of
  7673. 4:54:09things. And to make sure that this has
  7674. 4:54:11worked correctly, I'm just going to
  7675. 4:54:12click execute step. And you can see on
  7676. 4:54:15the JSON side of things, we have the ID
  7677. 4:54:16of each of these images. And then the
  7678. 4:54:18name, right? So you can see we have
  7679. 4:54:20Hannibal over here in the five grade.
  7680. 4:54:22This is where I was actually downloaded
  7681. 4:54:24from. We have it right over here. Right.
  7682. 4:54:28Up next on there is what? Wolf.
  7683. 4:54:34We have Wolf. And then lastly, we're
  7684. 4:54:36going to look for Cresbow
  7685. 4:54:38and you can see he is on here as well.
  7686. 4:54:41So, just like that, I showed you how we
  7687. 4:54:44could set up Google Drive within your
  7688. 4:54:46N8.
  7689. 4:54:48Hey guys, post editing for this video, I
  7690. 4:54:51realized initially this video I had on
  7691. 4:54:54my YouTube channel only showed you how
  7692. 4:54:55to set up Google Drive and you're going
  7693. 4:54:57to probably want to set up Slides,
  7694. 4:54:59Gmail, Sheets, all that good stuff. So
  7695. 4:55:02I'm in my N Google Drive over here. I
  7696. 4:55:05just want to quickly show you really
  7697. 4:55:06fast how you enable this. So when you go
  7698. 4:55:09to enabled APIs and services, just
  7699. 4:55:11search for the next API. Uh so for
  7700. 4:55:14example, if I want to get Google Sites,
  7701. 4:55:15which I've never used actually in any
  7702. 4:55:17NN, click on this over here and then
  7703. 4:55:20just click on enable
  7704. 4:55:23and then you'll see it's getting enabled
  7705. 4:55:25to your account. Obviously, I called
  7706. 4:55:26this one any Google Drive for that
  7707. 4:55:28particular video when I was shown the
  7708. 4:55:30Google credentials. Might want to change
  7709. 4:55:32the name, but regardless, now you can
  7710. 4:55:34see that this has been enabled in my
  7711. 4:55:35account. Same thing with calendar. If I
  7712. 4:55:37want to go over here to Google calendar,
  7713. 4:55:39I'm just going to search for calendar
  7714. 4:55:40and then we're going to look for this
  7715. 4:55:41Google calendar API.
  7716. 4:55:44And then we're going to click enable
  7717. 4:55:45over here as well. So, we have to enable
  7718. 4:55:48all these in our Google Cloud account,
  7719. 4:55:50which this one's the and Google Drive
  7720. 4:55:52just because it was the tutorial, not my
  7721. 4:55:54main one. And then when you're back in
  7722. 4:55:56Nan, what you have to do is you're going
  7723. 4:55:58to have to authenticate each of these as
  7724. 4:56:00well. So just follow the same process.
  7725. 4:56:02Like I'm in version two over here.
  7726. 4:56:04Obviously that video I recorded early on
  7727. 4:56:06on my YouTube channel when we're jumping
  7728. 4:56:08into any end and I just reused it
  7729. 4:56:09because it's like credentials. But
  7730. 4:56:11regardless, same exact thing that you're
  7731. 4:56:13going to go through where we have
  7732. 4:56:14credential to connect with. You're going
  7733. 4:56:16to have to create a new credential
  7734. 4:56:18and then just go through the OOTH over
  7735. 4:56:20here. So, you know, the client ID,
  7736. 4:56:23client secret, and you should be pretty
  7737. 4:56:26good to go. You're gonna have to do that
  7738. 4:56:27for each of these in particular uh that
  7739. 4:56:30you want to use with Google. So,
  7740. 4:56:32literally the process is exactly the
  7741. 4:56:34same that I showed you. All you need to
  7742. 4:56:36do essentially is enable each API one at
  7743. 4:56:39a time directly here in Google Cloud and
  7744. 4:56:42then just go back over here and copy and
  7745. 4:56:44paste the same exact information into
  7746. 4:56:46the individual notes. Create an account.
  7747. 4:56:48Label it properly. Don't label like
  7748. 4:56:50Google account one like I have in this
  7749. 4:56:52test account. Um, and uh, be good with
  7750. 4:56:55it and you should be pretty much set for
  7751. 4:56:57the rest of this particular tutorial. If
  7752. 4:57:00you have any questions, I'm actually
  7753. 4:57:01going to put a full doc like step by
  7754. 4:57:02step on how to set this up properly in
  7755. 4:57:05our school group. So, that'll be there
  7756. 4:57:08on that side of things. You can just
  7757. 4:57:09follow it. I'll put screenshots exactly
  7758. 4:57:13and should be pretty good to pair with
  7759. 4:57:14that last video and then also this video
  7760. 4:57:16over here. But I just realized that this
  7761. 4:57:18would be a source of confusion if I only
  7762. 4:57:20showed you Google Drive. So, I wanted to
  7763. 4:57:22throw this in here really fast. I just
  7764. 4:57:23recorded my laptop. All right, hopefully
  7765. 4:57:25you guys are getting a bunch of value.
  7766. 4:57:27And now, let's expand on Google Drive.
  7767. 4:57:30So, let's cover the four different
  7768. 4:57:32Google core nodes that you'll probably
  7769. 4:57:34use about 90% of the time. The first one
  7770. 4:57:38is going to be Gmail. And if you go over
  7771. 4:57:40to the Gmail side of things, you'll
  7772. 4:57:43notice that there is a trigger which is
  7773. 4:57:45on message received. and you have 26
  7774. 4:57:48different actions that you can do. So,
  7775. 4:57:51let's first talk about the trigger and
  7776. 4:57:53why this is really important. So, I'll
  7777. 4:57:55just click over here. Uh first,
  7778. 4:57:57obviously, you want to make sure that
  7779. 4:57:58you set up your correct uh credential to
  7780. 4:58:01connect with. And then you have a poll
  7781. 4:58:03time. And if you go over here, it says
  7782. 4:58:05time at which polling recurs. So, this
  7783. 4:58:07will tell you like how often should this
  7784. 4:58:10take a look at your Gmail account. And
  7785. 4:58:13you can change this setting to every
  7786. 4:58:15minute, every hour, day, week, month,
  7787. 4:58:17every x or custom. Custom goes back into
  7788. 4:58:20cron jobs which we talked a lot about
  7789. 4:58:22before. You can say every month choose a
  7790. 4:58:24specific hour. Every hour on what
  7791. 4:58:27minutes, every day, what hour on that
  7792. 4:58:30day, as well as minute, every minute
  7793. 4:58:31itself, every x, you can set a value and
  7794. 4:58:34you can set the unit whether minutes or
  7795. 4:58:36hours. So, there's a lot of
  7796. 4:58:37customization over here, which is why I
  7797. 4:58:39don't really think most people are going
  7798. 4:58:41to have to use a specific cron message.
  7799. 4:58:44Uh, we're going to go over here and say
  7800. 4:58:46sorry, cron job. So, you have that. You
  7801. 4:58:48can also add in multiple polling times
  7802. 4:58:50if necessary. Again, I just think most
  7803. 4:58:52people are going to use that. So, you
  7804. 4:58:54can also choose the event. So, by
  7805. 4:58:56default, it's going to obviously be
  7806. 4:58:57message received. And if you go to your
  7807. 4:59:00filters, you can include spam and trash,
  7808. 4:59:02which personally I probably wouldn't
  7809. 4:59:04recommend. Uh, you can also search. So,
  7810. 4:59:08if you want to only grab emails that
  7811. 4:59:10have an attachment, you can see it says
  7812. 4:59:12has attachment. It says use the same
  7813. 4:59:14format as in the Gmail search boxes. So,
  7814. 4:59:16you can actually click onto this and it
  7815. 4:59:19tells you how to refine searches. So,
  7816. 4:59:21you can say, okay, find emails sent from
  7817. 4:59:24a specific person. You can go over here
  7818. 4:59:27and say, search for emails received
  7819. 4:59:29during a certain time period. Like,
  7820. 4:59:30there's a lot of different options for
  7821. 4:59:32you. Obviously, I don't think the time
  7822. 4:59:33period is that great for this search,
  7823. 4:59:36but uh if you want it from a specific
  7824. 4:59:38person, I think that's beneficial. If an
  7825. 4:59:41email has an attachment, let's imagine
  7826. 4:59:42that you're doing some sort of contract
  7827. 4:59:44work and you're getting contracts in and
  7828. 4:59:46you need to extract the data from
  7829. 4:59:48contracts. That's where has attachment
  7830. 4:59:50would be useful as well as possibly uh
  7831. 4:59:53from you can do multiple criteria with
  7832. 4:59:57and over here. Again, I'm not going to
  7833. 4:59:58cover every single thing over here
  7834. 5:00:00because it's going to be different for
  7835. 5:00:02every person, but you can put in that
  7836. 5:00:04search over there, and a lot of people
  7837. 5:00:06do that as well. I can do the read
  7838. 5:00:08status, whether it's unread, emails.
  7839. 5:00:11Again, if you're going to build this out
  7840. 5:00:12as a trigger, I would assume most of
  7841. 5:00:14these are going to be unread anyways.
  7842. 5:00:15And then you can specify the sender over
  7843. 5:00:18here. So, you could specify that in the
  7844. 5:00:20search or you could put this on that
  7845. 5:00:22sender side of things. You know, if you
  7846. 5:00:25have an internal system and let's say
  7847. 5:00:27for example, I work at fintech. So maybe
  7848. 5:00:30we have an email that just sends things
  7849. 5:00:32that are possible fraud transactions to
  7850. 5:00:34another email. We could just search for
  7851. 5:00:36that specific sender. You have also
  7852. 5:00:38label names or ids over here. Uh so you
  7853. 5:00:40can see uh there's quite a bit over here
  7854. 5:00:43that you could fill out. Um and one of
  7855. 5:00:46the things also that's interesting is
  7856. 5:00:48simplify versus non-simplify. So, when
  7857. 5:00:51you have simplify, you'll notice also
  7858. 5:00:53other options are gone. So, it's just a
  7859. 5:00:56it gives you a little bit of
  7860. 5:00:58information. If you want all the
  7861. 5:00:59information about your email, you're
  7862. 5:01:00going to have to have to turn off
  7863. 5:01:02simplify. I'll show you that here in a
  7864. 5:01:03second. You can also download
  7865. 5:01:05attachments when simplify is
  7866. 5:01:07particularly off. So, I'm going to send
  7867. 5:01:10myself an email and just show you the
  7868. 5:01:11difference really quick. Cool. So, I
  7869. 5:01:13just uploaded uh email or I should say
  7870. 5:01:16uploaded, but I just sent myself an
  7871. 5:01:18email over here. And what I'm going to
  7872. 5:01:20do is just do a fetch a test event just
  7873. 5:01:22so that way I can pull this in. So this
  7874. 5:01:24is a simplified version of it. So you
  7875. 5:01:27can see on this side of things from Ryan
  7876. 5:01:29Nolan data to Ryan Nolan data. We can't
  7877. 5:01:31actually grab the attachment. It's
  7878. 5:01:33labeled as important.
  7879. 5:01:35And uh yeah, I mean it's good. We have
  7880. 5:01:38our subject line over here. The message
  7881. 5:01:40on this email is actually blank. So
  7882. 5:01:42maybe I should have put a message over
  7883. 5:01:44here. And if I unsimplify this, if I
  7884. 5:01:48fetch the test event, you can see we
  7885. 5:01:49have a lot more information over here.
  7886. 5:01:51We have the HTML as well the text uh
  7887. 5:01:55again more from information. And then we
  7888. 5:01:57can go into add options and we can
  7889. 5:01:59download attachments. So obviously you
  7890. 5:02:01want to make sure something is secured
  7891. 5:02:02for those test or for the download
  7892. 5:02:04attachments. And now you can see we have
  7893. 5:02:06a binary file in here. So, when we were
  7894. 5:02:09talking about binary files a little bit
  7895. 5:02:10earlier, obviously you didn't have
  7896. 5:02:13Google set up, but one of the most
  7897. 5:02:15common use cases for binary files, we're
  7898. 5:02:17going to get an attachment through a
  7899. 5:02:20specific email. I actually did this
  7900. 5:02:21recently with a doctor and we're
  7901. 5:02:24building out essentially an end workflow
  7902. 5:02:26where he gets a specific email from
  7903. 5:02:28someone in his department and runs
  7904. 5:02:30through a whole nan workflow and gives
  7905. 5:02:32them results. So, it starts the whole
  7906. 5:02:34workflow with a Gmail trigger kind of
  7907. 5:02:36just like this. We download it. We
  7908. 5:02:38extract it. Uh, next, which we've
  7909. 5:02:40already covered the extract from file
  7910. 5:02:41node, right? We go back over here to
  7911. 5:02:44extract from file. And uh, sorry, I
  7912. 5:02:47didn't meant to go there. Extract from
  7913. 5:02:48file. Extract from CSV. And uh, we could
  7914. 5:02:52just go grab attachment zero. Put that
  7915. 5:02:54there. Remember, it's the field name.
  7916. 5:02:55So, this is attachment zero. Execute
  7917. 5:02:57step. And look at that. Now, I have my
  7918. 5:03:00runner notes over here. This table
  7919. 5:03:03grabbed directly from a Gmail. So
  7920. 5:03:06hopefully a lot of this makes sense. In
  7921. 5:03:09addition, what we could do too a little
  7922. 5:03:11bit later on and actually let me show
  7923. 5:03:12you this now. We could summarize emails
  7924. 5:03:15with an AI agent. And I know we haven't
  7925. 5:03:17really talked a ton about prompting as
  7926. 5:03:19of yet. We got our feet wet a little bit
  7927. 5:03:21with an AI agent, but it's very common
  7928. 5:03:24to have a Gmail or email go straight
  7929. 5:03:27into an AI agent and we do some sort of
  7930. 5:03:28summary based off of this. It's also
  7931. 5:03:31very common to either before or after
  7932. 5:03:34the summary have some sort of if
  7933. 5:03:36condition or a switch to route things
  7934. 5:03:39around. So let's say we receive an email
  7935. 5:03:42and if it's a criteria we go over here
  7936. 5:03:44or we go over here. Typically this is
  7937. 5:03:46probably after like an AI agent or after
  7938. 5:03:48it's cleaned up. But you can start
  7939. 5:03:50seeing how we we start piling things on
  7940. 5:03:52together. And this is honestly just from
  7941. 5:03:55the trigger itself. Maybe I should just
  7942. 5:03:57keep these in over here. I'll keep this
  7943. 5:03:59here for you guys notes.
  7944. 5:04:01And uh yeah, so let's also I'm just
  7945. 5:04:04going to send you another email really
  7946. 5:04:06fast. I shouldn't say send you, send
  7947. 5:04:08myself. Uh we're going to go over here,
  7948. 5:04:10tester for video 2, and I'm going to
  7949. 5:04:13send a body this time with no
  7950. 5:04:17else. I'm just going to literally spam
  7951. 5:04:18my keyboard and hopefully it doesn't hit
  7952. 5:04:20in the spam filter. Right, let's uh test
  7953. 5:04:24fetch event.
  7954. 5:04:26Great. And you can see what we have over
  7955. 5:04:28here. Where is this test for video two?
  7956. 5:04:33Great. You can see the HTML of the
  7957. 5:04:35email. All this getting spammed out,
  7958. 5:04:38which is fantastic.
  7959. 5:04:40And uh this is the non-simplified
  7960. 5:04:43version. I don't have any attachments
  7961. 5:04:44here. So I'll just remove that. But if
  7962. 5:04:46we simplify this now, you can see we
  7963. 5:04:49have over here on that side of things.
  7964. 5:04:51So I would probably recommend and you
  7965. 5:04:53can see we have a snippet over here. So,
  7966. 5:04:56one other thing to mention is when you
  7967. 5:04:57simplify it, you only get the snippet.
  7968. 5:04:59Whereas, if you have it not simplified,
  7969. 5:05:02you can actually get the full email.
  7970. 5:05:04Obviously, there's some cleanup that
  7971. 5:05:05you're going to have to do. But I would
  7972. 5:05:07just recommend don't simplify your
  7973. 5:05:09specific email. Let's talk about some of
  7974. 5:05:11the Gmail nodes as well because I think
  7975. 5:05:14some of these are going to be pretty
  7976. 5:05:15important. Obviously, I don't have the
  7977. 5:05:16time to cover every single one of these,
  7978. 5:05:19but there's a lot that you could do with
  7979. 5:05:20it. So, you could add labels to
  7980. 5:05:22messages. You could delete a message.
  7981. 5:05:24Where I find this helpful is like if you
  7982. 5:05:26have a ton of different spam or things
  7983. 5:05:27in your inbox you don't care about. I
  7984. 5:05:29will say get care be be very careful
  7985. 5:05:31though because I just probably wouldn't
  7986. 5:05:34recommend to delete everything out of an
  7987. 5:05:36inbox. Maybe you want to send it to a
  7988. 5:05:39specific area instead of deleting it. Uh
  7989. 5:05:41you can also get a message or get many
  7990. 5:05:43messages. So if you want to get every
  7991. 5:05:45single message within a conversation,
  7992. 5:05:47you have that option over here. You can
  7993. 5:05:49mark things as read or unread. Remove
  7994. 5:05:51labels. You could reply to a message
  7995. 5:05:54where this could be helpful for I don't
  7996. 5:05:56really say you should focus on the
  7997. 5:05:58draft, but imagine you want to
  7998. 5:06:00autorespond to specific people. You
  7999. 5:06:02could have it over there. Again, I would
  8000. 5:06:04probably recommend draft just because
  8001. 5:06:06you can add in something called human in
  8002. 5:06:07the loop, which is essentially allowing
  8003. 5:06:09someone to review whatever AI generates.
  8004. 5:06:12Coming from the corporate world, a lot
  8005. 5:06:14of companies believe in human in the
  8006. 5:06:15loop. They don't want automatic
  8007. 5:06:17responses. However, if you know
  8008. 5:06:18something is like very very accurate and
  8009. 5:06:20you're okay with the downside of it
  8010. 5:06:22occasionally being inaccurate, maybe you
  8011. 5:06:24do reply to a message, you can send a
  8012. 5:06:26message automatically. Again, very
  8013. 5:06:28helpful at the very end of a workflow if
  8014. 5:06:30you have orchestration that you say once
  8015. 5:06:32this is done, I want to send a message
  8016. 5:06:34to person X and that could be a message
  8017. 5:06:37or that could also be a message with an
  8018. 5:06:38attachment. Uh, find that. You could
  8019. 5:06:40send a message and wait for a response.
  8020. 5:06:43There's more labels. I don't really use
  8021. 5:06:45labels as much as a lot of other people
  8022. 5:06:47do, but you have tons of actions.
  8023. 5:06:48Create, delete, get label info, or get
  8024. 5:06:50many labels. Drafts I find helpful. So,
  8025. 5:06:52you can create a draft over here, and I
  8026. 5:06:55would just recommend doing that. And
  8027. 5:06:56we're just reviewing an email before
  8028. 5:06:58it's finally sent. But it can save you a
  8029. 5:07:00lot of time. And then you have thread
  8030. 5:07:02actions. So, you can add label to a
  8031. 5:07:03thread, delete a thread, get a thread,
  8032. 5:07:05get many threads. So, I just want to
  8033. 5:07:07show you really quick one of these
  8034. 5:07:08options, which is going to be send a
  8035. 5:07:10message. So, let's go over here and do
  8036. 5:07:12that. And what we're going to do is I'll
  8037. 5:07:15just use my Gmail account. Message send.
  8038. 5:07:18We'll put an email. I'll say Ryan Nolan
  8039. 5:07:20data
  8040. 5:07:22[email protected].
  8041. 5:07:26And we're going to say hello world.
  8042. 5:07:31And uh we're say this email will be read
  8043. 5:07:37live on a YouTube video.
  8044. 5:07:41You can see for the options down below
  8045. 5:07:43over here you can append to any
  8046. 5:07:45attribution or not. So essentially what
  8047. 5:07:47this does and a lot of people will turn
  8048. 5:07:49this off if you have this on which is
  8049. 5:07:51the default LCO sent by any N. A lot of
  8050. 5:07:53people don't want to see that so they
  8051. 5:07:54just turn this off. Next thing you can
  8052. 5:07:57do is set add attachments. So what you
  8053. 5:08:00would want to do is have a binary file.
  8054. 5:08:02Remember that top section in red? Well
  8055. 5:08:04that would be the name that you populate
  8056. 5:08:05over here. So uh thought we had this.
  8057. 5:08:09Oh, I guess I I um had the second
  8058. 5:08:12example, but if you remember earlier
  8059. 5:08:13where we downloaded that attachment and
  8060. 5:08:14had the top name, essentially you just
  8061. 5:08:16make sure that top name matches over
  8062. 5:08:17there. If you have an attachment, again,
  8063. 5:08:19very common to specifically add. Um, let
  8064. 5:08:22me remove these. And you can add
  8065. 5:08:23multiple attachments over here, too. You
  8066. 5:08:25can BCC or CC. You could have a sender
  8067. 5:08:28name over there as well. Send replies to
  8068. 5:08:31or reply to sender only. Obviously,
  8069. 5:08:33depends what happens. We're going to
  8070. 5:08:34send this over here without with the
  8071. 5:08:36anyn attribution so you can see what it
  8072. 5:08:38looks like. And obviously you can just
  8073. 5:08:40remove that. So I'll execute the step.
  8074. 5:08:42It says unread sent inbox. And let's see
  8075. 5:08:45if I got it over here. Great. I have it
  8076. 5:08:47over here. And let me populate this
  8077. 5:08:50here. So it says this email will be read
  8078. 5:08:52live on a YouTube video. And then we
  8079. 5:08:54have this email sent automatically with
  8080. 5:08:56any end. So if you want to remove this
  8081. 5:08:57email iss
  8082. 5:09:00over here and remove that. I can send
  8083. 5:09:02this again. And I'll say hello world 2.
  8084. 5:09:04Execute that step. It's been sent. I'm
  8085. 5:09:06just going to load this up in my email.
  8086. 5:09:08And once that is ready to go, we'll see.
  8087. 5:09:12Here we go. This email will be right
  8088. 5:09:13live on YouTube video. And that is gone.
  8089. 5:09:15Obviously, again, we have tons of
  8090. 5:09:16different options over here. Really
  8091. 5:09:18start messing with emails because it
  8092. 5:09:20opens up a lot of opportunities there.
  8093. 5:09:23Okay. So, next is sheets. Now before
  8094. 5:09:26data table sheets was used honestly in
  8095. 5:09:30almost every workflow just because most
  8096. 5:09:32people have their Google credentials set
  8097. 5:09:34up. It's super easy to integrate in with
  8098. 5:09:36Google Sheets after it is obviously it's
  8099. 5:09:38a little bit pain the first time you do
  8100. 5:09:40it. Now let's talk about probably the
  8101. 5:09:42most used out of the Google suite which
  8102. 5:09:44is sheets. Now it's been down quite a
  8103. 5:09:47bit since data tables have been added
  8104. 5:09:49in. Also I want to say it's kind of
  8105. 5:09:50funny when you type in sheet data tables
  8106. 5:09:52is first then Excel then Google sheets.
  8107. 5:09:55I feel like Google Sheets is should slot
  8108. 5:09:57in number two, but obviously N obviously
  8109. 5:09:59wants to promote their data tables as
  8110. 5:10:01well. So that's why it's the very top.
  8111. 5:10:02But if you go into Google Sheets, you'll
  8112. 5:10:04see that we have different triggers as
  8113. 5:10:06well as specific actions. I do want to
  8114. 5:10:08call out our triggers first over here
  8115. 5:10:11because I think some of these are pretty
  8116. 5:10:13beneficial. So really there's three
  8117. 5:10:16triggers, but they're based off of two
  8118. 5:10:17actions. So the first one is on a new
  8119. 5:10:19row added. So imagine that you have a
  8120. 5:10:21spreadsheet and someone adds in a new
  8121. 5:10:23row and you want to start a workflow
  8122. 5:10:24based around that. And the second is on
  8123. 5:10:27a row updated. So this is used typically
  8124. 5:10:30when you want to watch one specific
  8125. 5:10:32column and see if there is a change
  8126. 5:10:34associated with it. And then lastly
  8127. 5:10:35[snorts] you have on row added or
  8128. 5:10:37updated which is either one of these
  8129. 5:10:39two. I'm going to go and show you guys
  8130. 5:10:42an example on a row updated at. So I'll
  8131. 5:10:45go in here and right now I just have a
  8132. 5:10:48pull time of every minute. Obviously,
  8133. 5:10:49you can change that as required. We can
  8134. 5:10:51go to a document. Choose the document
  8135. 5:10:53you want. I'm going to just use all
  8136. 5:10:55YouTube update. And what I'm going to go
  8137. 5:10:57is find our sheet. And we're using sheet
  8138. 5:10:59three over here. So, what I have on this
  8139. 5:11:01sheet three is name of two artists and
  8140. 5:11:04then a status. So, we're going to look
  8141. 5:11:06for this status column to specifically
  8142. 5:11:08change. And this is very, very common.
  8143. 5:11:10Like people will build out a
  8144. 5:11:12spreadsheet, they wait for a column
  8145. 5:11:13status to change like ready to generate
  8146. 5:11:15or good to go or something like that and
  8147. 5:11:18then it builds out the workflow. So what
  8148. 5:11:20we're going to do is build that out
  8149. 5:11:23essentially. So we have a Google sheet
  8150. 5:11:24trigger. We're looking at sheet three.
  8151. 5:11:26We're triggering on a row updated.
  8152. 5:11:28Again, you can look at row added or
  8153. 5:11:29updated. I'm just going to do updated.
  8154. 5:11:31And options you can say columns to
  8155. 5:11:33watch. So this will only trigger the
  8156. 5:11:36workflow when the status column is
  8157. 5:11:38changed. So we'll say fetch test event
  8158. 5:11:40and you can see we have Bruce Hornsby,
  8159. 5:11:42Billy Joel. The status is yes and no.
  8160. 5:11:44Obviously nothing has changed yet.
  8161. 5:11:46That's fine. Then what we typically want
  8162. 5:11:48to do next is have some sort of filter
  8163. 5:11:51in place. So what we're going to do is
  8164. 5:11:54have an an if. So
  8165. 5:11:58what I'll have over here is say if and
  8166. 5:12:02we're going to say status is equal to
  8167. 5:12:04and then you can put something like
  8168. 5:12:06ready to go. So ready to go. It's going
  8169. 5:12:10to go and start the workflow over here.
  8170. 5:12:12Otherwise, you can have a false. And I
  8171. 5:12:15typically just say do nothing over here.
  8172. 5:12:18No operation do nothing. We I know we
  8173. 5:12:20haven't really covered this as of yet,
  8174. 5:12:21but it literally as it's mentioned
  8175. 5:12:23nothing, do nothing. So like it's just
  8176. 5:12:25kind of a blank node. But essentially
  8177. 5:12:28how this works, you'll see it goes and
  8178. 5:12:31grabs the sheet and both of these are
  8179. 5:12:33going to go into a false because nothing
  8180. 5:12:35ends up happening. But if let's say for
  8181. 5:12:37example we changed the status over here
  8182. 5:12:40and we put the status to ready to go. Um
  8183. 5:12:44if this was in production which we're
  8184. 5:12:45not in production right now it would run
  8185. 5:12:47the workflow automatically
  8186. 5:12:50based off the polling time and it would
  8187. 5:12:52go in over here and it would say hey
  8188. 5:12:53this is ready to generate and then we
  8189. 5:12:55would have our steps that we want to
  8190. 5:12:57take over in this direction. So if I run
  8191. 5:12:59this now,
  8192. 5:13:00take a look. We have one item that
  8193. 5:13:02populates into the if and that's going
  8194. 5:13:04to be Bruce Hornby, which is ready to
  8195. 5:13:06go. So a pretty nifty trick that people
  8196. 5:13:08use to say, "Hey, this row has been
  8197. 5:13:10updated. It's time to grab something
  8198. 5:13:12else." Again, just an example I used
  8199. 5:13:14recently for a customer is we're
  8200. 5:13:15building out an email newsletter.
  8201. 5:13:17There's like 10 columns worth
  8202. 5:13:19information that they specifically
  8203. 5:13:20wanted and there was one column which
  8204. 5:13:22was a status column which we filtered
  8205. 5:13:24based around. So as soon as someone put
  8206. 5:13:26ready to generate, it started the
  8207. 5:13:28specific workflow for that particular
  8208. 5:13:30column. And then we had things that are
  8209. 5:13:32like yes, it's done or a failure and
  8210. 5:13:34things like that. Like it's a way more
  8211. 5:13:35complicated workflow than I would show
  8212. 5:13:37you guys over here, at least where we're
  8213. 5:13:40at in the tutorial series, but or I
  8214. 5:13:42guess one video um but another day. So
  8215. 5:13:45that is one of the biggest use cases uh
  8216. 5:13:48using a trigger. Someone makes an update
  8217. 5:13:50to a column. If you were looking at for
  8218. 5:13:53a specific row, imagine someone adds in
  8219. 5:13:54a row. Let's add in another piano
  8220. 5:13:58focused performer. I think the first one
  8221. 5:14:00probably is Elton John because people
  8222. 5:14:02compare him like Billy Joel. And then
  8223. 5:14:04you can have whatever status, I don't
  8224. 5:14:05know. And essentially that would start a
  8225. 5:14:08workflow if we're just adding in a new
  8226. 5:14:10specific row. I kind of prefer the
  8227. 5:14:12status or whatever verbiage you want to
  8228. 5:14:15use instead of status because I think
  8229. 5:14:16it's a little bit cleaner and a little
  8230. 5:14:17bit more secure because I feel like
  8231. 5:14:19people could just accidentally add in a
  8232. 5:14:20new row. Um and also you know you could
  8233. 5:14:23have this filter in place over there.
  8234. 5:14:25All right let's talk about some of the
  8235. 5:14:26other things that you can grab in
  8236. 5:14:27sheets. So if I go back to sheets
  8237. 5:14:30we talked about the triggers but uh
  8238. 5:14:32there is other actions. So you can
  8239. 5:14:34actually create a spreadsheet or delete
  8240. 5:14:36a spreadsheet. So imagine you have a lot
  8241. 5:14:38of data you want to create a brand new
  8242. 5:14:40spreadsheet. Essentially what you can do
  8243. 5:14:41is go through over here. You can create
  8244. 5:14:43a document over here title. You can add
  8245. 5:14:45in specific sheets as well. Um this only
  8246. 5:14:48creates the spreadsheet. You have to add
  8247. 5:14:50in the data a little bit later on, but
  8248. 5:14:52you have that option over there as well
  8249. 5:14:54if you want to particularly delete one.
  8250. 5:14:57Going back into sheets, go there. You
  8251. 5:15:00can see we can append or update a row.
  8252. 5:15:03Typically, if you do some sort of
  8253. 5:15:04research or you have some sort of um
  8254. 5:15:07monitoring or logging, you can update
  8255. 5:15:09and things like, hey, this failed. And
  8256. 5:15:10you can go back over here and say this
  8257. 5:15:13failed if it didn't populate correctly.
  8258. 5:15:16You can clear a sheet as well which just
  8259. 5:15:18removes all the data. Uh you see already
  8260. 5:15:20create a sheet on that side of things.
  8261. 5:15:22So a sheet is the individual tab. A
  8262. 5:15:25spreadsheet is everything all together
  8263. 5:15:27which is why when we go into create
  8264. 5:15:29spreadsheet you'll see the option over
  8265. 5:15:31here for sheets and you can add in
  8266. 5:15:33multiple sheets as necessary. Like in
  8267. 5:15:35this example we have three sheets. So
  8268. 5:15:37you could specifically create a
  8269. 5:15:39spreadsheet with three speech and uh
  8270. 5:15:42maybe I'll do that for you guys here in
  8271. 5:15:43a second. Uh going in back into our
  8272. 5:15:46Google Sheets uh we can also let's see
  8273. 5:15:49we did append clear. We can delete a
  8274. 5:15:51sheet delete rows or columns get rows in
  8275. 5:15:54sheet as well as update rows. So let's
  8276. 5:15:57first grab get rows and sheets. So just
  8277. 5:16:00to show you I'm go my sheets account
  8278. 5:16:02sheet within document. We're going to go
  8279. 5:16:04and grab this YouTube one. So all
  8280. 5:16:06YouTube we're going to go to sheet
  8281. 5:16:07three. You can see that this grabs
  8282. 5:16:10everything over here. So row number name
  8283. 5:16:12and then also status. You could add in
  8284. 5:16:15filters over here as you specifically
  8285. 5:16:17want to. As you can see filters populate
  8286. 5:16:21those. So we can add in filter. Let's
  8287. 5:16:23say status over here is yes.
  8288. 5:16:30You can see it's filtered down very
  8289. 5:16:31similar to what we've had in data
  8290. 5:16:33tables. So that is the get rows in
  8291. 5:16:35sheets. And let me just add in a row as
  8292. 5:16:37well. So you can just go in here by the
  8293. 5:16:39way and and change this up. So instead
  8294. 5:16:41of get rows, we can go and append row
  8295. 5:16:46and uh you can add in something else. So
  8296. 5:16:48you can see we have to map each of these
  8297. 5:16:49over here. I'm trying to think of
  8298. 5:16:51another piano player which we can add.
  8299. 5:16:53There's a lot. I'll just put in Mosart.
  8300. 5:16:56Mosart
  8301. 5:16:58say no too much. And uh see execute
  8302. 5:17:03step. That's been added. And I go to our
  8303. 5:17:05sheet and you can see Mosart is added
  8304. 5:17:07over there. However, let's say, you know
  8305. 5:17:09what, I actually want to delete Mosart.
  8306. 5:17:12He does not belong in here. So, instead
  8307. 5:17:15of append, what we can do is delete. So,
  8308. 5:17:17delete rows or columns, which as you saw
  8309. 5:17:20in data tables, we don't have the option
  8310. 5:17:22for deleting columns yet, only rows. And
  8311. 5:17:24we're going to go to all YouTube update
  8312. 5:17:26sheet 3. Delete. Obviously, we want to
  8313. 5:17:28choose rows. And then you can start with
  8314. 5:17:30a row number over here. There's other
  8315. 5:17:32options too, but we're going to start in
  8316. 5:17:35uh
  8317. 5:17:37but we're going to start over here.
  8318. 5:17:39We're going to just start with five. So,
  8319. 5:17:42let's go start in row five. Execute. And
  8320. 5:17:46it says true. And take a look. That is
  8321. 5:17:49now gone. Again, there's a lot of
  8322. 5:17:50options and you'll get used to sheets
  8323. 5:17:52the more that you use it. But yeah, so
  8324. 5:17:55just going in here one last time. You
  8325. 5:17:57can create or delete an entire
  8326. 5:17:59spreadsheet. You could create or delete
  8327. 5:18:01a specific sheet in itself or clear the
  8328. 5:18:03sheet. You can add in new rows over
  8329. 5:18:06here. You could delete rows or columns.
  8330. 5:18:08So there's not an option right now to
  8331. 5:18:10add in a new column. You can see it's
  8332. 5:18:12only with rows, append row, append or
  8333. 5:18:14update there. You can get all the rows
  8334. 5:18:16in a sheet. You could update that. And
  8335. 5:18:18then again, you could start a workflow
  8336. 5:18:19when someone adds in a new row or you
  8337. 5:18:21could start a workflow when someone
  8338. 5:18:23updates a specific column value. Um, so
  8339. 5:18:26we're going to just throw all these over
  8340. 5:18:28here.
  8341. 5:18:29And you guys can download all these
  8342. 5:18:31templates. What we're going to do next
  8343. 5:18:33is take a look at I believe Google
  8344. 5:18:35Drive. Yeah. So, we can look at Docs and
  8345. 5:18:37Drive. Let's go to Docs first because
  8346. 5:18:40it's kind of quick. So, we go to Docs.
  8347. 5:18:45You'll see Google Docs right there. And
  8348. 5:18:48you have different actions. You can
  8349. 5:18:49create a document, get a document, or
  8350. 5:18:51update a document. And uh yeah, so let's
  8351. 5:18:55say you have some text you want to turn
  8352. 5:18:57into a document. You can go in here and
  8353. 5:18:58create a document. You specify where
  8354. 5:19:01it's at. You create the title name
  8355. 5:19:03associated with it. Then what you can do
  8356. 5:19:06next is actually update the document. So
  8357. 5:19:08if we go into Google Docs again,
  8358. 5:19:11we'll just go over here and say update a
  8359. 5:19:13document. So why I find this really
  8360. 5:19:16helpful
  8361. 5:19:18is you can actually specify where in a
  8362. 5:19:21document you want to upload uh some
  8363. 5:19:23additional information. What I've done
  8364. 5:19:25in the past is create some sort of
  8365. 5:19:27template. So essentially I'll put like
  8366. 5:19:30brackets and say like fill this
  8367. 5:19:31information in and we can have an any
  8368. 5:19:33workflow that automatically updates a
  8369. 5:19:36document uh based off of a template. So
  8370. 5:19:38you can see we have an insert location
  8371. 5:19:40at the end of a specific position. We
  8372. 5:19:43can insert an index as well. But we can
  8373. 5:19:46also just literally update sections
  8374. 5:19:48within a document based off what is
  8375. 5:19:50going on in any in workflow. Uh, we'll
  8376. 5:19:53I'll show you one of those examples.
  8377. 5:19:55Well, actually, I'll I have it on the
  8378. 5:19:57channel, so I'd recommend you watch that
  8379. 5:19:58video, but it's like 20 30 minutes. We
  8380. 5:20:00don't have the time to cover that, but
  8381. 5:20:03yeah, you can create a document. You
  8382. 5:20:04could also update a document with a
  8383. 5:20:06specific text. And then lastly, if you
  8384. 5:20:09go to Google Docs, I believe the third
  8385. 5:20:10one is you can just delete a document.
  8386. 5:20:12It's pretty straightforward. Uh, no, you
  8387. 5:20:14can uh create, you could get or update.
  8388. 5:20:17So, I apologize. You can't actually
  8389. 5:20:19delete a document over here, but you can
  8390. 5:20:21get that document. Okay, that is Google
  8391. 5:20:24Docs. Now, uh what's the use a little
  8392. 5:20:27bit more is Drive and let's jump into
  8393. 5:20:31Google Drive. There's a lot of different
  8394. 5:20:33options over here. So, let's jump
  8395. 5:20:34through those. The first one is the
  8396. 5:20:36triggers. So, you can take a look at
  8397. 5:20:38changes to a specific file or a folder
  8398. 5:20:41in Drive. I've started workflows before
  8399. 5:20:44where let's say for example someone
  8400. 5:20:45drops a new image into a Google Drive
  8401. 5:20:48folder and then it starts a workflow
  8402. 5:20:50based around that. So you can see
  8403. 5:20:51changes on a specific folder or the
  8404. 5:20:53specific file to jump into some of the
  8405. 5:20:55things that are used quite a bit.
  8406. 5:20:57Sometimes I've had to copy a specific
  8407. 5:20:59file to create another version of it. Uh
  8408. 5:21:01you can create a file from text. You
  8409. 5:21:04could also delete a file or download a
  8410. 5:21:07specific file. So downloading a file
  8411. 5:21:09will get that binary data directly in
  8412. 5:21:11NEN. You can move files between things
  8413. 5:21:14which I don't use that that often.
  8414. 5:21:16Share, don't use that often. You can
  8415. 5:21:18update or upload a file. Uh you can
  8416. 5:21:20search files and folders that can be
  8417. 5:21:23helpful. Uh you can create a folder,
  8418. 5:21:25delete a folder or share folder. Again,
  8419. 5:21:27these can be a little bit helpful for
  8420. 5:21:28the create the folder or possibly delete
  8421. 5:21:31the folder. Let's say you have a
  8422. 5:21:33workflow that you want to create a
  8423. 5:21:34folder full of images every single time.
  8424. 5:21:36Uh that's where a create a folder would
  8425. 5:21:38be. And I could see this being used with
  8426. 5:21:40the new image or video models. You have
  8427. 5:21:42a workflow that you're creating images
  8428. 5:21:44for a specific Facebook ad and then you
  8429. 5:21:46want to just create the folder based
  8430. 5:21:47around it. Uh you can create a shared
  8431. 5:21:49drive, delete share drive, get over here
  8432. 5:21:52and update a shared drive. So uh
  8433. 5:21:54download file is really kind of be the
  8434. 5:21:56most important one. Let me just pause
  8435. 5:21:58the video really fast and we'll grab a
  8436. 5:22:00file to download. All right, so I'm
  8437. 5:22:02back. Uh so what I essentially did is I
  8438. 5:22:04have my Google Drive account. I did a
  8439. 5:22:06resource. I just looked for a file over
  8440. 5:22:08here. Operation download and then I
  8441. 5:22:10grabbed a file from list. I literally
  8442. 5:22:12just looked for the first thing that
  8443. 5:22:13populated which I don't use this drive
  8444. 5:22:15as much. So it's law of large numbers
  8445. 5:22:17and this I believe was a PowerPoint
  8446. 5:22:19presentation that I put for that
  8447. 5:22:20specific YouTube video. Obviously can't
  8448. 5:22:23view the PowerPoint here indirectly in
  8449. 5:22:25any end. But you can see we have the
  8450. 5:22:26binary file that has populated. So
  8451. 5:22:28you'll use this quite a bit whether
  8452. 5:22:30you're downloading a file or uploading a
  8453. 5:22:31file into drive. Uh, so just to show you
  8454. 5:22:34the opposite, we go to drive and then
  8455. 5:22:36you can see upload a file right here. So
  8456. 5:22:39again, you would want to fill this out.
  8457. 5:22:41Choose a specific file name over there.
  8458. 5:22:44Make sure the input data field name
  8459. 5:22:45matches to what is over here. So one to
  8460. 5:22:48one over there, a file upload, and then
  8461. 5:22:51choose the specific folders that you
  8462. 5:22:53particularly want. So your parent drive
  8463. 5:22:54and the parent folder. There's other
  8464. 5:22:56options over here as well if you want to
  8465. 5:22:59specifically fill these out. I don't use
  8466. 5:23:01those all the time. And yeah, that is
  8467. 5:23:03essentially it. So that is the basics of
  8468. 5:23:06the Google Suite. We're actually going
  8469. 5:23:08to build out two workflows uh together,
  8470. 5:23:11but just to kind of reiterate what we
  8471. 5:23:13covered.
  8472. 5:23:15First, Gmail. Really powerful because it
  8473. 5:23:18allows you to send email messages,
  8474. 5:23:19allows you to receive email messages and
  8475. 5:23:21you can start a workflow based off of an
  8476. 5:23:23email being sent to you if that has an
  8477. 5:23:25attachment or not. Next is Google
  8478. 5:23:27Sheets. So uh very similar to data
  8479. 5:23:30tables that we have here in any and
  8480. 5:23:31there's more that you could do in Google
  8481. 5:23:33Sheets and I'm not even going to say
  8482. 5:23:34sheets is the final solution because a
  8483. 5:23:35lot of people migrate from sheets into
  8484. 5:23:37air table as well. Uh but obviously
  8485. 5:23:39we're talking about the Google suite
  8486. 5:23:40right now. There's sheets very popular
  8487. 5:23:42to start a workflow based off of a
  8488. 5:23:44column change and you do see it
  8489. 5:23:46sometimes also with a specific row
  8490. 5:23:48change. A lot of updates that you can do
  8491. 5:23:49to a spreadsheet. You have Google Docs
  8492. 5:23:51over here where you could either create
  8493. 5:23:53a new document, get a document or update
  8494. 5:23:55a document. I've updated documents
  8495. 5:23:57before just based off of templates. And
  8496. 5:23:59then lastly, Google Drive. Um, very
  8497. 5:24:01popular to look when a new file is
  8498. 5:24:04uploaded. Uh, you can start a workflow
  8499. 5:24:06based around that. This is downloading a
  8500. 5:24:08file which allows you to get binary data
  8501. 5:24:09into your NAN workflows. And also very
  8502. 5:24:12popular at the very end of a workflow,
  8503. 5:24:14you do some type of building out of a
  8504. 5:24:17file, not out some complicated JSON, you
  8505. 5:24:19convert that into a spreadsheet, and
  8506. 5:24:21then you upload that into drive or you
  8507. 5:24:23create some type of image. Let's say you
  8508. 5:24:25have an image workflow. Uh you're
  8509. 5:24:27building out images or videos and you
  8510. 5:24:28upload that into the drive at the very
  8511. 5:24:31end. Uh but this is really good for
  8512. 5:24:32storage because you can't technically
  8513. 5:24:34store the data here in any you'll have
  8514. 5:24:36to upload it somewhere. You know,
  8515. 5:24:38there's other services besides Google
  8516. 5:24:39Drive, but everyone has drive if they
  8517. 5:24:41have a Gmail account or a Google account
  8518. 5:24:43and it just very simple to do. Man, I
  8519. 5:24:46feel like this has been a very long
  8520. 5:24:48section, but now we're going to talk
  8521. 5:24:50about two different workflows. I'm just
  8522. 5:24:52going to take a quick break and then
  8523. 5:24:53we'll jump those. Great. Let's cover our
  8524. 5:24:56projects for this section. So, the first
  8525. 5:24:58one that we should do and I think
  8526. 5:25:00there's going to be a better way to
  8527. 5:25:02approach this a little bit later on in
  8528. 5:25:03the course, but we're going to do a
  8529. 5:25:06weekly report generator. So, let's
  8530. 5:25:08schedule this at like a Monday at 9:00
  8531. 5:25:10a.m. Google Sheets is going to pull the
  8532. 5:25:13data and then what we're going to do is
  8533. 5:25:15use a summarize node
  8534. 5:25:18and then also kind of an email summary
  8535. 5:25:20at the very end. So, I'll leave this up
  8536. 5:25:24into interpretation for you to do, but
  8537. 5:25:28let's try uh to build something out like
  8538. 5:25:30this. Uh, pause the video. Three, two,
  8539. 5:25:34one, give it a shot and then I will be
  8540. 5:25:36back. All right. So, let's build this
  8541. 5:25:39out. So, as it mentioned, we need to
  8542. 5:25:42schedule this a Monday 9:00 a.m. So,
  8543. 5:25:44we're going to go into triggers and uh
  8544. 5:25:46we'll go over here and say on a
  8545. 5:25:48schedule. First thing we're going to do
  8546. 5:25:51is every week and then we're going to
  8547. 5:25:52choose Monday and then we're going to
  8548. 5:25:54choose 9:00 a.m. So, you can say 9:00
  8549. 5:25:58a.m. on the dot. So, that's perfectly
  8550. 5:26:00fine. Uh the next thing what we need to
  8551. 5:26:02do is grab data from Google Sheets. So,
  8552. 5:26:07we'll go into sheets
  8553. 5:26:11like that. And then we're going to get
  8554. 5:26:13over here, get rows in sheets. Now, this
  8555. 5:26:15is going to be the tricky part because
  8556. 5:26:17we're going to have to do some sort of
  8557. 5:26:18filtering associated with it. I'm not
  8558. 5:26:21going to worry about that um as of yet.
  8559. 5:26:24We can either filter directly into the
  8560. 5:26:26sheet or we could filter somewhere else.
  8561. 5:26:28Also, I'm just going to create a new
  8562. 5:26:29sheet for over here.
  8563. 5:26:33And uh let's build out some basic stuff.
  8564. 5:26:36So let's imagine we have a date over
  8565. 5:26:39here and then we have invoice amounts.
  8566. 5:26:43We're just going to spam these out.
  8567. 5:26:48I don't know. It doesn't really matter
  8568. 5:26:50to me. And let's set some dates. So
  8569. 5:26:53we'll say this is like 1210
  8570. 5:26:5725. We'll say this is 12 12 25. Let's
  8571. 5:27:02put some stuff newer as well. So, we'll
  8572. 5:27:05say 12 20 25 12 22 25
  8573. 5:27:13then 12 7.
  8574. 5:27:16So, this is going to be over here.
  8575. 5:27:20And uh let's test this out. So, we'll go
  8576. 5:27:24over here and grab this all YouTube
  8577. 5:27:28update. We'll go into sheet four. Let's
  8578. 5:27:30just execute this step. Great. We have
  8579. 5:27:33our row number. We have our date as well
  8580. 5:27:37as our invoice amount. So, we're looking
  8581. 5:27:38pretty good over there on that side of
  8582. 5:27:40things. Obviously, we're going to have
  8583. 5:27:42to do some sort of filter. Personally,
  8584. 5:27:44with dates, I find it probably easier to
  8585. 5:27:46filter outside of that. Uh, we could
  8586. 5:27:48also set timestamps and things like
  8587. 5:27:50that. So, we'll just make a note and
  8588. 5:27:52we're going to say filter over here
  8589. 5:27:58to be oops to be completed.
  8590. 5:28:03Then what I want to do is up next use a
  8591. 5:28:08summarize node. So, we're going to say
  8592. 5:28:09summarize and let's get some data points
  8593. 5:28:12that we want necessarily in here. Um,
  8594. 5:28:15obviously we're going to have to filter,
  8595. 5:28:16but we can just test this for now. And
  8596. 5:28:20what we're going to do on this side of
  8597. 5:28:22things, I'm just going to go to the
  8598. 5:28:23JSON. Let's count the row numbers, add
  8599. 5:28:27in a field. Let's go over here and find
  8600. 5:28:30the average invoice amount. Let's go
  8601. 5:28:33over here and find the sum of invoices
  8602. 5:28:37as well.
  8603. 5:28:39And let's grab the max.
  8604. 5:28:42So, we'll go over here.
  8605. 5:28:45And I guess also instead of row number,
  8606. 5:28:47we should probably do invoice amount
  8607. 5:28:48instead.
  8608. 5:28:51Great. And obviously you can choose
  8609. 5:28:54these values if you want. And you can
  8610. 5:28:56see we have this over there. Next, what
  8611. 5:28:59I want to do is have an AI agent. And
  8612. 5:29:02we're going to say is write a very basic
  8613. 5:29:06prompt. So let's go over here. Define
  8614. 5:29:08below. Say you are an agent. And by the
  8615. 5:29:13way, this isn't the approach I would
  8616. 5:29:14take normally. We're going to show you
  8617. 5:29:16that a little bit later on the course,
  8618. 5:29:17but we're going to say you're an agent
  8619. 5:29:19that writes,
  8620. 5:29:22a concise email
  8621. 5:29:25that summarizes
  8622. 5:29:27paid invoices
  8623. 5:29:29for last week. Here
  8624. 5:29:33are the data points.
  8625. 5:29:38Let's expand that out. Say counts.
  8626. 5:29:43average
  8627. 5:29:46sum
  8628. 5:29:48max
  8629. 5:29:50and just throw these in.
  8630. 5:29:54Let's put this as an expression.
  8631. 5:29:57And then let's expand it out just to
  8632. 5:29:59make this a little bit easier. Counts,
  8633. 5:30:02average, sum,
  8634. 5:30:04and max. Cool. And you can see all this
  8635. 5:30:07is populated over here. Let's add in a
  8636. 5:30:10model. So, let's add that in Gemini
  8637. 5:30:12since we've used Enthropic a bit. And
  8638. 5:30:14that's fine. We're just going to use
  8639. 5:30:16Gemini 2. Actually, let's make this
  8640. 5:30:19three. We go. Where is Gemini
  8641. 5:30:253 Pro preview?
  8642. 5:30:27That's image.
  8643. 5:30:30Cool. So, we have that in over here. And
  8644. 5:30:32now, like obviously, we have all our
  8645. 5:30:34data points that we need. We can also
  8646. 5:30:36build out an email.
  8647. 5:30:38So, go to Gmail.
  8648. 5:30:41We're going to say send a message.
  8649. 5:30:43Obviously, we can send drafts if we
  8650. 5:30:46want. I'm just going to send a message
  8651. 5:30:47to myself to Ryan Nolan data
  8652. 5:30:53gmail.com
  8653. 5:30:56this week's report
  8654. 5:30:59email type and [snorts] then message.
  8655. 5:31:01Obviously, we're going to have to send
  8656. 5:31:02it from the AI agent. All right. So, all
  8657. 5:31:05this is kind of looking like it's going
  8658. 5:31:06to work. The only thing that we need to
  8659. 5:31:08do now is filter this out. So, what we
  8660. 5:31:12can do is set that filter and let me
  8661. 5:31:15think about how we're going to approach
  8662. 5:31:16that. I'm just going to save this really
  8663. 5:31:18fast. We're going to go into a filter
  8664. 5:31:23and we could use AI to help us out with
  8665. 5:31:25these dates if we want. We also have the
  8666. 5:31:26date and time. So, there's a few
  8667. 5:31:28different approaches that we could take.
  8668. 5:31:32Then, uh we might actually use AI. So,
  8669. 5:31:36we're going to go over here. Date and
  8670. 5:31:37time
  8671. 5:31:39is
  8672. 5:31:41after we're going to say like last 7
  8673. 5:31:44days.
  8674. 5:31:45So, I'm going to ask really quick into
  8675. 5:31:51a large language model how we can do
  8676. 5:31:53that. So, watch what we're going to do.
  8677. 5:31:54I'm going to copy this and I'm going to
  8678. 5:31:56load up Claude
  8679. 5:32:01and we're going to go over here. I'm
  8680. 5:32:03going to say write an expression
  8681. 5:32:06in nan to filter
  8682. 5:32:10the dates
  8683. 5:32:13by
  8684. 5:32:16anything
  8685. 5:32:18last seven days.
  8686. 5:32:23All right. So I'm sending this over
  8687. 5:32:24here. I sent in a screenshot. I sent
  8688. 5:32:27some context associated with it. Let's
  8689. 5:32:29see.
  8690. 5:32:37This is pretty readable.
  8691. 5:32:39So, let's test this out.
  8692. 5:32:46And actually, we
  8693. 5:32:51might want to use an if instead.
  8694. 5:32:55We're back to if.
  8695. 5:32:57Yeah, if is going to be better in this
  8696. 5:32:59case than filter.
  8697. 5:33:01All right. So, what we're going to do is
  8698. 5:33:04grab this date,
  8699. 5:33:08say date and time.
  8700. 5:33:13Oh, actually, it's not going to matter.
  8701. 5:33:16Throw that in there.
  8702. 5:33:23You can see we can set an expression.
  8703. 5:33:26All right. So, we're looking for last
  8704. 5:33:29seven days. Let's see if this worked
  8705. 5:33:31correctly.
  8706. 5:33:35Obviously, this didn't work as I kind of
  8707. 5:33:37expected.
  8708. 5:33:39I'm going to send all of this as a
  8709. 5:33:41screenshot
  8710. 5:33:43there. So, check this out.
  8711. 5:33:47That obviously didn't work. Send it back
  8712. 5:33:49in over here.
  8713. 5:33:52That'll tell me exactly what happened.
  8714. 5:33:56I should have put also I'm using a
  8715. 5:33:58filter node, not if.
  8716. 5:34:05All right, there we go. So, it gives me
  8717. 5:34:08this over here.
  8718. 5:34:16Take a look
  8719. 5:34:19today minus 7 days. Yeah, but exactly.
  8720. 5:34:21So that's why I mentioned like sure you
  8721. 5:34:23can be a little bit faster if you
  8722. 5:34:25memorize all of this, but really like
  8723. 5:34:28LMS are pretty good at this as well,
  8724. 5:34:29just creating these expressions. So I
  8725. 5:34:31just recommend that. And you see it it
  8726. 5:34:33already took two things. I could have
  8727. 5:34:34prompted this way better over here, but
  8728. 5:34:37at the end of the day, it worked. We
  8729. 5:34:38kept two items. We disregarded these
  8730. 5:34:41specifically three. Um, obviously I kind
  8731. 5:34:44of wish this 1220 was a little bit
  8732. 5:34:46earlier, but that's fine. Or not
  8733. 5:34:48earlier, later. But that's fine. All
  8734. 5:34:50right. So now what I want to do is minus
  8735. 5:34:52this send a message. I want to test this
  8736. 5:34:54whole workflow. So we're just going to
  8737. 5:34:56execute this workflow. I don't need this
  8738. 5:34:58if anymore.
  8739. 5:35:00And you can see we have a problem with
  8740. 5:35:02our AI agent. The reason why is actually
  8741. 5:35:04have another workflow going on in the
  8742. 5:35:05background. So I'm going to just use
  8743. 5:35:07OpenAI
  8744. 5:35:09really fast. We're going to go to over
  8745. 5:35:11here and use GPT5 Mini.
  8746. 5:35:18Right now I'm actually uh building out a
  8747. 5:35:20bunch of timestamps for our YouTube
  8748. 5:35:21videos because they were missing and I
  8749. 5:35:23actually have uh like 400 YouTube
  8750. 5:35:25videos, 300 something like that. So it
  8751. 5:35:28is not working because of that.
  8752. 5:35:34All right. So now what you can see is
  8753. 5:35:38have this going on
  8754. 5:35:40subject paid invoices summary last week
  8755. 5:35:46and uh
  8756. 5:35:49cool
  8757. 5:35:55all of there and I'm going to say do not
  8758. 5:35:57include a sum a subject as well. say,
  8759. 5:36:00"Do not include
  8760. 5:36:04the subject,
  8761. 5:36:07only the email body." Again, later we'll
  8762. 5:36:10we'll cover what makes a good prompt.
  8763. 5:36:15And obviously, we could define it a
  8764. 5:36:16little bit better, but uh it's okay.
  8765. 5:36:21All right, great. We have this now and
  8766. 5:36:25we can pass that in over here. So let's
  8767. 5:36:28send this output over here as the
  8768. 5:36:31message.
  8769. 5:36:33You can see what it looks like. Hi, last
  8770. 5:36:34week we paid two invoices totaling
  8771. 5:36:36average amount was 46 and the largest
  8772. 5:36:38payment was 93. Is that correct? So
  8773. 5:36:41let's go back over here.
  8774. 5:36:44Yep, that looks correct. And we'll send
  8775. 5:36:47that message. So send that. Put my
  8776. 5:36:51correct Gmail account.
  8777. 5:36:54Great. It's been sent. And then let me
  8778. 5:36:56check my inbox to see if we actually got
  8779. 5:36:58it or not.
  8780. 5:37:01All right. And we jump over here. Look,
  8781. 5:37:03this week's report, hi. Last week we
  8782. 5:37:05paid two invoices totaling 93. Average
  8783. 5:37:07payment was blah blah blah. Right. And
  8784. 5:37:10that has been sent. Thanks. Obviously, I
  8785. 5:37:12I should fix the formatting because you
  8786. 5:37:14can see over here
  8787. 5:37:17by going back the new lines and things
  8788. 5:37:19like that weren't actually sent. So, you
  8789. 5:37:22can see we should probably send this as
  8790. 5:37:23like an HTML body. So that way we could
  8791. 5:37:26format it a little bit better. Um, but
  8792. 5:37:28this is just a very basic concept for
  8793. 5:37:31you guys or very basic idea. Um, yeah,
  8794. 5:37:35we could also change that out. So, email
  8795. 5:37:37type instead of body. Let's put this as
  8796. 5:37:38text so that way we could get that to
  8797. 5:37:40work
  8798. 5:37:42and I'll execute this as a step again.
  8799. 5:37:45All right, it sends Let me see if we
  8800. 5:37:47have that over here. Probably should
  8801. 5:37:48have changed it a little bit different.
  8802. 5:37:51Great. It actually did. So, last time I
  8803. 5:37:54sent that as HTML. This time I didn't.
  8804. 5:37:56And you can see we have that correct.
  8805. 5:37:58HTML template, by the way, for email.
  8806. 5:38:00Super super helpful if you're building
  8807. 5:38:01out some designs and things like that.
  8808. 5:38:03And obviously, I kept this attribution.
  8809. 5:38:05I could change that if I want, but it's
  8810. 5:38:06kind of just to show you guys here in
  8811. 5:38:08that specific video. So, great. We know
  8812. 5:38:11that is working for this use case.
  8813. 5:38:13Hopefully, you're able to solve this
  8814. 5:38:14out. Um, I just find pretty easy. Add in
  8815. 5:38:17a filter first. schedule the trigger at
  8816. 5:38:209:00 a.m. get the sheets, filter this
  8817. 5:38:23out, summarize based off these data
  8818. 5:38:24points, throw that into an AI agent, and
  8819. 5:38:27then send a specific email associated
  8820. 5:38:29with it. Uh, the next one, which we're
  8821. 5:38:31going to do also, is an expense tracker.
  8822. 5:38:35So, what we can do on this, and
  8823. 5:38:38obviously, um, it's going to be a little
  8824. 5:38:40bit different,
  8825. 5:38:43but let me show you.
  8826. 5:38:48All right. So, how we're going to work
  8827. 5:38:51this is we're going to have a Gmail
  8828. 5:38:52which receives email and it said
  8829. 5:38:55receipt. I'm just going to say receive
  8830. 5:38:56because I didn't show you OCR yet.
  8831. 5:38:58Initially when I was building out this
  8832. 5:39:00course, I was thinking about putting OCR
  8833. 5:39:02a little bit earlier, but I decided to
  8834. 5:39:03put an advanced AI section. So, uh,
  8835. 5:39:06Gmail receives emails. We're going to
  8836. 5:39:08extract the amounts out. We're going to
  8837. 5:39:10use an AI agent right now, but later on
  8838. 5:39:12in the course, I'm going to show you
  8839. 5:39:13actually a better approach than using an
  8840. 5:39:15AI agent. We're going to log this to a
  8841. 5:39:17Google sheet and then uh we don't need
  8842. 5:39:19that monthly summary. We're just going
  8843. 5:39:21to do it like that and let's jump into
  8844. 5:39:24that. So, if you want to give this a try
  8845. 5:39:27uh test it out, pause the video. Three,
  8846. 5:39:29two, one. Otherwise, I'm going to solve
  8847. 5:39:32it. All right, let's go and solve this.
  8848. 5:39:35So, what we're going to do is use Gmail.
  8849. 5:39:37Go to Gmail over here. We're going to
  8850. 5:39:38get a trigger
  8851. 5:39:42say on message received. Now, you could
  8852. 5:39:46remove this simplify if you want. I
  8853. 5:39:49would recommend you remove it. We're
  8854. 5:39:51going to make sure we have a specific
  8855. 5:39:53sender since we're an email, a party
  8856. 5:39:55email. I'm just going to put my email
  8857. 5:39:57over here. So,
  8858. 5:40:00data.com.
  8859. 5:40:04So, I only want to receive it over here.
  8860. 5:40:05Obviously, up to you if you want to add
  8861. 5:40:07in that filter or not. We're going to
  8862. 5:40:09extract out the amounts. So, we're going
  8863. 5:40:11to have to use an AI agent on there. So
  8864. 5:40:14imagine we have it just an email in
  8865. 5:40:15general and we're going to want to
  8866. 5:40:17extract that out. So we're going to put
  8867. 5:40:19that over here. I'm going to grab our
  8868. 5:40:23define below. Say I'm just going to say
  8869. 5:40:25you are an AI agent that extracts
  8870. 5:40:33dollar amounts
  8871. 5:40:36from an email.
  8872. 5:40:39only
  8873. 5:40:42extract
  8874. 5:40:44all the dollar amount
  8875. 5:40:51email. I'm going to say only
  8876. 5:40:56finals output
  8877. 5:40:59to be an integer.
  8878. 5:41:05And actually maybe we want to make this
  8879. 5:41:07a float a float
  8880. 5:41:10value and nothing else. Great. So we
  8881. 5:41:14have our AI agents over there and then
  8882. 5:41:16we're going to go to sheets.
  8883. 5:41:19So go to sheets and then what we're
  8884. 5:41:20going to do is let's say append a row in
  8885. 5:41:24sheets.
  8886. 5:41:25Put my sheets account over here.
  8887. 5:41:27Obviously we don't have this sheet built
  8888. 5:41:29out yet. So let's go and build out a new
  8889. 5:41:31sheet. So, we're going to say these are
  8890. 5:41:34like expenses. So, we can say expenses
  8891. 5:41:39and we'll say like 50, 100, 125 or
  8892. 5:41:4311245. It's fine. We're going to add in
  8893. 5:41:45a new expense over here. Again, I'm not
  8894. 5:41:49being super scientific about it. We're
  8895. 5:41:51just making something simple just to
  8896. 5:41:55make sure you get the concepts down. We
  8897. 5:41:56have OpenAI over there. Awesome. Let's
  8898. 5:41:59go in here. grab the documents that we
  8899. 5:42:02want. Go to sheet five. We have that
  8900. 5:42:06over here. We're going to say expenses,
  8901. 5:42:08which is going to be after our AI agent.
  8902. 5:42:10Obviously, I don't want to pin that yet.
  8903. 5:42:11So, we're going to save that. I'm going
  8904. 5:42:13to send an email to myself.
  8905. 5:42:15And let me do that really fast. I'll
  8906. 5:42:18show you the email, too.
  8907. 5:42:21So, I'm going send that over here.
  8908. 5:42:24Expense
  8909. 5:42:261228.
  8910. 5:42:29I spent
  8911. 5:42:34$25
  8912. 5:42:36on
  8913. 5:42:37a Chipotle bowl
  8914. 5:42:41and large chip.
  8915. 5:42:46All right, I'm going send that out over
  8916. 5:42:48here.
  8917. 5:42:50And I have that in. So, let's fetch this
  8918. 5:42:54test event.
  8919. 5:42:57Great. So you can see over here I spent
  8920. 5:43:00$25 on a Chipotle bowl uh enlarged chip
  8921. 5:43:03in queso. We have our text as well and
  8922. 5:43:07we're good. So now what I'm going to do
  8923. 5:43:08is send that into our AI agent.
  8924. 5:43:12We're going to say make this an
  8925. 5:43:14expression
  8926. 5:43:16and expand this out.
  8927. 5:43:18We're going to say
  8928. 5:43:20email. We're going to pass in this text.
  8929. 5:43:25Great. So obviously we want to test our
  8930. 5:43:27agent to make sure it's working
  8931. 5:43:28properly. Hopefully we just get 25.
  8932. 5:43:31Boom. We get 25.0. As I mentioned, it's
  8933. 5:43:34a float. A float is just an integer with
  8934. 5:43:36decimals at the very end. Uh since we're
  8935. 5:43:38doing a currency, obviously we want to
  8936. 5:43:39have that as well. We don't want to just
  8937. 5:43:41round it to the biggest whole number.
  8938. 5:43:44All right. So now what we're going to do
  8939. 5:43:45is just add this into our sheets. So we
  8940. 5:43:49have our output over here. We're going
  8941. 5:43:50to send over this expenses on that side
  8942. 5:43:53of it. So, we've added that in and uh
  8943. 5:43:56execute step 25. So, now going back over
  8944. 5:44:01to our sheet, you can see 25 has been
  8945. 5:44:03particularly added. So, pretty cool
  8946. 5:44:05workflow. We have a Gmail trigger that
  8947. 5:44:07expects an email from a certain email.
  8948. 5:44:09We have an AI agent that takes that
  8949. 5:44:11email, extracts out the dollar amount as
  8950. 5:44:13required. Obviously, if there's multiple
  8951. 5:44:15dollar amounts, it's going to get
  8952. 5:44:16confused. So, you should prompt it a
  8953. 5:44:18little bit better. Like, hey, should we
  8954. 5:44:19sum these up? Should we ignore it?
  8955. 5:44:21Should we take the max?
  8956. 5:44:22you need to define your AI agent for all
  8957. 5:44:24the scenarios that you can think of.
  8958. 5:44:26Obviously, like we're not covering that
  8959. 5:44:28yet in this course. And then we just
  8960. 5:44:30appended a row in sheet just like this.
  8961. 5:44:32So, I've seen literally jobs on like
  8962. 5:44:34freelance platforms like Upwork that are
  8963. 5:44:36this easy at times. Um, but it just adds
  8964. 5:44:38in like one or two additional steps and
  8965. 5:44:41uh yeah, there a lot of different
  8966. 5:44:42opportunities over there. So, that was
  8967. 5:44:45the Google section of the course. We
  8968. 5:44:48essentially learned how to set up Gmail.
  8969. 5:44:51We learned how to set up Sheets, Docs,
  8970. 5:44:54and also Drive. Then we went and built
  8971. 5:44:57out two workflows. Obviously, this was
  8972. 5:44:58the more difficult of the two workflows
  8973. 5:45:00because I asked for a few extra steps.
  8974. 5:45:02And you know, this combined both Gmail
  8975. 5:45:04as well as Google Sheets. I feel like we
  8976. 5:45:06didn't cover the other ones that well
  8977. 5:45:08through examples of Drive and things
  8978. 5:45:10like that. But probably a little bit
  8979. 5:45:11later on in the course when we learn
  8980. 5:45:13about images and videos, uh, it's going
  8981. 5:45:14to be a little bit more applicable.
  8982. 5:45:16Anyways, I think up next we're going to
  8983. 5:45:19be jumping into HTTP requests. No, we
  8984. 5:45:22actually have documenting up workflow
  8985. 5:45:24first and then we're going to be jumping
  8986. 5:45:25into HTTP. So, uh, awesome job guys and
  8987. 5:45:29I'll see you in the next lectures. So,
  8988. 5:45:31this section is going to be a bit
  8989. 5:45:32[clears throat] of a breather in
  8990. 5:45:33comparison to the previous ones. In
  8991. 5:45:35addition, I know upcoming we have our
  8992. 5:45:38HTTP request and web hook which tend to
  8993. 5:45:41be pretty dense with information. So,
  8994. 5:45:44you guys need a break. we're going to be
  8995. 5:45:46talking about today how to document your
  8996. 5:45:48workflows. I feel like this is a pretty
  8997. 5:45:51important concept. So, we should throw
  8998. 5:45:52it pretty early on within the course
  8999. 5:45:54because what tends to happen with a lot
  9000. 5:45:57of workflows, people will build them out
  9001. 5:45:58and later on they forget like why did I
  9002. 5:46:01build out this logic? What is going on?
  9003. 5:46:03Or if you deliver it to a customer, they
  9004. 5:46:05don't know nan and if they're trying to
  9005. 5:46:07debug something, they just have no
  9006. 5:46:09understanding what you particularly
  9007. 5:46:11built out. So, I'm going to be showing
  9008. 5:46:13you guys essentially how you can use
  9009. 5:46:15sticky notes, how you can tidy up your
  9010. 5:46:17workflows, uh some of the other things
  9011. 5:46:18you can throw in with these nodes as
  9012. 5:46:20well. In addition, I briefly want to
  9013. 5:46:23talk about one way to kind of present
  9014. 5:46:26updates with your workflows to
  9015. 5:46:29customers. Now, we haven't even really
  9016. 5:46:31talked about customers since it's going
  9017. 5:46:32to be way later on in the course, but I
  9018. 5:46:34just wanted to quickly talk about that
  9019. 5:46:36in here. So, one of the tools that I use
  9020. 5:46:38all the time is something called Loom,
  9021. 5:46:40and it saves me a ton of time. So
  9022. 5:46:42essentially what Loom is is you can
  9023. 5:46:44record short videos uh just on your
  9024. 5:46:47desktop and then send it over to your
  9025. 5:46:49customer and it essentially renders
  9026. 5:46:51really really fast. And why that is
  9027. 5:46:53helpful? First, you can kind of walk
  9028. 5:46:54through what you're building in a
  9029. 5:46:56workflow, show some results and you
  9030. 5:46:58don't even have to jump onto meetings.
  9031. 5:47:00See, one of the things that takes away a
  9032. 5:47:02ton of time when you're building out
  9033. 5:47:04things for customers or you want to send
  9034. 5:47:07something for clarity is jumping on
  9035. 5:47:09calls because you'll say, "How are you
  9036. 5:47:11doing?" You'll chitchat a little bit and
  9037. 5:47:13later you find out it's 30 minutes where
  9038. 5:47:15you could record a two or three minute
  9039. 5:47:16Loom video and you are way farther
  9040. 5:47:19ahead. So, make sure you guys are using
  9041. 5:47:21Loom. I'm not affiliated with them in
  9042. 5:47:23any means, but honestly, it saves me a
  9043. 5:47:25ton of time. also a little bit outside
  9044. 5:47:27the scope of the section. What I like to
  9045. 5:47:29do when I give a final workflow is build
  9046. 5:47:31out a Google document demonstrating like
  9047. 5:47:34why we have things in certain sections.
  9048. 5:47:37We'll talk about this in like presenting
  9049. 5:47:40findings and things like that to
  9050. 5:47:41customers at the very end of the video,
  9051. 5:47:43but I just felt like we needed to
  9052. 5:47:44quickly talk about Loom. All right, so
  9053. 5:47:46let's jump into our workflow. And uh
  9054. 5:47:50obviously I have nothing over here yet,
  9055. 5:47:52but let's just build out something that
  9056. 5:47:55could be useful. Let's say we have a
  9057. 5:47:58form trigger. And obviously I'm not
  9058. 5:47:59going to build out an actual workflow. I
  9059. 5:48:02just want to show you the documentation
  9060. 5:48:03side of things. So let's say we have a
  9061. 5:48:05form trigger over here. Uh the next what
  9062. 5:48:07we want to do is extract um from our
  9063. 5:48:10file and we're going to just pretend we
  9064. 5:48:12have like a spreadsheet. Okay, so we're
  9065. 5:48:14going to extract from a file. We'll say
  9066. 5:48:16extract from CSV. Next thing we want to
  9067. 5:48:19do, let's say we have an AI agent of
  9068. 5:48:21some capacity. The AI agent is going to
  9069. 5:48:24go and write something for each of these
  9070. 5:48:26customers and do some research. Let's
  9071. 5:48:28say we add in another tool over here.
  9072. 5:48:31Um, I know I haven't showed you guys
  9073. 5:48:33tools yet, but that's fine. Let's say we
  9074. 5:48:35have a perplexity tool over here that
  9075. 5:48:38does some deep research for a specific
  9076. 5:48:41customer. And then what we have next is,
  9077. 5:48:44hey, we have all this information
  9078. 5:48:47together. We need to write an email. So
  9079. 5:48:50we'll have another AI agent that
  9080. 5:48:52literally just focuses on writing out an
  9081. 5:48:54email. And lastly, let's send this over
  9082. 5:48:56to a customer. So we're going to send
  9083. 5:48:58this through a Gmail node. And uh all
  9084. 5:49:00we're going to do is click send a
  9085. 5:49:02message. Very basic workflow. I'd
  9086. 5:49:05probably change a lot of things.
  9087. 5:49:06Obviously, we would put different chat
  9088. 5:49:07models in over here. Let's just put
  9089. 5:49:10these over here just to make this look a
  9090. 5:49:12little bit cleaner. And uh yeah, so
  9091. 5:49:15let's start off and show you where these
  9092. 5:49:17sticky notes are. So first thing what
  9093. 5:49:19you would want to do is mention the
  9094. 5:49:22whole process like what is going on.
  9095. 5:49:24We're going to go into our sticky notes
  9096. 5:49:26and I like just putting you know how
  9097. 5:49:28does this workflow start? So this
  9098. 5:49:30workflow starts and I'd make a note.
  9099. 5:49:33Okay, this workflow starts
  9100. 5:49:38starts
  9101. 5:49:39when someone
  9102. 5:49:42enters in information
  9103. 5:49:45on form on website. They upload a CSV
  9104. 5:49:52CSV they want more information for
  9105. 5:49:57or okay and I just start going down the
  9106. 5:50:00line
  9107. 5:50:01extract from file is pretty basic so we
  9108. 5:50:04understand what is happening there for
  9109. 5:50:05this AI agent what we're going to say is
  9110. 5:50:08we research
  9111. 5:50:10the leads presented in the spreadsheet
  9112. 5:50:18perplexity
  9113. 5:50:21helps us get this information.
  9114. 5:50:23This information again if I was actually
  9115. 5:50:26making this finalized I would put a lot
  9116. 5:50:28more detail in here. This is just a
  9117. 5:50:30quick video and then I'd say over here
  9118. 5:50:32this AI agent
  9119. 5:50:35this AI agent
  9120. 5:50:37AI agent goes and gets goes and I should
  9121. 5:50:43rewrite this. This AI agent creates an
  9122. 5:50:45email
  9123. 5:50:48an email
  9124. 5:50:50based on the examples
  9125. 5:50:54from XYZ. I don't know XY and Z. And
  9126. 5:50:59then we can lastly have that send
  9127. 5:51:02message to the customer or whoever we
  9128. 5:51:04send that specific email to. So, this is
  9129. 5:51:07like pretty poor on the documentation
  9130. 5:51:10side of things, but at least there is
  9131. 5:51:12some sort of documentation. I I really
  9132. 5:51:14recommend when you have things like AI
  9133. 5:51:16agents where it's not super clear what
  9134. 5:51:18is going on, you write a sticky note
  9135. 5:51:20because you have to go in over here.
  9136. 5:51:22You're going to have to take a look at
  9137. 5:51:23the prompt that someone wrote as well as
  9138. 5:51:25uh the system message. It's just extra
  9139. 5:51:28clicks and you don't necessarily need to
  9140. 5:51:30do that. In addition, one of the things
  9141. 5:51:31that's really helpful is we can actually
  9142. 5:51:33change what these nodes are called. And
  9143. 5:51:36you know, it's not really helpful to
  9144. 5:51:37have AI agent, AI agent one. And if you
  9145. 5:51:39build more advanced workflows, which you
  9146. 5:51:40will, you have like AI agent 2, AI agent
  9147. 5:51:433, all the way to like five or six
  9148. 5:51:44sometimes. So let's just re label these.
  9149. 5:51:47And you can see if I go to the top left,
  9150. 5:51:48I'll say email
  9151. 5:51:51creator
  9152. 5:51:53AI agent.
  9153. 5:51:55And obviously label these how you want.
  9154. 5:51:57And you could have your own formatting.
  9155. 5:51:58And like this is a little bit too long.
  9156. 5:52:00So maybe I just want to call this an
  9157. 5:52:01email creator. I would say like lead
  9158. 5:52:05researcher.
  9159. 5:52:09Man, I have caps lock on. I don't even
  9160. 5:52:11know. Maybe I don't. Hold on. Know what
  9161. 5:52:15it is? It's my mic that's in the way and
  9162. 5:52:18I can't see
  9163. 5:52:21my nice spelling as well. But let's
  9164. 5:52:23imagine I actually spelled this
  9165. 5:52:24correctly. And you could re label these
  9166. 5:52:27as well. and I'll just say like extract
  9167. 5:52:31from CSV. So that's pretty helpful. In
  9168. 5:52:35addition, what you can do if you go to
  9169. 5:52:37the settings, you'll notice that we have
  9170. 5:52:39notes and you can display notes and it
  9171. 5:52:41says this grabs.
  9172. 5:52:45Obviously like that's not the case, but
  9173. 5:52:48you can see we have a little bit extra
  9174. 5:52:50text over here. Um, sorry, I should
  9175. 5:52:52probably put on this one. This
  9176. 5:52:54researches a lead. this uses perplexity
  9177. 5:52:58and gets lead info.
  9178. 5:53:02And you can see it's a little bit too
  9179. 5:53:04long on this heading. So just put a
  9180. 5:53:05small few lines like maybe three words
  9181. 5:53:07as a description. But you can throw that
  9182. 5:53:09there. Same thing happens over here
  9183. 5:53:11outside the AI agent. You just have this
  9184. 5:53:13extra line. Um so this is pretty
  9185. 5:53:15helpful. You can see we have this also
  9186. 5:53:17over here. Upload
  9187. 5:53:20CSV.
  9188. 5:53:22And uh you can see that's populated
  9189. 5:53:24right there. So you can use a mixture of
  9190. 5:53:26you know reabeling the node name. You
  9191. 5:53:29could use sticky notes as well as
  9192. 5:53:32putting those additional notes here at
  9193. 5:53:33the bottom. Just remember it's like
  9194. 5:53:35three and you have to click display note
  9195. 5:53:38in that particular flow. So we're going
  9196. 5:53:41to save this. I just want to show you a
  9197. 5:53:43few other things as well with these
  9198. 5:53:45sticky notes that kind of may be helpful
  9199. 5:53:47for you. So I see some people they have
  9200. 5:53:50different like label of colors. So you
  9201. 5:53:52can see if we click on this right over
  9202. 5:53:54here we can change the colors associated
  9203. 5:53:56with this. So some people might have
  9204. 5:53:58certain sections or readmes based around
  9205. 5:54:00this. I would also recommend if you have
  9206. 5:54:02like a really advanced workflow. All you
  9207. 5:54:05should all you could do and I should say
  9208. 5:54:07all you should do is maybe have like a
  9209. 5:54:09read me section here at the top like
  9210. 5:54:10what is happening in this particular
  9211. 5:54:12workflow and and one of the things that
  9212. 5:54:14might be a little bit helpful on that is
  9213. 5:54:16having a distinct color in addition
  9214. 5:54:18having a different um size of text like
  9215. 5:54:20all this text is the same in fact if you
  9216. 5:54:22go over here and put a header you can
  9217. 5:54:24either put one two or three hashtag or
  9218. 5:54:27pound signs and it changes the side so
  9219. 5:54:29you can see like for example readme like
  9220. 5:54:31this and you'll see the size of it is
  9221. 5:54:33large You could also change this up to
  9222. 5:54:36two. It's a little bit smaller. You
  9223. 5:54:38could change this up to three and it's
  9224. 5:54:40even smaller. So, um, typically I'll
  9225. 5:54:42probably put like a two. I think this is
  9226. 5:54:44pretty good and it's super helpful. Now,
  9227. 5:54:46there's a lot of other things that you
  9228. 5:54:47can put into a sticky note like this as
  9229. 5:54:49well. You can actually embed in images
  9230. 5:54:51and videos. In fact, I've embedded
  9231. 5:54:53YouTube videos in these. You can also
  9232. 5:54:55link out to stuff. And I just want to
  9233. 5:54:57quickly show you the documentation. So,
  9234. 5:54:59you can say you can style with markdown.
  9235. 5:55:02So if you know markdown, you have that
  9236. 5:55:04option over there. I'm just going to add
  9237. 5:55:06in another sticky note so you can
  9238. 5:55:07actually see the guide. And this is what
  9239. 5:55:09I recommend basically. Again, I don't
  9240. 5:55:11memorize everything. But you can see you
  9241. 5:55:14can change the position, which I think I
  9242. 5:55:16already covered in the basic first
  9243. 5:55:17video, but you can put the sticky note
  9244. 5:55:19behind the particular nodes. This is
  9245. 5:55:21markdown. So you can see bold is two
  9246. 5:55:23stars. So if I want to do bold, let's
  9247. 5:55:25just go over here say bold test
  9248. 5:55:31test like this
  9249. 5:55:34that is now bold. You have asterisk with
  9250. 5:55:37the italics. You have italic which is
  9251. 5:55:40one star. This is a headings which I
  9252. 5:55:41talked about. This is an example of
  9253. 5:55:43putting in a link. You can create lists.
  9254. 5:55:45Oh, which I find really helpful as well,
  9255. 5:55:47especially in a read me. Like you could
  9256. 5:55:49say like step one, [snorts]
  9257. 5:55:51step one, add CSV file
  9258. 5:55:56process
  9259. 5:55:58research. And again, these are one word.
  9260. 5:56:00I wouldn't recommend that. Um, I'd say
  9261. 5:56:03email and then send.
  9262. 5:56:06Let me fix that for again. Be very
  9263. 5:56:09thorough with your documentation. But
  9264. 5:56:10you can see I built out a list on that
  9265. 5:56:12side of things. It says make images full
  9266. 5:56:14width. Then you can also embed a YouTube
  9267. 5:56:16video. So pretty powerful stuff with
  9268. 5:56:18these sticky notes and uh throw that
  9269. 5:56:21together. All right. Promise you this is
  9270. 5:56:23the last thing in this section. But
  9271. 5:56:25another thing I sometimes see is people
  9272. 5:56:27have like jumbled up workflows. Like
  9273. 5:56:28don't make this your workflow. It
  9274. 5:56:30literally takes two seconds to fix this.
  9275. 5:56:32All you got to do is click this tidy up
  9276. 5:56:34and look at that. Way better. And just
  9277. 5:56:36make sure these sticky notes are in
  9278. 5:56:38places that you think would be
  9279. 5:56:40acceptable. If you're coming from
  9280. 5:56:41programming background, just think of
  9281. 5:56:42sticky notes as like comments. And um
  9282. 5:56:44for those who don't have a programming
  9283. 5:56:46background, comments are just really
  9284. 5:56:48important. So that way someone later on
  9285. 5:56:49can understand what you are particularly
  9286. 5:56:52doing. And yeah, that is essentially the
  9287. 5:56:54basics of a documenting workflow. Again,
  9288. 5:56:56I would recommend that you probably also
  9289. 5:56:58have some sort of video demonstrating
  9290. 5:57:00like what is going on in this workflow.
  9291. 5:57:01You could use a loom. You could also
  9292. 5:57:03have a word document just doing a very
  9293. 5:57:05quick writeup. Make sure you put in
  9294. 5:57:07sticky notes. I recommend putting in a
  9295. 5:57:09readme. Uh there's different formatting
  9296. 5:57:11that you can put in the sticky notes as
  9297. 5:57:13well. Very basic workflow with these
  9298. 5:57:14five. Make sure that these aren't all
  9299. 5:57:16over the place. You know, there's no um
  9300. 5:57:19example project for this section since
  9301. 5:57:21it's kind of pretty straightforward. Uh
  9302. 5:57:23but the next one when we're going to be
  9303. 5:57:24talking about HTTP requests, you can bet
  9304. 5:57:26there's quite a few examples. So that
  9305. 5:57:28way uh you get that skill ingrained
  9306. 5:57:29because it is so important for
  9307. 5:57:32orchestration. All right, we're going to
  9308. 5:57:33jump into that section right now. So
  9309. 5:57:35these next two sections are going to be
  9310. 5:57:37blended together. The first part I'm
  9311. 5:57:38going to be teaching you about the HTTP
  9312. 5:57:41request node which allows us to use APIs
  9313. 5:57:45within our NE workflows that are not
  9314. 5:57:48native to NEN. And the second section
  9315. 5:57:51which is going to be kind of lecture 13
  9316. 5:57:53is going to be the examples of using
  9317. 5:57:55real world APIs. We'll use some that
  9318. 5:57:57have technical pageionation. We'll use
  9319. 5:57:59some that you have to have credentials
  9320. 5:58:02for. Others they're going to be pretty
  9321. 5:58:04easy to set up. and we'll build a few
  9322. 5:58:06different workflows from this. I assume
  9323. 5:58:09both these sections are going to be a
  9324. 5:58:10bit longer, which is why I separated
  9325. 5:58:12them out. The first part will be
  9326. 5:58:14teaching you the basics and then the
  9327. 5:58:16second part will be implementing that
  9328. 5:58:18out. So for this first part, I apologize
  9329. 5:58:20for the lack of ruled examples. The
  9330. 5:58:22second part um which is going to be
  9331. 5:58:24lecture 13 is going to really focus
  9332. 5:58:27around using the HTTP request. So with
  9333. 5:58:32that out of the way, let's start
  9334. 5:58:33covering it because there's a lot to
  9335. 5:58:35start learning and awesome. So what
  9336. 5:58:38we're going to first talk about is the
  9337. 5:58:41node. So just go over here to the plus
  9338. 5:58:43and then look for HTTP like this and
  9339. 5:58:46you'll see HTTP request. Now out on the
  9340. 5:58:48service level there's a lot that is
  9341. 5:58:51going on. First we have a method. So we
  9342. 5:58:54have delete, get, add, options, patch,
  9343. 5:58:58post or put. Then we have authentication
  9344. 5:59:01which if you go over here you can see
  9345. 5:59:03there's credentials and like predefined
  9346. 5:59:05it seems like there's so many
  9347. 5:59:06credentials there but then you have
  9348. 5:59:08generic and you have a lot as well. We
  9349. 5:59:10have header, custom off bear, basic o
  9350. 5:59:13like there's a lot there. And then we
  9351. 5:59:16have query parameters, we have headers,
  9352. 5:59:19we have body like and then you have even
  9353. 5:59:22other options over here. Batching,
  9354. 5:59:24lowercase headers, redirects, responses,
  9355. 5:59:27pageionation, proxy, timeout. And you're
  9356. 5:59:29like, man, I'm confused. What does all
  9357. 5:59:31this mean? And in reality, you're not
  9358. 5:59:34going to need all this for every single
  9359. 5:59:35API. And every API is going to be a
  9360. 5:59:37little bit different. What I recommend
  9361. 5:59:39that you do though, however, is take a
  9362. 5:59:42look at API documentation because that
  9363. 5:59:44should be kind of the first place where
  9364. 5:59:47you look in every step because it'll
  9365. 5:59:49tell you exactly how to set up this
  9366. 5:59:52node. In addition, biggest shortcut of
  9367. 5:59:55all time is this importing curl. So why
  9368. 6:00:00this is beneficial probably about 90% of
  9369. 6:00:03the time you import and curl it changes
  9370. 6:00:05all the settings over here hopefully
  9371. 6:00:08with our second examples which we're
  9372. 6:00:10going to go in lecture 13 there is an
  9373. 6:00:12example with a curl I assume there would
  9374. 6:00:14be and we could automatically fill this
  9375. 6:00:17out and you can see it's literally as
  9376. 6:00:18they call it game changer but let's
  9377. 6:00:21start talking about the first section
  9378. 6:00:24which is going to be your methods now
  9379. 6:00:26there's a lot over Here you don't really
  9380. 6:00:29have to focus on all these. Let's talk
  9381. 6:00:31about the two that are the most popular.
  9382. 6:00:35So the first is get. And essentially you
  9383. 6:00:38can think of get as you're going to be
  9384. 6:00:40grabbing data from a website. So let's
  9385. 6:00:43say a website has information on leads.
  9386. 6:00:47Let's say you are building out a lead
  9387. 6:00:50list and you want to supplement that
  9388. 6:00:52information. You want to see, hey, how
  9389. 6:00:53much does this lead make every year and
  9390. 6:00:56what is their email address? Um, maybe
  9391. 6:00:58you have other personal information
  9392. 6:01:00you're matching on, but you just want
  9393. 6:01:01those two pieces of information. A
  9394. 6:01:03website has these two pieces of
  9395. 6:01:05information. Well, if you do a get
  9396. 6:01:07request into that website, you're going
  9397. 6:01:10to be able to grab that data. Obviously,
  9398. 6:01:12there's more things involved with it,
  9399. 6:01:16but for the method purposes, often that
  9400. 6:01:18will be a get request. The next one
  9401. 6:01:21which you're going to use just as much
  9402. 6:01:24actually I'll say a little bit less is
  9403. 6:01:26going to be post. Now post is going to
  9404. 6:01:30essentially create data on that website.
  9405. 6:01:34So let's say for example you want to use
  9406. 6:01:38a pre-made scraper and a scraper will
  9407. 6:01:41allow you to grab information on the
  9408. 6:01:44internet. Well you have to boot up that
  9409. 6:01:46scraper. So to boot up that scraper or
  9410. 6:01:48boot up a service that is on that
  9411. 6:01:50website, you're going to do a post
  9412. 6:01:53request. So how these work together is
  9413. 6:01:55in the real world, sometimes you have to
  9414. 6:01:58use a post request to activate some
  9415. 6:02:01service on a website and then use a get
  9416. 6:02:03request to get the final results. So in
  9417. 6:02:06the past uh one of the services that
  9418. 6:02:09I've used before is Appify. And this is
  9419. 6:02:11a clear example of posting first and
  9420. 6:02:14then getting the information later. So
  9421. 6:02:16essentially how this worked is I would
  9422. 6:02:18have scrapers I would want to use for
  9423. 6:02:20Instagram. Let's say I want to grab
  9424. 6:02:21Instagram followers for specific
  9425. 6:02:23accounts. Well, you have to run the
  9426. 6:02:25scraper first. So we post first to run
  9427. 6:02:28the scraper. When the scraper runs, it
  9428. 6:02:31has all of its data ready to go. And
  9429. 6:02:33with another API request, I actually get
  9430. 6:02:36that data and then I bring it back into
  9431. 6:02:38nan. So we're going to have to actually
  9432. 6:02:40set up two different NAN nodes. One for
  9433. 6:02:43post and one for get. I'll put all the
  9434. 6:02:46notes here in a second so we can
  9435. 6:02:48reiterate it once again. But then the
  9436. 6:02:50other things over here that you're going
  9437. 6:02:52to use occasionally.
  9438. 6:02:54So put and patch depending on the
  9439. 6:02:57documentation. There may be one of
  9440. 6:02:59these, there may be both of these. This
  9441. 6:03:01is updating data on a website. Why I say
  9442. 6:03:05you won't be using this as much is
  9443. 6:03:07because typically when you're building
  9444. 6:03:08out any end workflows like you want to
  9445. 6:03:11grab data which is why you're going to
  9446. 6:03:13have get most of the time and obviously
  9447. 6:03:16post to create the data if it's
  9448. 6:03:17necessary. So patch is just updating
  9449. 6:03:20data on a website and then you have
  9450. 6:03:22delete which is deleting data on a
  9451. 6:03:24website. This really isn't that common
  9452. 6:03:27just because like it's kind of weird to
  9453. 6:03:29delete data on a site at times.
  9454. 6:03:31Obviously, there is use cases for it,
  9455. 6:03:33but with your N workflows, you're mostly
  9456. 6:03:36going to use get. You're also going to
  9457. 6:03:37use post in conjunction with get. I
  9458. 6:03:41don't use header options. I've never
  9459. 6:03:42used those before. So, really focus on
  9460. 6:03:45those four, but if I was going to narrow
  9461. 6:03:46down your focus, really get familiar, no
  9462. 6:03:50pun intended, with get and post. So,
  9463. 6:03:52that's the first side of it. Next is
  9464. 6:03:55going to be the specific URL. Now, with
  9465. 6:03:58that URL, right, we're going to
  9466. 6:04:00specifically look for that in the
  9467. 6:04:03documentation. So, every website that
  9468. 6:04:06has an API is going to give you some
  9469. 6:04:08sort of documentation. So, here's an
  9470. 6:04:11example of some documentation. This is a
  9471. 6:04:13website called httpbin.org. I literally
  9472. 6:04:16just asked Claude, it's a a good example
  9473. 6:04:18of a free website I can test, post, and
  9474. 6:04:21get methods at, and it gave me this one.
  9475. 6:04:23So, we're going to try this out. And you
  9476. 6:04:26can see over here we have a curl request
  9477. 6:04:28which actually we should use and then we
  9478. 6:04:31have a link and it says hypin.org/post
  9479. 6:04:35and this is specifically for a post. So
  9480. 6:04:37if we want to do a post we paste that in
  9481. 6:04:39over here. Again all the URLs are going
  9482. 6:04:42to be different um based off of uh the
  9483. 6:04:45website. So sometimes you might have the
  9484. 6:04:47same URL, sometimes you might have it
  9485. 6:04:48different. It just you got to read the
  9486. 6:04:49documentation. It'll tell you, hey, do
  9487. 6:04:51you want to use a post method? Do you
  9488. 6:04:53want to achieve this solution? use this
  9489. 6:04:55URL. You just have to be really good
  9490. 6:04:57taking a look at the documentation. So,
  9491. 6:04:59this documentation, all we're doing is
  9492. 6:05:01execute. And you can see we have this
  9493. 6:05:02curl over here. So, we don't have any
  9494. 6:05:05authentication on here, which makes it
  9495. 6:05:07really easy. And if I run the step,
  9496. 6:05:10congrats, guys, because you have
  9497. 6:05:11officially did your first post request.
  9498. 6:05:14Like, all we had to do is choose post,
  9499. 6:05:17use http.org/post,
  9500. 6:05:19and you just set up your first API. Uh,
  9501. 6:05:22next we're going to try get. So if we
  9502. 6:05:25want to try get, we go over here, take a
  9503. 6:05:28look at get. We can try it out. We can
  9504. 6:05:30do a test over here. And you can see we
  9505. 6:05:32have get like this. So grab that URL.
  9506. 6:05:37Go back into n.
  9507. 6:05:40Change this out.
  9508. 6:05:42Execute the step and take a look. We got
  9509. 6:05:45a response. Now if you don't get a
  9510. 6:05:47response over here, you get some sort of
  9511. 6:05:49error. Means something is wrong.
  9512. 6:05:51Typically, if something is working
  9513. 6:05:52correctly, you're going to get a 200
  9514. 6:05:53response. If there's an error, you'll
  9515. 6:05:55get a 400 response or a 500. Typically,
  9516. 6:05:59400 is on your end, like something's
  9517. 6:06:01messed up. 500, something is messed up
  9518. 6:06:03on the API side of things. So, I really
  9519. 6:06:07want to show you, and I'm going to
  9520. 6:06:08delete this because it doesn't really
  9521. 6:06:09matter. Uh, curl because we have the
  9522. 6:06:12option over here, and you'll see import
  9523. 6:06:15in curl. I'm literally just going to
  9524. 6:06:16grab this curl just to show you that
  9525. 6:06:18this is super awesome because all we
  9526. 6:06:21have to do is paste this in here. And
  9527. 6:06:22again, this is a very basic API. Like
  9528. 6:06:25this is your example of walking and
  9529. 6:06:27we're training right now for a marathon.
  9530. 6:06:29So you're learning to walk with this API
  9531. 6:06:32over here. Um we click import and you
  9532. 6:06:35can see we have more information. So I
  9533. 6:06:39grabbed get pasted in our get over here
  9534. 6:06:41and we're also going to be sending in
  9535. 6:06:43headers. So it says use field parameters
  9536. 6:06:45below accept and then it says value
  9537. 6:06:47application JSON. So now if we go this
  9538. 6:06:50over here boom it is working. We
  9539. 6:06:52imported in our curl. This I believe was
  9540. 6:06:55optional which is why we didn't
  9541. 6:06:57necessarily need it with that first
  9542. 6:06:59example but you can start seeing some of
  9543. 6:07:01the sections over here and take a look
  9544. 6:07:04at the documentation. So that is curl.
  9545. 6:07:06Obviously, we're going to go over some
  9546. 6:07:07more examples a little bit later into
  9547. 6:07:10the next side. And yeah, so let's
  9548. 6:07:14continue moving forward. Is there
  9549. 6:07:15anything else I wanted to cover on the
  9550. 6:07:17site? Well, we have patch. We might as
  9551. 6:07:19well look at patch as well. So, we can
  9552. 6:07:22go over here and try it out. We'll
  9553. 6:07:24execute that. And you can see we have
  9554. 6:07:26our patch. So, I just grab that. I'll go
  9555. 6:07:30over here to our patch.
  9556. 6:07:33Paste that in over here. You can see
  9557. 6:07:36we've updated data. And lastly, we can
  9558. 6:07:39go into delete.
  9559. 6:07:44Try it out. Execute.
  9560. 6:07:47And obviously, this isn't doing
  9561. 6:07:49anything. It's just for testing
  9562. 6:07:51purposes, but you can just go over here
  9563. 6:07:53and click into delete. I just want you
  9564. 6:07:55to get comfortable with how this node
  9565. 6:07:58works and setting it up.
  9566. 6:08:02to add to this as well. With your AI
  9567. 6:08:04agents, you can actually use a tool.
  9568. 6:08:07And uh I'll just show you with an AI
  9569. 6:08:09agent really quick.
  9570. 6:08:12I believe this is a little bit later on
  9571. 6:08:14in the course. I'm actually recording
  9572. 6:08:15this out of order, so don't kill me, but
  9573. 6:08:18it will be in a correct order in the
  9574. 6:08:21final course. But we have our HTTP over
  9575. 6:08:24here, and you can see HTTP request, and
  9576. 6:08:26it's the same thing, right? So you have
  9577. 6:08:28your methods which we just covered, you
  9578. 6:08:30know, delete, get, post, patch, input.
  9579. 6:08:34We have our URL. We have the
  9580. 6:08:35authentication that we're going to be
  9581. 6:08:37setting up. You can send query
  9582. 6:08:39parameters, you can send headers, you
  9583. 6:08:40can send bodies. Then you have add
  9584. 6:08:42options down below based around
  9585. 6:08:45everything else. And uh one thing you'll
  9586. 6:08:47notice is there's a description on the
  9587. 6:08:49tool. Again, I don't know if we covered
  9588. 6:08:51this earlier or if we're going to cover
  9589. 6:08:52this a little bit later, but when you're
  9590. 6:08:54attaching tools to an AI agent, it's
  9591. 6:08:56super important that you write a clear
  9592. 6:08:58description of what that tool is used
  9593. 6:08:59for and when you specifically use it.
  9594. 6:09:02You put that in the description here and
  9595. 6:09:04you put this in something that is called
  9596. 6:09:05a system message. So, put that and then
  9597. 6:09:08you also call out like what happens if
  9598. 6:09:10the tool fails. Now again I believe this
  9599. 6:09:13is a little bit later on in the course
  9600. 6:09:15but since we're talking about the HTTP
  9601. 6:09:17paper press node I might as well also
  9602. 6:09:19cover the specific tool that uh belongs
  9603. 6:09:22with it. So that is like the very simple
  9604. 6:09:26basics of the HTTP request. Um let's
  9605. 6:09:29talk also really quick about query
  9606. 6:09:30parameters headers and body. So if you
  9607. 6:09:32cover over there whether request has
  9608. 6:09:34query parameters or not whether it has
  9609. 6:09:36headers or not and then whether the
  9610. 6:09:38request has body or not.
  9611. 6:09:40depending on the documentation
  9612. 6:09:42that you'll read through and again
  9613. 6:09:44you'll go to your API docs. It'll tell
  9614. 6:09:47you, hey, send in a JSON body to our
  9615. 6:09:51API. This is what you need to send to
  9616. 6:09:53start a post request. So for that
  9617. 6:09:56example, historically, I would have to
  9618. 6:09:59copy an example of their JSON body, and
  9619. 6:10:02it would be something like this. I'm not
  9620. 6:10:03going to write proper JSON here. I'll
  9621. 6:10:05probably make a mistake. Someone might
  9622. 6:10:07be annoyed with it, but that's okay. And
  9623. 6:10:10it might say like influencers,
  9624. 6:10:12like you have to pass in influencers or
  9625. 6:10:14whatever the case may be. And then
  9626. 6:10:16you'll have to put in like, okay, IG1,
  9627. 6:10:21IG2, etc. You get the point. We send
  9628. 6:10:25this JSON over into the website and
  9629. 6:10:28based off of this website or based off
  9630. 6:10:30this JSON, then the website can produce
  9631. 6:10:32the post request. Uh sometimes you might
  9632. 6:10:35have a query parameter and you'll have
  9633. 6:10:38something like a data set ID. So your
  9634. 6:10:41post request gets you a data set ID and
  9635. 6:10:44then you just pass in your JSON. Let's
  9636. 6:10:45say there's some JSON over here and you
  9637. 6:10:48pass it in as your query parameter and
  9638. 6:10:50you get those specific results a little
  9639. 6:10:52bit later. Headers you'll have like some
  9640. 6:10:54sort of authentication. So maybe there's
  9641. 6:10:56like an API key and then you just post
  9642. 6:10:59your X your API key like XP API key over
  9643. 6:11:03here. And one thing to mention
  9644. 6:11:06is with these API keys, you do not want
  9645. 6:11:09to store them in your headers with these
  9646. 6:11:12nodes. So the issue with storing them
  9647. 6:11:15over here or in a query parameter or
  9648. 6:11:16whatever else the case is, anyone that
  9649. 6:11:19accesses your JSON of your workflow can
  9650. 6:11:23access your API key. that is not
  9651. 6:11:25secured. So, you do not want to do that.
  9652. 6:11:28Instead, you'll want to set up a
  9653. 6:11:29credential. Uh so, when you go to
  9654. 6:11:31authentication, you'll see a generic
  9655. 6:11:33credential type. You want to set up one
  9656. 6:11:35of these OS. Again, it just depends on
  9657. 6:11:37the documentation. So, like the most
  9658. 6:11:40common ones you'll see, you'll see basic
  9659. 6:11:42O all the time, bear O, you'll see query
  9660. 6:11:44off. So, and header off over here. So,
  9661. 6:11:47it just really depends on what the
  9662. 6:11:48documentation tells you to do. If you
  9663. 6:11:51see for example header off you you see I
  9664. 6:11:54have a lot of these over here you can
  9665. 6:11:56see hey genen it's an a service to
  9666. 6:11:59create AI videos of like UGC creators or
  9667. 6:12:02yourself that has a header off AI which
  9668. 6:12:05we're going to go over a little bit
  9669. 6:12:06later in the series. It generates images
  9670. 6:12:09and videos. That's a header off. A
  9671. 6:12:10mistral header off. Um web hook video. I
  9672. 6:12:14just covered that. A YouTube video
  9673. 6:12:15scraper. This was a header off. I go
  9674. 6:12:17back over here to a basic off. You can
  9675. 6:12:20see I've done some basic O tests and
  9676. 6:12:23obviously this isn't everything over
  9677. 6:12:24here. A baroth I haven't used. Query
  9678. 6:12:27should have some stuff in here and query
  9679. 6:12:29off has our ampify as well as a Google
  9680. 6:12:32SER for apply. So I guess appy was here
  9681. 6:12:34both for query off. So sometimes you'll
  9682. 6:12:36use the query off and sometimes you'll
  9683. 6:12:39use where was that at? Not basic
  9684. 6:12:46or header. Those are going to be the two
  9685. 6:12:48most popular ones. And again, make sure
  9686. 6:12:51to set up your specific generic uh off
  9687. 6:12:55type over here in your header off. All
  9688. 6:12:57you typically have to do read the
  9689. 6:12:59documentation. I'll say how do you want
  9690. 6:13:01to have this and then put in the
  9691. 6:13:02specific value and it's going to be in
  9692. 6:13:04the documentation. We'll cover that with
  9693. 6:13:06these examples. But it's just super
  9694. 6:13:08important that you set this up one for
  9695. 6:13:10one. Otherwise, you're going to have
  9696. 6:13:12some sort of error over here and you're
  9697. 6:13:14going to be confused. So to kind of
  9698. 6:13:16recap
  9699. 6:13:18what we covered so far,
  9700. 6:13:21we have the HTTP request. It's either a
  9701. 6:13:23node or it is a tool, a tool that's
  9702. 6:13:25attached to an AI agent, a node within
  9703. 6:13:28an orchestration workflow. You have four
  9704. 6:13:31to five methods that you're going to
  9705. 6:13:33typically use. 90% of the time you're
  9706. 6:13:35going to use get and post. Sometimes you
  9707. 6:13:38have to use delete, which is going to
  9708. 6:13:40just remove a resource. Sometimes you'll
  9709. 6:13:42have to use patch and put to update
  9710. 6:13:44resources. It's very common to start
  9711. 6:13:46with post and then use get. Um they kind
  9712. 6:13:50of link together. Next, you'll have the
  9713. 6:13:52URL for that specific method or that
  9714. 6:13:55specific call. You're going to find that
  9715. 6:13:57URL in your documentation. We're going
  9716. 6:13:59to cover that in the next part. You have
  9717. 6:14:01authentication. So, a lot of APIs are
  9718. 6:14:04going to be behind an authentication
  9719. 6:14:06layer. You could be lazy and when you
  9720. 6:14:08import in a curl and keep the stuff over
  9721. 6:14:10here. I do not recommend that approach.
  9722. 6:14:12Instead, I would recommend that you set
  9723. 6:14:14it up once for it, whether it's like a
  9724. 6:14:17header off or a basic O or a query off.
  9725. 6:14:20Fill out the information. Make sure that
  9726. 6:14:23the name is one for one with
  9727. 6:14:25documentation. You paste in your API key
  9728. 6:14:27over here because this is not shared
  9729. 6:14:30this uh credentials. These are not
  9730. 6:14:32shared when you share your workflow. Um,
  9731. 6:14:35also I should have mentioned predefined
  9732. 6:14:37credentials. There's a ton of predefined
  9733. 6:14:38credentials as well. So you can see
  9734. 6:14:40other APIs like there's tons and tons.
  9735. 6:14:43So before you spend a lot of time and
  9736. 6:14:45try to read the documentation, see if
  9737. 6:14:47your API is in over here uh because it
  9738. 6:14:50might not always be the case. You can
  9739. 6:14:52send in query parameters, headers and
  9740. 6:14:55bodies as well. Very common to send a
  9741. 6:14:57body, very common also to send in query
  9742. 6:14:59parameters. And headers typically have
  9743. 6:15:01like an API key of some capacity. Um,
  9744. 6:15:05great parameters. Typically I've seen
  9745. 6:15:07with like data set ids and then body
  9746. 6:15:09over here. I see this all the time with
  9747. 6:15:11a post. And one other thing I forgot to
  9748. 6:15:14mention in this video and man I I meant
  9749. 6:15:17to bring it up in the beginning and I
  9750. 6:15:19didn't. You know why do we want to use
  9751. 6:15:22HTTP requests for uh APIs and sometimes
  9752. 6:15:26you know APIs that are even already
  9753. 6:15:28available in N. So like N has a ton of
  9754. 6:15:32APIs already built in. So, for example,
  9755. 6:15:34if we go to HubSpot
  9756. 6:15:37and you'll see we have 31 different
  9757. 6:15:39actions that we can perform in HubSpot,
  9758. 6:15:41but HubSpot's API is pretty extensive
  9759. 6:15:45and there's way more than 31 actions.
  9760. 6:15:47So, if your action that you want to
  9761. 6:15:49perform within your CRM and HubSpot is
  9762. 6:15:51not here, you're going to have to set up
  9763. 6:15:53an HTTP request. For example, um let's
  9764. 6:15:57go into another one. Let's say I wanted
  9765. 6:15:59to use Kai, which is going to generate
  9766. 6:16:01images and videos. Well, if I go over
  9767. 6:16:03here, Kai is not in Nan. If I type in
  9768. 6:16:07Kai, you can see it's not there. So, to
  9769. 6:16:10use that service, which I'll just show
  9770. 6:16:11you the website, like this is a great
  9771. 6:16:13website. It's a super popular website.
  9772. 6:16:17Can't access this without an HTTP
  9773. 6:16:18request node. So, just that important
  9774. 6:16:21for you to build that out because you're
  9775. 6:16:23not going to be able to go to this API
  9776. 6:16:24market and build AI images or videos or
  9777. 6:16:28music. So, you have to set up this HTTP
  9778. 6:16:30request. So in some ways like it
  9779. 6:16:33supplements so it's already here in nan
  9780. 6:16:35and it expands upon it. Now if the API
  9781. 6:16:39request that you specifically want is
  9782. 6:16:41already in nan just use that approach
  9783. 6:16:43like ampify has been added and in the
  9784. 6:16:46past to the run actor and get a data
  9785. 6:16:48set. I used to have to set up two HTTP
  9786. 6:16:51requests I used to have to go over here
  9787. 6:16:53set up a post request. So I'd have to go
  9788. 6:16:56over here post and obviously fill out
  9789. 6:16:58all these settings. I would have to set
  9790. 6:17:00a wait node because it wasn't ready
  9791. 6:17:03right away. Let's say the wait is 60
  9792. 6:17:05seconds. And then I would have to go and
  9793. 6:17:08get another HTTP request and essentially
  9794. 6:17:12get our data set. So I'd have this with
  9795. 6:17:15Appify and now there's this one single
  9796. 6:17:17node that does it. So if your API is
  9797. 6:17:20available in any end obviously just
  9798. 6:17:22search like search the service over
  9799. 6:17:24here. it's available and it's natively
  9800. 6:17:27in here or if it's even a community
  9801. 6:17:28node, do that first. Check that out. If
  9802. 6:17:32it's not, then you're going to have to
  9803. 6:17:33use this HTTP request to access other
  9804. 6:17:35items. And because of this, this really
  9805. 6:17:38allows you to connect any API into NAN
  9806. 6:17:41and it's really awesome. So, that's
  9807. 6:17:44going to be the first part of our HTTP
  9808. 6:17:46request. The second part is really going
  9809. 6:17:48to dive in to real examples. I want to
  9810. 6:17:51say we have like five or six different
  9811. 6:17:54examples that we're going to jump
  9812. 6:17:56through. It's just so important that you
  9813. 6:17:57get this concept down. Some of them, as
  9814. 6:17:59I mentioned, are going to be really
  9815. 6:18:00easy. Some of them are going to be
  9816. 6:18:01difficult. We're going to cover
  9817. 6:18:02pageionation as well in there. And I
  9818. 6:18:05will see you soon. So, this next
  9819. 6:18:06section, we're going to be covering four
  9820. 6:18:08different APIs. Um, I asked Claude for
  9821. 6:18:11some examples of different ones to
  9822. 6:18:13utilize. So, we're going to be taking a
  9823. 6:18:14look at a very basic one, which is going
  9824. 6:18:16to look at countries. Uh there's no
  9825. 6:18:18login over here and it's literally just
  9826. 6:18:20a URL that we're going to be changing
  9827. 6:18:21with our HTTP request. Then we're going
  9828. 6:18:24to take a look at using binary data.
  9829. 6:18:26Now, I haven't tested this one at all,
  9830. 6:18:28but hopefully it does work. And we're
  9831. 6:18:30going to be either getting pictures of
  9832. 6:18:31cats or dogs and then passing it
  9833. 6:18:33through. Our third example is going to
  9834. 6:18:35actually build out a workflow with an
  9835. 6:18:37API. This one's going to be using
  9836. 6:18:39weather. So, we'll essentially build out
  9837. 6:18:41a workflow and test that out with the
  9838. 6:18:43API in the middle of it. And then the
  9839. 6:18:45last one is going to deal with
  9840. 6:18:47pageionation as well as a login. So
  9841. 6:18:49we're going to be looking at different
  9842. 6:18:50types of movies. So hopefully these will
  9843. 6:18:53give you some ideas of how to work with
  9844. 6:18:55APIs in NA. And obviously this isn't a
  9845. 6:18:57full extensive list of every single
  9846. 6:19:00option. There's a lot of them. And if
  9847. 6:19:02you want more practice with using APIs,
  9848. 6:19:05I have about two hours worth of content
  9849. 6:19:06on the channel teaching about the HTTP
  9850. 6:19:09request node. So the three videos I
  9851. 6:19:11would recommend that you take a look at
  9852. 6:19:13first. watch the rest API video about 20
  9853. 6:19:16minutes long. Then we have a video
  9854. 6:19:18specifically on the HTTP request node.
  9855. 6:19:21Some of the REST principles are covered
  9856. 6:19:22there, but it's an hourong video. We go
  9857. 6:19:25over a bunch of different structured
  9858. 6:19:26examples um as well as like different
  9859. 6:19:29types of login and things like that.
  9860. 6:19:30Highly recommend you watch that one. And
  9861. 6:19:32then we have examples of pageionation
  9862. 6:19:34which covers two different examples over
  9863. 6:19:36there based off of TV shows. Um one
  9864. 6:19:39being Pokemon and then one being I think
  9865. 6:19:41Rick and Morty. So, those are other
  9866. 6:19:44examples. You know, this isn't going to
  9867. 6:19:46click right away. I completely
  9868. 6:19:47understand it. So, it's going to use
  9869. 6:19:50some testing to get this to work
  9870. 6:19:52properly. You learn by doing. So, check
  9871. 6:19:54those out. Um, another thing to mention
  9872. 6:19:56with APIs and things like that.
  9873. 6:19:59Typically, you're going to know what you
  9874. 6:20:01want to use within the API before. Um,
  9875. 6:20:04so, for example, if you're using a CRM,
  9876. 6:20:05you already kind of know like, hey, I
  9877. 6:20:07want to use a CRM to update contacts in
  9878. 6:20:09bulk. So you would just search the
  9879. 6:20:10documentation for that. In this case, I
  9880. 6:20:13don't even know what these APIs have
  9881. 6:20:15minus their names. So we're going to be
  9882. 6:20:16kind of diving through that
  9883. 6:20:17documentation. Some documentation is
  9884. 6:20:19great. Some documentation is very poor.
  9885. 6:20:22So you can also kind of search online
  9886. 6:20:24whether you want to use an LLM or you
  9887. 6:20:25can use like a Stack Overflow to see if
  9888. 6:20:27people have other ideas based around
  9889. 6:20:30that. Uh other things to note the the
  9890. 6:20:32four examples I mentioned may have to do
  9891. 6:20:34a pivot in case like an API is down.
  9892. 6:20:37Those no longer exist or is now paid.
  9893. 6:20:39They had to do a few minor pivots later
  9894. 6:20:41on in this course based around this. But
  9895. 6:20:43I know I'm recording this when I'm in my
  9896. 6:20:4520 plus lectures into this. So I waited
  9897. 6:20:49a little bit but regardless hopefully
  9898. 6:20:52this goes well and let's take a look at
  9899. 6:20:54these. So the first one we're going to
  9900. 6:20:57take a look at is going to be our rest
  9901. 6:20:59countries. So, I'm make a note and uh
  9902. 6:21:02yeah, we'll dive into that right now.
  9903. 6:21:04So, rest countries, we have our URL.
  9904. 6:21:07This one I do know it works because I
  9905. 6:21:08just tested it really quick because I
  9906. 6:21:10knew it was going to be shortly after
  9907. 6:21:11the intro. And uh it's going to be a
  9908. 6:21:13pretty easy one. So, taking a look at
  9909. 6:21:15the documentation over here, we can get
  9910. 6:21:17information about countries and it says
  9911. 6:21:19it's a restful API. So, it says
  9912. 6:21:22important information. The structure of
  9913. 6:21:24V2 has been reverted. uh you can access
  9914. 6:21:26the API over here, but in order to get a
  9915. 6:21:29fast response, you should filter by the
  9916. 6:21:30results in the field you need. So, this
  9917. 6:21:32gives you a good example of what we
  9918. 6:21:35specifically want over here as notes.
  9919. 6:21:37And I recommend like if you're brand new
  9920. 6:21:39to an API, take some notes because some
  9921. 6:21:42of this might save you time a little bit
  9922. 6:21:43later on and way you don't have to go
  9923. 6:21:45back and read it. Talks about
  9924. 6:21:47contributing, donations, things like
  9925. 6:21:49that. Um, and it says you can check the
  9926. 6:21:52fields MD file to get descriptions for
  9927. 6:21:53each field. So I might not know what
  9928. 6:21:55every single field comes back as. So I
  9929. 6:21:58want to take a look at this file over
  9930. 6:22:00here just to see what happens. So we
  9931. 6:22:02have different field names over here.
  9932. 6:22:04Let's say I don't know what CLC is. And
  9933. 6:22:07it says and actually it's CIOC. My mic's
  9934. 6:22:10in the way. It says code of
  9935. 6:22:11international Olympic Committee. Okay,
  9936. 6:22:13cool. Now I know the acronym.
  9937. 6:22:15Hey, let's see another thing I might not
  9938. 6:22:17know.
  9939. 6:22:19What is Genie? World Bank Genie Index.
  9940. 6:22:22Someone might laugh at me for not
  9941. 6:22:23knowing that. I generally don't know
  9942. 6:22:25what that is. Uh, okay. What else over
  9943. 6:22:27here? I might not know. Uh, let's see.
  9944. 6:22:32This I assume was Latin long. That's
  9945. 6:22:34what it is. But if you see lighting,
  9946. 6:22:36you're like, "The heck is lighting?" So,
  9947. 6:22:37typically, you're going to have some
  9948. 6:22:39sort of data fields that are mapped.
  9949. 6:22:41Again, some APIs are going to do a great
  9950. 6:22:42job. This does a pretty good good job
  9951. 6:22:44telling you about it. So, it says what
  9952. 6:22:46version these are in. I think we're in
  9953. 6:22:47version 3.1, as I mentioned, and it
  9954. 6:22:50tells you a description. So, I like this
  9955. 6:22:52a lot. Some APIs don't even do that. So,
  9956. 6:22:54big props to this one because it's free
  9957. 6:22:56and it tells us how to do that. Okay.
  9958. 6:22:58So, then we jump into some other stuff
  9959. 6:23:00over here as well. And the first one
  9960. 6:23:02over here is all. So, it says you must
  9961. 6:23:04specify the fields that you need up to
  9962. 6:23:0610 fields. I believe we already put that
  9963. 6:23:08note in here.
  9964. 6:23:11Okay. So, we sort of put that in here,
  9965. 6:23:12but I'd still mention that as well. So,
  9966. 6:23:16let's just grab that and populate it.
  9967. 6:23:21All right, pretty basic. And then we
  9968. 6:23:24have name. It says search by country
  9969. 6:23:26name. So let's start this off by
  9970. 6:23:28searching by a country name. What we're
  9971. 6:23:29going to do is grab our HTTP request.
  9972. 6:23:32And we're just going to go off of what
  9973. 6:23:35they want. So first thing to note is
  9974. 6:23:37typically in APIs, it'll tell you like,
  9975. 6:23:39hey, use a get, use post, hash, put,
  9976. 6:23:42delete, whatever the case may be. And
  9977. 6:23:44over here, it does not say it. So you're
  9978. 6:23:46going to have to think about what I
  9979. 6:23:47covered in last lecture. What are we
  9980. 6:23:49doing over here? Well, we're grabbing
  9981. 6:23:51data from an external source. So, since
  9982. 6:23:53we're grabbing information, this is
  9983. 6:23:54going to be a get. We're not creating
  9984. 6:23:56data in any capacity. This data is
  9985. 6:23:58already stored over here. We're just
  9986. 6:24:00getting our data. So, let's use a get
  9987. 6:24:02request.
  9988. 6:24:03So, we have get and then what we need to
  9989. 6:24:05do is take a look at the example. So, we
  9990. 6:24:08can go over here and grab this country,
  9991. 6:24:10which is Germany, and we can paste that
  9992. 6:24:12in over here. Now, it didn't mention
  9993. 6:24:14anything about authentication, and I
  9994. 6:24:16know there's no authentication on here.
  9995. 6:24:18So we don't have to worry about this
  9996. 6:24:19authentication section. So we don't need
  9997. 6:24:21to do that and there's nothing to send
  9998. 6:24:23with query parameters, headers or body.
  9999. 6:24:25This entire API is literally just based
  10000. 6:24:27around this specific URL. So we can
  10001. 6:24:30execute this step and you can see we get
  10002. 6:24:32all of this information about Germany.
  10003. 6:24:35So again, if you don't know what
  10004. 6:24:36something is, let's say like I don't
  10005. 6:24:38know what TLDD is. And obviously like we
  10006. 6:24:40work in data and we use AI. We like we
  10007. 6:24:43should know what TLDD is, but you can go
  10008. 6:24:45over here and look for TLD. And it says
  10009. 6:24:47internet tople domain. So cool
  10010. 6:24:50documentation works pretty nice over
  10011. 6:24:52there. Oh, I don't know what CCA2 is.
  10012. 6:24:54Let's go into our documentation. CCA2
  10013. 6:24:56ISO 316 31661 alpha twolet country code.
  10014. 6:25:01So again, you can just go back and forth
  10015. 6:25:03on that side of things if you
  10016. 6:25:05necessarily want to take a look at it.
  10017. 6:25:06And there's a ton of data over here. All
  10018. 6:25:08right. Well, let's take a look at a
  10019. 6:25:10different country. Well, it says take a
  10020. 6:25:11look at this country over here.
  10021. 6:25:14And let's see what happens. And this is
  10022. 6:25:16Estonia. So, we see E as the domain,
  10023. 6:25:20which I've never I don't think I've ever
  10024. 6:25:21been to an e website. Uh when I think of
  10025. 6:25:24E, I think of electrical engineering I
  10026. 6:25:26graduated with. But have all this over
  10027. 6:25:29here lat long borders, translations,
  10028. 6:25:32etc. All across the board we have the
  10029. 6:25:34continents and this is pretty cool. What
  10030. 6:25:37we have over here as well is an example
  10031. 6:25:40of name/name. So essentially it's just
  10032. 6:25:42saying we can change out this name for
  10033. 6:25:44another official name if we want to.
  10034. 6:25:47Okay. So next it says search by
  10035. 6:25:49country's full name. It can be common or
  10036. 6:25:51official value. And you can see we have
  10037. 6:25:54Aruba over here. So, let's just do
  10038. 6:25:56another HTTP request. I'm going to pick
  10039. 6:25:58this one off and we'll just build out a
  10040. 6:26:00brand new one. So, a different way to
  10041. 6:26:02search it
  10042. 6:26:04and we'll go over here and let's say we
  10043. 6:26:06want to just search for country based
  10044. 6:26:08off of this. So, you can see Aruba full
  10045. 6:26:10text equals true and we have all of this
  10046. 6:26:13information over here. So, another way
  10047. 6:26:15we could do this the difference right we
  10048. 6:26:19have either a name or a full name. So it
  10049. 6:26:22says common or official value and just a
  10050. 6:26:25little bit different instead of just
  10051. 6:26:26putting name we put name name and we put
  10052. 6:26:28question mark at the end equals full
  10053. 6:26:30text equals true. Uh there's other
  10054. 6:26:32options that we could do. I believe this
  10055. 6:26:34would be over here as a query parameter
  10056. 6:26:37and we could take a look at that as
  10057. 6:26:39well. So see this question mark and it
  10058. 6:26:41says full text equals strobe. So in a
  10059. 6:26:43URL when you see a question mark this is
  10060. 6:26:45going to be considered a query
  10061. 6:26:46parameter. So we have this already. Let
  10062. 6:26:49me show you how we could send in a query
  10063. 6:26:51parameter. So I'm just going to copy
  10064. 6:26:52this over here. And we're going to use
  10065. 6:26:54the same exact thing. So I'm going to go
  10066. 6:26:56over here and click send query
  10067. 6:26:58parameters. And first thing I'm going to
  10068. 6:27:00do is remove all this. I'm going to go
  10069. 6:27:02over here. We're going to keep that full
  10070. 6:27:04name. And then we're going to keep this
  10071. 6:27:06true. So our value over here, and it's
  10072. 6:27:09sorry, it's full text, not full name. So
  10073. 6:27:11the value of this query parameter, if
  10074. 6:27:13you go back over here, it says full text
  10075. 6:27:15equals true after this question mark. So
  10076. 6:27:17we just go into send query parameters,
  10077. 6:27:19we put full text and we put true to
  10078. 6:27:21emulate what we have and you'll see
  10079. 6:27:22we'll get the same exact results. So it
  10080. 6:27:25works by keeping it in the URL or you
  10081. 6:27:28could have it even cleaner. So if you
  10082. 6:27:29see that question mark that is a
  10083. 6:27:31specific query parameter. Let's keep
  10084. 6:27:33moving forward. Over here we have this
  10085. 6:27:36code. So this does not change like you
  10086. 6:27:38see we have the three different codes
  10087. 6:27:40over here. This is our URLs. So we
  10088. 6:27:42cannot change that out. List of codes.
  10089. 6:27:45So it says you can search any over here
  10090. 6:27:48and we can go through that example as
  10091. 6:27:50well if we want to. This again will not
  10092. 6:27:53be a query perimeter but we can just go
  10093. 6:27:54through a HTTP request. We can test that
  10094. 6:27:58out. So get just paste that in. Super
  10095. 6:28:01easy. And you can see we have four items
  10096. 6:28:03over here because we're taking a look at
  10097. 6:28:04the matches of these specific codes. And
  10098. 6:28:07I actually I lied. You can see over here
  10099. 6:28:09there's a question mark. Um so we
  10100. 6:28:11actually do have codes we could search
  10101. 6:28:13by which would be our query parameter. I
  10102. 6:28:14missed that because my mic was in the
  10103. 6:28:16way. Uh, but this turned multiple items
  10104. 6:28:18back. So, you can see it brought back
  10105. 6:28:20over here Estonia. It brought back
  10106. 6:28:22Norway, it brought back Peru, and then
  10107. 6:28:25it also brought back Colombia. So, what
  10108. 6:28:28I want you to do right now is pause this
  10109. 6:28:32and see if you can turn this into a
  10110. 6:28:34query parameter. So, I'm just going to
  10111. 6:28:36say change the above. So change the
  10112. 6:28:40above to a query par. So pause the
  10113. 6:28:45video. 3 2 1 and I'll be back with the
  10114. 6:28:49solution. All right, I am back. So all
  10115. 6:28:52we're going to do is just copy this
  10116. 6:28:53over. We're going to go in over here and
  10117. 6:28:57what we're going to do is click send
  10118. 6:28:59query parameters. We're going to grab
  10119. 6:29:01everything from that question mark
  10120. 6:29:02outwards. Move that. So we're going to
  10121. 6:29:05say our codes equal. I'm going to grab
  10122. 6:29:07the codes. I'm going to paste that over
  10123. 6:29:08here. I'm going remove that. I'm going
  10124. 6:29:10to keep this fixed. Um, I'll show you
  10125. 6:29:12expressions here in a second. But now
  10126. 6:29:14you can see we have these different
  10127. 6:29:15codes we're searching by and we still
  10128. 6:29:18get the same four results. So again,
  10129. 6:29:20just to reiterate that question mark, we
  10130. 6:29:22can send that into the query parameter
  10131. 6:29:23side of things. Um, currency, pretty
  10132. 6:29:26easy over here. Uh, what we have over
  10133. 6:29:28here, I actually I want to run this for
  10134. 6:29:30USD. I'm curious how many countries run
  10135. 6:29:32on the dollar. I believe a lot do.
  10136. 6:29:36And I'm sure I'm getting some cringe
  10137. 6:29:38from people saying, "How do you not know
  10138. 6:29:40this?" There's enough to know out there.
  10139. 6:29:43All right. USD,
  10140. 6:29:45let's see,
  10141. 6:29:4720 items. So, not bad over there.
  10142. 6:29:53United States miner lang items,
  10143. 6:29:54Caribbean,
  10144. 6:29:56US. I'm surprised US wasn't number one
  10145. 6:29:59on this one. Puerto Rico, which is not a
  10146. 6:30:02country, but I guess it's showing things
  10147. 6:30:04like that as well.
  10148. 6:30:06W again, not a country, etc. Bahamas,
  10149. 6:30:09school. So, that is working over there.
  10150. 6:30:12Let's see if there's anything else we
  10151. 6:30:13could throw in. Again, there's a lot
  10152. 6:30:15that I would just recommend that you
  10153. 6:30:16guys mess with. So, you can see there's
  10154. 6:30:19sub regions,
  10155. 6:30:21translation.
  10156. 6:30:22This has a lot of different fields. So,
  10157. 6:30:24this filters a response. Let's actually
  10158. 6:30:26cover that one as well. So, it mentioned
  10159. 6:30:28in the documentation earlier, you can
  10160. 6:30:30search up to 10 fields. So, let's do the
  10161. 6:30:33default one and then I'll just have a a
  10162. 6:30:37question for you guys to run with this.
  10163. 6:30:40So, let's take a look at that. What
  10164. 6:30:42we're going to do is go over here is an
  10165. 6:30:45HTTP request
  10166. 6:30:48and we'll just populate that in. So,
  10167. 6:30:51great. And you can see this is shortened
  10168. 6:30:53quite a bit. All we do is name, capital,
  10169. 6:30:55and currency. So, this brought 250 items
  10170. 6:30:59which is in their database. So, I
  10171. 6:31:01actually want you to do something over
  10172. 6:31:02here. First thing I want you to do is
  10173. 6:31:06set up a query pram. So, we're going to
  10174. 6:31:08say
  10175. 6:31:10I'll just put this over here. I guess
  10176. 6:31:11we'll do it side by side. It doesn't
  10177. 6:31:13matter. So, number one,
  10178. 6:31:16turn into query param. And then what I
  10179. 6:31:21want you to get for fields wise, let's
  10180. 6:31:23say we're a big sports fan and we want
  10181. 6:31:27to get
  10182. 6:31:29FIFA.
  10183. 6:31:31We want to get Olympics.
  10184. 6:31:34What else was already in here?
  10185. 6:31:36Feel like we need to get the name. Yeah,
  10186. 6:31:38let's get name and currencies.
  10187. 6:31:43Name and currencies. So, pause the
  10188. 6:31:46video, try it out, and uh All right, I'm
  10189. 6:31:50back. We're going to try this first
  10190. 6:31:51example. So, we're going to go over here
  10191. 6:31:53and do that. So, now what we're going to
  10192. 6:31:55do is change this out. We're going to
  10193. 6:31:57send our query parameters.
  10194. 6:32:00We're going to grab this and we're going
  10195. 6:32:01to go to fields. So, you'll see fields
  10196. 6:32:04over here and we're going to put in
  10197. 6:32:06those values. So, name, currencies. This
  10198. 6:32:09will work pretty easily and uh we'll
  10199. 6:32:12test it out. And I want to expand this
  10200. 6:32:13out. Now, we're going to do a part two.
  10201. 6:32:16Um, so actually, sorry. I wanted to put
  10202. 6:32:19an Olympic in FIFA, all that stuff. So,
  10203. 6:32:22we're going to go over here. Our
  10204. 6:32:23Olympics was
  10205. 6:32:25Where is that?
  10206. 6:32:27FIFA is what? Just FIFA. Yeah, FIFA.
  10207. 6:32:31Where is this? Olympic one at
  10208. 6:32:35Olympics.
  10209. 6:32:37CIO. So, because of that, I would have
  10210. 6:32:40never guessed that, but we'll say CIO
  10211. 6:32:42FIFA. This should work. Just make sure
  10212. 6:32:44that you keep it exactly how they want
  10213. 6:32:46it. They just don't want any spaces.
  10214. 6:32:48Separate by comma.
  10215. 6:32:51Cool. So, we have CISC. We have name. We
  10216. 6:32:55don't need that. We needed the currency,
  10217. 6:32:56which I accidentally deleted,
  10218. 6:32:59unfortunately. I apologize.
  10219. 6:33:02All right. So, it's currencies like
  10220. 6:33:04that. Obviously, some countries have
  10221. 6:33:05multiple currencies. All right.
  10222. 6:33:07Currencies, CIO, FIFA. So, that is
  10223. 6:33:11working over here. Great. Hey, we have
  10224. 6:33:12turn 50 items. But you know what? I want
  10225. 6:33:14to consolidate this. So I just want you
  10226. 6:33:17to filter this in any sort of way. So
  10227. 6:33:20part two is to filter this in any way.
  10228. 6:33:25This in any way because we've already
  10229. 6:33:27talked about different ways that you
  10230. 6:33:28could filter. I just literally want you
  10231. 6:33:30to filter something out. So pause the
  10232. 6:33:32video, give it a shot, and I'll give you
  10233. 6:33:34the solution. Ready? Three, two, one.
  10234. 6:33:38All right, I'm back. Let's cover that
  10235. 6:33:40solution. So, I'm just going to
  10236. 6:33:41literally copy the same thing. And I
  10237. 6:33:42want to go to my dollar example. Where's
  10238. 6:33:45my dollar? I'm looking for 20 items. And
  10239. 6:33:46I guess all these kind of go down. So,
  10240. 6:33:50I'm just going to go into our API. I'm
  10241. 6:33:53going to find that dollar one as well.
  10242. 6:33:57It was Well, actually, let's do
  10243. 6:33:59language. We'll do language instead. So,
  10244. 6:34:01I'll go over here and go to our HTTP
  10245. 6:34:04request. How about for every English
  10246. 6:34:05country? So, we're going to go over here
  10247. 6:34:07and go to this URL. And I'm just going
  10248. 6:34:10to copy that. And instead of lang cop,
  10249. 6:34:13I'm going to say English. Hopefully
  10250. 6:34:15that's exactly what it should be. And I
  10251. 6:34:17want to get the name currencies uh
  10252. 6:34:18Olympic and FIFA for all the
  10253. 6:34:20English-speaking countries. So this is
  10254. 6:34:22running. It's a little slow right now.
  10255. 6:34:24So maybe there's something on the API
  10256. 6:34:25side of things. You saw some of them
  10257. 6:34:26were pretty instant. This one is taking
  10258. 6:34:30a little bit. So when [snorts] this is
  10259. 6:34:32done, I'll be right back. I might pause
  10260. 6:34:34it and restart this just because of
  10261. 6:34:37that. And this does happen time to time.
  10262. 6:34:40I think a little bit later on in the
  10263. 6:34:41course, well, I know later on in the
  10264. 6:34:42course, we're going to be talking about
  10265. 6:34:44what happens if an API fails, a little
  10266. 6:34:47bit outside the side of things, but you
  10267. 6:34:48can see we got 91 items back. So, really
  10268. 6:34:50cool. I showed you how to filter with
  10269. 6:34:52this URL. Showed you how we can send
  10270. 6:34:53query parameters to specify the specific
  10271. 6:34:56fields. Um, you know, the other thing
  10272. 6:34:59that's interesting is some of these are
  10273. 6:35:00empty. So, we could take this a step
  10274. 6:35:02further and we're like, hey, we just
  10275. 6:35:04want to get the Olympics countries.
  10276. 6:35:06Maybe not all these countries compete in
  10277. 6:35:08the Olympics. So what you would want to
  10278. 6:35:10do to add in a filter and what we're
  10279. 6:35:13going to do is look for our CIOC.
  10280. 6:35:18We have native name. We don't care about
  10281. 6:35:20CIOC. So we're going to go over here
  10282. 6:35:22value and we're going to say string is
  10283. 6:35:25not null.
  10284. 6:35:27So is not empty. And you can see we kept
  10285. 6:35:3068 items and these 23 do not uh compete.
  10286. 6:35:34I've never heard of Hollywood of Jersey.
  10287. 6:35:37I don't know everything obviously, but
  10288. 6:35:39never heard of that.
  10289. 6:35:42Interesting. Um, but yeah, so we have
  10290. 6:35:44all that over here. These got filtered
  10291. 6:35:45out. These 68 compete in Olympics. So
  10292. 6:35:48that's the way uh we've taken the API.
  10293. 6:35:50We've taken the API, we filtered it
  10294. 6:35:52down, and then we even filtered it again
  10295. 6:35:54after a note. Very, very common to do in
  10296. 6:35:57real workflows. Trying to see if there's
  10297. 6:35:58anything else that's really worth
  10298. 6:35:59mentioning. I mean, we learned a lot
  10299. 6:36:01already with this first example. I'm
  10300. 6:36:04just going to save this as like API one.
  10301. 6:36:07We'll just go through the other APIs and
  10302. 6:36:09just build this out so that way it
  10303. 6:36:12doesn't get confusing. So when you guys
  10304. 6:36:14download this, if you download this in
  10305. 6:36:16our school group, uh all of that will be
  10306. 6:36:18over there. So I'm just going to say um
  10307. 6:36:20countries API
  10308. 6:36:22countries API part one. And then I'll
  10309. 6:36:26save this and we'll cut into part two
  10310. 6:36:28shortly.
  10311. 6:36:30All right, we're going to be taking a
  10312. 6:36:31look at part two now. So, I'm just going
  10313. 6:36:34to say HTTP requests
  10314. 6:36:36um 13 part two and we're going to be
  10315. 6:36:39taking a look at dog CEO. So, I'm going
  10316. 6:36:42to go over here and grab this
  10317. 6:36:47and uh let's throw this in.
  10318. 6:36:51Cool. So, I'm going to close out our
  10319. 6:36:53country's data and we're going to take a
  10320. 6:36:55look at this for the first time. So,
  10321. 6:36:58some APIs are going to return back
  10322. 6:36:59images, and you might want to know how
  10323. 6:37:01to work with them in workflows. We've
  10324. 6:37:03talked about binary files before. So,
  10325. 6:37:05this over here says, "The internet's
  10326. 6:37:06biggest collection of open- source dog
  10327. 6:37:07pictures. Read our documentation to find
  10328. 6:37:09out more." And it says, "Want to add
  10329. 6:37:11your dog to the collection? Submit
  10330. 6:37:13photos as a poll request here." And need
  10331. 6:37:16more dog in your life? Get issue one dog
  10332. 6:37:18CEO design early business and lifestyle
  10333. 6:37:20magazine for modern dog. It's crazy. Um,
  10334. 6:37:23and you can see over here we can fetch a
  10335. 6:37:25random dog every time that we populate
  10336. 6:37:27this, which is going to be pretty cool.
  10337. 6:37:28And then we have our documentation
  10338. 6:37:31over here. And we have our JSON based
  10339. 6:37:34around all of this. So we can actually
  10340. 6:37:36paste in JSON, which is amazing. We can
  10341. 6:37:39get all of the dog breeds over here. We
  10342. 6:37:41can get a random image as another thing
  10343. 6:37:44by breed, by subre, browse breed list.
  10344. 6:37:46So a lot going on over here and it's
  10345. 6:37:50going to be a little bit different. So,
  10346. 6:37:51I think just basic, we're going to go
  10347. 6:37:53back over here to the dog API. Let's
  10348. 6:37:56first try this out and get a random. So,
  10349. 6:38:00all we should do, and feel free to test
  10350. 6:38:02this out yourself. We're go over here
  10351. 6:38:04and grab this HTTP. So, we're going to
  10352. 6:38:06say http.
  10353. 6:38:09Obviously, I can't spell today, but
  10354. 6:38:11that's fine. Uh, we'll grab that and
  10355. 6:38:13we'll get going. So, what we're going to
  10356. 6:38:16do is it's fine. We can have our manual.
  10357. 6:38:18We can grab this and paste in our image
  10358. 6:38:22at random. And uh we see a message and
  10359. 6:38:26we got our random image. It says
  10360. 6:38:28success. So let's actually take a look
  10361. 6:38:30at what this image looks like. And you
  10362. 6:38:32can see it looks like this right over
  10363. 6:38:34here. That is a weird dog. Sorry if
  10364. 6:38:37that's your dog, but probably not. Um
  10365. 6:38:39okay. So that's cool and all, but like
  10366. 6:38:42we don't really get anything out of it.
  10367. 6:38:44How how can we actually view this?
  10368. 6:38:46There's a few things we can do. We can
  10369. 6:38:47actually go to HTTP requests like here
  10370. 6:38:49and check this out. This is pretty cool.
  10371. 6:38:51Um, we can pass in this message over
  10372. 6:38:53here. So, we have this link to an image
  10373. 6:38:57and if I execute this data, we have
  10374. 6:38:59binary data. So, this is pretty amazing
  10375. 6:39:02because check this out. Instead of
  10376. 6:39:03having to go to that URL, we get that
  10377. 6:39:05URL directly in over here. So, if I want
  10378. 6:39:08to run this again, we're going to
  10379. 6:39:10execute this workflow and go back in
  10380. 6:39:14view it. We have another dog. we uh do
  10381. 6:39:17the same thing again. We'll go back over
  10382. 6:39:20here,
  10383. 6:39:21get a new dog as well. So just in two
  10384. 6:39:24nodes, what we did is we went into this
  10385. 6:39:26API, we got a random image of a dog, and
  10386. 6:39:29then we have binary data that we can
  10387. 6:39:31mess with. And you know, we could change
  10388. 6:39:32our binary name data name. We can go to
  10389. 6:39:35edit set and let's say we go over here
  10390. 6:39:39and manual mapping. We'll go over here
  10391. 6:39:41and say binary data. And this is called
  10392. 6:39:44data. And let's change this into dog. So
  10393. 6:39:48I actually had it flipped. We're going
  10394. 6:39:49to call this data over here. We're going
  10395. 6:39:50to call this dog as the new name. And
  10396. 6:39:53you can see we reabeled this over here.
  10397. 6:39:55So this is now dog. Again, same image
  10398. 6:39:57back and forth. We've labeled this over
  10399. 6:40:00here. And we can pass obviously binary
  10400. 6:40:02files into a Google Drive or wherever
  10401. 6:40:05else we want to populate them. But now
  10402. 6:40:07we have our binary file. We go to this
  10403. 6:40:10URL. We get image of a dog. We get this
  10404. 6:40:14into our workflow by just pasting in
  10405. 6:40:16this image URL. And this is another hack
  10406. 6:40:18of an HTTP request. I don't think I
  10407. 6:40:20talked about it in the previous videos,
  10408. 6:40:22but you can just paste in an image URL.
  10409. 6:40:25And now you have a binary file within
  10410. 6:40:27your workflow. Pretty cool. All right,
  10411. 6:40:29so that's our random, which is the basic
  10412. 6:40:31one. This is super super easy. But let's
  10413. 6:40:33take a look at the documentation. So
  10414. 6:40:36what we first have is list all breeds.
  10415. 6:40:38Let's take a look at that. So maybe you
  10416. 6:40:40want to see what all the breeds are
  10417. 6:40:42like. We'll go to our HTTP request
  10418. 6:40:45and we'll just paste this in. So, we're
  10419. 6:40:47going to see all of our specific breeds
  10420. 6:40:49and we have all the names over here. So,
  10421. 6:40:52a lot of these I've never heard of
  10422. 6:40:54before. I have an Australian Shepherd
  10423. 6:40:57like that. And I also have a golden
  10424. 6:41:00retriever. And uh where's our golden
  10425. 6:41:03retriever at?
  10426. 6:41:07Maybe it's under retriever.
  10427. 6:41:11I don't see. Oh, yeah. Retriever right
  10428. 6:41:13over here. And you see golden. So, we
  10429. 6:41:16can also search by those specifically if
  10430. 6:41:18we really wanted to. And you know,
  10431. 6:41:21there's some that are easier than
  10432. 6:41:22others. If we go into this list,
  10433. 6:41:26I don't know why you have these over
  10434. 6:41:27here or you have the ones that are in
  10435. 6:41:30particular down below on that side of
  10436. 6:41:32things. So, again, a few different
  10437. 6:41:34options over there. And uh yeah, so
  10438. 6:41:38let's take a look also at our
  10439. 6:41:40documentation. So this lists all the
  10440. 6:41:42different breeds and you can see how
  10441. 6:41:44that is built out. So this can be pretty
  10442. 6:41:47helpful if you want to just search for a
  10443. 6:41:49specific breed. You have the random
  10444. 6:41:51image which we've already covered. You
  10445. 6:41:53also have by breed. So you can take a
  10446. 6:41:56look at this and maybe let's start
  10447. 6:41:57trying to figure out how we could change
  10448. 6:41:59this out.
  10449. 6:42:01So, I'm going to close that out over
  10450. 6:42:03here and we're going to go to another
  10451. 6:42:04HTTP request. So, HTTP request like
  10452. 6:42:08that. And uh yeah, we'll jump in over
  10453. 6:42:11here. So, taking a look at this, let's
  10454. 6:42:14just paste in our URL. Again, this is a
  10455. 6:42:16get because we're just grabbing an
  10456. 6:42:18image. We're not generating anything.
  10457. 6:42:20And this gives us a bunch of different
  10458. 6:42:21images based around hounds. And
  10459. 6:42:23actually, there's so many I didn't
  10460. 6:42:25expect all this to populate. 87
  10461. 6:42:27different images that have been
  10462. 6:42:29uploaded. And obviously you can change
  10463. 6:42:31out the different breed. We already saw
  10464. 6:42:34how we can get all these type of breeds.
  10465. 6:42:36Um going back over here, you can see
  10466. 6:42:38this is hound Afghan. And if we go back
  10467. 6:42:40over here to breeds, um we can do this
  10468. 6:42:43also another way. But you can see hound
  10469. 6:42:45Afghan. So maybe I want to change this
  10470. 6:42:47into a Australian shepherd. So we'll go
  10471. 6:42:50to Australian like that and go to
  10472. 6:42:53shephardd and uh go over here and just
  10473. 6:42:56make this Australian first. So you can
  10474. 6:42:58execute the step. Then we have all of
  10475. 6:43:00these over here for the Australian side
  10476. 6:43:02of things. So you can see Australian
  10477. 6:43:03Kelpy or Australian Kelpy. Then we have
  10478. 6:43:06Australian Shepherd over here. So we
  10479. 6:43:08have all these over here. Maybe we want
  10480. 6:43:10to break these out and then filter them
  10481. 6:43:12out. So we go into our nodes and I've
  10482. 6:43:15already taught you the data
  10483. 6:43:16transformations on these. So we can just
  10484. 6:43:18split all these out from the message. So
  10485. 6:43:20now instead of having one binary file or
  10486. 6:43:24it's not one binary file but one item
  10487. 6:43:26for all these across the board now we
  10488. 6:43:29have 13 different URLs. So you can see
  10489. 6:43:33right over here we go to table we have
  10490. 6:43:35these 13 and maybe I want to filter it
  10491. 6:43:37out. So just show Australian shepherds.
  10492. 6:43:39So I can filter on this side of things
  10493. 6:43:41and we'll say our message over here text
  10494. 6:43:44string it needs to contain and we're
  10495. 6:43:46going to say it has to contain shepherd.
  10496. 6:43:47So shepherd like this. And now uh we
  10497. 6:43:51don't have any of them because I
  10498. 6:43:52obviously
  10499. 6:43:54misspelled shepherd which is
  10500. 6:43:56embarrassing. But now we have five
  10501. 6:43:58Australian shepherds over here. Forest
  10502. 6:44:00Leroy Pepper Pepper 2 and then also
  10503. 6:44:03Saddy. So we've taken essentially our
  10504. 6:44:07API that has all these images. We split
  10505. 6:44:10this out based off of a filter on
  10506. 6:44:12Australian dogs. We got 13 items and
  10507. 6:44:15then we just filtered for Australian
  10508. 6:44:17Shepherd. So we have that and this is by
  10509. 6:44:20breed. We could also have done this
  10510. 6:44:22easily with
  10511. 6:44:25by subre. So you can see over here it
  10512. 6:44:28says breed images. We can go over here
  10513. 6:44:31by subre. We can take a look at a little
  10514. 6:44:32bit more information over here. List all
  10515. 6:44:34subread images. So instead of using what
  10516. 6:44:38I just did over here
  10517. 6:44:40and I want to go to an HTTP request,
  10518. 6:44:43just jump over here and we'll go over
  10519. 6:44:46here. I'll say Australian.
  10520. 6:44:49Then I'll grab Shepherd, which I
  10521. 6:44:52obviously misspelled it the first time,
  10522. 6:44:54so I don't want to misspell it again.
  10523. 6:44:56I'll just go over here like that and
  10524. 6:44:58paste that in. Get our images. You'll
  10525. 6:45:02see we have our five. And again, if you
  10526. 6:45:03want to split these out so that they are
  10527. 6:45:05their own URLs, you have this like that.
  10528. 6:45:07So there's always multiple ways to do
  10529. 6:45:09things. Like I think this is the more
  10530. 6:45:11efficient route rather than passing in
  10531. 6:45:13all 13 and then just filtering it out
  10532. 6:45:15for uh shepherds like I put over here.
  10533. 6:45:18Like documentation tells us how we could
  10534. 6:45:21go for the subreeds. Obviously I didn't
  10535. 6:45:23see that initially but we have that over
  10536. 6:45:26here. You can also get a single random
  10537. 6:45:28image from a subre. So we can grab that
  10538. 6:45:30if we wanted to. Might as well do that
  10539. 6:45:33one really fast.
  10540. 6:45:35This is like a very very easy API.
  10541. 6:45:37Again, we're just kind of getting our
  10542. 6:45:39feet wet. We went through a basic one
  10543. 6:45:41for our countries, and this one over
  10544. 6:45:44here just lets us work with binary
  10545. 6:45:46files. Wish there was a little bit more
  10546. 6:45:48um advanced stuff with this one, but
  10547. 6:45:50that's okay. And you can see we get a
  10548. 6:45:52random image every time for this one
  10549. 6:45:54over here. Um again, you could go and
  10550. 6:45:58this into a binary file if you want to.
  10551. 6:46:01I'm not really going to work with that
  10552. 6:46:03that side. Um multiple images. So, you
  10553. 6:46:06can grab multiple images as well. just
  10554. 6:46:08paste in that extra number here at the
  10555. 6:46:10end. It's pretty easy there. Um, browse
  10556. 6:46:14breed list. So, we already kind of taken
  10557. 6:46:16a look at this with our API on that side
  10558. 6:46:18of things. And this is pretty
  10559. 6:46:19self-explanatory. That is going to be
  10560. 6:46:21the dog API. I don't really have any
  10561. 6:46:23challenges with this. I guess the only
  10562. 6:46:25challenge like if you want to and I'm
  10563. 6:46:28not going to do it, but like I'll just
  10564. 6:46:30put this as an extra credit assignment.
  10565. 6:46:32So,
  10566. 6:46:34lot of note like extra credit. If you
  10567. 6:46:37want to be a a good student, you'll say
  10568. 6:46:40extra credits, you know, build a
  10569. 6:46:42workflow
  10570. 6:46:45where we pass
  10571. 6:46:47this data into a Google Drive.
  10572. 6:46:52See if you can do that. I think it would
  10573. 6:46:54be
  10574. 6:46:55fun for you to learn how to do it. It's
  10575. 6:46:57honestly just a few extra nodes and uh
  10576. 6:46:59this will tell you if you're really
  10577. 6:47:01picking up stuff. I mean I already did
  10578. 6:47:02bulk of the effort over here and maybe
  10579. 6:47:04you want to do this by a specific subre
  10580. 6:47:07like choose a random one or you want to
  10581. 6:47:09send all of them it doesn't really
  10582. 6:47:10matter. Choose your approach. Um oh one
  10583. 6:47:14other thing I wanted to show you really
  10584. 6:47:15fast and this will be extra after the
  10585. 6:47:18extra credit or before. So we've
  10586. 6:47:22ideally gone through all this. So we've
  10587. 6:47:24gone through breeds. So you might be
  10588. 6:47:26wondering like, okay, how do we make
  10589. 6:47:28this a little bit more dynamic? Because
  10590. 6:47:30like we have this breed over here,
  10591. 6:47:32Australian. So let me grab this over
  10592. 6:47:35here.
  10593. 6:47:36It's this one.
  10594. 6:47:38Like, okay, you've been hard coding all
  10595. 6:47:41this extra stuff. Well, all we have to
  10596. 6:47:43do is have an edit set. So I'm going to
  10597. 6:47:46go and use a retriever for an example.
  10598. 6:47:49So let's say I go over here by breed.
  10599. 6:47:52I'm going to search for broadbreed list.
  10600. 6:47:56Where's our retriever is at? This isn't
  10601. 6:47:59in order. Or is this? No, it's not in
  10602. 6:48:00order. That's annoying. We'll go back
  10603. 6:48:02over here. List all breeds. I'm just
  10604. 6:48:05going to search for retriever really
  10605. 6:48:06quick. I know I could just over here.
  10606. 6:48:09We're going to get our golden retriever.
  10607. 6:48:11So,
  10608. 6:48:13what I'm going to do is
  10609. 6:48:15go into this. I'm going to set something
  10610. 6:48:17called breed.
  10611. 6:48:19And we can imagine like you could have a
  10612. 6:48:20form that lets someone choose something.
  10613. 6:48:22And maybe we'll do that as like a part
  10614. 6:48:24two here in a second. So now what I want
  10615. 6:48:26to do is go in here. I'm going to set
  10616. 6:48:29this as an expression. I'm going to
  10617. 6:48:30execute the previous node. And instead
  10618. 6:48:33of this Australian over here, what I'm
  10619. 6:48:35going to do is paste in this JSON
  10620. 6:48:37retriever.
  10621. 6:48:40So you can see we can pass in JSON in
  10622. 6:48:42these URLs. And we can do the same thing
  10623. 6:48:44with query parameters, body, headers. We
  10624. 6:48:46can pass in JSON from previous nodes.
  10625. 6:48:49And you can see we now have retrievers.
  10626. 6:48:51So to take this a step further, right?
  10627. 6:48:54And I'm just going to deactivate this
  10628. 6:48:56and delete it. Uh let's imagine we have
  10629. 6:48:57a form. So you can go any end form.
  10630. 6:49:01And uh we'll do a trigger. We'll say um
  10631. 6:49:06dog image creator.
  10632. 6:49:08Creator.
  10633. 6:49:11Obviously, it's not a creator, but it's
  10634. 6:49:12fine. Field name, we'll say like breed.
  10635. 6:49:15And then we'll put dog breed over here.
  10636. 6:49:18We'll have that as text. So, I'm just
  10637. 6:49:21going to copy that. I'm going to paste
  10638. 6:49:23this in over here.
  10639. 6:49:26And what we're going to say this time
  10640. 6:49:29is, let me just grab this over here. I
  10641. 6:49:31don't want to misspell it. And then have
  10642. 6:49:33it not work. I'm going to execute the
  10643. 6:49:35step. Dog breed. I'm going to say it's a
  10644. 6:49:37retriever. So, we have our retriever
  10645. 6:49:39over here as breed. And then I'm just
  10646. 6:49:42going to p paste that in. So it' be the
  10647. 6:49:44same thing over here, right? The
  10648. 6:49:45JSON.breed. I'll just show you that like
  10649. 6:49:47it's not changing. Um, but now we get
  10650. 6:49:49this on the form. And now we have this
  10651. 6:49:51dynamic. So anytime this form is
  10652. 6:49:54submitted, we can change the dog breed.
  10653. 6:49:56I can go over here and let's say I want
  10654. 6:49:58to run this now for Australian. So we're
  10655. 6:50:00going to say Australian.
  10656. 6:50:03Submit it. You'll see now we have our
  10657. 6:50:06five Australian shepherds. We put that
  10658. 6:50:09over there. So this really kind of just
  10659. 6:50:11expands it out when you add in that
  10660. 6:50:12dynamic element to the HTTP request.
  10661. 6:50:15Again, I would recommend you do this as
  10662. 6:50:16like extra credit, feel free like if you
  10663. 6:50:18want to start with an edit set or a form
  10664. 6:50:20or chatbot, like whatever you want
  10665. 6:50:22really. And uh just uh build this out
  10666. 6:50:25where you can save it into Google Drive.
  10667. 6:50:27It's really easy. I'm not going to show
  10668. 6:50:29it to you because I want you to try and
  10669. 6:50:31do this on your own. And we'll be back
  10670. 6:50:34with our next API which is going to be
  10671. 6:50:37open weather. So, what we're going to do
  10672. 6:50:39with this one, it's going to be pretty
  10673. 6:50:40cool, is we're actually going to build
  10674. 6:50:41out even more of a an end workflow.
  10675. 6:50:43We're going to send an email based off
  10676. 6:50:45of the weather and yeah, we'll have some
  10677. 6:50:47fun with it. All right, I will see you
  10678. 6:50:49in the next part, which is part three.
  10679. 6:50:51All right, so we're on example three
  10680. 6:50:53now. So, let me make that note. Section
  10681. 6:50:5813,
  10682. 6:50:59example three. And what we're taking a
  10683. 6:51:02look at is the open weather API. and you
  10684. 6:51:05know based off of what we have in here.
  10685. 6:51:07We're actually going to build a workflow
  10686. 6:51:09around it. So let's take a look at
  10687. 6:51:12what's going on. So first we have how to
  10688. 6:51:15get started. This page is comprehensive
  10689. 6:51:17guide to get access to capability to
  10690. 6:51:18open whether it's APIs from initial
  10691. 6:51:20registration to making API calls. You'll
  10692. 6:51:22find detailed instructions. All right.
  10693. 6:51:24So first thing it says how to start with
  10694. 6:51:26our API. Uh start with our services
  10695. 6:51:28easy. So sign up and get API key. So, we
  10696. 6:51:31need to actually sign up.
  10697. 6:51:34And uh we'll just test these out over
  10698. 6:51:37here.
  10699. 6:51:41Not a robots. Great. And I'm going to
  10700. 6:51:44just fill this out. And uh this is going
  10701. 6:51:46to get cut out, but I'll be right back.
  10702. 6:51:48All right. So, now we have how and where
  10703. 6:51:51you'll use our API.
  10704. 6:51:53And uh let's see if we have an option
  10705. 6:51:56over here.
  10706. 6:51:59guess other because it's like there's
  10707. 6:52:01nothing for Oh, education and science.
  10708. 6:52:06I'm just gonna click save.
  10709. 6:52:09Cool. All right. And now what we need to
  10710. 6:52:11do is just check the email
  10711. 6:52:15or go to Gmail really quick. And I'm
  10712. 6:52:17going to check my email to see if I got
  10713. 6:52:19this or not. And I did get our
  10714. 6:52:23confirmation.
  10715. 6:52:25So you'll get your confirmation like
  10716. 6:52:27this. And then I'll just verify my
  10717. 6:52:29email. Right, we've been verified.
  10718. 6:52:33I don't know what the pricing is. I
  10719. 6:52:35would assume there's free pricing.
  10720. 6:52:39Okay, first 10,000 API calls per day are
  10721. 6:52:42free. Great. So, this should be fine for
  10722. 6:52:44us. Um, but obviously there's historical
  10723. 6:52:47data up to 46 years. Like note that the
  10724. 6:52:50subscription requires
  10725. 6:52:53pay as you go.
  10726. 6:52:57Obviously, there's other things over
  10727. 6:52:58here. I think we should be fine with our
  10728. 6:53:01first one for free.
  10729. 6:53:04Hopefully, it allows us to go.
  10730. 6:53:08I don't want to pay. This is the thing
  10731. 6:53:10with trying to find like free APIs and
  10732. 6:53:12things like that. I don't want you to do
  10733. 6:53:14some billing. So, maybe we're not going
  10734. 6:53:17to use this open weather. All right. So,
  10735. 6:53:20actually, this is free access right
  10736. 6:53:21here. So we can get current weather and
  10737. 6:53:24forecast or current forecast and
  10738. 6:53:26historical data for education. So I
  10739. 6:53:28think we should be able to get our API
  10740. 6:53:30key for this one for current weather. So
  10741. 6:53:33I'm going to click get API key alert.
  10742. 6:53:35You're already signed in.
  10743. 6:53:38All right. Let's see if we have an API
  10744. 6:53:40key over here.
  10745. 6:53:47Um where is this at? All
  10746. 6:53:52right, let's see if I have an API key.
  10747. 6:53:54Go to my API keys.
  10748. 6:53:57And we have our API key here. It's
  10749. 6:53:59blurred out on my screen so you guys
  10750. 6:54:01cannot see it. My editor will do that.
  10751. 6:54:05And we will
  10752. 6:54:07test this out and see if we can get that
  10753. 6:54:10free version. Hopefully that's the case.
  10754. 6:54:12Obviously, I don't want you guys to pay.
  10755. 6:54:14So, we're going to do an HTTP request,
  10756. 6:54:17and we'll set this up here in a second
  10757. 6:54:19based off of the documentation. Um, all
  10758. 6:54:22I did again is I went to the API. I
  10759. 6:54:24found that free section, which it looks
  10760. 6:54:26like it's gone from my side now
  10761. 6:54:31for like the current weather,
  10762. 6:54:35but unless it was on the pricing page.
  10763. 6:54:39I think it was the pricing page.
  10764. 6:54:42All right. So, current weather and
  10765. 6:54:44forecast. We need to find that
  10766. 6:54:46documentation. So, we're going to go to
  10767. 6:54:48guides, open link,
  10768. 6:54:53and let's find the current weather.
  10769. 6:55:03All right. So,
  10770. 6:55:06current weather and forecast, real time
  10771. 6:55:08updates every 10 minutes.
  10772. 6:55:11Current weather data. This is the one
  10773. 6:55:13that we want to take a look at. So,
  10774. 6:55:15we're going to look at the API doc.
  10775. 6:55:17Great. I think we're in the right spot.
  10776. 6:55:18And you can see like this is an example
  10777. 6:55:19of a much more comprehensive API. So,
  10778. 6:55:23what we have over here is our example.
  10779. 6:55:25So, it says HTTP
  10780. 6:55:28equals we need to put our lat long and
  10781. 6:55:30our API key. So, these are all required
  10782. 6:55:32parameters. So, you can see it says
  10783. 6:55:34required latitude over here. Required
  10784. 6:55:37longitude
  10785. 6:55:39and uh this is an example of the API
  10786. 6:55:41call. So, typically what I like to do is
  10787. 6:55:44start with an example. And you'll see we
  10788. 6:55:46get a JSON response associated with it.
  10789. 6:55:49Um, where is this at? Let's do a flat
  10790. 6:55:53and longitude of a city. So, you know,
  10791. 6:55:57obviously it's 12:31. New Year's is
  10792. 6:55:59about to hit in uh the states
  10793. 6:56:03in less than 12 hours. There's the big
  10794. 6:56:05New Year's ball in New York. So, let's
  10795. 6:56:07say the long and long of New York City.
  10796. 6:56:12that is going to be this. So, this is
  10797. 6:56:15the Latin long of NYC. Let's uh paste
  10798. 6:56:18this in over here. So, what we're going
  10799. 6:56:21to do is take a look at that.
  10800. 6:56:27Cool. So, this is the Latin long of New
  10801. 6:56:29York City. We're going to get this
  10802. 6:56:31example over here. So, this is an
  10803. 6:56:32example of an API call
  10804. 6:56:36and we'll grab that over here as well.
  10805. 6:56:39So, we'll just throw that in
  10806. 6:56:44that. Great. So, this is our URL and
  10807. 6:56:46we've already kind of covered our
  10808. 6:56:48specific URLs. We can change this up as
  10809. 6:56:51needed, but let's uh grab that first.
  10810. 6:56:55And you can see also with the example,
  10811. 6:56:57let me just go back over here. All we're
  10812. 6:57:00doing is changing these parameters
  10813. 6:57:02because if you go
  10814. 6:57:05to this,
  10815. 6:57:08you'll see all they're doing for the lat
  10816. 6:57:10is putting this lat with two decimal
  10817. 6:57:13places. This is ann
  10818. 6:57:16with two decimal places. So with our New
  10819. 6:57:18York example, it' be 40.71
  10820. 6:57:22that. And then I'll just put like a a
  10821. 6:57:25bracket or not bracket but a colon like
  10822. 6:57:28that column I say colon like that. Okay,
  10823. 6:57:32cool. So now let's test that out with
  10824. 6:57:35our thing. So I'm going to go over here
  10825. 6:57:40and change that up. So we're going to do
  10826. 6:57:4240.71. I just find this easier just to
  10827. 6:57:44manipulate this out over here for a
  10828. 6:57:46second just so you guys see what I'm
  10829. 6:57:48doing. 74
  10830. 6:57:51in like that. Then I need to put in my
  10831. 6:57:53API key, which I will put in a second.
  10832. 6:57:55If I can delete my API key, I'll
  10833. 6:57:57probably just use the API key for this
  10834. 6:57:59example. Just going to go to API key
  10835. 6:58:02really fast.
  10836. 6:58:09Let's see. Okay, I'm just going to
  10837. 6:58:12deactivate my key after this section.
  10838. 6:58:14So, it's showing. That's fine. I don't
  10839. 6:58:16really care. I'm going to grab my key
  10840. 6:58:18like this, and I'm just going to paste
  10841. 6:58:20it in over here.
  10842. 6:58:22So you'll see that is my API key
  10843. 6:58:25and uh yeah we'll test this out and
  10844. 6:58:27obviously this is not secure like if we
  10845. 6:58:29share this workflow with any other
  10846. 6:58:30person they can access our API key
  10847. 6:58:33because any end will save this over
  10848. 6:58:35here. So I'm going to have to show you
  10849. 6:58:36how we can get rid of this API key
  10850. 6:58:39within this section. Um yeah we'll we'll
  10851. 6:58:42cover that here in a minute. So I'm
  10852. 6:58:43going to execute this step and it says
  10853. 6:58:46invalid API key. Unfortunately we have
  10854. 6:58:49something going on with our API key. Uh,
  10855. 6:58:51that's annoying.
  10856. 6:58:54All right, let's see
  10857. 6:58:57why this is not working.
  10858. 6:59:05The status is active.
  10859. 6:59:10Why is this not working though?
  10860. 6:59:13There are API key.
  10861. 6:59:16We did the exact example.
  10862. 6:59:20Let's see this error. So, it tells us
  10863. 6:59:21where we can see this error. 401, you
  10864. 6:59:24did not specify your API key and API
  10865. 6:59:26request. Your API key is not activated
  10866. 6:59:27yet. Within the next couple of hours,
  10867. 6:59:29it'll be activated, ready to use. Well,
  10868. 6:59:32we are
  10869. 6:59:34might have to wait. You're using free
  10870. 6:59:36subscription. Try requesting data
  10871. 6:59:39available in your subscription for
  10872. 6:59:40example.
  10873. 6:59:44All right. Maybe it's we have to go to
  10874. 6:59:462.0.
  10875. 6:59:48Let's try 2.0. No,
  10876. 6:59:51no, this API is not ready.
  10877. 6:59:54Unfortunately, we're going to wait on
  10878. 6:59:55this.
  10879. 6:59:57All right. So, essentially, I did a
  10880. 7:00:00little bit more research on this 401
  10881. 7:00:02error. I'm going to keep this in the
  10882. 7:00:04video because this is kind of real world
  10883. 7:00:07debugging, like what's happening with an
  10884. 7:00:09API key. I found this on Stack Overflow,
  10885. 7:00:11which if you're not familiar with Stack
  10886. 7:00:13Overflow, it's a really great place for
  10887. 7:00:14developers to take a look at
  10888. 7:00:16information. So I literally just Google
  10889. 7:00:18search open weather map error 401
  10890. 7:00:21and uh someone has already said this is
  10891. 7:00:23a duplicate error. They have code over
  10892. 7:00:26here to specifically jump into the API
  10893. 7:00:29and someone says check this out. Reasons
  10894. 7:00:32why your API key is not working. Also it
  10895. 7:00:34takes two hours for key activation. Um
  10896. 7:00:38take a look at this. This is from 10
  10897. 7:00:40years ago and someone also mentions that
  10898. 7:00:42it takes two hours for our key to work.
  10899. 7:00:46So unfortunately
  10900. 7:00:49or fortunately
  10901. 7:00:51and this is not going to work for us for
  10902. 7:00:532 hours. I want to get this course to
  10903. 7:00:57keep moving forward. So I'm going to
  10904. 7:00:59pretend like this actually works and
  10905. 7:01:01we'll still work walk through the
  10906. 7:01:03documentation. Maybe you want to wait
  10907. 7:01:05the two hours and come back to this
  10908. 7:01:06lecture. Um we're going to still cover
  10909. 7:01:08another API in that next side. I think
  10910. 7:01:10this was a good example though of
  10911. 7:01:12showing you like some things are out of
  10912. 7:01:14your control like waiting two hours is
  10913. 7:01:16out of my control on this because I
  10914. 7:01:18wanted to go into these APIs a little
  10915. 7:01:20bit blind but
  10916. 7:01:23that's a bummer as you can see I was
  10917. 7:01:25looking at the 401 errors and things
  10918. 7:01:27like that. So going back into like what
  10919. 7:01:31we expect to receive, you know, we could
  10920. 7:01:34still build out a workflow just based
  10921. 7:01:36off of predictions. Like we can
  10922. 7:01:38obviously just edit our values and
  10923. 7:01:40things like that. We can still talk
  10924. 7:01:41about other stuff as well. Um so
  10925. 7:01:44documentation wise, let me kind of
  10926. 7:01:46explain a few things. When you are
  10927. 7:01:48looking at um documentation for an API,
  10928. 7:01:51if they mention that a parameter is
  10929. 7:01:53required, you have to put that in there.
  10930. 7:01:55Otherwise, you're going to get an error.
  10931. 7:01:56As you can see over here, lat long app
  10932. 7:01:59ID is required. Optional means you don't
  10933. 7:02:01necessarily need to pass it on, but you
  10934. 7:02:03can do that if possible. Uh so you can
  10935. 7:02:06see this is lat long. It's easy. App ID
  10936. 7:02:09is unique API key. It shows you where
  10937. 7:02:11you can get your API keys. Mode optional
  10938. 7:02:14is a response format. Possible are XML
  10939. 7:02:16or HTML. If you don't use the mode
  10940. 7:02:18format is JSON by default. I'm fine with
  10941. 7:02:20JSON. So that's good there. I wouldn't
  10942. 7:02:22pass in mode. Optional, units of
  10943. 7:02:24measurement, standard, metric, or
  10944. 7:02:25imperial. Obviously, this depends on the
  10945. 7:02:27country that you're at. And then it says
  10946. 7:02:29language optimal, you can change this
  10947. 7:02:30output in your language. So, if you're
  10948. 7:02:32overseas and you don't want to have this
  10949. 7:02:33in English, you can change that
  10950. 7:02:35language. And you would just keep
  10951. 7:02:36passing these on. So, you can see what
  10952. 7:02:38we have over here is this question mark.
  10953. 7:02:40So, we can pass that data specifically
  10954. 7:02:42on in our our query parameter section.
  10955. 7:02:46So, to show you how that would work,
  10956. 7:02:48we'll go over here
  10957. 7:02:50and
  10958. 7:02:52next. And you can take a look. We have
  10959. 7:02:54our question mark. So what we want to do
  10960. 7:02:56is send query parameters and we'll add
  10961. 7:02:58in multiple parameters this time because
  10962. 7:03:00we didn't cover that on the last side of
  10963. 7:03:02it. So we're going to take that question
  10964. 7:03:04mark and we're going to paste that over
  10965. 7:03:06here. And first thing we have is lat. So
  10966. 7:03:09we're going to keep this to 40.71.
  10967. 7:03:12Then we're going to do our long width is
  10968. 7:03:1474. So I'll just put name long should be
  10969. 7:03:18long like that. Put the value over here
  10970. 7:03:2174.00.
  10971. 7:03:24And then we have our app ID, which is
  10972. 7:03:26our uh API key. Now, I do not recommend
  10973. 7:03:29you put your API key over here. I'm just
  10974. 7:03:32going to clean this up. Just show you
  10975. 7:03:34that. So, I do not recommend that you
  10976. 7:03:37put your API key here. And I'll explain
  10977. 7:03:40here in a second. I'm just clean that
  10978. 7:03:41up. I noticed I had an error. So, you
  10979. 7:03:43can see I took lat, I put a value 4071,
  10980. 7:03:45lawn, I put a value 74, and then app ID.
  10981. 7:03:48And again, we saw that because there was
  10982. 7:03:49a question mark in here, we could use
  10983. 7:03:51these as specific query parameters. So
  10984. 7:03:54what I would recommend that we do is set
  10985. 7:03:57some sort of authentication up for this
  10986. 7:03:58app ID because it's just not the best
  10987. 7:04:01approach to use when we share this
  10988. 7:04:02workflow. Someone else will be able to
  10989. 7:04:04get our value even if it's right here or
  10990. 7:04:07if it is right down below over here. So
  10991. 7:04:11same if you do headers or body um if you
  10992. 7:04:14have your API key in over there
  10993. 7:04:15typically won't be in body but you
  10994. 7:04:17sometimes you'll see header anyone can
  10995. 7:04:18access it. So what we want to do is go
  10996. 7:04:20into authentication, set up a generic
  10997. 7:04:23credential type, and then what we're
  10998. 7:04:25going to do is look for a query off.
  10999. 7:04:27Okay. Then what we're going to do is
  11000. 7:04:29create a new credential
  11001. 7:04:31and we're going to say like this is open
  11002. 7:04:33weather. So open weather.
  11003. 7:04:37And then we need the name. So we go back
  11004. 7:04:40into our stuff and we'll edit this here
  11005. 7:04:42in a second. I'm just clicking save.
  11006. 7:04:44You'll notice it says name is app ID. So
  11007. 7:04:46going to open weather, we'll call this
  11008. 7:04:48app ID like that. Save it again. And
  11009. 7:04:50then we grab our value. So we go back in
  11010. 7:04:53over here. And then we paste in our
  11011. 7:04:55value there. So now we have our
  11012. 7:04:57credentials to open weather saved. And
  11013. 7:05:00you can see it obviously saves over
  11014. 7:05:01here. Um we have this saved directly in
  11015. 7:05:04our HTTP request. And now I would
  11016. 7:05:06recommend that you delete this over
  11017. 7:05:08here. So now all we have to pay paste in
  11018. 7:05:10every time is our lat and long to get
  11019. 7:05:13this API working. Whereas we just have
  11020. 7:05:16to choose this query authentication over
  11021. 7:05:18here. We choose a generic type a query
  11022. 7:05:20off because that's where it defined it
  11023. 7:05:22in the API. We saw that with the
  11024. 7:05:24question mark. We just go over to query
  11025. 7:05:26off like that and then set it up. Okay.
  11026. 7:05:29Again, app ID. It tells us this directly
  11027. 7:05:32in our documentation. So if we go to our
  11028. 7:05:34documentation again, wherever that's at
  11029. 7:05:38here, it says and app ID like this. We
  11030. 7:05:41have this after a question mark. So we
  11031. 7:05:43know that that's a query. Uh we put the
  11032. 7:05:45app ID and we paste in our specific
  11033. 7:05:47value. Obviously I would show it to you
  11034. 7:05:49guys but we can't work on this for two
  11035. 7:05:51hours. So is why this is not currently
  11036. 7:05:54working. And uh happy to take a look at
  11037. 7:05:56this a little bit later after the video
  11038. 7:05:57uploads if there's any issues on that
  11039. 7:06:00side of things. But yeah so I wanted to
  11040. 7:06:02show you that. The other question you
  11041. 7:06:03might have is like okay well if I save
  11042. 7:06:05this over here as a actual a query off
  11043. 7:06:08and a generic credential if I share my
  11044. 7:06:09workflow will other people have access
  11045. 7:06:10to it? And the answer is no. This is
  11046. 7:06:13based off of your specific credentials.
  11047. 7:06:16So if you share this, all they'll have
  11048. 7:06:18access to now is this LAT and long. They
  11049. 7:06:20will not have access to your API key. So
  11050. 7:06:23this is the most secured way to do it.
  11051. 7:06:24Uh you set up a credential type.
  11052. 7:06:27Obviously you want to see if something's
  11053. 7:06:29available in predefined. Otherwise you
  11054. 7:06:30do a generic credential and uh like
  11055. 7:06:33let's say predefined. I don't think open
  11056. 7:06:35weather is going to be over here. It's
  11057. 7:06:37the exact name, right? Open weather.
  11058. 7:06:39Yeah. So, I'd look first to see if open
  11059. 7:06:41weather is here or not. Um, it actually
  11060. 7:06:44is. So, you can see open weather map API
  11061. 7:06:47create a new credential and you can just
  11062. 7:06:49paste this in up over here. That is the
  11063. 7:06:52same thing or the route that I did. And
  11064. 7:06:56just to create the credential here, put
  11065. 7:06:57my access token that side of it which I
  11066. 7:07:02have that do I have it saved over here?
  11067. 7:07:04I do.
  11068. 7:07:05So, two different routes that you could
  11069. 7:07:07go if it's not available.
  11070. 7:07:10It's not available in a predefined
  11071. 7:07:11credential.
  11072. 7:07:13Paste that. There it says couldn't
  11073. 7:07:16connect with these. We already know why
  11074. 7:07:17it's not going to connect because of the
  11075. 7:07:19two hours. We'll assume it does.
  11076. 7:07:22You can set that up as a predefined.
  11077. 7:07:24Otherwise, if it is not in predefined, I
  11078. 7:07:26recommend you do generic. You see based
  11079. 7:07:28off the documentation. This
  11080. 7:07:30documentation said it's a query. And
  11081. 7:07:31then I just set it up directly in here.
  11082. 7:07:33just following app ID and then value.
  11083. 7:07:35Hopefully that makes sense. That was
  11084. 7:07:37kind of one of the big things I wanted
  11085. 7:07:38to cover on the side because I knew we
  11086. 7:07:40had to log in some capacity. The other
  11087. 7:07:42thing is I wanted to build a workflow.
  11088. 7:07:43So you can imagine on the side of it
  11089. 7:07:46like we get our values back.
  11090. 7:07:50We'll get some JSON. So what I want to
  11091. 7:07:53do is just copy this JSON.
  11092. 7:07:57We're going to do is pretend to paste
  11093. 7:07:59this in a HTTP request. So we're going
  11094. 7:08:02to go here and I'm going to click edit
  11095. 7:08:05and I'm g just paste this in.
  11096. 7:08:10So you can see this would be our
  11097. 7:08:13example. So it says this data is test
  11098. 7:08:15for pinned executions. We have our
  11099. 7:08:16coordinates. We have the weather
  11100. 7:08:18temperature feels like which seems way
  11101. 7:08:22off. Temp 282.
  11102. 7:08:28I'm reading that right? Temp 280
  11103. 7:08:31284. What the heck?
  11104. 7:08:37That's weird. That seems off.
  11105. 7:08:42Is this just like a fake thing?
  11106. 7:08:47No, this is a real thing in Italy. I'm
  11107. 7:08:49sure I'm getting roasted. Why is it
  11108. 7:08:51showing the temp in 284? Let's take a
  11109. 7:08:54look. Temperature unit
  11110. 7:08:58default is Kelvin. That explains a lot.
  11111. 7:09:00I'm like, man, why is it
  11112. 7:09:02so off
  11113. 7:09:04Kelvin to Fahrenheit?
  11114. 7:09:07I'll do Celsius in a second, too. Uh,
  11115. 7:09:11yeah, Kelvin Zero is the coldest thing
  11116. 7:09:14possible. Uh, 48 degrees Fahrenheit.
  11117. 7:09:16It's freezing. Um, okay,
  11118. 7:09:22cool. and we'll do 282 for those that
  11119. 7:09:25are in Celsius 8 degrees Celsius cold
  11120. 7:09:28weather at least here in Florida. All
  11121. 7:09:30right, regardless, not to go on a
  11122. 7:09:32tangent, I don't know why Kelvin didn't
  11123. 7:09:34click for me in a second. I know what
  11124. 7:09:36Kelvin is, but you just I I would have
  11125. 7:09:38expected that this would have populated
  11126. 7:09:40either in Celsius or Fahrenheit. All
  11127. 7:09:42right, so we have all this data over
  11128. 7:09:43here, and you can imagine like we can
  11129. 7:09:47essentially have, let's say, a database
  11130. 7:09:50of all of our customers. So, this is
  11131. 7:09:53what I was going to work on
  11132. 7:09:54specifically, and obviously like it's
  11133. 7:09:55it's not possible based off of this.
  11134. 7:09:57Right now, we have a database of
  11135. 7:09:58customers, which I'm just going to put
  11136. 7:10:00in um Google Sheets. So, we'll say
  11137. 7:10:04Google Sheets. And then what I was going
  11138. 7:10:07to do is run this API based off of
  11139. 7:10:12location. So, let's say if they're in
  11140. 7:10:14Florida or like Orlando, Florida, I'm
  11141. 7:10:16out. Okay. What's the temperature over
  11142. 7:10:18here? What's the temperature where else?
  11143. 7:10:20and then either get this data would have
  11144. 7:10:23like some sort of if node. So let's I
  11145. 7:10:26don't know why I type in if node. We
  11146. 7:10:28would have an if node over here
  11147. 7:10:30and then like one route like okay if
  11148. 7:10:33this is going to be based off of the
  11149. 7:10:34temperature or weather. So temperature
  11150. 7:10:37or if it's raining
  11151. 7:10:40and then based off of this we can
  11152. 7:10:43promote a product. So like imagine if
  11153. 7:10:45it's cold so for example if it's
  11154. 7:10:47freezing in Florida.
  11155. 7:10:49in Florida promotes a jacket.
  11156. 7:10:54Hey, so essentially this was my goal for
  11157. 7:10:56this side of it. Obviously, it's not
  11158. 7:10:57going to happen for the two hours. Um,
  11159. 7:10:59we have database of customers. Let's
  11160. 7:11:01imagine this is in Google Sheets. We
  11161. 7:11:02build this out. Then we run the HTTP
  11162. 7:11:04request to get the current weather and
  11163. 7:11:06locations. So now we have the customer,
  11164. 7:11:08we have okay, how cold is it in their
  11165. 7:11:10specific area. I'll just convert this
  11166. 7:11:12from Kelvin into Fahrenheit. Um, I
  11167. 7:11:15believe the API also mentioned we could
  11168. 7:11:17change that out. So, uh, we would go
  11169. 7:11:19into the temperature or if it's raining.
  11170. 7:11:22I didn't decide which one I was going to
  11171. 7:11:24do for this video, but we can go with
  11172. 7:11:25the temperature idea. So, if it's like
  11173. 7:11:27under 50° Fahrenheit, I have a
  11174. 7:11:29e-commerce store that sells jackets. I
  11175. 7:11:32want to promote that. So, I'm going to
  11176. 7:11:34say um, an email to these customers.
  11177. 7:11:36Hey, it's freezing in Orlando. Um, buy a
  11178. 7:11:39jacket, which it is cold today. It's
  11179. 7:11:40actually, uh, 45° out, which is very
  11180. 7:11:43cold for us here in Florida. And yeah,
  11181. 7:11:46that was essentially the workflow I was
  11182. 7:11:47going to build out for this video with
  11183. 7:11:49you guys. Unfortunately, that's not the
  11184. 7:11:50case. If you want to test it out, go for
  11185. 7:11:52it. Uh, see what you can build. I think
  11186. 7:11:54you have all the skills to build this
  11187. 7:11:55out. As of now, I showed you how to set
  11188. 7:11:57this up. Uh, other thing I just want to
  11189. 7:11:59quickly go through to see if there's
  11190. 7:12:00anything else that's interesting. I
  11191. 7:12:02remember how I mentioned we're going to
  11192. 7:12:04get these fields. So, you can see over
  11193. 7:12:06here, unit default, Kelvin, metric,
  11194. 7:12:08Celsius, imperial, Fahrenheit. Found out
  11195. 7:12:10really fast when I went into this
  11196. 7:12:12documentation, right? Like I had Why is
  11197. 7:12:14this 280? That seems off and I thought
  11198. 7:12:16they were going to give us some
  11199. 7:12:17fictitious information at first. Well,
  11200. 7:12:19it's in Kelvin. Uh you can see feels
  11201. 7:12:22like temperature parameter accounts for
  11202. 7:12:23the perception of weather in Florida. It
  11203. 7:12:26can get really really hot based off of
  11204. 7:12:28that. Also, we're super humid over here.
  11205. 7:12:31You see wind values, cloud values. So,
  11206. 7:12:33if you really want to get some more
  11207. 7:12:34information about how this API works is
  11208. 7:12:37all available over here. I just
  11209. 7:12:39recommend that you get your responses
  11210. 7:12:40back in JSON. Uh there's other
  11211. 7:12:42information over here as well. A list of
  11212. 7:12:44weather condition codes. So if you want
  11213. 7:12:46to see the codes, they're all over here.
  11214. 7:12:49Gives you some other icons and
  11215. 7:12:50information as well. And uh yeah,
  11216. 7:12:54there's also options for bulk
  11217. 7:12:55downloading that site too. A little bit
  11218. 7:12:58more info. Uh what else do we have?
  11219. 7:13:01Built-in API request by city name. So
  11220. 7:13:04this is pretty cool. We can actually do
  11221. 7:13:06uh city as well and instead of long that
  11222. 7:13:08long. So this would just say over here
  11223. 7:13:12the Q is required. So city name, state
  11224. 7:13:16code and country code divided by a
  11225. 7:13:17comma. So this seems like a little bit
  11226. 7:13:19extra work. There's probably an example
  11227. 7:13:22here. Oh actually we just had to put in
  11228. 7:13:24London I guess London UK like that is
  11229. 7:13:26there's I think a London Canada. Um
  11230. 7:13:29built an API request by city ID. If you
  11231. 7:13:31know the city ID on top of your head and
  11232. 7:13:33maybe we want to build this out in a
  11233. 7:13:34database and go through again you can
  11234. 7:13:36see required versus optional which you
  11235. 7:13:38now learned about in this section
  11236. 7:13:41and uh yeah I think this is pretty good
  11237. 7:13:44examples of API calls. So this is great
  11238. 7:13:46tells you about different languages.
  11239. 7:13:48This is a well doumented API. It's just
  11240. 7:13:50a bummer. It's going to take two hours
  11241. 7:13:53if not more. Um some of the people that
  11242. 7:13:55I saw in Stack Overflow mentioned that
  11243. 7:13:57they had to wait overnight for their API
  11244. 7:13:59keys at times. Again, this is three
  11245. 7:14:01years ago, so things can change. Um, but
  11246. 7:14:04I think it was kind of helpful for that.
  11247. 7:14:06So, you know, just to kind of a recap on
  11248. 7:14:09here, if your API key doesn't work and
  11249. 7:14:11you do get an error code, obviously try
  11250. 7:14:13to research it. We saw that this takes
  11251. 7:14:15two hours. Um, not planned by any means
  11252. 7:14:18like that. Uh, we also learned about
  11253. 7:14:22putting an API key over here in either
  11254. 7:14:24the URL or query parameters. It is not
  11255. 7:14:27secured. So your best set is to set
  11256. 7:14:30either a predefined credential or
  11257. 7:14:31generic. By default, you should try to
  11258. 7:14:33take a look at predefined if it's
  11259. 7:14:35existing. If not, you build out the
  11260. 7:14:37generic credential.
  11261. 7:14:39And then I just kind of showed you an
  11262. 7:14:40example over here. Albeit it just sticky
  11263. 7:14:43notes of a workflow that I wanted to
  11264. 7:14:45build for this particular video. The
  11265. 7:14:48next one's going to be taking a look at
  11266. 7:14:49a movie database. Hopefully that doesn't
  11267. 7:14:51take too. If so, just go to a different
  11268. 7:14:55API that I've already done with
  11269. 7:14:56pageionation. But I think that's another
  11270. 7:14:58important concept to teach you guys and
  11271. 7:14:59I'll see you in part four now. All
  11272. 7:15:01right, here is our fourth one and what
  11273. 7:15:03we're taking a look at is the movie
  11274. 7:15:05database. So I'm going to populate this
  11275. 7:15:08in over here
  11276. 7:15:11and let's jump into it. So
  11277. 7:15:14let's set up our API key. So it says you
  11278. 7:15:17don't have permissions. You have to log
  11279. 7:15:19in. So I'm going to create an account
  11280. 7:15:20over here. And uh register an account is
  11281. 7:15:24free and simple. Okay. Obviously, again,
  11282. 7:15:27my first time trying this out. I'm going
  11283. 7:15:29to just pause the video really quick,
  11284. 7:15:32and once I get signed up, we'll be ready
  11285. 7:15:33to go. Then, it's going to say confirm
  11286. 7:15:35I'm human. We'll begin. Choose all the
  11287. 7:15:38beds. We'll choose these beds over here.
  11288. 7:15:40No complaints there.
  11289. 7:15:42And uh got that correct. Okay, you're
  11290. 7:15:44verified. So, sorry, I'm not verified
  11291. 7:15:47yet. So, I need to verify. I'm just
  11292. 7:15:49going to verify on my other screen.
  11293. 7:15:55activate my account.
  11294. 7:15:58Cool. All it was is a uh
  11295. 7:16:02basic thing like this. I just called my
  11296. 7:16:04username right Ann. So you can see
  11297. 7:16:06movie. Great. All right. So now I just
  11298. 7:16:09need to log in.
  11299. 7:16:12Logged in over here. And we have uh
  11300. 7:16:15TMDB.
  11301. 7:16:18So we have all this information over
  11302. 7:16:20here. And now we need to access the API.
  11303. 7:16:24So let's go back in over here and let's
  11304. 7:16:27look at the API. All right. So offers a
  11305. 7:16:30API free for personal use. Please ensure
  11306. 7:16:33you attribute TMDB for images data use.
  11307. 7:16:36You can find the logos. So obviously
  11308. 7:16:39this is what I'm using for the video
  11309. 7:16:40teaching you guys how to set this up. If
  11310. 7:16:42you're going to use this there uh
  11311. 7:16:44generate API key click here. Is intent
  11312. 7:16:47for personal use? Yep, it is personal
  11313. 7:16:50use. I'm teaching you guys how to do
  11314. 7:16:52this. And uh yes,
  11315. 7:16:56developer plan, no free thing. We'll
  11316. 7:16:59just say over here
  11317. 7:17:02if there's any billing, I'm just going
  11318. 7:17:04to literally say um API tutorial.
  11319. 7:17:09I'm going to go YouTube.com.
  11320. 7:17:14It's literally just education
  11321. 7:17:17teaching
  11322. 7:17:20people how to use API.
  11323. 7:17:23All right, it's literally going to make
  11324. 7:17:25me do the rest of this. I'm just going
  11325. 7:17:27to
  11326. 7:17:29go over here, subscribe.
  11327. 7:17:31All right, that's annoying. I have to
  11328. 7:17:32put in my address and stuff like that.
  11329. 7:17:34So, I'm going to do that really quick.
  11330. 7:17:37We're going to cut from the screen once
  11331. 7:17:38it is ready to go. So, I filled out that
  11332. 7:17:40form and then it says access your API
  11333. 7:17:42key details here.
  11334. 7:17:45So now we have our API key both on that
  11335. 7:17:48side of things. Um I definitely want to
  11336. 7:17:51blur this out so you guys cannot see
  11337. 7:17:54these API keys just in case I can't
  11338. 7:17:57actually delete these API keys.
  11339. 7:18:01Doesn't look like there's a way to
  11340. 7:18:05delete them. So
  11341. 7:18:07yeah, we're going to have to probably do
  11342. 7:18:09that. But it says primary documentation
  11343. 7:18:11is over here. So, we're going to look at
  11344. 7:18:12the documentation now and uh yeah, these
  11345. 7:18:16keys are going to be blurred out. Okay,
  11346. 7:18:18so getting started. So, we have a little
  11347. 7:18:20bit of a different guide over here for
  11348. 7:18:22the API. It says, "Welcome to version
  11349. 7:18:24three. We already registered. Please
  11350. 7:18:26note the API registration process is not
  11351. 7:18:28optimized for mobile devices." Uh, agree
  11352. 7:18:31to terms of use
  11353. 7:18:33configuration methods and uh we have our
  11354. 7:18:36FAQ.
  11355. 7:18:38What do I apply for an API key? What is
  11356. 7:18:40an SLA? Rappers.
  11357. 7:18:43They're a commercial service. Obviously,
  11358. 7:18:44if you're building out some type of app
  11359. 7:18:46that uses it, you're going to have to go
  11360. 7:18:47to the commercial side of things.
  11361. 7:18:50API is free for non-commercial purposes.
  11362. 7:18:52Obviously, this is TMDB's stuff. Does
  11363. 7:18:55the API change? Yep, it talks about
  11364. 7:18:58changes. Can I make changes? Nope. All
  11365. 7:19:01right.
  11366. 7:19:02And let's take a look at some other
  11367. 7:19:05stuff. Popularity,
  11368. 7:19:07movies. So popular is a fairly important
  11369. 7:19:09metric,
  11370. 7:19:13number of votes, trending. Cool. So this
  11371. 7:19:16is going to talk about road maps,
  11372. 7:19:18rappers, and libraries. Like there's a
  11373. 7:19:20lot of stuff over here. And this might
  11374. 7:19:22seem overwhelming at first. There's
  11375. 7:19:24authentication. Uh you can see over here
  11376. 7:19:27we have a bearer token that's mentioned.
  11377. 7:19:29So it says the default method to
  11378. 7:19:31authenticate is with your access token.
  11379. 7:19:33If you head into your account page under
  11380. 7:19:35API settings, you'll see a new token API
  11381. 7:19:37access token. The token is expected to
  11382. 7:19:39be sent along over here. A simple curl
  11383. 7:19:41using this method looks like the
  11384. 7:19:42following.
  11385. 7:19:44So, we can use a curl request as well.
  11386. 7:19:47Um, it's not curl request, but use a
  11387. 7:19:50curl. So, let's start with that because
  11388. 7:19:52I feel like that's probably the easiest
  11389. 7:19:54way to get started. So, we have our HTTP
  11390. 7:19:56request and we'll take a look at it. So
  11391. 7:20:01jumping in over here, let's import in
  11392. 7:20:04curl. So it's going to start with a get
  11393. 7:20:08and great. So we have our API movie
  11394. 7:20:12authentication and then you can see over
  11395. 7:20:14here we have a header parameter this
  11396. 7:20:16time. So the previous ones that we've
  11397. 7:20:18taken a look at are great parameters and
  11398. 7:20:21that was with our API key in the last
  11399. 7:20:23one. This one actually you have to put
  11400. 7:20:25this in a header parameter. So, it's
  11401. 7:20:27interesting that it's over here. So, if
  11402. 7:20:30we want to take a look and define this
  11403. 7:20:33every time, what we're going to do is
  11404. 7:20:35first take a look at predefined. Uh,
  11405. 7:20:37we're looking at the movie DB. So, let's
  11406. 7:20:39see if the movie DB is over here. So,
  11407. 7:20:41I'm just going to type in movie. And you
  11408. 7:20:43can see like there's no movie in here.
  11409. 7:20:45So, we're going to have to use a generic
  11410. 7:20:47credential. Then, we're going to go into
  11411. 7:20:49header. Okay. So, now I'm going to
  11412. 7:20:52create a brand new header. So, create
  11413. 7:20:54this over here. I'm going to call this
  11414. 7:20:56movie DB like that. Movie DB. All right.
  11415. 7:21:00I'm going to actually save that. I
  11416. 7:21:03apologize for moving out. I'm going to
  11417. 7:21:05say movie DB like this. I'm going to
  11418. 7:21:09save it. And now we need to call this
  11419. 7:21:12authorization. So, I'm going to go over
  11420. 7:21:14here, name this authorization. We'll
  11421. 7:21:16save that. And then it says my bearer
  11422. 7:21:18access token. And that was back on our
  11423. 7:21:20first page because it says over here the
  11424. 7:21:23default method authenticate. If you head
  11425. 7:21:24to your account page under API settings,
  11426. 7:21:26you see a new token listed API read
  11427. 7:21:28access token. This token is expected to
  11428. 7:21:30be sent as authorization header. So that
  11429. 7:21:33is our first one over here. It's
  11430. 7:21:35obviously blurred on my screen right
  11431. 7:21:36now. I'm going head back into n. I'm
  11432. 7:21:39going to go back into this movie off
  11433. 7:21:41head and I paste this over here into
  11434. 7:21:43value. It's a very long one and I saved
  11435. 7:21:46it. So we have that over here and now we
  11436. 7:21:48can remove this authorization
  11437. 7:21:51and don't have to send any specific
  11438. 7:21:53headers. So, this is just our first test
  11439. 7:21:55to see if this is working correctly. I
  11440. 7:21:57have no idea what this endpoint actually
  11441. 7:21:59does, but we're just going to execute
  11442. 7:22:00step. And uh fortunately, you must be
  11443. 7:22:03granted a key. We have a status code
  11444. 7:22:05issue. Wonder if we have the same thing
  11445. 7:22:07where this takes a little bit longer to
  11446. 7:22:10uh take a look at. I'm going to just
  11447. 7:22:12search this really fast. Would I have an
  11448. 7:22:14error?
  11449. 7:22:17I wonder also if they sent an email
  11450. 7:22:19based around it.
  11451. 7:22:21All
  11452. 7:22:22right, we're gonna
  11453. 7:22:24try the other key here in a second.
  11454. 7:22:29So, I'm just going to go over here and
  11455. 7:22:30do another HTTP request.
  11456. 7:22:33We're going to import in that curl.
  11457. 7:22:36So, go back over here
  11458. 7:22:42through this. All right. So,
  11459. 7:22:45importing this over here. First thing
  11460. 7:22:48we're going to just try is pasting in
  11461. 7:22:50our key like that. Again, it's blurred
  11462. 7:22:53so you guys can't see. And actually, you
  11463. 7:22:56know what the error is? I guarantee this
  11464. 7:22:58is the error.
  11465. 7:23:02Yep, I know exactly what the error is.
  11466. 7:23:04All right, so this is a weird quirk and
  11467. 7:23:06let me show you in a brand new one.
  11468. 7:23:09Okay, this sometimes happens and
  11469. 7:23:12obviously I wasn't paying attention too
  11470. 7:23:15well. So going back over here, if we
  11471. 7:23:18grab that curl request, you'll notice
  11472. 7:23:21that it says bearer, there's a space,
  11473. 7:23:23and then it says access token. So when
  11474. 7:23:25you set up your credentials, you need to
  11475. 7:23:28make sure at the beginning there's
  11476. 7:23:29bearer space and then paste it in. So um
  11477. 7:23:33I need to go back over here and then
  11478. 7:23:36edit this. So you see where this value
  11479. 7:23:38is? We're going to go all the way to the
  11480. 7:23:40left. I'm going to say bearer space. And
  11481. 7:23:43then we're going to save this. And now I
  11482. 7:23:45bet you if I run this, it actually
  11483. 7:23:47works. Well, let me uh copy our exact
  11484. 7:23:52one that we had over in this other one
  11485. 7:23:54that we knew worked correctly. So, I'm
  11486. 7:23:56going to copy my API key. It's a little
  11487. 7:23:57bit easier to read. And then I'm going
  11488. 7:24:00to go in here and paste that in. I'm
  11489. 7:24:02going to click save. And now we're going
  11490. 7:24:04to test it again. And you can see it
  11491. 7:24:07works properly. So, when you go in over
  11492. 7:24:09here, make sure API key looks like this.
  11493. 7:24:12So, it's
  11494. 7:24:14and I'll show you one more time.
  11495. 7:24:17So,
  11496. 7:24:19because this does happen time to time
  11497. 7:24:22and it sometimes it does stump people.
  11498. 7:24:25It stumped me right there for a second.
  11499. 7:24:26Well, I wouldn't say stumped. I figured
  11500. 7:24:28out within like five minutes. But, all
  11501. 7:24:30right. So, imagine your API key is like
  11502. 7:24:33this.
  11503. 7:24:35All right. So, we have our bearer access
  11504. 7:24:36token. That's our example, right? And
  11505. 7:24:38let's imagine our API key equals 1 2 3 4
  11506. 7:24:434 5. So essentially as your saved
  11507. 7:24:46credential. So saved credential you need
  11508. 7:24:49to have this equal to bearer like this
  11509. 7:24:54space
  11510. 7:24:561 2 3 4 5. So whatever that key is that
  11511. 7:24:59long string you need to paste that in
  11512. 7:25:01over here. And that is what is being
  11513. 7:25:03saved over here in value. Obviously, the
  11514. 7:25:07name is authorization. You need to make
  11515. 7:25:09sure that's the same. All right, so
  11516. 7:25:10hopefully that makes sense. I'm going to
  11517. 7:25:12clearing these out. And again, do not
  11518. 7:25:14save your stuff in this headers because
  11519. 7:25:17anyone that can access your workflow
  11520. 7:25:19will get those values and you don't want
  11521. 7:25:20to leak your key. So hopefully that
  11522. 7:25:23makes sense. And uh I know I said that
  11523. 7:25:26twice, but super super important that
  11524. 7:25:28you set this up. Again, this does happen
  11525. 7:25:30time to time. So I'm actually really
  11526. 7:25:31glad I made that error. And uh yeah,
  11527. 7:25:34we'll keep going forward. Great. So
  11528. 7:25:36authentication we've already covered
  11529. 7:25:38that as well and using the API. So now
  11530. 7:25:42what we're going to have is different
  11531. 7:25:44examples over here and what we can take
  11532. 7:25:47a look at is append to the responses and
  11533. 7:25:49easy way efficient to expend extra
  11534. 7:25:51results. I want to see where we have
  11535. 7:25:54different TV shows and things like that.
  11536. 7:25:56So I want to say we have different
  11537. 7:25:57examples like that. Let me also check
  11538. 7:25:59what our output was on here. So going to
  11539. 7:26:02table wise,
  11540. 7:26:05we have Star Wars.
  11541. 7:26:08Is that the only thing that populated?
  11542. 7:26:12I guess this is like one of the most
  11543. 7:26:13popular things over there. All right,
  11544. 7:26:18it's a pend to response.
  11545. 7:26:26This API reference
  11546. 7:26:29can get better. Okay, so welcome to
  11547. 7:26:31version three of the API. This is where
  11548. 7:26:32you find definitive list of currently
  11549. 7:26:34available methods for our movie, TV, and
  11550. 7:26:36actor image API. Honestly, I should have
  11551. 7:26:38gone this approach over here. I
  11552. 7:26:40apologize. So, first thing that you'll
  11553. 7:26:42notice over here, and I'm blurring out
  11554. 7:26:45my credentials over here. You can see we
  11555. 7:26:47have get, we have over here, a post to
  11556. 7:26:50add a favorite, add to a watch list, we
  11557. 7:26:52have get, favorite TVs that are get, we
  11558. 7:26:55have posts, get. So, it tells you what
  11559. 7:26:58you need to set up over here, like add
  11560. 7:27:01in a movie, clear, create. You have a
  11561. 7:27:04delete option also over here. Lots and
  11562. 7:27:06lots of really cool stuff we can play
  11563. 7:27:07with. Obviously, I don't have unlimited
  11564. 7:27:10time to walk you guys through every
  11565. 7:27:12single element of this API. Uh, but we
  11566. 7:27:16can take a look at some of this stuff.
  11567. 7:27:18So, let's go look at TV seasons and
  11568. 7:27:21we're going to go details and we'll see
  11569. 7:27:23what's going on over here.
  11570. 7:27:25All right. So, it says TV series ID,
  11571. 7:27:30which we need to find a series ID,
  11572. 7:27:32season, and season number. I'm going to
  11573. 7:27:33try to grab Stranger Things because I'm
  11574. 7:27:35excited to see the last episode tonight.
  11575. 7:27:38Obviously, my token is kind of blocked
  11576. 7:27:40over here on the screen. Um, but yeah,
  11577. 7:27:43let's find that. So, create details of a
  11578. 7:27:45TV season.
  11579. 7:27:49So, series ID,
  11580. 7:27:52we have a response over here.
  11581. 7:27:56name. Okay. So, I believe this is the
  11582. 7:27:59same barrier key that I populated. I
  11583. 7:28:02just want to see where these um series
  11584. 7:28:05ID is located at.
  11585. 7:28:08That's what I want to figure out. We see
  11586. 7:28:10we have the curl request here as well.
  11587. 7:28:12Um so, I can just copy this curl
  11588. 7:28:14request,
  11589. 7:28:16go in here, do another HTTP request,
  11590. 7:28:21import in curl. You can see it actually
  11591. 7:28:24pastes in our bearer token as well. So
  11592. 7:28:27I'm going to actually delete this out,
  11593. 7:28:29but the curl request will put that in
  11594. 7:28:31there.
  11595. 7:28:32So be careful with that.
  11596. 7:28:36CSPS or JSON, but now we just need to
  11597. 7:28:39figure out. Okay, so we have the season,
  11598. 7:28:43season number, and series ID.
  11599. 7:28:47I want to find where the series ID is.
  11600. 7:28:50So,
  11601. 7:28:53where can we find a series idea?
  11602. 7:28:59So, it
  11603. 7:29:01it doesn't have a lot of stuff. Maybe
  11604. 7:29:04it's in the getting started side.
  11605. 7:29:08So, we have a try it. We have our API
  11606. 7:29:12over here.
  11607. 7:29:15Apologize for the dog barking.
  11608. 7:29:20We have a search as well. Let me just
  11609. 7:29:23look this up. TMDB TMDB
  11610. 7:29:26series ID.
  11611. 7:29:28All right. So, someone says, "How to get
  11612. 7:29:30series ID?" I'm looking this up. There
  11613. 7:29:33are two ways when you via the website
  11614. 7:29:35interface or via API. Okay. So, look,
  11615. 7:29:38you can search directly in the API. This
  11616. 7:29:41is great. This is exactly what we want
  11617. 7:29:42to see. So, I don't want to look on the
  11618. 7:29:45website. I just want to go over here and
  11619. 7:29:47search this. So maybe make another HTTP
  11620. 7:29:50request.
  11621. 7:29:53And uh
  11622. 7:29:55this is a get.
  11623. 7:30:00I guess this is a little bit different.
  11624. 7:30:01Ah, it doesn't matter. We can do a
  11625. 7:30:03request or we can go on the website.
  11626. 7:30:07So it says that would be 4614.
  11627. 7:30:10All right. Let's find Stranger Things.
  11628. 7:30:17Stranger Things and we're going to look
  11629. 7:30:19in TV shows.
  11630. 7:30:22All right. So, Stranger Things, we have
  11631. 7:30:23a ID of 66732.
  11632. 7:30:26So, let's see if we can solve that.
  11633. 7:30:28We'll go back over here. Don't need that
  11634. 7:30:30one. All right. So, we need to have a
  11635. 7:30:33series ID.
  11636. 7:30:36Do we have to have the season number as
  11637. 7:30:38well or that was optional? Let's go back
  11638. 7:30:40over here and take a look.
  11639. 7:30:43Season number is required. Okay. So,
  11640. 7:30:47let's put in five. That's what's going
  11641. 7:30:50on right now.
  11642. 7:30:53This did not work because I actually
  11643. 7:30:54didn't set up my authentication. Go back
  11644. 7:30:56to generic. Go back to header.
  11645. 7:30:59And uh what we're going to do is grab
  11646. 7:31:02where's the movie one? Movie DB.
  11647. 7:31:06All right. So, this return back our
  11648. 7:31:08data. And take a look. So what we have
  11649. 7:31:12is the ID of that show, the air dates,
  11650. 7:31:15episode, the name, the network, which is
  11651. 7:31:20interesting. Origin country is empty. I
  11652. 7:31:21would have just probably put that as US.
  11653. 7:31:23Obviously, I don't have all this over
  11654. 7:31:25here. Overview, ID, season number, vote,
  11655. 7:31:28average.
  11656. 7:31:31A lot of other details associated with
  11657. 7:31:33each of these. We have another episode
  11658. 7:31:35over here.
  11659. 7:31:39all the crew and things like that
  11660. 7:31:41associated with it. A lot of data on
  11661. 7:31:44that side of things. So now that's only
  11662. 7:31:47one thing over here for a season. Let's
  11663. 7:31:50take a look at another
  11664. 7:31:52thing we can find.
  11665. 7:31:57So let's go back to TV shows.
  11666. 7:32:03And
  11667. 7:32:05where are we going to find TV?
  11668. 7:32:08We have lists and movies
  11669. 7:32:14trending TV. I guess we could do that as
  11670. 7:32:16well. And then it says time window. So
  11671. 7:32:20this is interesting. This will be
  11672. 7:32:21another request that we could do. It's a
  11673. 7:32:23get request. So I still wanted to find I
  11674. 7:32:26think this is a pretty good one. I still
  11675. 7:32:28want to find a TV series. Maybe the
  11676. 7:32:31details. All right. So this will
  11677. 7:32:32actually give me more information. So,
  11678. 7:32:34let's copy this one cuz we don't need
  11679. 7:32:37the exact season. Maybe this will give
  11680. 7:32:39us all like the episodes.
  11681. 7:32:41I think there's other ways though. I'm
  11682. 7:32:44trying to find a pageionation example.
  11683. 7:32:49Maybe it's this. I'm trying to get to us
  11684. 7:32:51like where we can have multiple pages
  11685. 7:32:53worth of episodes. And I know Stranger
  11686. 7:32:55Things might not be the best idea. We
  11687. 7:32:56want to take a look at something a lot
  11688. 7:32:58longer. Maybe like a cartoon show like a
  11689. 7:33:01Simpsons [snorts] Family Guy South Park.
  11690. 7:33:03But let's try this out. This might not
  11691. 7:33:07be the best over here, but we will
  11692. 7:33:12try it.
  11693. 7:33:15This images list. What's list associated
  11694. 7:33:18with it? List actually might be a better
  11695. 7:33:20one.
  11696. 7:33:21Get the list at the Oh, this is going to
  11697. 7:33:23be perfect because I feel like there's
  11698. 7:33:24so many list. I really This has
  11699. 7:33:28pageionation. So, I chose this because I
  11700. 7:33:30was hoping that would be the case. All
  11701. 7:33:33right. Um, we're series ID is 66732.
  11702. 7:33:38Hopefully, I'm not boring you guys to
  11703. 7:33:40death as well.
  11704. 7:33:42All right.
  11705. 7:33:45I think this is going to be perfect.
  11706. 7:33:49Maybe not.
  11707. 7:33:55Okay, this probably is going to be a
  11708. 7:33:58good example. So, we have a page over
  11709. 7:34:00here. Doesn't give us all of our
  11710. 7:34:02examples. There's 105 total pages. So,
  11711. 7:34:05we need to get into that next page. So,
  11712. 7:34:08we're going to have to do this through
  11713. 7:34:10pageionation
  11714. 7:34:12and uh we'll have to figure out how we
  11715. 7:34:14can build that out here in a second. So,
  11716. 7:34:17we'll go into our ad option and then
  11717. 7:34:20we're going to go into pageionation and
  11718. 7:34:22update a parameter in each request. So
  11719. 7:34:27we need to say response contains an
  11720. 7:34:31externation
  11721. 7:34:33mode is off. There's a way we can get
  11722. 7:34:35into here
  11723. 7:34:40a way to get to the second page.
  11724. 7:34:43So I'm trying to figure this out really
  11725. 7:34:44quick
  11726. 7:34:47because we can
  11727. 7:34:50change a lot of different approaches
  11728. 7:34:52over here.
  11729. 7:34:54I'm trying to figure that out in a
  11730. 7:34:55second.
  11731. 7:35:01Should be documentation on how we could
  11732. 7:35:03get there.
  11733. 7:35:06So list
  11734. 7:35:08path prams. Okay. So query prams. You
  11735. 7:35:11can see we change this now to two.
  11736. 7:35:18All right. We have a query pram where it
  11737. 7:35:19changes. So
  11738. 7:35:23let's try that.
  11739. 7:35:28We have this as page over here.
  11740. 7:35:32So page and then let's try page two. But
  11741. 7:35:36it should be different because you can
  11742. 7:35:37see this is page one. Let's see if that
  11743. 7:35:40works.
  11744. 7:35:42The return response was identical 5x. So
  11745. 7:35:44it stopped. check if pagionation
  11746. 7:35:46complete when
  11747. 7:35:49um
  11748. 7:35:51to specify that as well. All right, I'm
  11749. 7:35:54back. I took a quick break to figure out
  11750. 7:35:56the pageionation. So, as you saw by
  11751. 7:35:58default when we ran this over here
  11752. 7:36:00without any pageionation,
  11753. 7:36:03one item, but we know that there's a lot
  11754. 7:36:06of other pages. You can see have one
  11755. 7:36:08page, there's 105 total pages. So how
  11756. 7:36:11this was set up first I kind of went
  11757. 7:36:13back and forth across the board. So what
  11758. 7:36:17we're doing for pageionation mode is
  11759. 7:36:18update a parameter in each request we're
  11760. 7:36:20doing a query and we're going with the
  11761. 7:36:22name um page because we see over here
  11762. 7:36:25under query parameters there's something
  11763. 7:36:27called page and it says by default it's
  11764. 7:36:29one. So we have that. Okay. And then the
  11765. 7:36:32value over here if we want to update
  11766. 7:36:34this we go to the body page plus one. So
  11767. 7:36:37we want to get to page two we add one.
  11768. 7:36:39We add one more to get page three etc.
  11769. 7:36:42So all we do is paste in this
  11770. 7:36:44response.body.page
  11771. 7:36:46which we see if we execute step again.
  11772. 7:36:50Oh sorry I meant to I should have pinned
  11773. 7:36:52this data. Let me pin this data. Both of
  11774. 7:36:55these we're going to pin that data. I'm
  11775. 7:36:57going to pin this data because I'm tired
  11776. 7:36:58of calling the API. All right. So the
  11777. 7:37:00response.body.page.
  11778. 7:37:03So that's what we're grabbing over here.
  11779. 7:37:05Okay.
  11780. 7:37:08just use this one over here. Cool. So,
  11781. 7:37:10we have that. We're just gonna keep
  11782. 7:37:12adding one. I know it says nan over
  11783. 7:37:14here. It's just a weird quirk of
  11784. 7:37:15pageionation in N. Then I said
  11785. 7:37:18pageionation complete when I typically
  11786. 7:37:20use other. I build some type of
  11787. 7:37:21expression and I do response. Page is
  11788. 7:37:25greater than or equal to response total
  11789. 7:37:26pages. So, obviously if this page is at
  11790. 7:37:30105,
  11791. 7:37:31it's done. Um, so we can say that. And
  11792. 7:37:34we can also limit the amount of pages.
  11793. 7:37:36So I don't want to have all these
  11794. 7:37:38populate. So I only did 20 and I put max
  11795. 7:37:40pages over here as 20. And you can see I
  11796. 7:37:42only have 20 pages that are getting
  11797. 7:37:44populated for pageionation. Pagionation
  11798. 7:37:47is different on everything. And if you
  11799. 7:37:50are still confused about pageionation as
  11800. 7:37:52well. Let me show you an example. I'm
  11801. 7:37:54going to go to Amazon real quick.
  11802. 7:38:00All right. So I'm on Amazon and let's
  11803. 7:38:02say I want to search for um I don't
  11804. 7:38:05know. Let's go and search for a
  11805. 7:38:09gym piece of equipment. Let's say we
  11806. 7:38:12want to get a new
  11807. 7:38:15it's like a weight sled. I don't know
  11808. 7:38:17the official name. I want to get one of
  11809. 7:38:18these eventually, but weight sled like
  11810. 7:38:21this. So, by default, Amazon is not
  11811. 7:38:24going to show you everything. So, you'll
  11812. 7:38:26see that we have this page over here
  11813. 7:38:30to another page
  11814. 7:38:32which goes to page two. So essentially
  11815. 7:38:34with our API, our API to save resources
  11816. 7:38:37does not want to show us everything. So
  11817. 7:38:38it only shows us this one page with 20
  11818. 7:38:41items. Well, if you want to get more,
  11819. 7:38:43you have to use pageionation. And this
  11820. 7:38:46one over here, I put 20 pages of 20
  11821. 7:38:49items. Some APIs allow you to change how
  11822. 7:38:52many results are shown. Some will have
  11823. 7:38:54like the next URL on this page.
  11824. 7:38:56Everything's going to be a little bit
  11825. 7:38:57different on them. So to really hone in
  11826. 7:38:59on pagionation, I highly recommend you
  11827. 7:39:01check out my pagionation video because
  11828. 7:39:02both of those were completely different
  11829. 7:39:04setups than this example. But hopefully
  11830. 7:39:07that kind of makes sense on
  11831. 7:39:08pageionation. Like all we're trying to
  11832. 7:39:10do is get more data. It's kind of a
  11833. 7:39:12weird way to get data. Um it's going to
  11834. 7:39:15only give us partial data if we don't
  11835. 7:39:17set this up. So we have to set up this.
  11836. 7:39:19Typically there's some sort of
  11837. 7:39:20expression. And by the way, this is
  11838. 7:39:22really one of the most complicated
  11839. 7:39:23things in my personal opinion when
  11840. 7:39:25working with GTP requests. You also have
  11841. 7:39:27other options over here too, which we
  11842. 7:39:29didn't really cover too much in this
  11843. 7:39:31video, but timeout might be a little bit
  11844. 7:39:33helpful. This is not pageionation, but
  11845. 7:39:35just how long you want to try for an API
  11846. 7:39:37before it times out. All right. Um,
  11847. 7:39:40let's go into a different direction now
  11848. 7:39:42and just really quick show you an
  11849. 7:39:44example of like a a post or not. Yeah,
  11850. 7:39:48let's do like a post or let's do a
  11851. 7:39:51delete or something like that because we
  11852. 7:39:53have all these examples. And there's
  11853. 7:39:55just so many. And uh yeah, we'll just
  11854. 7:39:59grab one of these over here for example.
  11855. 7:40:01So we can add in a rating for a TV
  11856. 7:40:04episode. And this is going to be a post.
  11857. 7:40:06So I don't think we've done post with
  11858. 7:40:08the actual APIs as of yet. So what we're
  11859. 7:40:11going to do is just copy in the scroll
  11860. 7:40:13and copy that over here. you see bottom
  11861. 7:40:17left and all we need to do is series ID,
  11862. 7:40:19series number and it looks like there's
  11863. 7:40:20another request section. So what's cool
  11864. 7:40:23if I go over here importing curl it will
  11865. 7:40:25change this to post automatically as
  11866. 7:40:27well. Obviously, I just blurred this so
  11867. 7:40:29you don't see my key, but you can see we
  11868. 7:40:30have posts. We have the URL. It says
  11869. 7:40:33series ID, season, and season number,
  11870. 7:40:38episode, episode number, and then slash
  11871. 7:40:40rating. And then we're going to remove
  11872. 7:40:42our authorization over here for my code.
  11873. 7:40:45And we're going to just going to say
  11874. 7:40:47over here authentication generic
  11875. 7:40:51header
  11876. 7:40:52to our API key. and it's movie DB and
  11877. 7:40:57then raw it says content type body and
  11878. 7:41:01we'll have to fill this out here in a
  11879. 7:41:02second. So let's take a look at that
  11880. 7:41:05example in the documentation says rate a
  11881. 7:41:07TV episode save it to your rated list.
  11882. 7:41:09So path parameters it's required to put
  11883. 7:41:11in uh series ID, series number and
  11884. 7:41:15episode number. So going back to our
  11885. 7:41:17Stranger Things example, was this the
  11886. 7:41:19Stranger Things or was it the next one?
  11887. 7:41:21I think it was the next one.
  11888. 7:41:24Yeah, it's 66732 season 5. So, let's go
  11889. 7:41:28here. We'll just write the first
  11890. 7:41:30episode. So, series ID.
  11891. 7:41:35So, let's jump into this expression.
  11892. 7:41:41So, season number, series ID, and going
  11893. 7:41:45back over here to add rating. Where do
  11894. 7:41:47we change this? TV. First thing we do is
  11895. 7:41:50series ID. So, we'll put that over here.
  11896. 7:41:54Then it says slash season
  11897. 7:41:57and it says slash season number
  11898. 7:42:01episode
  11899. 7:42:04episode number. We'll just put one over
  11900. 7:42:05here. So that's saved.
  11901. 7:42:09And then what says query parameters
  11902. 7:42:12guest session ID and then session ID.
  11903. 7:42:14Not sure what the guest session ID is.
  11904. 7:42:18um raw body this is required
  11905. 7:42:22and uh let's take a look at that here in
  11906. 7:42:25a second.
  11907. 7:42:29All right. So
  11908. 7:42:32going back into
  11909. 7:42:34this. So we're going to have to send in
  11910. 7:42:38our JSON
  11911. 7:42:40body I think. Let's double check.
  11912. 7:42:44A TV show. So, it rates the TV show and
  11913. 7:42:47adds it to our rated list.
  11914. 7:42:52>> We have that. Okay.
  11915. 7:42:54I wish there was. We have to send in a
  11916. 7:42:57raw body, but there's not an example of
  11917. 7:43:00that body
  11918. 7:43:05header, which we have that over here.
  11919. 7:43:10And you know what? Sometimes if you
  11920. 7:43:11don't know things, you can also
  11921. 7:43:14ask. So
  11922. 7:43:17I'm gonna literally ask flaad. So I'll
  11923. 7:43:21go over here and say based off this
  11924. 7:43:24documentation, can you give me the JSON
  11925. 7:43:27based off this documentation?
  11926. 7:43:33You give me the JSON I need to rate.
  11927. 7:43:41I think that's what it's telling me to
  11928. 7:43:42do is is send in JSON. It should be able
  11929. 7:43:44to access over here.
  11930. 7:43:48That's all I have to do is value like
  11931. 7:43:50that.
  11932. 7:43:51Already have everything else. That is so
  11933. 7:43:53easy. We're just going to use value 8.5.
  11934. 7:44:03I guess all we have to do is put 7.5
  11935. 7:44:06here
  11936. 7:44:08because I mean we can put the JSON here,
  11937. 7:44:10but let's try the 75 here. Otherwise,
  11938. 7:44:13we're going to put in the JSON. Um
  11939. 7:44:17I don't know how I'd rate episode one. I
  11940. 7:44:19think 75 is fine.
  11941. 7:44:22Bad request undefined method each pair
  11942. 7:44:24for an instance of float.
  11943. 7:44:27All right, let's try JSON.
  11944. 7:44:31using JSON. We're gonna try this.
  11945. 7:44:37It worked. So, all we had to do is
  11946. 7:44:38change it up. Obviously, like I wish
  11947. 7:44:41they sometimes in APIs they'll give you
  11948. 7:44:43an example. So, like you know says the
  11949. 7:44:45response, we have the response over
  11950. 7:44:47here. We don't actually have the example
  11951. 7:44:49of the role body JSON. Um, unless I'm
  11952. 7:44:53missing it, but I just don't see it in
  11953. 7:44:55here. So don't be afraid to ask in a
  11954. 7:44:58large language model like I did right
  11955. 7:44:59over here or Google search. So and that
  11956. 7:45:02was an example of a post and I can see
  11957. 7:45:05all requests over here too and should
  11958. 7:45:08have a request. I don't know why it's
  11959. 7:45:10not in here yet but because it said it
  11960. 7:45:11was a success. You can see status code
  11961. 7:45:13and success. So we did rate that over
  11962. 7:45:16here. All right. What else can we do?
  11963. 7:45:18Delete rating. So let me just do the
  11964. 7:45:20opposite now and we're going to delete a
  11965. 7:45:22rating. So again, we could use a curl if
  11966. 7:45:26we want to or we could set this up by
  11967. 7:45:28itself. Just copying this over here.
  11968. 7:45:32I'll go into a notes and we'll take a
  11969. 7:45:34look at what this looks like.
  11970. 7:45:37So
  11971. 7:45:40it looks like it's nearly identical. So
  11972. 7:45:43all we have to do is go over here and
  11973. 7:45:45delete this time. So we're going to do
  11974. 7:45:48deletes
  11975. 7:45:50series.
  11976. 7:45:52And we don't send any any body.
  11977. 7:45:56See, it says defaults to zero. So, we
  11978. 7:45:59don't need to send
  11979. 7:46:02this over here for the body. And I don't
  11980. 7:46:05think we need to. Let's check our header
  11981. 7:46:06parameters.
  11982. 7:46:08Headers content type defaults.
  11983. 7:46:11Yeah, that should be fine. Yeah, I don't
  11984. 7:46:13think we need to send the headers this
  11985. 7:46:15time either. So, we're just doing a
  11986. 7:46:16delete. So, we're going to remove this
  11987. 7:46:17rating that we've already set up and it
  11988. 7:46:20should be fine. So, execute the step.
  11989. 7:46:22The item was deleted successfully.
  11990. 7:46:24Awesome. Uh, I'm sure there's there has
  11991. 7:46:27to be a patch or a put also on here.
  11992. 7:46:31Maybe not. Maybe you can't update it.
  11993. 7:46:32You have to delete it.
  11994. 7:46:35Post get.
  11995. 7:46:39You know, I'm shocked that they don't
  11996. 7:46:40have a put or patch. But either way,
  11997. 7:46:43that is the movie DB. I mean, we just
  11998. 7:46:46touched the surface on it, and I really
  11999. 7:46:48want you to explore it, but really what
  12000. 7:46:50we did, we set up another API key. This
  12001. 7:46:53time, this API key was set as a header
  12002. 7:46:56off this time instead of the query O.
  12003. 7:46:58So, I showed you how to set that up. We
  12004. 7:47:01took a look at pageionation. We also
  12005. 7:47:04took a look at finding where these
  12006. 7:47:05values are at. Sometimes you're going to
  12007. 7:47:06have to search Google or look for other
  12008. 7:47:08places. So, showed you that example.
  12009. 7:47:11Then we really went in depth into the
  12010. 7:47:13pageionation side of things. So like if
  12011. 7:47:15it doesn't give you all the examples,
  12012. 7:47:17how do you get more? Obviously
  12013. 7:47:19pageionation is different for everything
  12014. 7:47:20else. Then we covered a post where we
  12015. 7:47:23posted a rating to the website.
  12016. 7:47:25Obviously we didn't see what the JSON
  12017. 7:47:27body needed to be look like. So I
  12018. 7:47:29literally just asked our large language
  12019. 7:47:31model to get what this is and it gave me
  12020. 7:47:34that example based off the
  12021. 7:47:35documentation. And lastly, we did a
  12022. 7:47:37delete which showed you um you know we
  12023. 7:47:40could remove our specific rating. So
  12024. 7:47:42that is our API section for the HTTP
  12025. 7:47:46request. Now we're going to have our NEN
  12026. 7:47:48workflow act like an API in the next
  12027. 7:47:50section which is going to be for web
  12028. 7:47:52hooks. Um it is going to be a little bit
  12029. 7:47:55more technical again and these are
  12030. 7:47:57honestly some of the toughest sections
  12031. 7:47:59and initially right between the HTTP
  12032. 7:48:01requests and web hooks but you're
  12033. 7:48:04staying strong. Promise you the more and
  12034. 7:48:06more you see this uh you'll get used to
  12035. 7:48:08it. And really using LMS helps you a
  12036. 7:48:12ton. As you saw like didn't know what I
  12037. 7:48:14was doing in a small section. I asked an
  12038. 7:48:15LLM and it helped me out. So use that as
  12039. 7:48:18a resource. You don't have to know
  12040. 7:48:20everything. The internet exists for a
  12041. 7:48:21reason. Stack Overflow exists for
  12042. 7:48:23reason. So does large language models.
  12043. 7:48:25So use those to your unfair advantage.
  12044. 7:48:28Awesome. And uh I will see you in web
  12045. 7:48:30hooks now. So this section is going to
  12046. 7:48:32be very similar to the previous two. So
  12047. 7:48:35last two sections we talked about APIs
  12048. 7:48:37and how we could use any to get data
  12049. 7:48:40from some sort of external service and
  12050. 7:48:43then uh we could also technically update
  12051. 7:48:46that data. We could delete that data. Uh
  12052. 7:48:48we could send data outwards etc. Right?
  12053. 7:48:52And that was done through the HTTP
  12054. 7:48:54request node and APIs. Well, what if we
  12055. 7:48:58wanted to have that external service be
  12056. 7:49:00any end? So I'm going to be showing you
  12057. 7:49:02guys how we could do that through web
  12058. 7:49:04hooks. And when inside any end, there's
  12059. 7:49:07two things to know about web hooks. You
  12060. 7:49:09have the web hook trigger as well as the
  12061. 7:49:12respond to web hook node. So essentially
  12062. 7:49:15with our web hooks, what we have is an
  12063. 7:49:18an app outside of any end has some sort
  12064. 7:49:20of action and then essentially because
  12065. 7:49:23of that action, a workflow starts
  12066. 7:49:26directly in any. We use the same
  12067. 7:49:28principles that we covered before. Our
  12068. 7:49:31get, our post, our put, patch, delete.
  12069. 7:49:35Essentially, we just have our workflow
  12070. 7:49:37based around it. So, it's going to be
  12071. 7:49:38pretty exciting stuff. Kind of like what
  12072. 7:49:41I mentioned last time. I do have a full
  12073. 7:49:43in-depth web hook video with different
  12074. 7:49:45examples. So, please watch that in
  12075. 7:49:49addition to this if you are confused a
  12076. 7:49:51little bit. I understand web hooks will
  12077. 7:49:52take a little bit to understand. So
  12078. 7:49:55let's jump into this and uh learn a
  12079. 7:49:58little about web hooks. So before we
  12080. 7:50:00jump into the actual node, I just want
  12081. 7:50:02to show you that any end does have
  12082. 7:50:03native web hooks. The easiest example is
  12083. 7:50:06going to be Google Sheets. So if you go
  12084. 7:50:08here and I'm just going to show you
  12085. 7:50:09sheets
  12086. 7:50:11and you'll see that we have three
  12087. 7:50:13triggers on row added, row updated or
  12088. 7:50:16row added or updated. Well, when we make
  12089. 7:50:18a change in Google Sheets, we can start
  12090. 7:50:20a specific workflow. And that's kind of
  12091. 7:50:23one of the benefits of having this as a
  12092. 7:50:25trigger. In fact, any type of external
  12093. 7:50:28app that has a trigger. Well, that is a
  12094. 7:50:30web hook because we have an action and
  12095. 7:50:32another app. And because of that action,
  12096. 7:50:34we want to have something happen
  12097. 7:50:36directly in an end. Let's take a look at
  12098. 7:50:39a HubSpot example. So, we go to HubSpot
  12099. 7:50:41and this is a CRM a lot of people use
  12100. 7:50:44and there's 18 different triggers. So,
  12101. 7:50:46someone creates a company or deletes a
  12102. 7:50:47company, we want to have a workflow in
  12103. 7:50:49any end. Uh same with the contact, same
  12104. 7:50:51with a conversation or a deal created or
  12105. 7:50:53a ticket created. So any of these type
  12106. 7:50:55of properties like we change something
  12107. 7:50:57in HubSpot, we want to have a an end
  12108. 7:50:59workflow start because of that. So if
  12109. 7:51:01you see like, hey, we're going to have a
  12110. 7:51:03ticket created, you know, a customer has
  12111. 7:51:05some sort of issue or we want to reach
  12112. 7:51:07out to a customer because we notice
  12113. 7:51:08something on their account, this could
  12114. 7:51:10start a full workflow. And obviously
  12115. 7:51:12there's settings for every single node
  12116. 7:51:14internally like, hey, this is what we
  12117. 7:51:16should do with this workflow and you'll
  12118. 7:51:17have to design it. But this is just the
  12119. 7:51:19very basic level of a web hook. Uh just
  12120. 7:51:22again think of it as a trigger in
  12121. 7:51:23external app. But what happens if the
  12122. 7:51:26app that you want to use externally
  12123. 7:51:28doesn't have anything natively in an
  12124. 7:51:31end? Well, you're going to have to set
  12125. 7:51:33up a web hook. And let me just show you
  12126. 7:51:35this over here. We can go to web hook
  12127. 7:51:37and we'll have two different nodes. So
  12128. 7:51:39this is the trigger. And what we should
  12129. 7:51:42do as well is say respond respond to web
  12130. 7:51:45hook. So you'll see that we have this
  12131. 7:51:47over here and this is our node that we
  12132. 7:51:49respond back and this is our web hook
  12133. 7:51:51that starts our workflow just like these
  12134. 7:51:54over here this is not branded exact same
  12135. 7:51:56thing as the HTTP request if there's
  12136. 7:51:58something natively in any end take
  12137. 7:52:00advantage of it if there's not use the
  12138. 7:52:02HTTP request so you go into the web hook
  12139. 7:52:05first thing you'll notice here at the
  12140. 7:52:06top is you have two different URLs test
  12141. 7:52:08and production we'll cover that here in
  12142. 7:52:10a second but just know there's a URL we
  12143. 7:52:12have all of our HTTP methods delete get
  12144. 7:52:15patch post put. Then we jump into our
  12145. 7:52:17path. So this is our URL. We can change
  12146. 7:52:20this if we want. So you can see I'm just
  12147. 7:52:22typing in random stuff that changes.
  12148. 7:52:24Then we have authentication. And this is
  12149. 7:52:27a very critical thing. So right now
  12150. 7:52:29we're in test mode. We're not into
  12151. 7:52:30production. However, if I published our
  12152. 7:52:33workflow over here and uh everything's
  12153. 7:52:36ready to go, you're going to use our
  12154. 7:52:38production URL for our web hook. And
  12155. 7:52:40there's two different URLs, right? You
  12156. 7:52:42have the test one over here and you have
  12157. 7:52:44the production. test has test in the
  12158. 7:52:46name. The the production is the same
  12159. 7:52:47exact one without test and name. Why
  12160. 7:52:50this specifically matters? Well, with
  12161. 7:52:53your production URL, anything online
  12162. 7:52:55could access this URL if you are
  12163. 7:52:57published. So, I could go out there on a
  12164. 7:53:01different browser in a different country
  12165. 7:53:03and use this URL, the production URL if
  12166. 7:53:05I'm live and access my N instance. Um,
  12167. 7:53:10the instance being this specific
  12168. 7:53:12workflow. Again, why this matters is if
  12169. 7:53:14you have sensitive data in this
  12170. 7:53:15workflow, if you have an AI agent or you
  12171. 7:53:18have APIs that are going on that cost
  12172. 7:53:20you money or cost you security, um this
  12173. 7:53:24is wide open in the web. So, that is a
  12174. 7:53:27very scary thought. Now, the one way
  12175. 7:53:29that we could handle this and actually
  12176. 7:53:31there's a lot of different ways we could
  12177. 7:53:32handle this, some of them may be outside
  12178. 7:53:34the scope of this video, is through
  12179. 7:53:36authentication. So, you can see over
  12180. 7:53:38here we have basic off, header off, and
  12181. 7:53:41JWT O. So as you saw in the last two
  12182. 7:53:44examples, we had an API key. So someone
  12183. 7:53:46essentially had to have a specific
  12184. 7:53:48password to access their API. Uh we can
  12185. 7:53:51set up these over here with the basic or
  12186. 7:53:53eder. So that way not everyone online
  12187. 7:53:56could access our uh workflows. In
  12188. 7:53:59addition, there's other things as well.
  12189. 7:54:00So you can do an IP whitelist. You can
  12190. 7:54:03allow origins over here, which I haven't
  12191. 7:54:06used this one before. I do believe it's
  12192. 7:54:08a little bit new. I believe you can
  12193. 7:54:09ignore bots, which is right over here.
  12194. 7:54:11And there's some other pretty cool
  12195. 7:54:12things you can do as well on these
  12196. 7:54:14options outside the video of course, but
  12197. 7:54:17you have to think about security a lot
  12198. 7:54:19more when you're working with web hooks
  12199. 7:54:20because anyone can essentially go into
  12200. 7:54:22your NAN workflow and especially if you
  12201. 7:54:24have private info or anything that will
  12202. 7:54:26cost money. So respond to web hook.
  12203. 7:54:29Sometimes when you're going to have an
  12204. 7:54:31external service, they're going to kind
  12205. 7:54:33of make sure that your web hook works
  12206. 7:54:35correctly. And let me just show you an
  12207. 7:54:37example. monday.com
  12208. 7:54:40has like a really great example of
  12209. 7:54:42responding to web hook. I actually
  12210. 7:54:44covered this in a full video. If you
  12211. 7:54:46want to learn a little bit more about
  12212. 7:54:47it, I'd watch my Monday video. But we
  12213. 7:54:49essentially built this one out. So we
  12214. 7:54:52would have a test web hook. It would go
  12215. 7:54:54into any pass through this data and then
  12216. 7:54:57we would have to respond back and we
  12217. 7:54:59would have to send back a challenge
  12218. 7:55:00token. So monday.com wanted a challenge
  12219. 7:55:03token to confirm like, hey, you can
  12220. 7:55:05actually handle this web hook. And once
  12221. 7:55:06that challenge token was sent back, the
  12222. 7:55:08rest of the workflow could be built out.
  12223. 7:55:10But because money.com
  12224. 7:55:12doesn't have what's needed, that's why
  12225. 7:55:14we had to go and build this out. So you
  12226. 7:55:16can see money.com
  12227. 7:55:18and there is no triggers. So if you want
  12228. 7:55:21to have something happen based off of a
  12229. 7:55:23board change, you're going to have to
  12230. 7:55:24have a web hook. So while there's some
  12231. 7:55:27good stuff on here, it just didn't do
  12232. 7:55:28the trick and we had to have that
  12233. 7:55:30specific custom web hook built for it.
  12234. 7:55:33So, what I want to do really fast is
  12235. 7:55:36show you how we could test web hooks.
  12236. 7:55:39And the easiest way to do this is
  12237. 7:55:42through Postman.
  12238. 7:55:43So, what we're going to do is test that
  12239. 7:55:47and then we're going to go and use a
  12240. 7:55:49real application called Type Form. So,
  12241. 7:55:52first let's go into our web hook on
  12242. 7:55:54Postman. So, I'm going to go over here,
  12243. 7:55:57open browser, and I'm all I did really
  12244. 7:56:00quick is create a Postman account. Uh,
  12245. 7:56:03so then when you get to your homepage
  12246. 7:56:06over here, I went into I believe is your
  12247. 7:56:10workspace. So you can see my workspace
  12248. 7:56:12over here. So just to go back home, I
  12249. 7:56:15went to workspaces. I clicked on my
  12250. 7:56:17workspace. And then you see where it
  12251. 7:56:19says mock data generation. I just went
  12252. 7:56:22over here for that. So very basic on
  12253. 7:56:26that side of things. And we're going to
  12254. 7:56:27be testing directly in over here. and
  12255. 7:56:30we're going to send information back
  12256. 7:56:33into nan. So, I'm just going to save
  12257. 7:56:36this really fast. I'm going refresh it
  12258. 7:56:38because it looks like my instance is
  12259. 7:56:39running and it's not. Um, and I should
  12260. 7:56:43say instance my web hook node. So, what
  12261. 7:56:45I'm going to do is test with this test
  12262. 7:56:47URL first. So, we're going to go over
  12263. 7:56:48here and we're not even going to send
  12264. 7:56:51any information. We're just going to go
  12265. 7:56:52over here. I'm going to go and say
  12266. 7:56:55listen for test events and I'm going to
  12267. 7:56:57send information. So you can imagine
  12268. 7:56:58this is an action in some sort of app
  12269. 7:57:01and I'm going to go there and it says
  12270. 7:57:03this web hook is not registered for post
  12271. 7:57:05request and you can see there's a
  12272. 7:57:06mismatch because right now if I stop
  12273. 7:57:08listening this is a get whereas this
  12274. 7:57:11over here is a post. So you want to make
  12275. 7:57:13sure that things are working properly.
  12276. 7:57:16So let's change this up and put this
  12277. 7:57:18into a post request. Let's imagine we're
  12278. 7:57:20creating some sort of data. So now this
  12279. 7:57:22is a post and this is going to be a
  12280. 7:57:24post. So if I listen for a test event,
  12281. 7:57:27it should work. And this is good to show
  12282. 7:57:28you that we need to make sure things
  12283. 7:57:30line up. And then it says workflow has
  12284. 7:57:32started. And then you can see over here
  12285. 7:57:34our workflow started. We have our user
  12286. 7:57:36agent which is from Postman. And again,
  12287. 7:57:38that's the website we're using for
  12288. 7:57:39testing. We have no parameters. We have
  12289. 7:57:42no queries. We have a body that was sent
  12290. 7:57:44over here. And then um which I don't
  12291. 7:57:47know why we have Crystal Mills. That's
  12292. 7:57:50weird. Either way, um, or Chester, I
  12293. 7:57:54don't know what that is. Um, either way,
  12294. 7:57:56we have this sent over and it is
  12295. 7:58:00working. So, we can also send in some
  12296. 7:58:03stuff as well. So, we can name a key.
  12297. 7:58:06Enter in a value and a description. So,
  12298. 7:58:08let's say we want to put over here a I
  12299. 7:58:12don't know, we'll put a band and we'll
  12300. 7:58:14put in the value over here of north
  12301. 7:58:17lane. And then we'll say we have a jam
  12302. 7:58:20band. And the jam band I was listening
  12303. 7:58:22to today was, and I'll put this over
  12304. 7:58:25here, jam band, widespread panic. So
  12305. 7:58:28we'll put widespread panic in here.
  12306. 7:58:30Widespread
  12307. 7:58:32panic. Cool. We're going to send both of
  12308. 7:58:34these values now into nan. So I'm going
  12309. 7:58:37to just listen for a test event. Again,
  12310. 7:58:39we're going to send over this data.
  12311. 7:58:43Said workflow was started. And then you
  12312. 7:58:45can see over here in our query we have a
  12313. 7:58:47band north lane and then a jam band
  12314. 7:58:50whites panic. So we can have an edit set
  12315. 7:58:52after this and we can extract these
  12316. 7:58:55values. You can see exactly where these
  12317. 7:58:58are at.
  12318. 7:59:00So you can see query band and query jam
  12319. 7:59:03band. And now we have these values.
  12320. 7:59:06These values originally were over here
  12321. 7:59:09in Postman which again you can think of
  12322. 7:59:11this as an external service. Doesn't
  12323. 7:59:12necessarily need Postman. It's just for
  12324. 7:59:14testing and uh we sent this into any end
  12325. 7:59:17through a web hook and now we have those
  12326. 7:59:20particular values
  12327. 7:59:22and why I did post is we're obviously
  12328. 7:59:24we're going to use this data over here
  12329. 7:59:26and we're going to create something out
  12330. 7:59:28of it a little bit later. Maybe you want
  12331. 7:59:29to do some like web scraping or whatever
  12332. 7:59:31the case may be. But if you just want to
  12333. 7:59:33get a data set back um you would want to
  12334. 7:59:35probably use like get. So try to use the
  12335. 7:59:37exact things that you're used to like
  12336. 7:59:40get or post which is going to be web
  12337. 7:59:42hooks probably like 95% of the time
  12338. 7:59:43because I don't see like deleting data
  12339. 7:59:46that often within an end workflow and I
  12340. 7:59:49don't really see you updating it. So no
  12341. 7:59:50put or patch. Um post would be like
  12342. 7:59:53creating something and getting would be
  12343. 7:59:55returning some sort of data that's
  12344. 7:59:56automatically ready to go. Um this data
  12345. 7:59:58is obviously not ready to go. So I would
  12346. 8:00:01probably just recommend most of the time
  12347. 8:00:02you're going to set this to post
  12348. 8:00:05regardless. That's just a a very very
  12349. 8:00:07basic demo. Uh we can set some sort of
  12350. 8:00:10authorization though over here so
  12351. 8:00:12someone can't access it. So let's do
  12352. 8:00:14that. We're going to go to
  12353. 8:00:16authentication and let's set a header
  12354. 8:00:18off. And what we can do is set a
  12355. 8:00:20specific credential as well if we want
  12356. 8:00:22to. Um or we can do a basic O and set a
  12357. 8:00:26credential. So we can set a thing over
  12358. 8:00:29here. And I'm just going to say web hook
  12359. 8:00:32long ne video.
  12360. 8:00:35And you can set a username and a
  12361. 8:00:37password for this one over here for the
  12362. 8:00:38basic o. So let's say we're going to say
  12363. 8:00:42the username is um we're going to say
  12364. 8:00:46jam and then the password is strings
  12365. 8:00:50like that. So
  12366. 8:00:52username jam password strings. I'm just
  12367. 8:00:54going to make that as a note
  12368. 8:00:56just in case I forget that.
  12369. 8:00:59to jam strings and we are taking a look
  12370. 8:01:03at a basic O. So you can think of this
  12371. 8:01:06as a username and a password.
  12372. 8:01:09So basic O like that. So now let's go
  12373. 8:01:12back over here and you'll notice that
  12374. 8:01:15there's the authorization over here. So
  12375. 8:01:17there's different options. So this is a
  12376. 8:01:19basic O over here. So if we try this
  12377. 8:01:21without the basic O, we are going to get
  12378. 8:01:23an error. So we can still try to send
  12379. 8:01:26the same values or we can change these
  12380. 8:01:27values up. Uh let's change them up.
  12381. 8:01:29We'll say currents. We'll say fish over
  12382. 8:01:32here.
  12383. 8:01:34Both of those. And we'll try this again
  12384. 8:01:37with this O. And you'll notice that this
  12385. 8:01:39is going to fail. So if I go over here,
  12386. 8:01:42I say listen for test events. Again, we
  12387. 8:01:44haven't set any authorization. And I'm
  12388. 8:01:46going to send this over. It says
  12389. 8:01:48authorization data is missing. So we
  12390. 8:01:51need to actually set this up for this to
  12391. 8:01:53work properly. And you can see it's
  12392. 8:01:54still listening. Like obviously it did
  12393. 8:01:57not work. We're going to listen for test
  12394. 8:01:58events. We're going to go over here.
  12395. 8:01:59We're going to put our username as jam.
  12396. 8:02:02And then we're going to put strings. So
  12397. 8:02:04strings like that. Now we're going to
  12398. 8:02:06send it. Workflow has started because we
  12399. 8:02:08put the correct username and password.
  12400. 8:02:11And now you can see we have currents and
  12401. 8:02:13fish and our values over here are
  12402. 8:02:16currents and fish. So that is a basic
  12403. 8:02:19way of authentication which is our basic
  12404. 8:02:21o. We go to header o it's even easier.
  12405. 8:02:24So if I create over here and I say long
  12406. 8:02:26ne video long ne any ne
  12407. 8:02:30and a value. So um we can put like I
  12408. 8:02:34don't know it doesn't really matter on
  12409. 8:02:35the side of things. We'll say n api and
  12410. 8:02:39then we'll say key1 123. So key one two
  12411. 8:02:42three. We'll use any API and then we'll
  12412. 8:02:44use key1 123. So that is saved. It says
  12413. 8:02:49yeah don't use key13.
  12414. 8:02:53We'll go over here and say header off
  12415. 8:02:56header off n API key123. All right. So
  12416. 8:03:04have essentially our header off this
  12417. 8:03:07time and I have n API and key12. So then
  12418. 8:03:10I go into Postman. I go to our API key.
  12419. 8:03:13I set the value over here to N API and
  12420. 8:03:16then I set the value to key one two3. I
  12421. 8:03:19specified that this is a header off. As
  12422. 8:03:22you can see, we have header off right
  12423. 8:03:24here. That's our API key. We have the
  12424. 8:03:27value any API. Obviously, you can change
  12425. 8:03:29these up as you want. And I just put key
  12426. 8:03:31one, two, three. We can change up our
  12427. 8:03:33values that we want to send in over
  12428. 8:03:34here, too. Um, so I'll put goose over
  12429. 8:03:39here. And then I'll put bear tooth. So,
  12430. 8:03:42bear to like that. We'll send this over
  12431. 8:03:45here in a second. Once this is listening
  12432. 8:03:47for test events,
  12433. 8:03:49send that over and boom, there we go. We
  12434. 8:03:52have bear tooth and goose. Great in
  12435. 8:03:54there. And uh it works. We have this
  12436. 8:03:58also weird body that we keep getting
  12437. 8:04:00different names and things like that.
  12438. 8:04:02Believe it's probably just testing
  12439. 8:04:03purposes. And you can see obviously we
  12440. 8:04:05have this over here in our edit. So
  12441. 8:04:08on the basic side of things, right? Once
  12442. 8:04:10again, you're going to have your two
  12443. 8:04:13URLs. Test is when your workflow is not
  12444. 8:04:15live. Production is when your workflow
  12445. 8:04:17is live. Then we have our different
  12446. 8:04:19methods. You're going to probably use
  12447. 8:04:21post or get only when you're creating
  12448. 8:04:23your own web hooks. Personally, I'd
  12449. 8:04:24probably just keep it as post um because
  12450. 8:04:27you're going to be doing something with
  12451. 8:04:28that specific data whereas get, you
  12452. 8:04:31know, you're just going to grab that
  12453. 8:04:32data. We can change our path, which is
  12454. 8:04:34going to change our URL. So, you can
  12455. 8:04:36change this to whatever you want. You
  12456. 8:04:38can set up authentication. So I showed
  12457. 8:04:40you basic O which is like a username
  12458. 8:04:42password and then header O which is like
  12459. 8:04:44our API key and then we can define those
  12460. 8:04:48down below over here. Give it to people
  12461. 8:04:50only that have access. We have different
  12462. 8:04:52ways to respond. You can respond
  12463. 8:04:53immediately or you can respond through
  12464. 8:04:55that web hook node as I showed you with
  12465. 8:04:57monday.com. They were asking for like
  12466. 8:04:59some sort of token. So essentially we
  12467. 8:05:01need to send a token backwards to
  12468. 8:05:03confirm their web hook works. And then
  12469. 8:05:05uh yeah, we have different options down
  12470. 8:05:06here as well to block bots, which I'll
  12471. 8:05:09just ignore this by default. And
  12472. 8:05:11obviously, I'm just testing. Another
  12473. 8:05:13thing is like when you're testing stuff
  12474. 8:05:14out and building it out, I wouldn't put
  12475. 8:05:16your authentication right away. I would
  12476. 8:05:17just put your authentication at the very
  12477. 8:05:19end. You should be pretty much fine if
  12478. 8:05:21it's a test URL. As soon as you push it
  12479. 8:05:24into live production, you're going to
  12480. 8:05:26have to move over some sort of
  12481. 8:05:27authentication. Also, when you're
  12482. 8:05:29testing and if you're building out an
  12483. 8:05:30app or anything like that, be very
  12484. 8:05:32careful with your URLs over here. Once
  12485. 8:05:34you're good to go with your test and
  12486. 8:05:35you're going to push things into
  12487. 8:05:36production, just make sure you switch it
  12488. 8:05:38out because your test URL is different
  12489. 8:05:40from your production URL as you can see.
  12490. 8:05:42So, u be very careful on that side of
  12491. 8:05:44things because I have seen people just
  12492. 8:05:45put their test URL and they're why is
  12493. 8:05:48this not working and they should have
  12494. 8:05:49been using their production URL when
  12495. 8:05:50they're when their workflow was live.
  12496. 8:05:52So, that's the first part of this
  12497. 8:05:54lesson. And the second part, we're going
  12498. 8:05:56to actually go through a type form and
  12499. 8:05:58kind of set this up as an example. So, I
  12500. 8:06:02just created literally a type form
  12501. 8:06:04account maybe 30 minutes ago right
  12502. 8:06:06before recording this uh lesson. So, I'm
  12503. 8:06:08just going to continue with Google and
  12504. 8:06:11I'm going to choose my account over here
  12505. 8:06:13and uh we'll jump into it. So, all I did
  12506. 8:06:16is I I just created my account and I
  12507. 8:06:20think I built like a very basic
  12508. 8:06:23uh form. I'm trying to even see where
  12509. 8:06:25this is at. So, forms.
  12510. 8:06:29Yeah, here we go. my new form. I'll show
  12511. 8:06:31you what it looks like. I think all I
  12512. 8:06:33did is
  12513. 8:06:35just ask for people's information. First
  12514. 8:06:38name, last name, phone number, email,
  12515. 8:06:39company. This was like a default choice.
  12516. 8:06:41Obviously, you can choose whatever you
  12517. 8:06:44want, but I just built out this form
  12518. 8:06:46over here just to test it out. So, to go
  12519. 8:06:49backwards to forms, what I'm going to do
  12520. 8:06:50is now click these three dots and I'm
  12521. 8:06:53going to go over I want to say it's
  12522. 8:06:55either connect or something like that or
  12523. 8:06:57workflow.
  12524. 8:06:58And I just started this. So we're gonna
  12525. 8:07:01say connect. Okay. So it is connect. And
  12526. 8:07:04what we're going to do is take a look at
  12527. 8:07:06web hooks. And it says trigger web
  12528. 8:07:08hooks. Not familiar with web hooks? Just
  12529. 8:07:10ask your tech team for a hand. Well, I
  12530. 8:07:12am your tech team on the side of things.
  12531. 8:07:13We're going to figure this out together.
  12532. 8:07:15So I am going to say add a web hook. And
  12533. 8:07:18it says find an endpoint. We'll send
  12534. 8:07:20your web hook to this URL. So we're
  12535. 8:07:22going to use our example. Well, let's
  12536. 8:07:24add in a new web hook. So we'll say web
  12537. 8:07:26hook over here.
  12538. 8:07:28We'll put this as post
  12539. 8:07:31and we'll grab this over here. Okay. So,
  12540. 8:07:35I'm just going to copy this and I don't
  12541. 8:07:38think it mentions anything if it needs
  12542. 8:07:40to be a post or a get.
  12543. 8:07:44Let's just click to learn about web
  12544. 8:07:46hooks
  12545. 8:07:48to see if it mentions.
  12546. 8:07:52Look, here we go. Type form web hooks
  12547. 8:07:54are sent with a HTTP post request in the
  12548. 8:07:56request body. It's in JSON format.
  12549. 8:07:58Perfect. So, I was right when I said
  12550. 8:08:00post. So, grab our web hook. Make sure
  12551. 8:08:03that you are in post. And then we're
  12552. 8:08:06going to say save web hook over here.
  12553. 8:08:08And you'll notice that we have our web
  12554. 8:08:10hook. Great. So, I think we're in the
  12555. 8:08:1277. I'm going to listen for test events.
  12556. 8:08:15And we're going to go over here and
  12557. 8:08:17we're going to say view deliveries. No
  12558. 8:08:19deliveries. Send test request. And now
  12559. 8:08:22we sent a test request with our form. So
  12560. 8:08:25first name, last name, phone number,
  12561. 8:08:27email, uh, short text, and then thank
  12562. 8:08:31you screen. So now what you'll see over
  12563. 8:08:34here is we have this directly in over.
  12564. 8:08:36And obviously like the properties are
  12565. 8:08:38empty. So like you can see title,
  12566. 8:08:40property, it's empty, empty, empty like
  12567. 8:08:42no one's filled this out, but we now
  12568. 8:08:44have this information directly in here.
  12569. 8:08:47And again, like always, we can just go
  12570. 8:08:50and do an edit set and clean up our data
  12571. 8:08:53and we can just grab specifically what
  12572. 8:08:55we want. So like obviously over here, we
  12573. 8:08:58don't really have our exact names and
  12574. 8:09:01things like that, but you could imagine
  12575. 8:09:03uh if this side was filled out. Okay,
  12576. 8:09:05this is someone's first name. This is
  12577. 8:09:08someone's Well, actually going back over
  12578. 8:09:10here, I take back what I said. I think
  12579. 8:09:12when they have like this title, I think
  12580. 8:09:15that's exactly the example they give us.
  12581. 8:09:18I could be wrong. Short text, title,
  12582. 8:09:22company.
  12583. 8:09:23Yeah. So,
  12584. 8:09:25I want to say
  12585. 8:09:29we've went through an exact copy. This
  12586. 8:09:31would be the data we give us. Could be
  12587. 8:09:34wrong. Like obviously I could test this
  12588. 8:09:37and send some other data.
  12589. 8:09:41I'm not live. But either way, it's going
  12590. 8:09:43to be one of these over here. Like
  12591. 8:09:44whether it's like a type idle
  12592. 8:09:46properties, it's probably this title if
  12593. 8:09:48you're going to push this into
  12594. 8:09:49production. We're not testing this in
  12595. 8:09:51production wise, but you get the point.
  12596. 8:09:52I can just go over here, grab what
  12597. 8:09:55people actually are filling out, and
  12598. 8:09:57make these fields and then do whatever I
  12599. 8:09:59want with it later on. And I would
  12600. 8:10:01recommend just renaming these, which is
  12601. 8:10:02why we're using our edit set. You could
  12602. 8:10:04say like first name
  12603. 8:10:08that and then I already duplicated that
  12604. 8:10:11twice and then last name. Again, feel
  12605. 8:10:14free to change up as you want. And uh
  12606. 8:10:17yeah, that is type form.
  12607. 8:10:19I also, by the way, I covered web hooks
  12608. 8:10:22in another video too. If you know a
  12609. 8:10:23little bit about Python programming, we
  12610. 8:10:24have a streamllet video. Uh we're going
  12611. 8:10:26to cover streamlet when we talk about
  12612. 8:10:28you user interfaces for applications as
  12613. 8:10:30well. But essentially in streamllet I
  12614. 8:10:33created a payload that got sent to a nan
  12615. 8:10:36web hook and it was working. So that was
  12616. 8:10:39type form. I just wanted to show you
  12617. 8:10:41like there's going to be documentation
  12618. 8:10:43about it. No matter where you find your
  12619. 8:10:46web hooks, this was our documentation.
  12620. 8:10:47It was super easy sent via HTTP post
  12621. 8:10:50request. You saw we just went over here,
  12622. 8:10:52found a way to test it. All websites
  12623. 8:10:54will have some sort of way to test your
  12624. 8:10:56web hooks. Just make sure it comes in
  12625. 8:10:58over here. see what the data looks like
  12626. 8:11:01and I would also test it with real data
  12627. 8:11:03as well beyond that but uh you know
  12628. 8:11:05testing is half the battle and when
  12629. 8:11:06you're ready to go make sure that you
  12630. 8:11:08push this into production and you use
  12631. 8:11:11the production URL so that is it for web
  12632. 8:11:15hooks be safe with them don't have a
  12633. 8:11:18workflow that's live without any type of
  12634. 8:11:20security with your web hooks I would
  12635. 8:11:22also recommend in the future too with
  12636. 8:11:24your web hooks like you can really
  12637. 8:11:26expand this out you can add an if node
  12638. 8:11:28codes and stuff like that to make sure
  12639. 8:11:30the data is correct. Make sure they're
  12640. 8:11:32correct people are accessing your web
  12641. 8:11:34hooks. Like there's a lot of other ways
  12642. 8:11:35that you could secure outside of just
  12643. 8:11:37this basic and header off. So, um, spend
  12644. 8:11:41some time if you really worry about the
  12645. 8:11:43security. This is just a brief
  12646. 8:11:44introduction. And yeah, that is
  12647. 8:11:47essentially it for this section. Next
  12648. 8:11:49section we're going to be taking a look
  12649. 8:11:50at, I'm just going to look over at my
  12650. 8:11:52sheet,
  12651. 8:11:54is going to be web scraping. So, this is
  12652. 8:11:56going to be really fun because we're
  12653. 8:11:57actually going to grab data online in
  12654. 8:11:59some capacity. So, we'll be taking a
  12655. 8:12:02look at how we can scrape social media
  12656. 8:12:03sites, scrape websites, and uh blog
  12657. 8:12:06posts, and you guys are going to be have
  12658. 8:12:08a blast for that section. So, I will see
  12659. 8:12:10you there. Great work so far. So, this
  12660. 8:12:12section is going to be pretty fun
  12661. 8:12:13because we're going to dive into web
  12662. 8:12:15scraping. Now, historically, web
  12663. 8:12:17scraping has been difficult. You have to
  12664. 8:12:19write a lot of code in Python and you
  12665. 8:12:21have to hope that a website does not
  12666. 8:12:23change because if it changes your code,
  12667. 8:12:26it's outdated and you're going to have
  12668. 8:12:27to rewrite sections of it. Tedious
  12669. 8:12:30process. Um, a lot of people struggle
  12670. 8:12:32with it and there was a ton of freelance
  12671. 8:12:34jobs out there just to build scrapers to
  12672. 8:12:36check on competitor sites. The landscape
  12673. 8:12:39of scraping has changed a ton over the
  12674. 8:12:41last few years and we're going to be
  12675. 8:12:43covering revolutionary tools like
  12676. 8:12:45Firecrawl that make web scraping super
  12677. 8:12:47simple. Um, other things we're going to
  12678. 8:12:49cover in this is going to be uh Appify.
  12679. 8:12:52So, I use Appify for social media
  12680. 8:12:54scraping. We're going to use Rapid API
  12681. 8:12:56as well. I'll show you an example of a
  12682. 8:12:58workflow that I just built with it. And
  12683. 8:13:00then we're going to also talk about RSS.
  12684. 8:13:03And now RSS technically isn't scraping.
  12685. 8:13:05It's going to get us the latest articles
  12686. 8:13:07that a website will populate. Um, but I
  12687. 8:13:10wanted to throw it in over here because
  12688. 8:13:12some people might just want that
  12689. 8:13:13information and might go a much more
  12690. 8:13:15complicated route. So, let's take a look
  12691. 8:13:17at that now. All right. So, this isn't
  12692. 8:13:20technically web scraping, but we're
  12693. 8:13:21going to start with it, and it's going
  12694. 8:13:23to be RSS. And what RSS essentially
  12695. 8:13:26allows us to do is stay up to date with
  12696. 8:13:29different websites. So, often websites
  12697. 8:13:32are going to be posting blog posts. And
  12698. 8:13:34you might want to read these or put them
  12699. 8:13:37in a newsletter or whatever the case may
  12700. 8:13:39be. You want to say up to date. And
  12701. 8:13:42there's two different nodes that allow
  12702. 8:13:44you to do this. So if you have a middle
  12703. 8:13:46of a workflow and you want to read a
  12704. 8:13:49website, we have this RSS read. However,
  12705. 8:13:52you can actually start a actual workflow
  12706. 8:13:55with RSS trigger. So the RSS feed
  12707. 8:13:58trigger monitors a website and when
  12708. 8:14:01there's a new post, we can actually
  12709. 8:14:03start a full workflow based around it,
  12710. 8:14:06which is pretty awesome. Whereas this
  12711. 8:14:08RSS read, we have something else that
  12712. 8:14:10starts the workflow and then it
  12713. 8:14:12eventually goes into this RSS read. The
  12714. 8:14:15one tricky thing with RSS is actually
  12715. 8:14:18finding RSS URL. So sometimes going to
  12716. 8:14:22take a little bit of research. Where I
  12717. 8:14:24find RSS URLs, I'll just Google search
  12718. 8:14:28or I'll use Perplexity or a large
  12719. 8:14:29language model and say, "Hey, this is a
  12720. 8:14:31website I want to find information
  12721. 8:14:33about. Do you happen to know what the
  12722. 8:14:35RSS link is?" because it's not always
  12723. 8:14:38obvious. So for example, I searched AI
  12724. 8:14:42RSS and I came on this GitHub that this
  12725. 8:14:46person created a repository over here
  12726. 8:14:48and you can see it says all AI news
  12727. 8:14:50sources a list of online news and info
  12728. 8:14:52about AI, ML, big data and their
  12729. 8:14:54websites. This is an extract of all the
  12730. 8:14:56sources aggregated on all AI news
  12731. 8:14:57website defunct in 7204 update. You can
  12732. 8:15:00find a live web page from the source
  12733. 8:15:01below at and uh there's a media site. I
  12734. 8:15:04don't even know if it's actually
  12735. 8:15:05accurate or not. Let's take a look.
  12736. 8:15:09So, we have all this over here. A giant
  12737. 8:15:12feed of data,
  12738. 8:15:14but if we go in here, you can see we
  12739. 8:15:16have all of this. All this tons and
  12740. 8:15:20tons, which is pretty cool. And you can
  12741. 8:15:22see there's some with YouTube over here.
  12742. 8:15:25And actually, I'm curious if I could be
  12743. 8:15:29added in here.
  12744. 8:15:31Probably definitely not in over here.
  12745. 8:15:36Not that it matters. I don't know a lot
  12746. 8:15:37of people are searching through this,
  12747. 8:15:38but you can see YouTube channels have
  12748. 8:15:40RSS feeds. And we'll just grab uh one
  12749. 8:15:44over here. Remember when I was studying
  12750. 8:15:46for first aid analyst job, I was
  12751. 8:15:49watching Alex the analyst. He's grown a
  12752. 8:15:51huge following. So imagine if I get RSS
  12753. 8:15:53feed from there. Again, we'll just
  12754. 8:15:56populate this and execute step. And you
  12755. 8:15:58can see his latest videos. So you have a
  12756. 8:16:00title, a link, publish date, author, the
  12757. 8:16:04ID, and then ISO date. Uh, so you can
  12758. 8:16:06see all this information over here. What
  12759. 8:16:08does a data analyst do? Meetings, data,
  12760. 8:16:11Excel, SQL, day in life of a data
  12761. 8:16:13analyst, meetings, SQL, so much food.
  12762. 8:16:15It's a lot of day in life videos it
  12763. 8:16:17seems like right now. Data analyst
  12764. 8:16:19salary in 2025, 50K to 75K. So that's on
  12765. 8:16:24like the YouTube side. Going to go
  12766. 8:16:25there. Um, we can go to websites as
  12767. 8:16:27well. So, in podcasts. So, let's take a
  12768. 8:16:30look at a podcast. For example, we'll
  12769. 8:16:32grab something over here called the
  12770. 8:16:34machine learning podcast. Well, let's
  12771. 8:16:36actually grab a different one. Let's go
  12772. 8:16:39fireside. The artist of data science.
  12773. 8:16:42Grab this. Never heard of this podcast.
  12774. 8:16:45It's probably pretty good. And uh we'll
  12775. 8:16:47just grab RSS. So, we'll duplicate this.
  12776. 8:16:49I'm just going to right click and over
  12777. 8:16:52here, duplicate.
  12778. 8:16:54And what we'll do is paste that in.
  12779. 8:16:58This actually did not work. No big deal.
  12780. 8:17:01We'll grab another one. AI in business
  12781. 8:17:04podcasts. Let's see if that one works.
  12782. 8:17:08And URLs can change and things like
  12783. 8:17:10that, too. So, not a big deal. And you
  12784. 8:17:14can see this one brought 168 results
  12785. 8:17:17back over here. Why post merger
  12786. 8:17:19integrations fail without data
  12787. 8:17:20governance. I agree. Um, data governance
  12788. 8:17:23is something that I was exposed to at my
  12789. 8:17:26current job. I had no idea it existed
  12790. 8:17:28and it's actually pretty important. It's
  12791. 8:17:29boring, but it's important. Um, so
  12792. 8:17:32that's a podcast example
  12793. 8:17:34and uh just go over here and copy again.
  12794. 8:17:37Let's find a website this time. So
  12795. 8:17:39that's a podcast.
  12796. 8:17:41Oh, where there I see TensorFlow.
  12797. 8:17:44That would be a good one. TensorFlow
  12798. 8:17:46blog. Perfect.
  12799. 8:17:48So let's grab that
  12800. 8:17:53and we'll use that as an example. Cool.
  12801. 8:17:57So, and what's nice too is with RSS
  12802. 8:18:00feeds, they're already sorted. Like
  12803. 8:18:01there's a sort node in any N, but and
  12804. 8:18:04I'll show you the sort node as well. I
  12805. 8:18:06think we've covered that in the
  12806. 8:18:07beginning, but if not, you can go over
  12807. 8:18:10here and do sort. You can sort to change
  12808. 8:18:12the item order, a simple random code.
  12809. 8:18:15Again, I'm I'm like 95% sure we covered
  12810. 8:18:18this already. But regardless,
  12811. 8:18:21YouTube, podcast, and website, we just
  12812. 8:18:24covered all that over here. Typically,
  12813. 8:18:26what ends up happening is I find that
  12814. 8:18:28people stack these together. So, like
  12815. 8:18:31imagine you had three right here. And
  12816. 8:18:34then ideally, what you want to do
  12817. 8:18:36afterwards is have edit sets. So, we'll
  12818. 8:18:39do like edit set over here. And people
  12819. 8:18:43often just make sure that the name is
  12820. 8:18:45going to be the same for each of these
  12821. 8:18:47and then there's like some sort of
  12822. 8:18:48merge. So like go through here
  12823. 8:18:53and then we'll have a merge associated
  12824. 8:18:56with it. So because typically I want to
  12825. 8:18:59get all these together and I see the
  12826. 8:19:02merge like this not being too that
  12827. 8:19:05often. So maybe we'll do like a merge of
  12828. 8:19:07three. Play all these over here. I'll
  12829. 8:19:09just show you this in a second. Okay, so
  12830. 8:19:11we have this going on. Oh, the other
  12831. 8:19:14thing, let's limit these. So, we're
  12832. 8:19:17going to do a limits
  12833. 8:19:19and let's say we just want to limit each
  12834. 8:19:21of these to like a three.
  12835. 8:19:24And it could be up to you how many you
  12836. 8:19:25want to limit,
  12837. 8:19:27but I do see this happening.
  12838. 8:19:30So, set those across over here.
  12839. 8:19:34I'm going to keep whatever is default.
  12840. 8:19:35It says one. I'm just going to keep that
  12841. 8:19:37default because I really don't want to
  12842. 8:19:38change all these. add these in here. So,
  12843. 8:19:41next what we want to do is and I guess
  12844. 8:19:43we're building out a workflow for RSS.
  12845. 8:19:46Didn't really plan on doing that, but
  12846. 8:19:47that's okay. So, we have one YouTube
  12847. 8:19:50over here. We have a podcast and there
  12848. 8:19:53me zoom out. So, what we're going to do
  12849. 8:19:57is execute the previous step.
  12850. 8:20:02All right. And we'll do like oh no,
  12851. 8:20:04title and link for each of these. Title,
  12852. 8:20:06link, and pub date. We'll just keep that
  12853. 8:20:08the same. So, just make sure we have
  12854. 8:20:11those. Execute previous node.
  12855. 8:20:16Title
  12856. 8:20:18link update. That's easy. That's the
  12857. 8:20:21same there. Is it going to be the same
  12858. 8:20:23on this one? Sometimes I've seen it
  12859. 8:20:25differently.
  12860. 8:20:28I guess they're all same on this one.
  12861. 8:20:30Maybe it was just like a one-off that I
  12862. 8:20:31had before. That was a little bit
  12863. 8:20:32different.
  12864. 8:20:34know, like most of this is like the
  12865. 8:20:35same, like 95%.
  12866. 8:20:38Either way,
  12867. 8:20:40we have all these. Now, if I run this
  12868. 8:20:42workflow,
  12869. 8:20:46we're going to have three items.
  12870. 8:20:48And uh you'll see we have a title, link,
  12871. 8:20:51and pub date across the board. And we
  12872. 8:20:54just got one from YouTube, one from a
  12873. 8:20:56podcast. And you know what we could also
  12874. 8:20:58do too? I thought of one more idea.
  12875. 8:21:01Let's call this platform
  12876. 8:21:04platform like this and we can hardcode
  12877. 8:21:06something in. So this is YouTube
  12878. 8:21:11and we'll do the same for the other
  12879. 8:21:12ones. I think I misspelled YouTube but
  12880. 8:21:14the monitor is like right down here and
  12881. 8:21:15I want to stress my neck out. So we'll
  12882. 8:21:18do platforms. This is podcast.
  12883. 8:21:22And then lastly
  12884. 8:21:24we'll say platforms and this is website
  12885. 8:21:28blog. So we'll say web blog. Cool.
  12886. 8:21:31run this all again
  12887. 8:21:34and uh yeah that's essentially RSS
  12888. 8:21:38pretty basic you can see platforms my
  12889. 8:21:40nice spelling YouTube podcast and my
  12890. 8:21:42blog
  12891. 8:21:44very simple so if you want to monitor
  12892. 8:21:46stuff you have that option for you so in
  12893. 8:21:49addition there's the trigger so let's
  12894. 8:21:51imagine I'm a huge fan of Alex analyst
  12895. 8:21:54YouTube channel and I want to just
  12896. 8:21:57monitor his channel and say like hey
  12897. 8:22:00anytime he uploads a new video. I want
  12898. 8:22:02to get alerted. So that's what a trigger
  12899. 8:22:04would allow you to do. You can put in
  12900. 8:22:06the feed URL over here and then you pull
  12901. 8:22:08to see like, hey, is there new content?
  12902. 8:22:10I would just do this like every day. Set
  12903. 8:22:13a specific time. If you know someone
  12904. 8:22:14uploads in the morning, maybe do this in
  12905. 8:22:16the afternoon. Doesn't really matter.
  12906. 8:22:17You can fetch a test and when he when
  12907. 8:22:20this polls and it notices that there's a
  12908. 8:22:22new piece of content, it starts the
  12909. 8:22:24workflow and you can see what does a
  12910. 8:22:26data analyst do? Meetings, data, Excel,
  12911. 8:22:28SQL. And honestly, I might build out an
  12912. 8:22:31RSS feed trigger for my YouTube own
  12913. 8:22:33YouTube channel uh and really automate
  12914. 8:22:36some social media posts. So, still on
  12915. 8:22:38the fence how I want to build this out
  12916. 8:22:39yet, but this is one of the triggers I'm
  12917. 8:22:41thinking about for utilizing that
  12918. 8:22:43workflow. Either way, that is RSS. I
  12919. 8:22:46know it's not technically web scraping.
  12920. 8:22:48It does get us web content. So, I wanted
  12921. 8:22:50to throw this in here as that first
  12922. 8:22:52example because I think it's pretty
  12923. 8:22:54impactful. The next is going to be a
  12924. 8:22:56service. Uh, and we're going to be
  12925. 8:22:58setting this up and it's called Appify
  12926. 8:23:01and I love Appify. So, I've used it for
  12927. 8:23:05customers and I think it's phenomenal
  12928. 8:23:08because it allows us to scrape social
  12929. 8:23:10media super super easy and yeah, now it
  12930. 8:23:15is expensive. I'm not going to sugarcoat
  12931. 8:23:17that. So, if I go to app.com,
  12932. 8:23:20I think it's $39 a month. So you can see
  12933. 8:23:23pricing and it's $39 a month. And
  12934. 8:23:27essentially what this allows us to do is
  12935. 8:23:29to buy scrapers on the website and we
  12936. 8:23:33can have $39 worth of scraping credit.
  12937. 8:23:35So people or ampify build out scrapers
  12938. 8:23:38and then you could utilize them. So why
  12939. 8:23:40this is really helpful, let's imagine
  12940. 8:23:41you want to scrape Instagram accounts or
  12941. 8:23:43you want to scrape Tik Tok accounts or
  12942. 8:23:45whatever the case may be, there's
  12943. 8:23:46probably a scraper on Apify that you
  12944. 8:23:48could use. And what it really allows us
  12945. 8:23:51to do is to kind of expand out our data.
  12946. 8:23:56So imagine, and it's probably easier to
  12947. 8:23:59demonstrate over here, we have some sort
  12948. 8:24:01of a CRM system and we have influencers
  12949. 8:24:04in our CRM, but we just we aren't
  12950. 8:24:06tracking how many followers that they
  12951. 8:24:08have. Well, we can scrape for that. And
  12952. 8:24:10I just want to give you guys like a a a
  12953. 8:24:12quick example
  12954. 8:24:14of something that I built for a
  12955. 8:24:16customer. And essentially what I do
  12956. 8:24:21is, and I'll just only grab partial part
  12957. 8:24:24of this workflow. All right. So, this is
  12958. 8:24:26one of the scrapers that I use for a
  12959. 8:24:28customer of mine. And under their social
  12960. 8:24:31media roster, they have different
  12961. 8:24:33YouTubers and they just want to track
  12962. 8:24:35like how is the YouTube channel
  12963. 8:24:37progressing over time. Is it getting
  12964. 8:24:38more subscribers? Are they linking to
  12965. 8:24:40our service on their YouTube channel?
  12966. 8:24:43And you can see over here it says
  12967. 8:24:46crafted by streamers but it's maintained
  12968. 8:24:48by ampify. You can also see on this side
  12969. 8:24:52of things as well um how you can run it.
  12970. 8:24:54So there's a form or you can run JSON. I
  12971. 8:24:57would recommend that you build this out
  12972. 8:24:58in nan. And I'll just show you a quick
  12973. 8:25:01workflow that I built out. And uh I'm
  12974. 8:25:04just going to remove some of the
  12975. 8:25:06sensitive information so you don't see
  12976. 8:25:07that. But this is one of the different
  12977. 8:25:09scrapers. So we can post in YouTube
  12978. 8:25:11channels and we get a lot of
  12979. 8:25:12information. You can see in the
  12980. 8:25:14information side of things, you know,
  12981. 8:25:16what YouTube channel can I extract with
  12982. 8:25:17this tool. You get the channel name,
  12983. 8:25:19number of subscribers, which is great if
  12984. 8:25:20you want to monitor it. URL, the channel
  12985. 8:25:23description, so if you're targeting
  12986. 8:25:24specific things, the location, uh video
  12987. 8:25:27titles, video URL, date of posting,
  12988. 8:25:30thumbnail URLs, total view count, and
  12989. 8:25:32links in video description. So a lot of
  12990. 8:25:34data, and there's a lot of different use
  12991. 8:25:36cases for this specific stuff. It says
  12992. 8:25:38how to use for YouTube channels, keeping
  12993. 8:25:40track of competitors channels, etc. Like
  12994. 8:25:42there's quite a bit of information.
  12995. 8:25:45I'll show you how to use this here in a
  12996. 8:25:46second in nan. But yeah, so let me also
  12997. 8:25:49show you really fast essentially how I
  12998. 8:25:52built this out. And this unfortunately
  12999. 8:25:54will not be in the final product of, you
  13000. 8:25:59know, JSON that I give you guys. So this
  13001. 8:26:01is going to be deleted out over here.
  13002. 8:26:03But this is an example of a customer
  13003. 8:26:06workflow. So there's also a manual
  13004. 8:26:08trigger associated with this and I'm
  13005. 8:26:10just going to kind of walk you through
  13006. 8:26:12how this is built out. So ideally in
  13007. 8:26:15this workflow what happens is there's a
  13008. 8:26:17schedule trigger and a manual trigger.
  13009. 8:26:19We have a metabase query that's already
  13010. 8:26:23been built out. Now metabase is
  13011. 8:26:25essentially a a BI layer and it's
  13012. 8:26:28usually used for like reporting
  13013. 8:26:29purposes. And essentially what I did is
  13014. 8:26:32I built out a question metabase where we
  13015. 8:26:35just want to have specific influencers
  13016. 8:26:36where we want to track. So there's some
  13017. 8:26:39information on there like what's their
  13018. 8:26:40Instagram account, what's their YouTube
  13019. 8:26:42account, um, and what is I'm trying to
  13020. 8:26:44think of the other platform. Oh, Tik
  13021. 8:26:45Tok. So that's the three platforms we're
  13022. 8:26:47tracking. All I do over here is clean up
  13023. 8:26:50this data because I have different
  13024. 8:26:52branches. One for YouTube, one for Tik
  13025. 8:26:53Tok, one for Instagram. And I I filter
  13026. 8:26:55out anyone that doesn't have that
  13027. 8:26:57particular account because every
  13028. 8:26:59influencer won't have a YouTube channel.
  13029. 8:27:00every influencer won't have a Tik Tok or
  13030. 8:27:02Instagram. Then what I do is I aggregate
  13031. 8:27:05all the influencer URLs and I send them
  13032. 8:27:08to an actor. So when you're using
  13033. 8:27:10Amplify, you're going to want to use
  13034. 8:27:11this run an actor and get a data set.
  13035. 8:27:13We're actually going to cover this node
  13036. 8:27:15here in a minute. Then I'm just going to
  13037. 8:27:17merge everything back together. So this
  13038. 8:27:20merges uh the following account back
  13039. 8:27:22into that specific ID. We edit the
  13040. 8:27:25fields. we populate it just based off of
  13041. 8:27:27how HubSpot wants their data and it gets
  13042. 8:27:30sent to HubSpot. Um, this code also
  13043. 8:27:32allows us to look through URLs and make
  13044. 8:27:34sure that service is actually linked on
  13045. 8:27:37their profile. Do the same thing as well
  13046. 8:27:39over here for Instagram. One of these is
  13047. 8:27:40an Instagram scraper and one of these is
  13048. 8:27:43a Tik Tok scraper. Again, all we do
  13049. 8:27:45essentially is we have a list of
  13050. 8:27:47influencers which we have specific
  13051. 8:27:49filters based around uh let's say
  13052. 8:27:51revenue that is being brought in. Then
  13053. 8:27:53we filter if they have that specific
  13054. 8:27:55accounts or not. Then we aggregate all
  13055. 8:27:58those influencers together just to
  13056. 8:28:00populate this specific node. And just to
  13057. 8:28:02kind of show you over here, we go into
  13058. 8:28:07input. You can see in the JSON, we can
  13059. 8:28:10use multiple URLs. So since it cost 30
  13060. 8:28:13cents every time to run, it's best to
  13061. 8:28:16optimize it and run for all these
  13062. 8:28:18channels at once or profiles or whatever
  13063. 8:28:20the case is. So that's why we have this
  13064. 8:28:22built in.
  13065. 8:28:23uh merges it back. As I told you,
  13066. 8:28:25sometimes you'll want to have merges
  13067. 8:28:27just because it's easier to work with
  13068. 8:28:28the data. And then we just clean up
  13069. 8:28:31everything here at the very end and uh
  13070. 8:28:33populate that into HubSpot. So, pretty
  13071. 8:28:35easy. Let me show you amplify now as a
  13072. 8:28:38particular node.
  13073. 8:28:41So, I'm going to go into amplify
  13074. 8:28:44and you'll see that there's a lot of
  13075. 8:28:46different things in over here. Honestly,
  13076. 8:28:49the one that I use 99% of the time is
  13077. 8:28:51run an actor and get data set. So,
  13078. 8:28:54essentially what this allows us to do
  13079. 8:28:55and I'll just zoom in over here
  13080. 8:28:59is
  13081. 8:29:01run the run the actor which each of
  13082. 8:29:03these are considered an actor and then
  13083. 8:29:05at the very end it gives us the results
  13084. 8:29:07like how many followers, how many posts
  13085. 8:29:08and things like that. So, it runs the
  13086. 8:29:10actor and then gets that back. So if you
  13087. 8:29:13think about this in terms of like an
  13088. 8:29:15HTTP request, this is essentially the
  13089. 8:29:18the post like our post runs the actor
  13090. 8:29:21runs the actor and then get we get the
  13091. 8:29:26data back.
  13092. 8:29:28And in in the past you would actually
  13093. 8:29:30have to use an HTTP request, multiple
  13094. 8:29:32HTTP requests to get this working. But
  13095. 8:29:35since this is a node and any and
  13096. 8:29:37community node, you're gonna have to go
  13097. 8:29:39through this route now. It's much
  13098. 8:29:40easier. All right. And then we just jump
  13099. 8:29:41into this node. So essentially what we
  13100. 8:29:43do is create a account. So this is my
  13101. 8:29:46personal account over here. All you have
  13102. 8:29:49to do is set in an API key. I'll show
  13103. 8:29:51you where you can get your API key here
  13104. 8:29:52in a second. Choose a resource. I'm
  13105. 8:29:54using an actor on that side of things.
  13106. 8:29:56Operation run actor. Get a data set. You
  13107. 8:29:58can use recently used actors or you can
  13108. 8:30:01go to ampify store actors. Uh you can
  13109. 8:30:03grab an actor from a list by URL or ID.
  13110. 8:30:07So you can see an example URL over here.
  13111. 8:30:10and then example ID of an actor. This
  13112. 8:30:12input JSON, all I do is if you see for
  13113. 8:30:15example, you see how we have this JSON
  13114. 8:30:17there. All I do is copy in this JSON.
  13115. 8:30:20So, copy then paste it directly in on
  13116. 8:30:23that side of things. And it's it's
  13117. 8:30:25literally just as easy as that, right?
  13118. 8:30:28Uh to get your API key, let me go and
  13119. 8:30:32show you. We go to API. We go to API
  13120. 8:30:34endpoints. And then essentially what we
  13121. 8:30:37do and you can see it says the URLs
  13122. 8:30:39below contain your API token. Don't
  13123. 8:30:41share them with this. And essentially
  13124. 8:30:44when you click on this I and I'm not
  13125. 8:30:46going to do it here. It's going to give
  13126. 8:30:48you a token which is your API key. All
  13127. 8:30:50you have to do is paste that directly
  13128. 8:30:54into
  13129. 8:30:56our account. So you see this API key?
  13130. 8:30:58Whatever this is over here that's
  13131. 8:31:00hidden. That's all you have to post.
  13132. 8:31:02It's so easy. Use the Appify node, label
  13133. 8:31:06it, paste in your key like that, and you
  13134. 8:31:11are good to go. I just want to quickly
  13135. 8:31:13see if I can share. Yeah, I can share
  13136. 8:31:15really quick one of these examples of
  13137. 8:31:17what the JSON looks like for an actor.
  13138. 8:31:20So, in this case,
  13139. 8:31:23all I did for this input JSON is I have
  13140. 8:31:26this over here, and it's obviously an
  13141. 8:31:27expression. So, usernames and I have
  13142. 8:31:31JSON profile, Instagram, and I just map
  13143. 8:31:34these out. I had to clean up a little
  13144. 8:31:35bit of the data. I got a little bit of
  13145. 8:31:37help with cloud code on this side of
  13146. 8:31:39things, but that is an example of an
  13147. 8:31:42Instagram scraper. I just used that. Um,
  13148. 8:31:45if I go into another one,
  13149. 8:31:48this is an example for
  13150. 8:31:50what? This is YouTube. So, let me grab
  13151. 8:31:52this show you what this looks like. So,
  13152. 8:31:55if we go to YouTube this time, you can
  13153. 8:31:57see I say max result streams, max
  13154. 8:31:58result, max shorts. Like, I don't care
  13155. 8:32:00about this stuff. All I cared about is
  13156. 8:32:02the YouTube channel. So, I just grabbed
  13157. 8:32:04our YouTube channel a little bit earlier
  13158. 8:32:05and I specified those specific URLs. And
  13159. 8:32:09then Instagram or sorry, Tik Tok is the
  13160. 8:32:12last one over here.
  13161. 8:32:15And it's going to be slightly different
  13162. 8:32:16for every single actor that you use. And
  13163. 8:32:19you can see over here, exclude pin post.
  13164. 8:32:21We have the profiles, results per page,
  13165. 8:32:24um, downloads, things like that as well.
  13166. 8:32:26So, very straightforward. That is how I
  13167. 8:32:30essentially do this with Appify. It's
  13168. 8:32:33phenomenal because you can literally
  13169. 8:32:34just go in over here, you can find an an
  13170. 8:32:36actor. So, you go to the Appify store,
  13171. 8:32:39you search for something that you want.
  13172. 8:32:40You can see Tik Tok is here at the very
  13173. 8:32:42top, Facebook posts, tweets. So, if
  13174. 8:32:45you're trying to grab something from
  13175. 8:32:47social media, I would probably re and
  13176. 8:32:49you have the budget because it is $39 a
  13177. 8:32:51month, I would just recommend that you
  13178. 8:32:54go over here and utilize it. You can see
  13179. 8:32:56my usage for this month is is $10 and I
  13180. 8:32:59only have $5 my account. So, I'm already
  13181. 8:33:00over and I believe it gives you like $5
  13182. 8:33:03by default. So, I technically can't run
  13183. 8:33:05this right now and I'm not going to put
  13184. 8:33:06it on my customer billing. So, for I'm
  13185. 8:33:10not going to show you that in the video
  13186. 8:33:11and that's why I showed you a specific
  13187. 8:33:13workflow. But, it's really easy. It's
  13188. 8:33:15just one node. You can set things up and
  13189. 8:33:17get going. What I am going to show you
  13190. 8:33:19and we're going to build this together
  13191. 8:33:21or actually I'm going to kind of walk
  13192. 8:33:22through this with you guys is rapid API.
  13193. 8:33:27So I'm going to load this up on my
  13194. 8:33:29second screen
  13195. 8:33:31and I'm going to show you what I built
  13196. 8:33:34out. All right. So
  13197. 8:33:36another service that there are tons of
  13198. 8:33:39APIs and it might work out for you is
  13199. 8:33:42rapid API. So it doesn't have a native
  13200. 8:33:45node in nan. So you can see if I just
  13201. 8:33:48search rapid, it's not going to be in
  13202. 8:33:50here. So you can see that's not the
  13203. 8:33:52case. So we're going to have to actually
  13204. 8:33:53set up an API call. And let me just put
  13205. 8:33:56a note over here and say rapid API
  13206. 8:34:01and go rapid API. And we're going to
  13207. 8:34:04have to do an HTTP request. So HTTP
  13208. 8:34:07request like this.
  13209. 8:34:09Pretty straight.
  13210. 8:34:11So, what's really cool about Rapid API
  13211. 8:34:14is it's actually quite cheaper than
  13212. 8:34:16Appify. Although, you know, depending on
  13213. 8:34:19what scraper you want, Appify may have a
  13214. 8:34:21better scraper. Rapid API might have the
  13215. 8:34:23scraper for a specific use case. Uh,
  13216. 8:34:25each person charges whatever they want
  13217. 8:34:27for their scrapers. So, one of the
  13218. 8:34:29examples I recently built out is a
  13219. 8:34:32workflow to get all of the YouTube
  13220. 8:34:34transcripts from my YouTube channel
  13221. 8:34:36because I wanted to start adding in
  13222. 8:34:38timestamps because I know it's good for
  13223. 8:34:40YouTube SEO. So, I found this scraper
  13224. 8:34:42over here. It says YouTube captions,
  13225. 8:34:43transcripts, subtitles, video combiner,
  13226. 8:34:46and they have different costs associated
  13227. 8:34:48with it. So, you can see out of the box
  13228. 8:34:49like it's $0 and you get 100 requests.
  13229. 8:34:52Now, I'm paying this pro for 5,000. I'm
  13230. 8:34:55going to pay for it once. I'm
  13231. 8:34:56essentially going to get all the videos
  13232. 8:34:58that I want and then I'm going to go
  13233. 8:34:59back into this basic for free because I
  13234. 8:35:01don't upload more than 100 videos. So,
  13235. 8:35:03I'm not doing transcripts for other
  13236. 8:35:04people. Uh you can see there's obviously
  13237. 8:35:07a rate limit of a,000 requests per hour.
  13238. 8:35:09Not going to pass that off. And uh yeah,
  13239. 8:35:11so we're pretty good on this side of
  13240. 8:35:13things initially because I have like
  13241. 8:35:15three 400 videos need to use pro and
  13242. 8:35:17then jump back into basic. But you can
  13243. 8:35:20see who the creator was if you want to
  13244. 8:35:22take a look at their information. It
  13245. 8:35:23says sign up to contact provider if you
  13246. 8:35:25have any specific questions. Um, and you
  13247. 8:35:27can also, you know, test endpoints and
  13248. 8:35:29things like that. So, I'll show you how
  13249. 8:35:31we set this up and I'm actually going to
  13250. 8:35:33give you guys this full workflow. I'll
  13251. 8:35:35put it in over here since I couldn't
  13252. 8:35:37share that last one minus just showing
  13253. 8:35:39like I don't want to give away something
  13254. 8:35:40I built for a customer. However, I am
  13255. 8:35:44happy to provide the one over here. So,
  13256. 8:35:46I'm just going to pause the video really
  13257. 8:35:48quick. I'm going to grab it. Just make
  13258. 8:35:49sure I don't have an API key that is
  13259. 8:35:51being shared and then we will kind of
  13260. 8:35:53explore it. All right. So, I loaded in
  13261. 8:35:56this workflow. I'm going to walk you
  13262. 8:35:58through all of it. If I went node by
  13263. 8:36:00node, this would take too long. And uh
  13264. 8:36:03next section has a pretty long and
  13265. 8:36:05thorough example. So, there is going to
  13266. 8:36:08be one node in here that you guys aren't
  13267. 8:36:10familiar with, which is loop over items.
  13268. 8:36:12We're going to talk about that a little
  13269. 8:36:14bit later on in the course, but I felt
  13270. 8:36:16like this was a good area um to kind of
  13271. 8:36:18present everything else. So, what we're
  13272. 8:36:20doing is taking a spreadsheet of videos
  13273. 8:36:23as well as URLs. So, these are different
  13274. 8:36:26videos on my YouTube channel that don't
  13275. 8:36:28have any timestamps on them. So, you can
  13276. 8:36:31see title and video.
  13277. 8:36:34And essentially, I'm generating the
  13278. 8:36:36description as as well as the time
  13279. 8:36:37stamp. I'm filtering out anything over
  13280. 8:36:39here that has um a non-time stamp. So,
  13281. 8:36:43I'm looking for it to be empty. Then
  13282. 8:36:45what I do is I start looping over all of
  13283. 8:36:47these. I believe I loop one or two at a
  13284. 8:36:49time. I do a batch size of one. And the
  13285. 8:36:51reason why is I'm getting rate limited.
  13286. 8:36:52Again, we'll cover this when we talk
  13287. 8:36:54about the loop over items node a little
  13288. 8:36:56bit later. Next thing I'm doing is I'm
  13289. 8:36:58transforming the URL. So, you see how
  13290. 8:37:01this has a video URL. Ideally, I just
  13291. 8:37:03want to have this section because that's
  13292. 8:37:05in the API documents. So it says only to
  13293. 8:37:08pass in this video ID. So this over here
  13294. 8:37:11just strips it out and gets me the video
  13295. 8:37:13ID and uh then I use my HTTP request. So
  13296. 8:37:19I just follow the documentation that is
  13297. 8:37:21based around over here. So it gives me
  13298. 8:37:25examples and then I did a curl request
  13299. 8:37:27as well. So you can see the endpoint
  13300. 8:37:30says download all and then you paste in
  13301. 8:37:32that video ID which you can see download
  13302. 8:37:34all and then I paste in that video ID.
  13303. 8:37:37Let me close that out and close that
  13304. 8:37:40out. So we already know where the
  13305. 8:37:41endpoint is. So just grab that
  13306. 8:37:45and then I have to send specific query
  13307. 8:37:46parameters and they talk about some
  13308. 8:37:48examples over here.
  13309. 8:37:51You can see all the different stuff you
  13310. 8:37:53can grab.
  13311. 8:37:54I believe when I was building this out
  13312. 8:37:56initially, I just did a test endpoint. I
  13313. 8:37:59would show this to you guys, but it is
  13314. 8:38:01going to leak my API key and I generally
  13315. 8:38:04don't want to have that leaked in this
  13316. 8:38:06video. So, I'm not logged in on purpose.
  13317. 8:38:09And uh all I did when I was testing it
  13318. 8:38:12is importing the curl. You just have to
  13319. 8:38:14build in this endpoint. Um, also
  13320. 8:38:17obviously like you are going to get this
  13321. 8:38:18workflow. So you'll have availability to
  13322. 8:38:22just paste in your API key right here
  13323. 8:38:25and test this out. So there's two sides
  13324. 8:38:27of it. There's the description as well
  13325. 8:38:29as the timestamp. This will get me the
  13326. 8:38:31all the subtitles for the video and the
  13327. 8:38:34captions or whatever you want to call
  13328. 8:38:35it. Now we need to build out a
  13329. 8:38:37description. I am going to actually
  13330. 8:38:40parts of this description as well. And I
  13331. 8:38:43don't want to be super mean, but I spent
  13332. 8:38:44a lot of time to try to build out a
  13333. 8:38:46really great prompt on the side of
  13334. 8:38:48things and some of the examples I don't
  13335. 8:38:49want to share, but you can see you're a
  13336. 8:38:51YouTube description agent. The best
  13337. 8:38:53video descriptions have average of 250
  13338. 8:38:55words. They should include the keyword
  13339. 8:38:57of the video and you include your
  13340. 8:38:58keywords early in the first 70
  13341. 8:38:59characters. So, I'll keep that. But you
  13342. 8:39:01can see I have quite extensive one. All
  13343. 8:39:03we're doing is passing in the subtitles
  13344. 8:39:05as the prompt and then we essentially
  13345. 8:39:07get our description which will be over
  13346. 8:39:09here. The second one is the timestamps.
  13347. 8:39:12So, I just go over here. You are a
  13348. 8:39:13timestamp creator. A user uploads
  13349. 8:39:16subtitles with time. You need to review
  13350. 8:39:17all of them. Suggest a number of
  13351. 8:39:18timestamps based on the video. Again,
  13352. 8:39:20it's a pretty thorough prompt. I won't
  13353. 8:39:22be sharing all of it, but I will give
  13354. 8:39:23you a good amount to start with. And I
  13355. 8:39:25would recommend you tweak it for your
  13356. 8:39:26own specific use case. So, we have that
  13357. 8:39:28over there. Again, I just go to edit
  13358. 8:39:30fields. One of the things I found is we
  13359. 8:39:33need to get our initial like video URL
  13360. 8:39:36and things like that. You can see the
  13361. 8:39:38URL in this loop over items before it
  13362. 8:39:41passes over here just to get that
  13363. 8:39:42string. So I just do a merge later on to
  13364. 8:39:46get that exact YouTube video URL. Now we
  13365. 8:39:48have all three things. We can actually
  13366. 8:39:50match on this YouTube URL. And based off
  13367. 8:39:54this match, we add in the description as
  13368. 8:39:56well as the timestamp. So that is a
  13369. 8:40:00little bit more of a complicated build.
  13370. 8:40:01Like I obviously explained this in what
  13371. 8:40:03like five minutes or so, but this took
  13372. 8:40:05me a lot longer, especially with
  13373. 8:40:08building out a good description,
  13374. 8:40:09building out good timestamps. So we go
  13375. 8:40:13from this Google sheet, we filter out
  13376. 8:40:16everything, we loop just because I was
  13377. 8:40:18hitting rate limits over here just based
  13378. 8:40:20off of the amount of text.
  13379. 8:40:23So we loop over these. We extract just
  13380. 8:40:26the video ID. We go to an HTTP request
  13381. 8:40:29which we set up going through over here.
  13382. 8:40:33There's also discussions. Um so if you
  13383. 8:40:35ever see errors, you can take a look at
  13384. 8:40:37that and um really go through the
  13385. 8:40:39documentation on that side of things.
  13386. 8:40:44First build a description, then we build
  13387. 8:40:45out the timestamps. Could you build out
  13388. 8:40:47both at the same time? Sure. But I feel
  13389. 8:40:50like in this opinion, the time stamp and
  13390. 8:40:52the description are different. So I I
  13391. 8:40:55just let each of them be generated on
  13392. 8:40:56their own. Just clean this up a little
  13393. 8:40:59bit. You can see I just reabeled this as
  13394. 8:41:01timestamps. I reabeled this as
  13395. 8:41:04description. Merge everything together
  13396. 8:41:06including the initial YouTube URL. And
  13397. 8:41:08then you can see over here I map
  13398. 8:41:11everything. So you can see video used to
  13399. 8:41:13match is this JSON.video.
  13400. 8:41:15The title I'm not doing anything with.
  13401. 8:41:16We're keeping that the same. I use the
  13402. 8:41:19description, use the timestamps, and
  13403. 8:41:21then once that's done, it goes back over
  13404. 8:41:22here and loops over the next one. And
  13405. 8:41:24you can see like I have hundreds of
  13406. 8:41:26videos. All these are just going to get
  13407. 8:41:27populated over here. I'm not going to
  13408. 8:41:29run it again because it was expensive to
  13409. 8:41:32run. And uh they have been mostly added
  13410. 8:41:34to our YouTube videos. This one's going
  13411. 8:41:36to be an expensive one to run as well.
  13412. 8:41:37It's it's going to be a long video. So
  13413. 8:41:40that is Rapid API. And again, you can
  13414. 8:41:43just take a look at their platform and
  13415. 8:41:44see what's available out there. people
  13416. 8:41:46build out a lot of different APIs and
  13417. 8:41:49you can see there's MCP for APIs,
  13418. 8:41:51there's top categories. So, tons and
  13419. 8:41:55tons of stuff. This is a little bit more
  13420. 8:41:57complicated than Appify. Like Appify is
  13421. 8:41:59basic to set up one node.
  13422. 8:42:03I just show you here. Whereas Rapid API,
  13423. 8:42:05you're going to have a bunch of
  13424. 8:42:06different HTTP requests depending on the
  13425. 8:42:07API service that you use. Uh different
  13426. 8:42:10pricing as well for every single API. Uh
  13427. 8:42:12let's just take a look at this one over
  13428. 8:42:15here. So, real time LinkedIn. I'm not
  13429. 8:42:17going to set this up, but I'm curious
  13430. 8:42:19what the cost is. See what subscription
  13431. 8:42:22plans this API provides.
  13432. 8:42:27I guess it's
  13433. 8:42:32it's interesting. Yeah, maybe have to
  13434. 8:42:35have like a rapid API plan. The one I
  13435. 8:42:37was paying on was just pay for results.
  13436. 8:42:39And there's probably a filter for that,
  13437. 8:42:40too. Let me go back to homepage.
  13438. 8:42:46I'm sure you could filter by that as
  13439. 8:42:48well if you really wanted to. Um, but
  13440. 8:42:50there's so many APIs. YouTube API, real
  13441. 8:42:53time, Amazon data. So, start on one of
  13442. 8:42:56these sites before you want to
  13443. 8:42:58specifically
  13444. 8:43:00write Python code to scrape because like
  13445. 8:43:03chances are you're going to get blocked
  13446. 8:43:04in some capacity and unless it's like
  13447. 8:43:07really customer niche site, chances are
  13448. 8:43:09it's going to be either in Rapid API or
  13449. 8:43:11apply. I wish I could give you guys a
  13450. 8:43:13little bit more details. I just don't
  13451. 8:43:15want to leak my API key here and be
  13452. 8:43:17honest, I'm out of spend and I don't
  13453. 8:43:19want to spend another $40 to get this
  13454. 8:43:21video going. All right, we're going to
  13455. 8:43:23cover one more which is going to be fire
  13456. 8:43:26crawl. So firecrawl is pretty amazing. I
  13457. 8:43:28was initially going to do an example
  13458. 8:43:30over here, but in the next video we're
  13459. 8:43:32going to be going through a pretty
  13460. 8:43:34extensive example of firecrawl. But let
  13461. 8:43:37me show you. It's a node over here and
  13462. 8:43:39you can see a check mark maintained by
  13463. 8:43:41firecol. So um and it says a new node
  13464. 8:43:44package is available as well. So I might
  13465. 8:43:46as well update this. This is a community
  13466. 8:43:48node. So I'm going to update this over
  13467. 8:43:50here. I'm going to confirm that update
  13468. 8:43:52and confirm update.
  13469. 8:43:57Cool. So package has been updated and
  13470. 8:44:00we're just going to load firecrawl in
  13471. 8:44:01over here and we're going to take a look
  13472. 8:44:02at some of the different options that
  13473. 8:44:04are available. So first what we have is
  13474. 8:44:07search and optionally scrape search
  13475. 8:44:08results. So I use this one frequently
  13476. 8:44:12and the reason why I want to use this
  13477. 8:44:14one specifically is in Google maybe I
  13478. 8:44:17want to get the top five or top 10
  13479. 8:44:19results and get those URLs. So when I
  13480. 8:44:22want to do research for a brand I'll
  13481. 8:44:25want to do this. So you can search
  13482. 8:44:26whatever query that you want and you'll
  13483. 8:44:28get those specific results. So, we can
  13484. 8:44:32test this out on anything like we want.
  13485. 8:44:35Um, let's go and search I don't know.
  13486. 8:44:40All right. So, let's go and search
  13487. 8:44:42cheese steaks
  13488. 8:44:45in Philly.
  13489. 8:44:48We'll execute this step. And you'll see
  13490. 8:44:51we have these different URLs associated
  13491. 8:44:53with it. Um, so we have the URL, the
  13492. 8:44:55title, the description, and the
  13493. 8:44:56position. Obviously, I only did five
  13494. 8:44:58over here. You can expand this out as
  13495. 8:45:00well. And we have a guide to Philly
  13496. 8:45:02cheese stakes, Reddit talking about
  13497. 8:45:04ranking 14 tasting table, this other
  13498. 8:45:07one, top 20, and then visit Philly
  13499. 8:45:09talking about Philly cheese stakes. So
  13500. 8:45:11really cool that we can get our search
  13501. 8:45:13results. And there's a lot of different
  13502. 8:45:14services that you could do this as well.
  13503. 8:45:16It's like SER API, the same exact thing
  13504. 8:45:18where you could go and get the Google
  13505. 8:45:19results. So next is mapping a website
  13506. 8:45:22and getting all the URLs. So
  13507. 8:45:24essentially, if you want to see what
  13508. 8:45:25URLs are available on a site, this can
  13509. 8:45:27get expensive if you have a very large
  13510. 8:45:29site. I believe there's limits over here
  13511. 8:45:31as well. So you can limit like there's
  13512. 8:45:325,000 URLs over here. But if you go to a
  13513. 8:45:35large e-commerce site like a Best Buy or
  13514. 8:45:37something like that, they might have 20,
  13515. 8:45:3930, 40,000 different items available. So
  13516. 8:45:41this works with smaller businesses. When
  13517. 8:45:43you get pretty large or even extensive
  13518. 8:45:45blogs, might not be the best approach to
  13519. 8:45:47take. You can see scrape a URL and get
  13520. 8:45:49its content. So you can literally just
  13521. 8:45:52paste in a URL over here and it scrapes
  13522. 8:45:55all the information on that side of it.
  13523. 8:45:57Then you have crawling a website. So you
  13524. 8:46:00can go over here and search for specific
  13525. 8:46:02information I believe with crawling
  13526. 8:46:04sites. Then you have batch scrape for
  13527. 8:46:06multiple URLs. So we have the one URL or
  13528. 8:46:10you can go multiple over here. There's
  13529. 8:46:12batch scrape status. So essentially like
  13530. 8:46:15a little bit more advanced side is
  13531. 8:46:16polling. So if you're scraping a lot of
  13532. 8:46:18things, maybe you want to see if it's
  13533. 8:46:20ready or not, if there's any errors, you
  13534. 8:46:22have that as well. You could have
  13535. 8:46:24specific crawls going on, preview
  13536. 8:46:26crawls, cancel a crawl job. So like a
  13537. 8:46:29lot of different options on that side of
  13538. 8:46:30things, but really where Fire crawl is
  13539. 8:46:33helpful at is two things. Number one or
  13540. 8:46:36three things. Number one, grabbing
  13541. 8:46:38Google search results. So if you want to
  13542. 8:46:40get additional data, Google search
  13543. 8:46:42results and you can send this data
  13544. 8:46:44elsewhere. Number two, it's really great
  13545. 8:46:46at going on to a website so you can find
  13546. 8:46:49all the URLs that you specifically want
  13547. 8:46:50and scrape a specific URL or just
  13548. 8:46:52researching what is on that site.
  13549. 8:46:55Firecrawl is really awesome on that
  13550. 8:46:57side. I think things also their icon
  13551. 8:46:58really pops in any and we'll jump
  13552. 8:47:01through a a bit of an example in the
  13553. 8:47:03next video. I initially was going to do
  13554. 8:47:05it in this video, but I actually
  13555. 8:47:08recorded uh section 16 before 15 and I
  13556. 8:47:11ended up making a 50-minute video uh on
  13557. 8:47:14a workflow where we build it out from
  13558. 8:47:15scratch and use this firecross. So,
  13559. 8:47:17don't fret if you're confused and I kind
  13560. 8:47:19of flew through it, but yeah, we're
  13561. 8:47:22going to do this in greater detail. So,
  13562. 8:47:24just to kind of cover scraping in any
  13563. 8:47:26end, right, we have the first one over
  13564. 8:47:27here, which is RSS, which can get new
  13565. 8:47:30blog posts. It can get new YouTube
  13566. 8:47:32videos, new podcasts. So you can either
  13567. 8:47:34set this as a trigger to start a
  13568. 8:47:35workflow or you can grab a source and
  13569. 8:47:37take a look at the x amount of their
  13570. 8:47:40last uploads. Then if you want social
  13571. 8:47:42media, you have two different options on
  13572. 8:47:44that side of things. You have ampify
  13573. 8:47:46which is super easy to set up. Throw in
  13574. 8:47:47an API key. Just grab your actor. Uh
  13575. 8:47:50obviously you have to set the JSON which
  13576. 8:47:52sometimes can be a little challenging if
  13577. 8:47:54you have a lot of things you want to
  13578. 8:47:54search but honestly it's really easy. It
  13579. 8:47:57is expensive. And then you have ampifi
  13580. 8:48:00or not appi but a rapid API down below.
  13581. 8:48:03Rapid API is a little bit more custom.
  13582. 8:48:06Had different pricing plans specifically
  13583. 8:48:08based off of the scraper that you want.
  13584. 8:48:10There's a ton of different options on
  13585. 8:48:12there. I'm paying individually for a
  13586. 8:48:14scraper like $3 a month as I showed you
  13587. 8:48:16guys. And this was an example of a
  13588. 8:48:17workflow which you guys can download and
  13589. 8:48:19start using. Lastly, what we have over
  13590. 8:48:21here is firecrawl. So firecrawl helps
  13591. 8:48:24you on an individual website. So if you
  13592. 8:48:26want to grab data from an e-commerce
  13593. 8:48:28website that typically would block a
  13594. 8:48:30Python scraper, uh Firecol is great for
  13595. 8:48:33it. In addition, if you want to grab
  13596. 8:48:34search results. So that's why I didn't
  13597. 8:48:36really show like a SER API because
  13598. 8:48:38Firecol already has this built in. And
  13599. 8:48:40personally, I'd rather just pay for one
  13600. 8:48:42service rather than multiple. But you
  13601. 8:48:44have those options because I know I
  13602. 8:48:46don't believe we've talked about ChatHub
  13603. 8:48:48yet, but Firecall is not available in
  13604. 8:48:49ChatHub yet whereas the other one SER
  13605. 8:48:51API is. But I could see that changing
  13606. 8:48:54over time. So that is web scraping here
  13607. 8:48:57in nan and uh I know this was a little
  13608. 8:49:01bit different than some of the other
  13609. 8:49:02sections of the course. Hopefully you
  13610. 8:49:04guys still learned a lot and just
  13611. 8:49:07remember you can you can play with this
  13612. 8:49:08whole workflow. It'll be available to
  13613. 8:49:10download and yeah that's the link over
  13614. 8:49:12here to that specific scraper. A lot of
  13615. 8:49:15your time scraping is honestly today
  13616. 8:49:16just searching to see if the scraper
  13617. 8:49:18exists and it still works or is in the
  13618. 8:49:20past you would really write a lot of
  13619. 8:49:22Python code. So, up next, we're going to
  13620. 8:49:26be diving a lot deeper into AI agents
  13621. 8:49:29and really going into
  13622. 8:49:32what makes good prompts. And we're going
  13623. 8:49:34to learn a lot more about this system
  13624. 8:49:35message as well as what the user message
  13625. 8:49:38is over here. I just realized also you
  13626. 8:49:40guys don't know a little bit about that,
  13627. 8:49:41but next video you're going to learn a
  13628. 8:49:44lot more. Maybe I should have switched
  13629. 8:49:46these initially, but too late now. See
  13630. 8:49:48you in section 16. And uh great work.
  13631. 8:49:52Now, it's time for us to really jump
  13632. 8:49:54into the nuances of AI agents. So far,
  13633. 8:49:57throughout this course, we've done some
  13634. 8:49:59very basic, simple prompts, but
  13635. 8:50:01realistically in the real world, that's
  13636. 8:50:03not going to be the case. You're going
  13637. 8:50:04to have some advanced AI agents, and you
  13638. 8:50:08know, a lot of the principles of
  13639. 8:50:09designing workflows with AI agents,
  13640. 8:50:12they're going to matter. So, I need to
  13641. 8:50:14teach you all this essentially now that
  13642. 8:50:16we have a lot of the basics and
  13643. 8:50:18understandings of how like any N works.
  13644. 8:50:20Um, also to note, this isn't going to
  13645. 8:50:22cover everything. There's other AI nodes
  13646. 8:50:24which we'll talk about a little bit
  13647. 8:50:25later. There's other AI settings and
  13648. 8:50:28things like that which we'll be
  13649. 8:50:29sprinkling through some of these other
  13650. 8:50:31lectures. I do expect this one to be
  13651. 8:50:33pretty long and, you know, there might
  13652. 8:50:35be a few things that trip up people. But
  13653. 8:50:38if it does trip you up, rewatch it and
  13654. 8:50:40it should click. Also, we're going to
  13655. 8:50:42probably do two or three different
  13656. 8:50:43examples at the end. So, um, don't worry
  13657. 8:50:46about that side of it. we just uh try to
  13658. 8:50:48reiterate what we've learned. All right,
  13659. 8:50:50let's uh jump into NEN and yeah, so
  13660. 8:50:54let's start this off. And I just have a
  13661. 8:50:57bunch of notes on my second screen, so
  13662. 8:50:58I'm going to reference those. But first
  13663. 8:51:00thing is we're going to grab our AI
  13664. 8:51:02agent. So we'll go over here and we'll
  13665. 8:51:06take a look at this. And really we'll
  13666. 8:51:08we'll dissect each of these sections.
  13667. 8:51:11Let's do a quick recap of what we've
  13668. 8:51:13learned so far with an AI agent. So, so
  13669. 8:51:15far, and again, I haven't been super
  13670. 8:51:17explicit. There's two ways that you
  13671. 8:51:19could work with an AI agent. Well,
  13672. 8:51:21there's been more than two. The first
  13673. 8:51:23one is with a chat trigger. So, you can
  13674. 8:51:25see it says connected chat node. So, we
  13675. 8:51:27go from the chat node into our AI agent.
  13676. 8:51:30And you can see there's no option for us
  13677. 8:51:33to set a prompt because what we have
  13678. 8:51:35directly in here is the prompt. But
  13679. 8:51:37whatever we put in over here in this
  13680. 8:51:39chat message, it gets sent to our AI
  13681. 8:51:41agent and then some sort of action is
  13682. 8:51:44taken. Well, there's the other side of
  13683. 8:51:46it is like that's not always the case.
  13684. 8:51:48You could have an AI agent in the middle
  13685. 8:51:50of a workflow. So just duplicating this,
  13686. 8:51:52all you have to do if it's in the middle
  13687. 8:51:54of a workflow, you go over here and you
  13688. 8:51:56define below. And you can see it says
  13689. 8:51:59prompt user message and you could type
  13690. 8:52:01in your prompt over here. So when
  13691. 8:52:03someone talks about a user prompt,
  13692. 8:52:06they're either talking about something
  13693. 8:52:07that gets sent from, for example, a chat
  13694. 8:52:09message or something that is defined
  13695. 8:52:13directly in over here. This isn't the
  13696. 8:52:15only type of prompt that you'll be
  13697. 8:52:17using. So I want to teach you something
  13698. 8:52:20that is called the system prompt. And
  13699. 8:52:24why the system prompt matters? Well, the
  13700. 8:52:26system prompt does not change. It's
  13701. 8:52:29static. Whereas the user prompt will
  13702. 8:52:31change every time. So, let me just write
  13703. 8:52:33this out so it's a little bit more
  13704. 8:52:34explicit. User prompt
  13705. 8:52:37equal changes every time.
  13706. 8:52:43System prompt.
  13707. 8:52:46You can change this occasionally
  13708. 8:52:52to get better results.
  13709. 8:52:57And let me show you where we could
  13710. 8:52:58access this. So, first if we go into our
  13711. 8:53:01AI agent and we bring this over here,
  13712. 8:53:06you have to go into your options
  13713. 8:53:08settings and then you'll see it has a
  13714. 8:53:10system message and it all it says over
  13715. 8:53:13here is you are a helpful assistant.
  13716. 8:53:16Well, that is not helpful. In fact,
  13717. 8:53:18there is a full guideline on how you
  13718. 8:53:21actually want to set up prompts for your
  13719. 8:53:24system message versus your user message.
  13720. 8:53:26And in reality, what you need to do is
  13721. 8:53:29you need to spend more time on your
  13722. 8:53:31system prompt. So I'd say like spend 80%
  13723. 8:53:34of your time
  13724. 8:53:37on your system message.
  13725. 8:53:40And this is why because even a great
  13726. 8:53:43system message
  13727. 8:53:45can help with poor user prompts.
  13728. 8:53:47Sometimes you're going to be building
  13729. 8:53:48out programs and you cannot control what
  13730. 8:53:51someone is going to enter in. And we'll
  13731. 8:53:54learn about this a little bit in
  13732. 8:53:55ChatHub, which is our next lecture. But
  13733. 8:53:57you're not always going to be able to
  13734. 8:53:58control what someone puts into a
  13735. 8:54:00program. And what's expected is you
  13736. 8:54:03write a phenomenal system message that
  13737. 8:54:06explains like what is going on and let
  13738. 8:54:10someone put their user message over
  13739. 8:54:12here. So this is one of the most basic
  13740. 8:54:16fundamentals is like getting your system
  13741. 8:54:18prompt correct and also your user
  13742. 8:54:20message. And again, we'll cover this a
  13743. 8:54:23little bit more in detail shortly, but
  13744. 8:54:26super super important. So, like what are
  13745. 8:54:29examples
  13746. 8:54:30of things that you would want to put in
  13747. 8:54:33your system prompt? Well, you know what
  13748. 8:54:35the biggest example is and really really
  13749. 8:54:38helps is multiple examples. So, a good
  13750. 8:54:44prompt is going to give examples. And in
  13751. 8:54:47the AI space, this is going to be called
  13752. 8:54:50something called fewot prompts. So zero
  13753. 8:54:54shot prompts, they give no examples. And
  13754. 8:54:56zero shot prompts can work, but they're
  13755. 8:54:59not the best. Then you have a oneshot
  13756. 8:55:02prompt, which is one example. Then you
  13757. 8:55:04have something called a fewot prompts,
  13758. 8:55:06which is two or more examples. So, if we
  13759. 8:55:11go here and do something like very
  13760. 8:55:12basic. Let's say we're creating a
  13761. 8:55:15translator AI agent. And let's just call
  13762. 8:55:18this over here translator
  13763. 8:55:22AI agent. And let's say we just want to
  13764. 8:55:26translate um I don't know, let's think
  13765. 8:55:29of English to Spanish, right? As basic
  13766. 8:55:32as it is. So, instead of writing here,
  13767. 8:55:34first you are a helpful assistant, let's
  13768. 8:55:36get rid of that junk. And we're going to
  13769. 8:55:38say you are an AI agent that solely I'm
  13770. 8:55:43probably misspelled solely. So that I'm
  13771. 8:55:46just going to write here an agent that
  13772. 8:55:48translates
  13773. 8:55:50messages
  13774. 8:55:52from English
  13775. 8:55:55to Spanish. And I don't know Spanish. I
  13776. 8:55:57just know it's the second most spoken
  13777. 8:55:59language here in Florida. But I'll just
  13778. 8:56:01put this over here. And I felt like this
  13779. 8:56:03would be a good example for you guys. So
  13780. 8:56:06up first we defined in our system
  13781. 8:56:08message like what is the purpose of this
  13782. 8:56:12AI agent and I know we're talking about
  13783. 8:56:14few shot examples but first thing first
  13784. 8:56:18you need to describe to the AI agent
  13785. 8:56:20what it actually does then what we
  13786. 8:56:23should do and doesn't necessarily need
  13787. 8:56:25to be next but here are some examples
  13788. 8:56:28we'll define something like that here
  13789. 8:56:30are examples
  13790. 8:56:32we say user and let's say Hello
  13791. 8:56:36AI example user
  13792. 8:56:40AI
  13793. 8:56:41user AI. So we can do three different
  13794. 8:56:46examples over there. We can say welcome
  13795. 8:56:50to AI agents
  13796. 8:56:53and then
  13797. 8:56:55thanks for subscribing.
  13798. 8:56:58And all I'm gonna do because I do not
  13799. 8:57:00know Spanish, I'm gonna load up Claude
  13800. 8:57:02really quick. And I'm just gonna ask,
  13801. 8:57:05and this is gonna be an example of a
  13802. 8:57:08bling this out. We're going to just say,
  13803. 8:57:16check this out.
  13804. 8:57:18Your name in Spanish Danish, please fill
  13805. 8:57:21out.
  13806. 8:57:27All right. So, I'm just asking it to
  13807. 8:57:29fill up this AI section over here. This
  13808. 8:57:31is fine. This would be super easy.
  13809. 8:57:36All right. I did know. Hola.
  13810. 8:57:45Okay. And lastly,
  13811. 8:57:47boom. So, we have all three over here
  13812. 8:57:50now.
  13813. 8:57:52And obviously, we could we could change
  13814. 8:57:53this up if we really wanted to. Uh, but
  13815. 8:57:56regardless, I think we could actually
  13816. 8:57:58expand this. It' be kind of interesting.
  13817. 8:58:00We'll we'll cover it here in a second.
  13818. 8:58:02But we have these over here. Let's keep
  13819. 8:58:04this very basic. And then what we're
  13820. 8:58:06going to say is user.
  13821. 8:58:09And then what we're going to do is pass
  13822. 8:58:11in some information. So, let's actually
  13823. 8:58:13build this one out. Again, there's way
  13824. 8:58:16more principles of building out
  13825. 8:58:18effective system user prompts, but we're
  13826. 8:58:20just going to start very basic. Also,
  13827. 8:58:22I'm going to just add in a chat model.
  13828. 8:58:24I'm going to go over here, add an open
  13829. 8:58:26AI
  13830. 8:58:28should do. Okay. And we're going to go
  13831. 8:58:30to GPT5 mini.
  13832. 8:58:34All right. So, GPT5 mini.
  13833. 8:58:40What we're going to do as well,
  13834. 8:58:42we actually don't need to define that
  13835. 8:58:44since we're just going to have this over
  13836. 8:58:46here. And whatever we write now is going
  13837. 8:58:50to be translated. As you can see, we
  13838. 8:58:52have this chat input over here. And I'll
  13839. 8:58:54still show you the other way how we
  13840. 8:58:55could do this. Um, and let me actually
  13841. 8:58:58define this translator AI agent chat.
  13842. 8:59:04So, we're actually do another one in a
  13843. 8:59:05second. Cool. So, let's open this chat
  13844. 8:59:09and then let's write something else. I'm
  13845. 8:59:12going to write free ne templates
  13846. 8:59:19school group.
  13847. 8:59:22I don't know if this will translate
  13848. 8:59:23correctly or not, but you know what?
  13849. 8:59:25Let's give it a shot. So, it's going to
  13850. 8:59:27go over here and we're giving it the
  13851. 8:59:30user message free any templates to my
  13852. 8:59:32school group. And then uh we go. I'm not
  13853. 8:59:36going to even try to pronounce it. It's
  13854. 8:59:38a little bit in my way because the
  13855. 8:59:39microphone right over here. though I
  13856. 8:59:40could technically see the output and
  13857. 8:59:43hopefully that it's the correct way. But
  13858. 8:59:44you can see because we have this system
  13859. 8:59:47message over here that explicitly
  13860. 8:59:50defines what this AI agent needs to do.
  13861. 8:59:53We already know our example.
  13862. 8:59:56Let's uh expand this out a little bit
  13863. 8:59:58more. And I want to just make this a
  13864. 9:00:01little bit more interesting. So I want
  13865. 9:00:04to do a manual trigger one.
  13866. 9:00:07And we're going to actually pass in a
  13867. 9:00:08few things this time around. So, what I
  13868. 9:00:11want to do is let someone choose what
  13869. 9:00:14language that they want to translate in
  13870. 9:00:16into. And what I'm going to do is go
  13871. 9:00:18into edit set.
  13872. 9:00:22And we're going to put in over here,
  13873. 9:00:24let's say
  13874. 9:00:27translation string.
  13875. 9:00:29Translation
  13876. 9:00:31string. And then we'll put over here
  13877. 9:00:34language.
  13878. 9:00:36Okay, I misspelled that
  13879. 9:00:49and we're going to put language. All
  13880. 9:00:51right. So, for the translation string,
  13881. 9:00:53I'm going to say free and end templates
  13882. 9:00:55in my school group. We're still going to
  13883. 9:00:56put this over here. And then for
  13884. 9:00:59language, I'm going to put Hindi because
  13885. 9:01:01I know a lot of people in India watch
  13886. 9:01:02the YouTube channel. So, I'll put that
  13887. 9:01:04over there. All right. And then we're
  13888. 9:01:06going to use our translator AI agent
  13889. 9:01:09over here. And uh going to change this
  13890. 9:01:12up slightly. So this time what we're
  13891. 9:01:15going to do is we're going to define our
  13892. 9:01:17prompt below. And what we're going to
  13893. 9:01:20say on here is actually let me run this
  13894. 9:01:25here first. So we have this pinned for
  13895. 9:01:27testing. Cool. We're going to go in here
  13896. 9:01:31and we're going to define our stuff. So,
  13897. 9:01:32I'm going to just put an expression or
  13898. 9:01:34make this full screen. We're going to
  13899. 9:01:36put a a translated string and then we're
  13900. 9:01:39going to put a message. So, now I need
  13901. 9:01:40to think this through and we'll say
  13902. 9:01:44message
  13903. 9:01:45to translate
  13904. 9:01:48and then we're going to say language.
  13905. 9:01:52Cool. And now,
  13906. 9:01:55so you can see we have message to
  13907. 9:01:56translate and then language. So what I'm
  13908. 9:01:59doing is essentially building this out
  13909. 9:02:00where people can choose different
  13910. 9:02:02languages to translate. So now I need to
  13911. 9:02:04update our system message. So I'm going
  13912. 9:02:06to say you're an agent that translate
  13913. 9:02:07messages from English to another
  13914. 9:02:10language.
  13915. 9:02:12Here are some examples and
  13916. 9:02:17we're going to say is message to
  13917. 9:02:19translate instead of user. Then we're
  13918. 9:02:22going to say language
  13919. 9:02:27Spanish.
  13920. 9:02:29And then it's going to go through there.
  13921. 9:02:30So
  13922. 9:02:32we will just rewrite these really fast.
  13923. 9:02:35Honestly, I should just expand this out.
  13924. 9:02:39Okay,
  13925. 9:02:42cool. And uh just fix these out.
  13926. 9:02:46So we're going to see my message
  13927. 9:02:48translate. Thanks for subscribing.
  13928. 9:02:52crates.
  13929. 9:02:57Yeah. So, we have our message to
  13930. 9:03:00translate here first and all we need to
  13931. 9:03:03do is define that our language
  13932. 9:03:08there and then we just have the example
  13933. 9:03:09what the AI responds back with. So,
  13934. 9:03:11let's try that out and uh see what
  13935. 9:03:14happens. And this is just an example of
  13936. 9:03:16it being in the middle of a workflow.
  13937. 9:03:17But what's really cool is I can just
  13938. 9:03:19change this edit set and let's say I put
  13939. 9:03:21Chinese over here or I put Spanish or I
  13940. 9:03:24put whatever else. It it doesn't really
  13941. 9:03:25matter or Portuguese. This AI agent will
  13942. 9:03:27automatically translate it. And uh I
  13943. 9:03:31have no idea if this is correct or not.
  13944. 9:03:33So what I'm going to say is Hindi to
  13945. 9:03:35English
  13946. 9:03:38and we're going to put that over here
  13947. 9:03:40and see
  13948. 9:03:42N templates in my school group. There we
  13949. 9:03:45go. So, we can change this now. And
  13950. 9:03:47let's say over here instead of Hindi,
  13951. 9:03:51what's another language? We'll put
  13952. 9:03:53Portuguese.
  13953. 9:03:55I think that's how I spell it. No, it's
  13954. 9:03:57obviously not because I misspelled it.
  13955. 9:03:58Let's go over here and spell it. Here we
  13956. 9:04:00go. Don't uh butcher me too much in the
  13957. 9:04:03comments. We'll put Portuguese here.
  13958. 9:04:05Great. And then we'll run this. And uh
  13959. 9:04:08it says this over here. So we're going
  13960. 9:04:10to say Portuguese,
  13961. 9:04:12English,
  13962. 9:04:14and prian templates in my school group.
  13963. 9:04:17So very basic on that side of things.
  13964. 9:04:21However, we can expand this out even
  13965. 9:04:24further. So one of the things that's in
  13966. 9:04:28N that I think is really really helpful
  13967. 9:04:30and this is even outside. um it's been
  13968. 9:04:32around for a very long time and also
  13969. 9:04:35we're going to say
  13970. 9:04:37this is transa agent not chat but yeah
  13971. 9:04:42so one of the things that's really
  13972. 9:04:43powerful is you can actually define how
  13973. 9:04:46we want our output and we can structure
  13974. 9:04:48that with JSON which is really cool
  13975. 9:04:52because now we force our AI agent to
  13976. 9:04:55specify an output and why that's
  13977. 9:04:57important is we can have extra nodes
  13978. 9:04:59later on in the workflow and we could
  13979. 9:05:02essentially take our results from the AI
  13980. 9:05:03agent and then perform more uh actions
  13981. 9:05:06based around it. So let's say you need
  13982. 9:05:08to have a specific format for a CRM or
  13983. 9:05:12you want to send specific data into an
  13984. 9:05:15API of some sort. We can format it
  13985. 9:05:18directly over here. And let me show you
  13986. 9:05:19how we could do that as well. So I'm
  13987. 9:05:22just going to go over here and call this
  13988. 9:05:25a version two. And I guess this is fine.
  13989. 9:05:28And I'm gonna click in and I'm gonna go
  13990. 9:05:30and choose over here require a specific
  13991. 9:05:33output format which is really cool. So
  13992. 9:05:36it says connect an output parser in the
  13993. 9:05:38canvas to specify the format that you
  13994. 9:05:40require. So what we can do is go over
  13995. 9:05:44here and choose an output parser. Now
  13996. 9:05:46the one I like using is the structured
  13997. 9:05:48output parser. And you'll see this is an
  13998. 9:05:51example that they give us. So, they say
  13999. 9:05:53state, California, cities, LA, San
  14000. 9:05:55Francisco, as well as San Diego. You
  14001. 9:05:58also can choose a JSON schema like this,
  14002. 9:06:01but I'll be honest, I use this probably
  14003. 9:06:02about 95% of the time. So, I'm not going
  14004. 9:06:05to bother changing this up. Um, feel
  14005. 9:06:08free to use the schema if you wanted to,
  14006. 9:06:10but I kind of just prefer this approach.
  14007. 9:06:12So thinking about this now, the
  14008. 9:06:14translator AI agent, you know, maybe I
  14009. 9:06:16want the final output to say, hey, this
  14010. 9:06:19is uh English before and then after
  14011. 9:06:23different language. So we can do
  14012. 9:06:26something like that. Let's go over here
  14013. 9:06:28and say new language.
  14014. 9:06:33I'm going to put over here as Spanish.
  14015. 9:06:39And then what I want to do as well is
  14016. 9:06:41say translations
  14017. 9:06:45and we'll put one of these examples over
  14018. 9:06:48here.
  14019. 9:06:50And we're going to also want to modify
  14020. 9:06:52this as well. So show you really fast.
  14021. 9:06:56All right. So
  14022. 9:06:58actually what we're going to do is row
  14023. 9:07:00this in like this. All right. Let me
  14024. 9:07:03make this full screen. This can be
  14025. 9:07:04easier. Cool. So, we're going to say
  14026. 9:07:09language.
  14027. 9:07:11This I want it to print out Spanish for
  14028. 9:07:14the language.
  14029. 9:07:17We'll have message to translate and then
  14030. 9:07:19translate a message. I don't need that
  14031. 9:07:21anymore. So, I'm going to remove that.
  14032. 9:07:27Then, we're going to say
  14033. 9:07:30message to translate,
  14034. 9:07:33thanks for subscribing.
  14035. 9:07:35And then we're gonna say
  14036. 9:07:38translated
  14037. 9:07:42message.
  14038. 9:07:45Cool. So now
  14039. 9:07:49when we look at this, we'll have that
  14040. 9:07:51there. There's one error. And it's kind
  14041. 9:07:53of weird. Your first time using it, but
  14042. 9:07:54with JSON, just don't put a comma here
  14043. 9:07:56at the end. So comma there. I'm also
  14044. 9:07:59just going to format this so this looks
  14045. 9:08:01way better. So we say language Spanish
  14046. 9:08:03message to translate and then translated
  14047. 9:08:05message. So that's exactly how we want
  14048. 9:08:06our output to look like. I already kind
  14049. 9:08:08of defined it over here. We could
  14050. 9:08:10obviously tweak our system message and
  14051. 9:08:13maybe if we have a little bit more time
  14052. 9:08:14we do that, but uh screw it. Let's see
  14053. 9:08:17what happens. We go over here. We'll run
  14054. 9:08:20it.
  14055. 9:08:24We'll see what happens. We I think we're
  14056. 9:08:26on the Portuguese one still. So we'll
  14057. 9:08:29see.
  14058. 9:08:31Okay. So you can see language Portuguese
  14059. 9:08:33message to translate and then it has the
  14060. 9:08:36translation right over there and it's
  14061. 9:08:38it's really cool. So you can see that in
  14062. 9:08:40the schema our output is like that. And
  14063. 9:08:42what's nice now and so we have an edit
  14064. 9:08:45set after
  14065. 9:08:47this is why I'm saying this is really
  14066. 9:08:48great. You can see
  14067. 9:08:51can just grab all this
  14068. 9:08:57right. We can grab this wherever we
  14069. 9:08:59want. Very, very basic. Um, obviously I
  14070. 9:09:03just showed you edit set. There's a lot
  14071. 9:09:04of other nodes out there that we could
  14072. 9:09:06work with. However, I I just shown you
  14073. 9:09:08really fast like drag and drop. We have
  14074. 9:09:10all this formatted rather we're over
  14075. 9:09:13here. Obviously, we just had our single
  14076. 9:09:15output with the results. Uh now we kind
  14077. 9:09:17of have it broken down and we don't have
  14078. 9:09:19the option of like uh our AI agent
  14079. 9:09:21saying here is the translated response
  14080. 9:09:24because sometimes you'll get some extra
  14081. 9:09:25stuff in there like here's the
  14082. 9:09:27translated response from English to
  14083. 9:09:28Spanish. And really like all we cared
  14084. 9:09:30about is like what language was it? What
  14085. 9:09:32message? What translated message? And we
  14086. 9:09:35did all that through a structured output
  14087. 9:09:38parser. Uh which we have that right over
  14088. 9:09:41there. Really cool. Uh, again, there's a
  14089. 9:09:43lot of sections into the prompt. So,
  14090. 9:09:45we're just going to keep adding on in
  14091. 9:09:48that side of things, but I just wanted
  14092. 9:09:49to show you another
  14093. 9:09:51quick win when it comes to specifically
  14094. 9:09:55building out AI agents. So, we're going
  14095. 9:09:56to keep going forward. I'm actually
  14096. 9:09:59going to delete some of this other
  14097. 9:10:00stuff, and I just don't want to bore you
  14098. 9:10:04guys with all the prompting
  14099. 9:10:05fundamentals. So, another thing that's
  14100. 9:10:07really cool is you can actually enable a
  14101. 9:10:09fallback model. And I think we already
  14102. 9:10:10touched on this a little bit in the
  14103. 9:10:12course, but you know what happens if
  14104. 9:10:14Open AI is down? We can add in a second
  14105. 9:10:16model. So you want to change these up
  14106. 9:10:18and just in case you have like Anthropic
  14107. 9:10:20over here. Uh so Open AI is down, you
  14108. 9:10:23have Anthropic as a backup or vice
  14109. 9:10:26versa. Like choose your first model that
  14110. 9:10:28you want in this first position, then
  14111. 9:10:31have a second one over here just in
  14112. 9:10:33case. Especially in production builds,
  14113. 9:10:35you'll want to do this. I know we'll
  14114. 9:10:37talk about it a little bit more also
  14115. 9:10:38when we have pair handling and things
  14116. 9:10:41like that but topic for another day. So
  14117. 9:10:45in reality you can have up to five
  14118. 9:10:48different things this AI agent right you
  14119. 9:10:50could have fallback models you can also
  14120. 9:10:52have memory and we'll talk about memory
  14121. 9:10:55here in a second because you'll want to
  14122. 9:10:56use this with the chat trigger but you
  14123. 9:10:58have memory now then let's say you have
  14124. 9:11:00an a specific tool and tools are really
  14125. 9:11:04cool because what they allow you to do
  14126. 9:11:06is attach some type of service into your
  14127. 9:11:09AI agent and you can see there's a lot
  14128. 9:11:11of different tools we can scroll down
  14129. 9:11:14all the way. So, you can add in like the
  14130. 9:11:16Google suite or you can add in other
  14131. 9:11:18things like that. And, you know, I think
  14132. 9:11:19we're going to have probably a section
  14133. 9:11:20just talking about tools with AI agents.
  14134. 9:11:22Maybe we'll put it here. I don't know.
  14135. 9:11:24Um, we'll see how long this specific
  14136. 9:11:26lecture goes. And then you have your AI
  14137. 9:11:28agent. So, let me just add in a a
  14138. 9:11:30generic tool. And you can see if we go
  14139. 9:11:33and uh put Gmail as a tool. So, you can
  14140. 9:11:36see it's Gmail and it use the same
  14141. 9:11:39credentials that you had a little bit
  14142. 9:11:40earlier. You can see we have five uh
  14143. 9:11:43different things attaching to our
  14144. 9:11:45particular AI agent. In fact, I do think
  14145. 9:11:47we're probably going to talk about
  14146. 9:11:48tools. I'll put that on my list. I
  14147. 9:11:50didn't know if I was going to put in
  14148. 9:11:51this video or another one, but we'll put
  14149. 9:11:53this over here in a second. Okay. So, we
  14150. 9:11:56talked about the system prompt and user
  14151. 9:11:59prompts. That's good. There talked about
  14152. 9:12:01structured outputs. Let's also talk
  14153. 9:12:04about some of the limitations associated
  14154. 9:12:06with these AI agents and and large
  14155. 9:12:08language models themselves. So, one of
  14156. 9:12:11the things that's kind of a drawback
  14157. 9:12:13that most people don't realize, a lot of
  14158. 9:12:15these AI agents are trained on old data.
  14159. 9:12:18So, let me explain what is going on over
  14160. 9:12:21here. And I'm just going to load up
  14161. 9:12:24Sonnet 45 and uh we'll grab this. So,
  14162. 9:12:29it's probably in the press release,
  14163. 9:12:32but let's take a look at what it says.
  14164. 9:12:38We're going to look for um a knowledge
  14165. 9:12:40cut off date.
  14166. 9:12:46And I guess we don't see that. Let me
  14167. 9:12:48look up another one.
  14168. 9:12:53Okay. So,
  14169. 9:12:56here we go from Anthropic Transparency
  14170. 9:13:00Hub.
  14171. 9:13:02And they have different types of models
  14172. 9:13:04over here. And I didn't expect us to
  14173. 9:13:06talk about different model um options as
  14174. 9:13:10well right now, but we're going to cover
  14175. 9:13:11a little bit. The first thing I want to
  14176. 9:13:14look for is your knowledge cutoff dates
  14177. 9:13:16on here because this will tell us its
  14178. 9:13:20memory. So if we're using Opus, it says
  14179. 9:13:22cloud opus 45 has knowledge cutoff date
  14180. 9:13:24of May 2025. This means the model of
  14181. 9:13:26knowledge is most extensive on reliable
  14182. 9:13:28information and events up to May 2025.
  14183. 9:13:31Why this is important? If you ask a
  14184. 9:13:33question out of the box to the LM
  14185. 9:13:37without any tools, without any other
  14186. 9:13:40additional API or services or anything
  14187. 9:13:41like that and you ask a question of
  14188. 9:13:44something like I don't know, right now
  14189. 9:13:46we have all the different college
  14190. 9:13:47football bowl games going on in the
  14191. 9:13:49playoffs. So if you ask like what
  14192. 9:13:51happened in a bowl game recently, it's
  14193. 9:13:52not going to have that information. It
  14194. 9:13:54just wasn't trained on that data because
  14195. 9:13:56it's May 2025. And this is different for
  14196. 9:13:59all models. If you go to sonnet, which
  14197. 9:14:00is one of the models I use all the time
  14198. 9:14:02and it's cheaper than opus and it still
  14199. 9:14:04gets pretty good results. So if you take
  14200. 9:14:07a look at the knowledge, you can see
  14201. 9:14:10January 2025 and there's ways to cut
  14202. 9:14:14around it and we'll we'll talk about
  14203. 9:14:17perplexity open AAI responses. There's
  14204. 9:14:19another tool called Tavly. I haven't
  14205. 9:14:21used it as of yet, but you need to find
  14206. 9:14:24a way to to essentially supplement
  14207. 9:14:27knowledge if you know the process that
  14208. 9:14:30your AI agent is going to be used
  14209. 9:14:32through needs up-to-date information.
  14210. 9:14:33Hopefully that makes sense. So to kind
  14211. 9:14:35of reiterate it, your AI agent needs to
  14212. 9:14:38access real-time information or near
  14213. 9:14:40real-time information. Something that
  14214. 9:14:41happened a month ago, two months ago,
  14215. 9:14:42three months ago, you need to supplement
  14216. 9:14:44your AI agent with either a a tool or b
  14217. 9:14:48with like another API. For example,
  14218. 9:14:49OpenAI has a responses API. We'll be
  14219. 9:14:52covering that here in this video. Um,
  14220. 9:14:54responses allows us to get newer
  14221. 9:14:55information, but it's just super
  14222. 9:14:57important that you do that. Um,
  14223. 9:14:59tool-wise, you could use perplexity or
  14224. 9:15:01tablet. Otherwise, you're going to be
  14225. 9:15:03missing information and what happens
  14226. 9:15:05sometimes is our AI agent will
  14227. 9:15:08hallucinate and think of an answer which
  14228. 9:15:10is not correct. So, really important.
  14229. 9:15:12Okay. The next thing I wanted to talk
  14230. 9:15:14about really fast is like choosing a
  14231. 9:15:16model
  14232. 9:15:17and kind of part of it is understanding
  14233. 9:15:21what models are used for. Like Opus is a
  14234. 9:15:24very expensive model. It's really good
  14235. 9:15:27for deep research, but you're going to
  14236. 9:15:29pay for it. So if budget does not matter
  14237. 9:15:32to you, maybe you want to use Opus.
  14238. 9:15:34However, if you're a little bit more
  14239. 9:15:35budget friendly and you still want
  14240. 9:15:37something that performs pretty good and
  14241. 9:15:39you might want to use Claude Sonnet 45
  14242. 9:15:42and these numbers are just based off of
  14243. 9:15:44the updates. So, for example, GPT
  14244. 9:15:46started with GPT 5, then there's GPT
  14245. 9:15:485.1, then there's GPT 52. So, larger
  14246. 9:15:51updates uh will continue to happen. I'm
  14247. 9:15:53sure at some point there will be a GPT
  14248. 9:15:5553, 54, 55, and then it'll update.
  14249. 9:15:58There's a massive overhaul. It'll go to
  14250. 9:16:00the next number. So, like this is
  14251. 9:16:01halfway between Sonnet 4 and Sonnet 5.
  14252. 9:16:05Maybe not exactly halfway, but um on
  14253. 9:16:07here you can see also the release date,
  14254. 9:16:09but I want to go and also take a look at
  14255. 9:16:12some of the pricing. So, I'm just going
  14256. 9:16:14to take a look at that and explain how
  14257. 9:16:16this is working. So, Sonnet 45 pricing
  14258. 9:16:20and uh hopefully we have it on this side
  14259. 9:16:25of it.
  14260. 9:16:27Nope, that is not on this one.
  14261. 9:16:30Okay, let's
  14262. 9:16:33see if it's in this one.
  14263. 9:16:36So, we're going to say pricing.
  14264. 9:16:39All right, so it says Opus 45 is
  14265. 9:16:41available. We're just going to use the
  14266. 9:16:42Opus for pricing over here. Pricing is
  14267. 9:16:45now five and then also 25 million tokens
  14268. 9:16:49and uh Cloud Developer Platform actually
  14269. 9:16:51might have our full pricing list. I
  14270. 9:16:54don't know why I didn't think about
  14271. 9:16:55that, but let's take a look at our API
  14272. 9:16:58pricing.
  14273. 9:17:00Sweet. Okay, so
  14274. 9:17:04if you want to start really learning
  14275. 9:17:05about like what models you want to use,
  14276. 9:17:08I would recommend start taking a look at
  14277. 9:17:10the exact API pages that Claude has,
  14278. 9:17:14that Gemini has, that OpenAI has because
  14279. 9:17:16it's going to really tell you some
  14280. 9:17:18stuff. So, for example, what you have
  14281. 9:17:20over here is your input, and it says $5
  14282. 9:17:23per million tokens. Now, what does that
  14283. 9:17:26mean? Well, this is your prompt that
  14284. 9:17:29you're sending to uh clot. So, if we go
  14285. 9:17:33back into our deeper AI agents, we go
  14286. 9:17:35into this example over here.
  14287. 9:17:39We're sending our prompt and our system
  14288. 9:17:42message over, right? And these are going
  14289. 9:17:44to count as tokens that count up to your
  14290. 9:17:48million. And you're getting charged $5
  14291. 9:17:50per million tokens. Our output is $25
  14292. 9:17:53per million tokens. So that is our
  14293. 9:17:55response, right? This is our output over
  14294. 9:17:57here. So we're getting charged $25 per 1
  14295. 9:18:00million if we're using opus over here.
  14296. 9:18:02Now why I like using I use a lot of
  14297. 9:18:06short prompts. I don't believe in large
  14298. 9:18:08prompts and we're going to talk about
  14299. 9:18:09that in uh this lecture as well. But you
  14300. 9:18:12can see if prompts are under 200 tokens,
  14301. 9:18:14you're getting charged $3 per million
  14302. 9:18:16tokens. If it's over, you're getting
  14303. 9:18:18charged $6 per million tokens. Um, and
  14304. 9:18:21then the output over here for prompts
  14305. 9:18:23under 200k tokens, you're paying $15.
  14306. 9:18:26Otherwise, you're paying $22. So, you
  14307. 9:18:28can see, um, if you have larger outputs
  14308. 9:18:32and things like that based off of
  14309. 9:18:33prompts, maybe you want to start using
  14310. 9:18:34Opus, um, because it can get quite
  14311. 9:18:37pricey, right? $6 per million which is
  14312. 9:18:39more expensive than here and you're
  14313. 9:18:40paying $2250 comparison to $25. You also
  14314. 9:18:44have prompt caching pricing based off of
  14315. 9:18:46write and read. Going to not cover that
  14316. 9:18:49here but regardless your input is what
  14317. 9:18:52is being sent to the model. Your output
  14318. 9:18:54is those particular results. You can see
  14319. 9:18:56over here most intelligent model for
  14320. 9:18:57building agents and coding. Sonnet has
  14321. 9:18:59optimal balance of intelligence costs
  14322. 9:19:01and speed. And then haiku says fastest
  14323. 9:19:04most costefficient model. So, if you're
  14324. 9:19:05looking for something that's just super
  14325. 9:19:07costefficient and very cheap, you can
  14326. 9:19:10see it's $1 per million and then $5 per
  14327. 9:19:13million on that output. And it doesn't
  14328. 9:19:15even mention uh input and output. One
  14329. 9:19:17other thing to note, and I want to I
  14330. 9:19:20want to really cover this over here as
  14331. 9:19:23well. Each of these models have a
  14332. 9:19:26different limitations with what you're
  14333. 9:19:28going to be sending as your input. Uh,
  14334. 9:19:31so whether you're using like a Gemini or
  14335. 9:19:33OpenAI or whatever that you use, if you
  14336. 9:19:37will have to send a lot of texts, which
  14337. 9:19:39again I don't recommend, take a look at
  14338. 9:19:41the documentation because you might be
  14339. 9:19:42getting cut off in some sort of
  14340. 9:19:44capacity. Um, I can also load up Gemini
  14341. 9:19:47prices or OpenAI API prices. So let me
  14342. 9:19:51look this up so we can have that.
  14343. 9:19:55Okay, so here is pricing for Open AI.
  14344. 9:19:58So, I use GPT5 Mini a lot and you can
  14345. 9:20:01see the input price is quite cheap. 0.25
  14346. 9:20:04per million tokens. Output is $2 per 1
  14347. 9:20:07million tokens. So, if you guys ever
  14348. 9:20:09wonder why I use GPT5 Mini in a lot of
  14349. 9:20:11YouTube videos, um here the price like
  14350. 9:20:15it is significantly cheaper. Uh which is
  14351. 9:20:18why like I don't always use Sonet 45. I
  14352. 9:20:20think Sonic 45 is way better model and
  14353. 9:20:22results and great for coding but um this
  14354. 9:20:25is quite cheap and when we're really
  14355. 9:20:27doing demos and things like that rather
  14356. 9:20:29save the money when I can. Uh you can
  14357. 9:20:31see GPT 52 the best model for coding at
  14358. 9:20:33Gentic Task and Industries even 52
  14359. 9:20:36inputs 1.75 so already input is cheaper
  14360. 9:20:40and the output's $14 and output is like
  14361. 9:20:43$15 here. So um 52 is still cheaper than
  14362. 9:20:47sonnet 45. So I am spinning a lot
  14363. 9:20:50sometimes in videos when I use this but
  14364. 9:20:53you know it is what it is right. Uh you
  14365. 9:20:55have also fine-tuning models over here
  14366. 9:20:58and then you can see other additional
  14367. 9:21:00information over here. We're going to
  14368. 9:21:01talk about image generation a little bit
  14369. 9:21:03later. This is the responses API. So it
  14370. 9:21:06says our newest API combining simplicity
  14371. 9:21:07of chat completions with the built-in
  14372. 9:21:08tools of assistance. We're going to be
  14373. 9:21:10using this a little bit later in the
  14374. 9:21:12video. There's built-in tools over here
  14375. 9:21:15as well. Uh this is going to be used in
  14376. 9:21:17our rag section and uh yeah there's
  14377. 9:21:20there's quite a bit and also what model
  14378. 9:21:22should I use? We recommend the
  14379. 9:21:23developers use our large and mini GPT
  14380. 9:21:25models for everyday tasks. Our large GPT
  14381. 9:21:27models generally perform better on a
  14382. 9:21:28wide range of tasks while our mini
  14383. 9:21:29models are fast and expensive for
  14384. 9:21:31simpler tasks. So, one of the things
  14385. 9:21:33that's pretty cool to do is when you're
  14386. 9:21:36building out your workflows and you're
  14387. 9:21:38testing, see if you have a big result
  14388. 9:21:42difference between using a cheaper model
  14389. 9:21:44and a larger model. Sometimes it does
  14390. 9:21:46not matter. So, if you're really looking
  14391. 9:21:48for cost savings, what you'll want to do
  14392. 9:21:51is first test with a cheaper model, then
  14393. 9:21:53test with a larger model or more
  14394. 9:21:55expensive model, and just see what the
  14395. 9:21:57results are. Um, I find sometimes that
  14396. 9:22:00the cheaper models work perfectly and
  14397. 9:22:02sometimes you need to change your model
  14398. 9:22:04for something that's a little bit better
  14399. 9:22:05with coding or something else. Again, we
  14400. 9:22:09have this option to go over here and you
  14401. 9:22:11can always set fallback models as well.
  14402. 9:22:14Uh, another thing to briefly mention and
  14403. 9:22:16man, there's there's just so much. One
  14404. 9:22:19of the things that people do is stuff
  14405. 9:22:21way too many tasks, way too much context
  14406. 9:22:24into an AI agent.
  14407. 9:22:27And that's just an issue. What I like to
  14408. 9:22:31personally do, and I'll just write this
  14409. 9:22:32out for you guys, is one task per agent.
  14410. 9:22:38Now, this doesn't mean exactly one task
  14411. 9:22:40for agent, but don't ask your agent to
  14412. 9:22:43do a million tasks because what some
  14413. 9:22:46people want to do is like, hey, I want
  14414. 9:22:48you to, I don't know, extract this
  14415. 9:22:50information. Then, I want you to
  14416. 9:22:51summarize it, and then I want you to
  14417. 9:22:53build out a social media post all at
  14418. 9:22:55once. And it's like, man, you're st
  14419. 9:22:56you're confusing your agent. You're
  14420. 9:22:58giving it too many tasks. So, I try to
  14421. 9:23:00break down these to like one simple task
  14422. 9:23:03at a time. If it's like a supplementary
  14423. 9:23:05task that you think it could do both at
  14424. 9:23:07the same time, sure, try it. But really
  14425. 9:23:10focus on one task per agent and you can
  14426. 9:23:12chain things together. So if you go to
  14427. 9:23:15agents, you can always send the output
  14428. 9:23:17of one agent into another agent. And
  14429. 9:23:20guess how we have officially done that?
  14430. 9:23:23Well, if you go back to your structured
  14431. 9:23:24output parser,
  14432. 9:23:27look, we already have our specific
  14433. 9:23:29stuff. And we could literally just let
  14434. 9:23:32me just pin this data.
  14435. 9:23:35I don't know what I'm going to do with
  14436. 9:23:36this here in a second, but we go over
  14437. 9:23:38here, you know, we can send our output
  14438. 9:23:42over here directly in to our prompts,
  14439. 9:23:47right? Because we have these
  14440. 9:23:49expressions.
  14441. 9:23:53I'm going to say Laura Misfit as I
  14442. 9:23:55didn't really think about this when I
  14443. 9:23:57was prep prepping this video, but you
  14444. 9:24:00can see we can send the results from the
  14445. 9:24:02previous AI agent into this agent. So,
  14446. 9:24:05it's not unheard of for sometimes you
  14447. 9:24:07have like two or three A agents together
  14448. 9:24:09in a row. Again, super important. I'd
  14449. 9:24:14focus on like one task per agent and
  14450. 9:24:17limit your context because
  14451. 9:24:20although these agents will say you can
  14452. 9:24:23upload one million context and tokens
  14453. 9:24:26and let me show you why I say that.
  14454. 9:24:28Gemini
  14455. 9:24:29context window and that's what it's
  14456. 9:24:31called as well.
  14457. 9:24:35And uh
  14458. 9:24:38where is this at?
  14459. 9:24:43All right, let's see if this is on here.
  14460. 9:24:46It's like there's a lot of stuff over
  14461. 9:24:48here. Let's look for context window.
  14462. 9:24:51Yeah, 1 million tokens, which means up
  14463. 9:24:54to 1500 pages of text or 30k lines of
  14464. 9:24:56code. Like that is a ton. However,
  14465. 9:24:59there's research papers and let me find
  14466. 9:25:01you this research paper lost in the
  14467. 9:25:03context. I think it's called loss in the
  14468. 9:25:05context or it's like needle and hay
  14469. 9:25:07stack. I can't remember the exact paper
  14470. 9:25:09name. But what ends up happening if you
  14471. 9:25:12stuff too much information into your AI
  14472. 9:25:15agent like too many tasks or too much
  14473. 9:25:18text things are get are going to get
  14474. 9:25:20forgotten and you're going to have to
  14475. 9:25:21deal with something that is called a
  14476. 9:25:23hallucination. And we haven't covered
  14477. 9:25:25really hallucinations too much in
  14478. 9:25:27detail. And I'll just put this as a
  14479. 9:25:29note, but hallucination
  14480. 9:25:33equals that know-it-all
  14481. 9:25:36class
  14482. 9:25:38that think he knows his answer that
  14483. 9:25:40thinks
  14484. 9:25:41he knows the answer. It's wrong.
  14485. 9:25:46And
  14486. 9:25:48it kind of goes back into what we're
  14487. 9:25:50talking about with knowledge cutoff.
  14488. 9:25:51Your AI agent will always try to get you
  14489. 9:25:53the answer unless you prompt it and say
  14490. 9:25:55if you don't know the answer right I
  14491. 9:25:57don't know and obviously you can build
  14492. 9:25:58out your orchestration based around it
  14493. 9:26:01but your AI agent is always going to try
  14494. 9:26:02to get you the correct answer because of
  14495. 9:26:05that there's something called
  14496. 9:26:06hallucinations and you know it's common
  14497. 9:26:08to get you know 2% hallucination 5%
  14498. 9:26:11hallucination 10% hallucination and our
  14499. 9:26:14goal is to limit hallucinations and we
  14500. 9:26:16can do that by writing a phenomenal
  14501. 9:26:19system message as well as a really great
  14502. 9:26:22user message when applicable. So, this
  14503. 9:26:25is some of the basics. We have a lot
  14504. 9:26:27more to still talk about. I'm just going
  14505. 9:26:29to take a quick break and we'll be right
  14506. 9:26:31back. All right, so let's jump into the
  14507. 9:26:34next topics. So, the first is going to
  14508. 9:26:36be how to write a good prompt and some
  14509. 9:26:38of the different details associated with
  14510. 9:26:40it. I actually go through kind of a
  14511. 9:26:42checklist each time. So, let's cover
  14512. 9:26:46each of these sections and uh we could
  14513. 9:26:48just grab an AI agent, honestly. I'm not
  14514. 9:26:51too sure what prompt we're going to
  14515. 9:26:52write, but we'll just open this up and
  14516. 9:26:54I'll give you examples through it. And
  14517. 9:26:57uh let's go into our system message and
  14518. 9:26:59expand this out. All right, so the first
  14519. 9:27:02part of it is the role and identity. So
  14520. 9:27:04this is kind of what we have over here,
  14521. 9:27:06your helpful assistant.
  14522. 9:27:08So what we want to do is like what is
  14523. 9:27:11the role or the identity? And I'll just
  14524. 9:27:13put this over here. what is the role or
  14525. 9:27:17the identity
  14526. 9:27:19of the AI agent like what is its
  14527. 9:27:22objective right the next side of it is
  14528. 9:27:26what tools
  14529. 9:27:29do we have available and I know we
  14530. 9:27:31haven't covered setting up tools with
  14531. 9:27:32our AI agent I did say I was going to
  14532. 9:27:34bring it on in this section but after we
  14533. 9:27:37go over a few other things we'll cover
  14534. 9:27:39tools so what tools do we have available
  14535. 9:27:42next what I would recommend is um how do
  14536. 9:27:45you want to handle errors? So, how do
  14537. 9:27:48you want to handle errors
  14538. 9:27:54both
  14539. 9:27:55as an agent
  14540. 9:27:57and for the tool?
  14541. 9:28:01Okay. Another thing that you can define
  14542. 9:28:03in over here is going to be your tone.
  14543. 9:28:06So what
  14544. 9:28:09tone response
  14545. 9:28:12should the agent of? And some models are
  14546. 9:28:16better with tone. Some are kind of bland
  14547. 9:28:18or vanilla, which is fine. Obviously
  14548. 9:28:21depends what you want. what rules and
  14549. 9:28:24restrictions do you have in place?
  14550. 9:28:31And I should also mention externally uh
  14551. 9:28:34you can also specifically
  14552. 9:28:37have restrictions based off of
  14553. 9:28:39guardrails. So guardrails is a little
  14554. 9:28:42bit later on in this course. I'm just
  14555. 9:28:44going to check my outline really fast.
  14556. 9:28:47So this guard rails, where do I have it?
  14557. 9:28:50In the security and compliance section.
  14558. 9:28:52So, um, still like five or six sections
  14559. 9:28:55away. So, let me give you a little bit
  14560. 9:28:58of a sneak peek on guardrails and, uh,
  14561. 9:29:01not to ex out over here, but if we go
  14562. 9:29:05into guardrails,
  14563. 9:29:07you can see check text for violations.
  14564. 9:29:10So, what we can do is either go over
  14565. 9:29:12here and add in a guardrail like, hey,
  14566. 9:29:14if this text is specific keywords or
  14567. 9:29:17NSFW or PII, like don't run this agent.
  14568. 9:29:20And you can see like for example I put
  14569. 9:29:23jailbreak
  14570. 9:29:25and you'll see
  14571. 9:29:28we either have a pass or fail. So if it
  14572. 9:29:30passes and go into our AI agent
  14573. 9:29:33otherwise it fails and goes down that
  14574. 9:29:35way. A little bit about guardrails
  14575. 9:29:38and we'll cover this in greater detail.
  14576. 9:29:40All right going back to our AI agent.
  14577. 9:29:42Didn't want to um explicitly say this
  14578. 9:29:45but you can also add on with guard. All
  14579. 9:29:48right. Um, what do we have next over
  14580. 9:29:51here? Oh, our our shot prompting
  14581. 9:29:54examples. So, we've already covered that
  14582. 9:29:57shot prompting examples.
  14583. 9:30:02We'll have additional context.
  14584. 9:30:06So, like what other information
  14585. 9:30:11should an AI agent know?
  14586. 9:30:16All right. And then let's say our
  14587. 9:30:19formats last formats.
  14588. 9:30:23And what we're going to say on the
  14589. 9:30:25format is you can define it in here
  14590. 9:30:31if you don't care
  14591. 9:30:34about passing it along.
  14592. 9:30:38Also, also add in output parser
  14593. 9:30:43which we've already covered, right?
  14594. 9:30:47So let me give you a few of these
  14595. 9:30:49examples. What is the role or identity
  14596. 9:30:50of the AI agents? And obviously like you
  14597. 9:30:53shouldn't include all my all these notes
  14598. 9:30:55in the AI agent itself. Like don't have
  14599. 9:30:58this and then write what is next. You'll
  14600. 9:31:01want to have this on its own. So for
  14601. 9:31:03this example, right, and I'll just put
  14602. 9:31:05maybe like a line so that way you know
  14603. 9:31:09are an AI agent
  14604. 9:31:12that helps craft
  14605. 9:31:16viral
  14606. 9:31:19posts based on YouTube videos. All
  14607. 9:31:24right, now let's think about the next
  14608. 9:31:27thing. So, what tools do we have
  14609. 9:31:29available?
  14610. 9:31:32Let's say we added in a tool, and this
  14611. 9:31:34is all hypothetical. Um, but let's say
  14612. 9:31:36we have a
  14613. 9:31:38um let me actually think about what
  14614. 9:31:40tools.
  14615. 9:31:43All right. Next. How do you want to
  14616. 9:31:45handle errors about the agent or the
  14617. 9:31:46tool? I haven't really thought about the
  14618. 9:31:48tool that I want to use for this
  14619. 9:31:50scenario. So, we'll leave that out over
  14620. 9:31:52here. What tone? So, we're going to say
  14621. 9:31:56use an excited tone
  14622. 9:32:00tone as this post should be for people
  14623. 9:32:08who are interested
  14624. 9:32:11in evolving AI technologies,
  14625. 9:32:18the rules and restrictions that you have
  14626. 9:32:20in place. This also guardrails. So, a
  14627. 9:32:22lot of this is impactful if you have
  14628. 9:32:25like a chat trigger and people can
  14629. 9:32:27message,
  14630. 9:32:30but
  14631. 9:32:31you know, kind of my rules and
  14632. 9:32:33restrictions all have to think about
  14633. 9:32:35like what do I want to have as a
  14634. 9:32:37restriction for an agent that drives a
  14635. 9:32:40viral LinkedIn post based off of YouTube
  14636. 9:32:42videos. So, um
  14637. 9:32:45it's pretty self-explanatory,
  14638. 9:32:49but well, I actually have some ideas.
  14639. 9:32:52We'll say like do not
  14640. 9:32:55include the YouTube URL
  14641. 9:33:00in the social media post
  14642. 9:33:03media post text.
  14643. 9:33:08That could be just one example, right?
  14644. 9:33:10Obviously, there's more things we could
  14645. 9:33:11do. shot prompting examples. So, I'll
  14646. 9:33:15just say here are some examples
  14647. 9:33:19of working
  14648. 9:33:21posts that you should
  14649. 9:33:24should emulate. I would say like one
  14650. 9:33:28example, two example. Obviously, you're
  14651. 9:33:31filling this out as you go. Three
  14652. 9:33:34example.
  14653. 9:33:36Next, additional context. You know, I'd
  14654. 9:33:38put over here a viral post has a hook
  14655. 9:33:42as a hook like XYZ.
  14656. 9:33:47Then I'd say
  14657. 9:33:51a
  14658. 9:33:52post asking someone to comment.
  14659. 9:33:57So this is just more information, right,
  14660. 9:33:59that you want to feed into your large
  14661. 9:34:02language model or your AI agent in this
  14662. 9:34:04case to give you what you want. format
  14663. 9:34:06it, define it here, and then you could
  14664. 9:34:08also add an output parser. I' I'd
  14665. 9:34:11obviously want to put an output parser,
  14666. 9:34:12but I'm also say the final results
  14667. 9:34:17should only
  14668. 9:34:19include the text. All right. So,
  14669. 9:34:24what tools do we have available? I don't
  14670. 9:34:27Let me think of a tool that we might be
  14671. 9:34:28able to use on the side of things. Like,
  14672. 9:34:30this probably wasn't the best for a
  14673. 9:34:32tool. um you know obviously there's
  14674. 9:34:35things that we could utilize.
  14675. 9:34:38However, on the tool side because we
  14676. 9:34:41don't really need any up-to-date
  14677. 9:34:42information. This is pretty
  14678. 9:34:44straightforward like
  14679. 9:34:47so in this case you won't need a tool in
  14680. 9:34:49my personal opinion. However, if you
  14681. 9:34:52have a tool that you would want, you
  14682. 9:34:53would define it like use tool X to
  14683. 9:34:59achieve Y.
  14684. 9:35:02And then over here we're going to handle
  14685. 9:35:03both uh the errors. So like if tool X
  14686. 9:35:08does not work
  14687. 9:35:11right and then I would say if you cannot
  14688. 9:35:14write a post cannot write this post
  14689. 9:35:18or aren't confident
  14690. 9:35:23about this post
  14691. 9:35:25right
  14692. 9:35:30this will not work
  14693. 9:35:33redo I don't know you have some type of
  14694. 9:35:35escape cost. So to break all these
  14695. 9:35:37sections up of what takes like a a
  14696. 9:35:40really good system message first what is
  14697. 9:35:42the role of uh the AI agent in this case
  14698. 9:35:46right helping craft a viral LinkedIn
  14699. 9:35:48post what tools do you have available in
  14700. 9:35:50this case I didn't set up any tools but
  14701. 9:35:52you would define it right over here and
  14702. 9:35:54again we'll talk about this in the tool
  14703. 9:35:56section
  14704. 9:35:58how do you want to handle errors in both
  14705. 9:35:59as agent as as well as the tool so if
  14706. 9:36:02this tool does not work do why do you
  14707. 9:36:04cannot write this post or aren't
  14708. 9:36:06confident about the post, write
  14709. 9:36:07something. So that way you kind of have
  14710. 9:36:08some sort of fallback. What tone
  14711. 9:36:11response should be the agent, right? So
  14712. 9:36:13like what tone are you going to use?
  14713. 9:36:15That's defined there. What rules and
  14714. 9:36:18restrictions should be in place? This
  14715. 9:36:20example include YouTube URL. Also, you
  14716. 9:36:23can use guardrails. Um another example
  14717. 9:36:26would be like imagine you have a runner
  14718. 9:36:28AI agent that just focuses on short
  14719. 9:36:30distances. Well, someone should not be
  14720. 9:36:32asking that agent uh questions about
  14721. 9:36:34ultramarathons. So someone's running a
  14722. 9:36:355K. Uh so that would be an example over
  14723. 9:36:38here like I just talked about do not
  14724. 9:36:39include URL. You put your examples in
  14725. 9:36:41over here which really um decreases the
  14726. 9:36:44hallucinations. You put an additional
  14727. 9:36:47context. So what other information
  14728. 9:36:48should the AI agent know um that is not
  14729. 9:36:51available all over here and won't be
  14730. 9:36:53available in that user message.
  14731. 9:36:56And then lastly, how do you want to
  14732. 9:36:58specifically format your prompt? So
  14733. 9:37:01we'll just leave this one like that. And
  14734. 9:37:03that is an example of a a pretty good
  14735. 9:37:06basic understanding of writing a good
  14736. 9:37:08prompt. So I'll just put like this
  14737. 9:37:11because you guys are going to be using
  14738. 9:37:12these um as notes. So like write a
  14739. 9:37:15prompt and obviously like I would
  14740. 9:37:18recommend that you just practice and
  14741. 9:37:20write some good prompts because it is
  14742. 9:37:22something that it takes a while to
  14743. 9:37:24ingrain all these individual elements.
  14744. 9:37:25And every prompt doesn't need to have
  14745. 9:37:28every single element that we just
  14746. 9:37:30covered. Like depends scenario to
  14747. 9:37:32scenario, but that is essentially
  14748. 9:37:35looking at the prompt side of things.
  14749. 9:37:38All right. Now, let's jump into some of
  14750. 9:37:40the different settings that are
  14751. 9:37:41available. Now, settings are going to
  14752. 9:37:43change slightly LM to LM, but we're just
  14753. 9:37:46going to go over here. We're going to
  14754. 9:37:48grab an AI agent and we're going to talk
  14755. 9:37:50through some of these. And uh yeah,
  14756. 9:37:52let's get started. So, we have our AI
  14757. 9:37:55agent. All we're going to care about is
  14758. 9:37:56just adding in OpenAI for now and choose
  14759. 9:38:02your account. Just going to choose GPT5
  14760. 9:38:05Mini over here. Although I don't believe
  14761. 9:38:06it actually matters. Um, and you can see
  14762. 9:38:09over here we have different options. So,
  14763. 9:38:11we have quite a lot of different
  14764. 9:38:12options. I'm not going to cover every
  14765. 9:38:15single one of these. So, some of these
  14766. 9:38:18are good if you're generating text. Some
  14767. 9:38:20of these are good um
  14768. 9:38:23if you want to have slightly different
  14769. 9:38:25results. I think like if you believe in
  14770. 9:38:27like the 8020 principle really 80 to 90%
  14771. 9:38:31of your results your agent are going to
  14772. 9:38:33matter based off of this prompt in the
  14773. 9:38:36system message and um probably like 5
  14774. 9:38:4110% really focus on these different
  14775. 9:38:44options. So let's talk about some of
  14776. 9:38:46them. the frequency penalty over here.
  14777. 9:38:49This is a discouragement if the model
  14778. 9:38:51uses the same phrases over and over
  14779. 9:38:54again. And that's very similar to like a
  14780. 9:38:56presence penalty as well. Uh so you can
  14781. 9:38:59see a presence penalty on there. So
  14782. 9:39:00that's a penalty for reusing the same
  14783. 9:39:03word over and over again. Uh next you
  14784. 9:39:07have something called timeout. Now this
  14785. 9:39:08one is actually pretty powerful. So this
  14786. 9:39:11is like how long you should wait for a
  14787. 9:39:13response from OpenAI and this is I
  14788. 9:39:16believe in milliseconds if I remember
  14789. 9:39:17correctly. So like this one I would say
  14790. 9:39:20matters a lot more than penalties over
  14791. 9:39:22here. Again just depends on your use
  14792. 9:39:24case. Like if you're doing some sort of
  14793. 9:39:26writing these matter like timeout I
  14794. 9:39:29think is pretty important over there.
  14795. 9:39:32Another thing that's important too is
  14796. 9:39:34the maximum number of tokens. So on this
  14797. 9:39:37side of things you can see it says
  14798. 9:39:38maximum number of tokens to generate in
  14799. 9:39:40completion for models that have a
  14800. 9:39:41context of 2048 tokens except the newest
  14801. 9:39:44models which supports 32768.
  14802. 9:39:46So that is also important negative one
  14803. 9:39:49means this does not matter. Um but if
  14804. 9:39:51you want to set hard limits if you're on
  14805. 9:39:53a specific budget or you know like it
  14806. 9:39:55should not send a response that's a
  14807. 9:39:57certain length. I think this one matters
  14808. 9:39:59quite a bit. uh you have something
  14809. 9:40:01called the sampling temperature also
  14810. 9:40:03over here and um that's kind of the
  14811. 9:40:05randomness associated with it. Um then
  14812. 9:40:08you have uh where is this one at
  14813. 9:40:12top P which is very similar and you can
  14814. 9:40:15see it says control diversity 0.5 and so
  14815. 9:40:18we generally recommend altering this or
  14816. 9:40:19temperature but not both. But here's the
  14817. 9:40:21thing I want to say GPT5 got rid of
  14818. 9:40:23sampling temperature. So like this
  14819. 9:40:26doesn't even really matter. I don't know
  14820. 9:40:27if top P has been removed as well. And I
  14821. 9:40:31can see a lot more of these. Like
  14822. 9:40:32there's a lot of different options over
  14823. 9:40:34here. I don't know every single one of
  14824. 9:40:35these. Um but some of these over here I
  14825. 9:40:38don't think are going to really matter
  14826. 9:40:39too much here in the long term. So I
  14827. 9:40:42just want to cover a few of these like I
  14828. 9:40:44think maximum number of tokens I think
  14829. 9:40:46that's important. I think your timeout
  14830. 9:40:49is important. I'd focus more on those
  14831. 9:40:51than some of the other stuff that I have
  14832. 9:40:53specifically shared. We're going to
  14833. 9:40:55cover the responses API here in a
  14834. 9:40:56second. Obviously, this is just uh very
  14835. 9:40:59small section of the settings. And uh
  14836. 9:41:02yeah, so up next we're going to talk
  14837. 9:41:04about tool calling and then we'll cover
  14838. 9:41:07responses because perplexity is going to
  14839. 9:41:09be a tool that we add in. So let's jump
  14840. 9:41:12into there. So we've already talked
  14841. 9:41:14about kind of how you can prompt an AI
  14842. 9:41:17agent. I just want to show you the very
  14843. 9:41:19basics behind tools. So we can go into a
  14844. 9:41:21tool and like click over here and we can
  14845. 9:41:25have our agent do some sort of action.
  14846. 9:41:28So one of the basic examples is we could
  14847. 9:41:31go and update a spreadsheet or we can go
  14848. 9:41:34and send an email. So if I go over here,
  14849. 9:41:36you can see there's a Gmail tool. And
  14850. 9:41:39essentially what we can do if you set up
  14851. 9:41:40your right Gmail account, you could send
  14852. 9:41:43a message, you can delete a message, you
  14853. 9:41:45can reply, you could you have a lot of
  14854. 9:41:47different options um that your AI agent
  14855. 9:41:49can act based around. So you could have
  14856. 9:41:51a message to your AI agent and say,
  14857. 9:41:53"Hey, send an email to X person about
  14858. 9:41:56something." And let me show you how we
  14859. 9:41:58could do that. Let me grab our chat
  14860. 9:42:00trigger, which I believe is like way up
  14861. 9:42:02over here. Drag that all the way down
  14862. 9:42:05here.
  14863. 9:42:07and uh let's build out something basic.
  14864. 9:42:09So, we have our connected chat trigger
  14865. 9:42:12over there into our AI agent. And great,
  14866. 9:42:15next thing we have our tool. And here's
  14867. 9:42:19something that kind of trips people up
  14868. 9:42:20initially. It's like, how do I go and
  14869. 9:42:24automatically populate information in
  14870. 9:42:27here? Well, if you see this over here,
  14871. 9:42:29it says let the model define this
  14872. 9:42:30parameter. So, you could actually let
  14873. 9:42:33the model choose, okay, who do I want to
  14874. 9:42:35send the email to? You can also set the
  14875. 9:42:38subject automatically and the message
  14876. 9:42:41automatically if you prompt it
  14877. 9:42:42correctly.
  14878. 9:42:44You can add another options as well. So
  14879. 9:42:46like I want to turn off the nan
  14880. 9:42:47attribution by default. You can let the
  14881. 9:42:49model choose this parameter as as well
  14882. 9:42:51as if you want. Um so there's your Gmail
  14883. 9:42:54tool. You should also update the
  14884. 9:42:56description. So I'm going to say send
  14885. 9:42:58instead of send a message in Gmail. Like
  14886. 9:43:00I think that's fine. Sometimes certain
  14887. 9:43:02tools are a little bit ambiguous and the
  14888. 9:43:04model won't know what to do. Uh but this
  14889. 9:43:07is just sending and you can obviously
  14890. 9:43:09like there's a lot of things that you
  14891. 9:43:10could do based around this and we
  14892. 9:43:12already covered a lot about Gmail but
  14893. 9:43:14all those are applicable to your AI
  14894. 9:43:16agent now which is really really
  14895. 9:43:18powerful if you if you think about it.
  14896. 9:43:20Um we've set up Google and obviously we
  14897. 9:43:22don't have to change our credentials
  14898. 9:43:23over here and now we can have an AI
  14899. 9:43:25agent automatically send emails. That's
  14900. 9:43:27pretty crazy. So to do this, let's go
  14901. 9:43:30over here and I'm going to say send an
  14902. 9:43:34email to Ryan Nolan [email protected].
  14903. 9:43:43So use the subject
  14904. 9:43:47live AI agent.
  14905. 9:43:50I'm going to also say over here,
  14906. 9:43:55right in the body,
  14907. 9:43:59this was live from a YouTube video.
  14908. 9:44:05We're going to send all that over.
  14909. 9:44:08And I actually have an error. And the
  14910. 9:44:10error is because I actually didn't set a
  14911. 9:44:11chat model. Oh, man. All right. We're
  14912. 9:44:14going to go and add in uh Ladden Sonnet.
  14913. 9:44:17So, we'll go anthropic.
  14914. 9:44:20It's cool. We have that over here. I'm
  14915. 9:44:22going to close that out. We're going to
  14916. 9:44:23try this again.
  14917. 9:44:27And you know what? Of course, I uh Cool.
  14918. 9:44:31We're going to go back to our editor.
  14919. 9:44:32We're going to send this again.
  14920. 9:44:36Now it's working.
  14921. 9:44:38You can see everything that's going on.
  14922. 9:44:42And let's see if we actually got that
  14923. 9:44:43email or not. So, I'm going load up my
  14924. 9:44:45Gmail account.
  14925. 9:44:48And I'm going to just go over here.
  14926. 9:44:51Check it out. Live AI agent. This was a
  14927. 9:44:54live from a YouTube video. That's pretty
  14928. 9:44:57sweet.
  14929. 9:45:00So, you know, we could going back over
  14930. 9:45:03here. There's a lot of other tools. We
  14931. 9:45:06can update a spreadsheet as well. So,
  14932. 9:45:08I'm going to just duplicate this.
  14933. 9:45:12Show you a spreadsheet. And I can
  14934. 9:45:14literally like there's so many tools in
  14935. 9:45:15the end you could literally spend days
  14936. 9:45:17just exploring all these tools to no
  14937. 9:45:20end. And oh to mention as well like you
  14938. 9:45:22can add in multiple tools from some
  14939. 9:45:24things. So like this sends a message in
  14940. 9:45:25Gmail and I would also recommend that
  14941. 9:45:29you like define these. So like send a
  14942. 9:45:31message in Gmail. Guess I have that
  14943. 9:45:34somewhere else. Oh, you know where it's
  14944. 9:45:36at? I already have this here. All right,
  14945. 9:45:37that makes sense. Why? Um you can
  14946. 9:45:40duplicate this, right?
  14947. 9:45:44And then instead of send a message,
  14948. 9:45:46maybe we want to create a draft
  14949. 9:45:51draft in Gmail and resource. You just go
  14950. 9:45:54over here to draft and now you have two
  14951. 9:45:56Gmail tools over here for this AI agent.
  14952. 9:45:59One sends a message, one creates a
  14953. 9:46:01draft. And obviously there's a lot of
  14954. 9:46:03different options in Gmail and you can
  14955. 9:46:04keep building them out. One thing to
  14956. 9:46:06mention though, when you add a lot of
  14957. 9:46:09tools in here, it can confuse an AI
  14958. 9:46:12agent. So, think about what you want to
  14959. 9:46:15add in if it's 100% necessary or you
  14960. 9:46:17want to add it to another AI agent
  14961. 9:46:19because you don't want to overload it.
  14962. 9:46:20And like you think, oh, I can send 100
  14963. 9:46:22tools to this AI agent. Like, come on.
  14964. 9:46:25Don't don't do that. Um, be uh specific
  14965. 9:46:29as much as possible. Like, do I need
  14966. 9:46:31this or not? Just to show you
  14967. 9:46:33spreadsheet really quick. Let's say like
  14968. 9:46:34we want to add in a new row. Whoops. So
  14969. 9:46:37we want to add in a new row into a
  14970. 9:46:39spreadsheet. So I'm going to do this
  14971. 9:46:41really quick. I'm going to go find
  14972. 9:46:43spreadsheets.
  14973. 9:46:45Should be sheets, not spreadsheets. So
  14974. 9:46:47you can see there's a Google Sheets tool
  14975. 9:46:50and just add in your account that you
  14976. 9:46:52want resource. Instead of get rows, I'm
  14977. 9:46:55going to say uh append row. I'm going
  14978. 9:46:58add in a documents
  14979. 9:47:00and I'm going to go into this sheet
  14980. 9:47:02five. I want to say that was the one
  14981. 9:47:04that we were doing yesterday. Cool. So,
  14982. 9:47:06we're going to add in an expense
  14983. 9:47:09and be explicit. So, tool description,
  14984. 9:47:13append a row in Google Sheets.
  14985. 9:47:16This is when someone asks
  14986. 9:47:19to add an expense. Great. So, I'm going
  14987. 9:47:23to prompt it and say add an expense of
  14988. 9:47:25100. And it's going to go through and do
  14989. 9:47:27that. So, if I open the chat, I'm going
  14990. 9:47:29to clear this one out. I'm going say add
  14991. 9:47:32an expense
  14992. 9:47:33of and what's one that we haven't
  14993. 9:47:35covered yet? 51 100 12. Um, so let's add
  14994. 9:47:39in expense of 75. And obviously like I
  14995. 9:47:43didn't write a great prompt
  14996. 9:47:45by any means. And I actually have an
  14997. 9:47:48error over here.
  14998. 9:47:51So
  14999. 9:47:53what is my specific error? It says
  15000. 9:47:55problem nan at least one value has to be
  15001. 9:47:57sent. And if you go over here, you can
  15002. 9:47:59see values as send. I never actually
  15003. 9:48:01explicitly put something over here.
  15004. 9:48:03Again, an error that most people make.
  15005. 9:48:05So, I didn't mean to make that error,
  15006. 9:48:06but that's okay. We will run it again.
  15007. 9:48:13It's good that you guys see me make
  15008. 9:48:15because everyone's human like no one's
  15009. 9:48:17going to get things off the bat 100%.
  15010. 9:48:19You can see we have the green check
  15011. 9:48:20mark. It's running still. Says workflow
  15012. 9:48:23was successful. Go back over here. we
  15013. 9:48:26have 75 automatically added into our
  15014. 9:48:28spreadsheet. Again, there is so many
  15015. 9:48:30tools
  15016. 9:48:32like and we'll we'll be covering stuff
  15017. 9:48:34as well when we get into vector
  15018. 9:48:35databases a little bit later. Um, so you
  15019. 9:48:38can even have like AI agents as tools,
  15020. 9:48:40generate an action plan, execute it, can
  15021. 9:48:42use external tools, you can have
  15022. 9:48:44workflows as tools, you can apply for
  15023. 9:48:47web scraping, which um really like
  15024. 9:48:51there's just so much over here. It's
  15025. 9:48:53there's just too much to to cover in one
  15026. 9:48:56video. However, you can think of like a
  15027. 9:48:58lot of different APIs and services. You
  15028. 9:49:00can even add in external APIs over here.
  15029. 9:49:03If you go to HTTP, look at this. Makes
  15030. 9:49:07an HTTP request and returns a response
  15031. 9:49:09data. So,
  15032. 9:49:11uh, I'm recording this actually after
  15033. 9:49:12the HTTP section, but you'll learn this
  15034. 9:49:16already a little bit earlier on in the
  15035. 9:49:17course and I don't know if I'll put this
  15036. 9:49:20specifically in that HTTP request aside.
  15037. 9:49:23I might however that which is pretty
  15038. 9:49:27amazing. All right. So, we covered uh
  15039. 9:49:30tools now.
  15040. 9:49:32And uh next thing we should talk about
  15041. 9:49:35is essentially how do you get new data?
  15042. 9:49:38Because we talked about that issue where
  15043. 9:49:41it's like, man, this is great and all,
  15044. 9:49:44but I I can't grab up-to-date
  15045. 9:49:45information. So, we'll go over here and
  15046. 9:49:47say how to add up-to-date information.
  15047. 9:49:51How to add up toate information.
  15048. 9:49:55There's like there's a few different
  15049. 9:49:57ways, a few different approaches.
  15050. 9:50:00We're going to go here very basic. We're
  15051. 9:50:02go to our AI agent. I'm just going to
  15052. 9:50:04define this below. H actually we'll do a
  15053. 9:50:07chat tracker and we'll just keep
  15054. 9:50:10expanding this on.
  15055. 9:50:12So, one thing that's really nice is
  15056. 9:50:14OpenAI has a responses API and that
  15057. 9:50:18allows you to get real-time information.
  15058. 9:50:20So, make sure you're on a newer model.
  15059. 9:50:23And I should just delete this open AAI
  15060. 9:50:24account 3. That was for old client. But
  15061. 9:50:27we'll go over here to GPT5 mini. And you
  15062. 9:50:30can see by default we have responses
  15063. 9:50:31API. And there is built-in tools because
  15064. 9:50:34of the responses API. So what we can do
  15065. 9:50:37is add in web search. And you'll see it
  15066. 9:50:40says med search context size. So high
  15067. 9:50:42level guidance for the amount of context
  15068. 9:50:43window space to use for the search. I
  15069. 9:50:45would probably just recommend keeping
  15070. 9:50:46this at medium. If you're conscious
  15071. 9:50:48about price, do low. If you don't care,
  15072. 9:50:51which might overload your context
  15073. 9:50:52window, put high. I'm just going to keep
  15074. 9:50:54in medium. And we can ask a question.
  15075. 9:50:58People always love the Pop Tart Bowl.
  15076. 9:51:00So, believe that was recently. Who won
  15077. 9:51:03the Pop Tart
  15078. 9:51:06Bowl in 2025? And this is for college
  15079. 9:51:09football. We'll throw this in over here.
  15080. 9:51:12And normally this wouldn't get the
  15081. 9:51:14answer because GPT5 was not trained up
  15082. 9:51:17through data um in December 2025, but
  15083. 9:51:20since we're using this specific tool, it
  15084. 9:51:23says BYU won the 2025 Pop-Tarts Bowl and
  15085. 9:51:26has a link over to CBS Sports. Uh so you
  15086. 9:51:29can click on that and double check that
  15087. 9:51:31piece of information. So that's one way
  15088. 9:51:33if you just want to search the web in
  15089. 9:51:34general. However, there's other things
  15090. 9:51:37as well. So you can actually define a
  15091. 9:51:39domain if you want to search that. So,
  15092. 9:51:41let's say I just want to search ESPN for
  15093. 9:51:43college football scores. You can go to
  15094. 9:51:45ESPN.com and say that's like the only
  15095. 9:51:47one available. But, as I mentioned, you
  15096. 9:51:49could throw in multiple domains if you
  15097. 9:51:51want. Uh, so if there's multiple
  15098. 9:51:53websites you want to scrape to get
  15099. 9:51:54uptoate information, you can put that
  15100. 9:51:55in. So, you can see web search. Uh, you
  15101. 9:51:58can also specify what country. I could
  15102. 9:52:00go over here and say US. You could
  15103. 9:52:03specify what city as well as region. And
  15104. 9:52:05this is good if you want to do research
  15105. 9:52:07on businesses. So maybe you don't want
  15106. 9:52:09to have the specific domain over here,
  15107. 9:52:11but you want to search a business that's
  15108. 9:52:14maybe in Orlando, Florida or Sarasota,
  15109. 9:52:16Florida or Miami, Florida, and you could
  15110. 9:52:18put all this in over here and just
  15111. 9:52:20search for a local business news because
  15112. 9:52:22you want to do some research for a
  15113. 9:52:24potential customer and have stuff to
  15114. 9:52:26bring to a cult. So you could actually
  15115. 9:52:27fill out all this information over here.
  15116. 9:52:30And I find it pretty helpful on that
  15117. 9:52:32side of things. So that is one way that
  15118. 9:52:34you could get up-to-date information.
  15119. 9:52:36Another way that you could do this is
  15120. 9:52:38through a perplexity tool. So you're
  15121. 9:52:40going to actually have to set up a
  15122. 9:52:42perplexity API key. And honestly, it's
  15123. 9:52:44really easy. It says interact with the
  15124. 9:52:45pro complexity API to generate AI
  15125. 9:52:47response with citations. So why
  15126. 9:52:50perplexity is nice is it'll actually
  15127. 9:52:52give you links to real-time information.
  15128. 9:52:55So you can think of this as like a
  15129. 9:52:56mixture of Google search with large
  15130. 9:52:59language model. And it's it's
  15131. 9:53:01phenomenal. So, just to show you, I'm
  15132. 9:53:03going to load up Perplexity on a tab to
  15133. 9:53:06show you what this kind of looks like.
  15134. 9:53:09And uh here you go. So, take a look at
  15135. 9:53:13this. You can ask the same question and
  15136. 9:53:14it'll get answers. So, we're going to
  15137. 9:53:17say like, I don't know, who won the
  15138. 9:53:21Pop-Tarts
  15139. 9:53:24in 2025?
  15140. 9:53:27And you'll see it searches the web and
  15141. 9:53:29literally 10 sources of information. So
  15142. 9:53:32you could attach this as a tool directly
  15143. 9:53:35into our AI agent
  15144. 9:53:38directly in our AI agent over here to
  15145. 9:53:40get real-time information. So it's kind
  15146. 9:53:42of overkill if you use both of these
  15147. 9:53:44over here. So I just recommend one or
  15148. 9:53:46the other. Like if you want to just have
  15149. 9:53:47everything natively directly in the
  15150. 9:53:48OpenAI ecosystem, you know, use this.
  15151. 9:53:51However, if you're going to use another
  15152. 9:53:52model that obviously won't have access
  15153. 9:53:54to the OpenAI responses, I would just
  15154. 9:53:56recommend use perplexity.
  15155. 9:53:58You can obviously message the model. I
  15156. 9:54:00would set a a description of why you're
  15157. 9:54:03using perplexity. The text you can
  15158. 9:54:06define that over here as well. So,
  15159. 9:54:08defined automatically by the model. And
  15160. 9:54:10I would just also mention over here like
  15161. 9:54:13in our where's our system message
  15162. 9:54:17use perplexity
  15163. 9:54:22to research
  15164. 9:54:24any related news
  15165. 9:54:27in 2025.
  15166. 9:54:29Obviously this is very short but I would
  15167. 9:54:31just recommend that you fill out this
  15168. 9:54:32information really go in depth of like
  15169. 9:54:34why should your AI agent use perplexity
  15170. 9:54:37as a tool like give that exact scenario
  15171. 9:54:41now you think it's going to be possible
  15172. 9:54:42and then uh yeah so there's perplexity
  15173. 9:54:45and honestly all you have to do is set
  15174. 9:54:46up the perplexity API takes two seconds
  15175. 9:54:49so I'm going to go over here and say
  15176. 9:54:51perplexity
  15177. 9:54:55and you go to the Perplexity API
  15178. 9:54:57platform obviously they have a lot of
  15179. 9:54:59things over here and you just have to
  15180. 9:55:01set up your API key. You should be very
  15181. 9:55:03familiar with how to set up an API key
  15182. 9:55:05as of now with uh all the stuff I've
  15183. 9:55:07taught you guys. And just to go back
  15184. 9:55:10into any and like if we go into
  15185. 9:55:12Perplexity credentials,
  15186. 9:55:14you can see it's literally just an API
  15187. 9:55:15key. Um couldn't connect with these
  15188. 9:55:17settings. So I actually need to update
  15189. 9:55:19my Perplexity account. I guess I deleted
  15190. 9:55:21my key. Add some time and you know we'll
  15191. 9:55:24have to update that. But regardless, all
  15192. 9:55:25you have to do is throw in an API key
  15193. 9:55:27and you're good to go with perplexity.
  15194. 9:55:29So that is up to date information
  15195. 9:55:33responses perplexity. The other tool
  15196. 9:55:35that people use and I've never used it,
  15197. 9:55:37but it's called Tavi. Um,
  15198. 9:55:40where is it?
  15199. 9:55:42Let me find it really fast.
  15200. 9:55:47Thought it was called Tavi.
  15201. 9:55:50How do I can't find it?
  15202. 9:55:54I don't know why I can't find it right
  15203. 9:55:55now, but I believe it's tavly to get up
  15204. 9:55:56to date information.
  15205. 9:55:58Um, so that's another one over here.
  15206. 9:56:00Maybe it's a custom HTTP request right
  15207. 9:56:02now. Again, I just haven't messed with
  15208. 9:56:04it, but I just wanted to call that out.
  15209. 9:56:06All right. And, uh, going back over
  15210. 9:56:08here. Lastly, just really quickly wanted
  15211. 9:56:11to talk about memory before we jump into
  15212. 9:56:14two or three examples. Memory can be a
  15213. 9:56:16little bit complicated in any end. And
  15214. 9:56:19all I'm specifically talking about
  15215. 9:56:20memory is like the back and forth
  15216. 9:56:22conversation. Uh, so you can see chat
  15217. 9:56:24message received with the AI agent. I'm
  15218. 9:56:26just going to show you simple memory
  15219. 9:56:27really fast. I might actually expand out
  15220. 9:56:30and talk about a little bit more
  15221. 9:56:31complicated memory another time either
  15222. 9:56:34in this course or on the YouTube
  15223. 9:56:35channel. For sure on the YouTube
  15224. 9:56:36channel. Um, but let me clear this out
  15225. 9:56:39and we'll just grab a fresh AI agent. So
  15226. 9:56:43if you want to remember all these past
  15227. 9:56:44conversations with an AI agent, you're
  15228. 9:56:47going to have to set up memory. And if
  15229. 9:56:50you click over here, the quickest way to
  15230. 9:56:52do this is simple memory. So it says
  15231. 9:56:53stores any end memory. No credentials
  15232. 9:56:55are required. You have credentials. You
  15233. 9:56:57would use one of these over here.
  15234. 9:56:59Honestly, the most popular ones that I
  15235. 9:57:00see people use is MongoDB as well as
  15236. 9:57:04Postgress. That does deal with external
  15237. 9:57:06databases though, and it's a little bit
  15238. 9:57:08complicated. So it's not going to be in
  15239. 9:57:10this section. Again, it's probably going
  15240. 9:57:11to be a little bit later on in this
  15241. 9:57:12course or it's just another video. Uh,
  15242. 9:57:14but simple memory allows you to just
  15243. 9:57:16save those conversations back and forth
  15244. 9:57:18over here. And just to show you like if
  15245. 9:57:22I asked the question. So like what is
  15246. 9:57:2630 times 11? Just 3:30. It's quick math.
  15247. 9:57:31You don't need it. But we'll go over
  15248. 9:57:34here and go into Where's my Open AI?
  15249. 9:57:37There. Cool. We have OpenAI.
  15250. 9:57:40go to account one GPT5
  15251. 9:57:43mini
  15252. 9:57:45great and uh we'll just ask this
  15253. 9:57:48question
  15254. 9:57:52and you can see by default we have
  15255. 9:57:54memory of five but
  15256. 9:57:57I'm going to say now I did 20 it's going
  15257. 9:58:01to know that it already said 330 now
  15258. 9:58:04it's going to say 350. So, if you want
  15259. 9:58:06to have a conversation back and forth
  15260. 9:58:08with your chat, you need to add in
  15261. 9:58:10simple memory over there. Man, I know
  15262. 9:58:12this is a long section. I think like
  15263. 9:58:14we're well over an hour and we still
  15264. 9:58:16have to do our two to three examples
  15265. 9:58:18which I'll think about before we uh
  15266. 9:58:21quickly jump into those. But to kind of
  15267. 9:58:23just recap everything that we've done is
  15268. 9:58:26like this is just a a very very long
  15269. 9:58:30section for the course and it's really
  15270. 9:58:33critical that you um memorize these
  15271. 9:58:35components. So not everything in detail
  15272. 9:58:38but kind of just you know where to go.
  15273. 9:58:40So you have two different types of
  15274. 9:58:41prompts. So you have a system prompt as
  15275. 9:58:43well as the user prompt. You can think
  15276. 9:58:44of the system prompt as something that's
  15277. 9:58:45not going to change unless want to tweak
  15278. 9:58:48it and make it a little bit better.
  15279. 9:58:50Whereas the user prompt will change
  15280. 9:58:51every time you run a specific model.
  15281. 9:58:54Once you ask something a little bit
  15282. 9:58:55slightly different. Uh next you want to
  15283. 9:58:58include as in there examples. Examples
  15284. 9:59:01is one way to stop hallucinations. It
  15285. 9:59:03also provides some context on like how
  15286. 9:59:06you are you expecting specific
  15287. 9:59:08responses. If you want to get a specific
  15288. 9:59:10response so that way you can keep
  15289. 9:59:12passing it forward with the
  15290. 9:59:13orchestration that you're building out
  15291. 9:59:15structured output uh parser, you're
  15292. 9:59:17going to have to set up some example
  15293. 9:59:18JSON. But really pairing that with your
  15294. 9:59:21examples that you're going to provide
  15295. 9:59:22with fus comps is going to help a ton uh
  15296. 9:59:25and really stop incorrect results and
  15297. 9:59:28hallucinations.
  15298. 9:59:29You can add in a lot of things. So we
  15299. 9:59:32talked about adding in your main model,
  15300. 9:59:34your fallback model, memory as well as a
  15301. 9:59:36tool and output parser. So, um, you can
  15302. 9:59:39al also have multiple tools, not just
  15303. 9:59:41one, but I just showed that over there.
  15304. 9:59:43Typically, I want to set one task per
  15305. 9:59:45agent. Obviously, it's like
  15306. 9:59:47complimentary tasks. That's perfectly
  15307. 9:59:49fine. But I find a lot of people will
  15308. 9:59:50stuff too many tasks within the context
  15309. 9:59:52window of an AI agent and it gets
  15310. 9:59:54confused or they just send a bunch of
  15311. 9:59:56text. And really, you should build out a
  15312. 9:59:58rag application for that. We'll talk
  15313. 10:00:00about rag a little bit later.
  15314. 10:00:02You can kind of chain together multiple
  15315. 10:00:04agents to get results. So, this was just
  15316. 10:00:07an example of that. Over there, we
  15317. 10:00:09covered hallucinations, which you know,
  15318. 10:00:11hallucination is that know-it-all person
  15319. 10:00:13in class that seems they think they know
  15320. 10:00:15everything and they really don't. And
  15321. 10:00:17hallucinations, you know, they're part
  15322. 10:00:18of the process with AI. You just have to
  15323. 10:00:21be as careful as possible and try to
  15324. 10:00:22limit hallucinations as much as
  15325. 10:00:24possible. I showed you how to write a
  15326. 10:00:27prompt and the framework on it. So,
  15327. 10:00:29first thing I always define is like
  15328. 10:00:30what's the role of the AI agent? If
  15329. 10:00:33we're using any tools, what tools do we
  15330. 10:00:35have available? and why do we want to
  15331. 10:00:37use that tool? How do we handle errors
  15332. 10:00:39within the AI agent as well as those
  15333. 10:00:40external tools that we've provided? What
  15334. 10:00:43tone of response should we have back?
  15335. 10:00:45What rules and restrictions should we
  15336. 10:00:47have in place? Obviously, there's ways
  15337. 10:00:49to restrict outside of the AI agent as
  15338. 10:00:51well, such as guardrails, but you can do
  15339. 10:00:52that directly in over here. Uh shop
  15340. 10:00:55prompting we've covered already so many
  15341. 10:00:56different times. Hopefully, you
  15342. 10:00:57understand that. additional context like
  15343. 10:00:59what other information should this AI
  15344. 10:01:01agent know to get the exact result and
  15345. 10:01:03how do you want to format uh your final
  15346. 10:01:05results as well. So make sure you
  15347. 10:01:07include those when possible and when
  15348. 10:01:09applicable. We covered tools. There's
  15349. 10:01:11hundreds of tools available in a
  15350. 10:01:13thousands if you really include all the
  15351. 10:01:15HTTP requests that you could use for
  15352. 10:01:18external APIs. Be super explicit. Why is
  15353. 10:01:20this tool used and what should it do
  15354. 10:01:23specifically? Make sure you put that in
  15355. 10:01:25the prompt as well as the tool
  15356. 10:01:26description. You can click that star and
  15357. 10:01:29it'll automatically populate things. It
  15358. 10:01:31says defined automatically by the model.
  15359. 10:01:33Um up-to-date information really tavly
  15360. 10:01:36perplexity and open AI responses. Use
  15361. 10:01:38one of those three if you need to get
  15362. 10:01:40information. Remember knowledge cutoff
  15363. 10:01:42dates. A lot of models aren't even
  15364. 10:01:43trained on 2025 data or if they're
  15365. 10:01:45trained like halfway through the year.
  15366. 10:01:46So if you need real-time information or
  15367. 10:01:48near real-time information, you have to
  15368. 10:01:50specifically do that. If you want to
  15369. 10:01:52have messages kind of saved, set up a
  15370. 10:01:54simple memory. And you can change this
  15371. 10:01:56like the context window length. So how
  15372. 10:01:58many pass interaction the model receives
  15373. 10:02:00as context and uh look up the pricing
  15374. 10:02:03for the models. You go to their API
  15375. 10:02:04you'll see all the specs as well like um
  15376. 10:02:07the first part is your input. How many
  15377. 10:02:08what are you sending to the model and
  15378. 10:02:10then what is that specific output and
  15379. 10:02:12typically output is going to be way more
  15380. 10:02:14expensive than your input and every
  15381. 10:02:17model has different limits on how much
  15382. 10:02:19context you can include and we could we
  15383. 10:02:21could really turn this into a three four
  15384. 10:02:22hour video. I'm trying to condense a ton
  15385. 10:02:24of knowledge all at once, but hopefully
  15386. 10:02:26you have found uh this section valuable.
  15387. 10:02:29So, we have two different examples to go
  15388. 10:02:30through in uh this section. Let's start
  15389. 10:02:34with the first one, which is going to
  15390. 10:02:35utilize multiple AI agents together. So,
  15391. 10:02:38essentially what we want to do is have
  15392. 10:02:41agent number one do a content
  15393. 10:02:44summarizer. And there's going to be a
  15394. 10:02:46better way to do this here in the
  15395. 10:02:47future, but we're going to use our AI
  15396. 10:02:49agent now for that. So you can like
  15397. 10:02:52summarize this blog post in three
  15398. 10:02:53points, bullet points of main ideas. And
  15399. 10:02:56then the second agent is going to be a
  15400. 10:02:58social media writer. So you can use
  15401. 10:03:00tweets, you could use LinkedIn post, um,
  15402. 10:03:02whatever social media account that you
  15403. 10:03:04specifically want. Obviously this better
  15404. 10:03:06than what I have over here. And we're
  15405. 10:03:08going to input in agent ones summary. So
  15406. 10:03:12uh, maybe we want to also have an edit
  15407. 10:03:14set for the article. Edit set for the
  15408. 10:03:17article. I want you to try this
  15409. 10:03:19yourself. I think this is pretty
  15410. 10:03:21self-explanatory.
  15411. 10:03:23Um, obviously I'll I'll show you how to
  15412. 10:03:24build it here in a second. So, pause the
  15413. 10:03:26video. Three, two, one. Give it a shot
  15414. 10:03:29for yourself and then uh we'll jump
  15415. 10:03:31right into it. All right. So, let's uh
  15416. 10:03:34build this out. First thing I want to
  15417. 10:03:36make sure that we have is our manual
  15418. 10:03:37trigger. And I just want to make sure I
  15419. 10:03:39didn't use a manual trigger up here. I
  15420. 10:03:41did. So, we're just going to drag this
  15421. 10:03:43down.
  15422. 10:03:45Great. So, we have our manual trigger.
  15423. 10:03:47Going to zoom in a little bit. And the
  15424. 10:03:49first thing I want to do is get our
  15425. 10:03:50response API. So what we're going to
  15426. 10:03:53have to do is set this up in OpenAI
  15427. 10:03:55again. So let's grab an AI agent and
  15428. 10:03:59have that over here. And also we need
  15429. 10:04:01our edit set. So let's grab our edit
  15430. 10:04:04set. We're actually going to paste our
  15431. 10:04:06article over here on that side of
  15432. 10:04:08things. And uh yeah, so we have our edit
  15433. 10:04:12sets. Well, the article I'm going to
  15434. 10:04:14grab on this side is this famous
  15435. 10:04:16cricketer named Morani. It was also like
  15436. 10:04:18a prince or something like that. I
  15437. 10:04:20actually have this as a card. Um, it's
  15438. 10:04:22from like 1902. I didn't even realize
  15439. 10:04:24that there is this was built in 1897,
  15440. 10:04:26which is kind of cool. So, we have that
  15441. 10:04:29over here. We're going to throw that
  15442. 10:04:32into our edit fields and we're going to
  15443. 10:04:34say this is the article we want to
  15444. 10:04:35summarize. Obviously, choose whatever
  15445. 10:04:37article you want. I just felt like
  15446. 10:04:38Wikipedia would be pretty easy to do.
  15447. 10:04:40Uh, so we could just execute the step
  15448. 10:04:42and we have our article. Nothing really
  15449. 10:04:43too crazy there. Then, we're going to
  15450. 10:04:45use our chat model. Let's do OpenAI
  15451. 10:04:48because we're going to use the OpenAI
  15452. 10:04:49responses for this use case. We can see
  15453. 10:04:52responses is available. So add a
  15454. 10:04:54built-in tool. We're going to do web
  15455. 10:04:55search select and we're going to do a
  15456. 10:04:59web search allowed domains. Um we're
  15457. 10:05:00going to actually paste this in over
  15458. 10:05:02here in a second. Um so what we have
  15459. 10:05:05over here is this. We have that attached
  15460. 10:05:07into our AI agent. You can see the
  15461. 10:05:09article and uh what I can do is just
  15462. 10:05:11paste this in right there. Awesome. So
  15463. 10:05:14we have that. Obviously, we want to
  15464. 10:05:16change our model. So, I'm going to go
  15465. 10:05:17into GPT5 Mini. And
  15466. 10:05:22so, now what we're going to do is use
  15467. 10:05:24this terrible prompt. Obviously, we'll
  15468. 10:05:25make this a little bit better.
  15469. 10:05:28And uh we're going to go and change this
  15470. 10:05:31to define below. I'm going to just put
  15471. 10:05:32this article over here again just in
  15472. 10:05:34case. We're going to say article this.
  15473. 10:05:38And then what we're going to do is build
  15474. 10:05:40out our system prompt. So go over here,
  15475. 10:05:43add in a system message,
  15476. 10:05:46and we're going to just write this off
  15477. 10:05:48over here. So let me make this a little
  15478. 10:05:50bit larger
  15479. 10:05:52like that. And we're saying summarize
  15480. 10:05:55this blog post in three points. So we're
  15481. 10:05:58going to start off as you are a
  15482. 10:06:01blog post summarizer.
  15483. 10:06:05The goal is to write
  15484. 10:06:10three key points
  15485. 10:06:14about an article.
  15486. 10:06:17Beise
  15487. 10:06:21or have an escape. If you cannot
  15488. 10:06:25write three key points, write as many as
  15489. 10:06:30possible.
  15490. 10:06:32Right.
  15491. 10:06:35One or two.
  15492. 10:06:39Right. Zero, one or two in
  15493. 10:06:47the other
  15494. 10:06:49points
  15495. 10:06:51state
  15496. 10:06:54no available
  15497. 10:06:57to. All right. So, this is like a very
  15498. 10:07:00basic one.
  15499. 10:07:01It's kind of hard to give an example but
  15500. 10:07:04um without the full article but I'll say
  15501. 10:07:06over here example
  15502. 10:07:10and uh WG Grace
  15503. 10:07:14founded
  15504. 10:07:17Bricket
  15505. 10:07:20in we'll just put an exact date 1860. I
  15506. 10:07:23don't know if that's accurate or not.
  15507. 10:07:25Um,
  15508. 10:07:27Babe Ruth
  15509. 10:07:30was both a pitcher
  15510. 10:07:34and
  15511. 10:07:36hitter.
  15512. 10:07:39Can just throw another one over here as
  15513. 10:07:41an example. Um, but we have those over
  15514. 10:07:44here as two examples.
  15515. 10:07:46So, we have our example side of it. We
  15516. 10:07:49have the task. We're going to add in the
  15517. 10:07:51article as context. Um let's put over
  15518. 10:07:54here the goal to write three coins about
  15519. 10:07:56an article concise the article
  15520. 10:08:02will be passed
  15521. 10:08:04in the user message post
  15522. 10:08:10and going back to our framework
  15523. 10:08:12which we had where was our framework
  15524. 10:08:18I want to say it was like one of these
  15525. 10:08:20up over here
  15526. 10:08:22right ro identity Hey, we covered that.
  15527. 10:08:24What tools? We're not really using any
  15528. 10:08:26tools. We're going to use the responses
  15529. 10:08:28API. We talked about handling errors.
  15530. 10:08:30Didn't really mention tone. We're just
  15531. 10:08:31going to be pretty concise on that side
  15532. 10:08:33of it. Um, we don't really have any
  15533. 10:08:36restrictions on that side of things.
  15534. 10:08:38Maybe we'll say do not include the
  15535. 10:08:40article URL. Maybe we can put that over
  15536. 10:08:42there. I put it some examples.
  15537. 10:08:45It doesn't really need additional
  15538. 10:08:46context. We talked about the format
  15539. 10:08:48being three sentences or three quick
  15540. 10:08:50things. And I'll just put over here
  15541. 10:08:54um one extra thing
  15542. 10:08:58examples
  15543. 10:09:01do not include the article URL
  15544. 10:09:08only output the three key points
  15545. 10:09:13on
  15546. 10:09:15I think that's fine. So let's test this
  15547. 10:09:17out and see what happens.
  15548. 10:09:19And we got a bad request,
  15549. 10:09:23which is interesting. Invalid domain.
  15550. 10:09:26Oh, you know what it is going to be? I
  15551. 10:09:29know exactly what's happening. It's just
  15552. 10:09:30asking for Wikipedia on this side of
  15553. 10:09:33things because we're just searching
  15554. 10:09:35Wikipedia. Um, that's fine. Do
  15555. 10:09:38Wikipedia.
  15556. 10:09:40Let's just go back over here to web
  15557. 10:09:41search allowed domains. And you can see
  15558. 10:09:43it says Wikipedia.org.
  15559. 10:09:45Wikipedia.org.
  15560. 10:09:48I wonder if we could also pass in the
  15561. 10:09:50rangie. That's fine.
  15562. 10:09:53Cool. So, let's test this again. This
  15563. 10:09:55should work.
  15564. 10:09:57I just put extra stuff. I didn't follow
  15565. 10:09:59the instructions.
  15566. 10:10:01All right. So, let's see what our
  15567. 10:10:02results are. And you can see Indian
  15568. 10:10:05cricketer played 15.
  15569. 10:10:07It actually referenced the link. It did
  15570. 10:10:09not listen to me. Oh, that's annoying.
  15571. 10:10:13So, do not include the article URL. I
  15572. 10:10:16did not listen to that.
  15573. 10:10:19Obviously, I can try to fine-tune this
  15574. 10:10:21prompt, but I still think this should be
  15575. 10:10:23able to be used for our next AI agent.
  15576. 10:10:25So, we're just going to skip into that.
  15577. 10:10:28So, what we're going to do is build
  15578. 10:10:29another agent. This is going to be our
  15579. 10:10:31social media writer. So, I'd also re
  15580. 10:10:34label our agents as well. So, this is
  15581. 10:10:36content summarizer. Just get a good
  15582. 10:10:38habit of that. I've haven't been really
  15583. 10:10:40doing that throughout the series, but
  15584. 10:10:42that's fine. Social media writer.
  15585. 10:10:45Cool. And obviously like if I wanted to
  15586. 10:10:47spend more time, I could write this to
  15587. 10:10:48be a better prompt and tweak it so it
  15588. 10:10:50doesn't actually paste out the URL. And
  15589. 10:10:52it could be also a responses API. It
  15590. 10:10:54forces you to have a URL based around
  15591. 10:10:56that. That might be the case. We could
  15592. 10:10:59always scrub it with another node or
  15593. 10:11:02code node. It doesn't really matter too
  15594. 10:11:03much. So I'm going to just lally keep
  15595. 10:11:06this over here like this. Again,
  15596. 10:11:09terrible prompt, but we'll change this
  15597. 10:11:13up a little bit.
  15598. 10:11:17We'll have to give some examples.
  15599. 10:11:21I'm going to keep the do not include
  15600. 10:11:22this.
  15601. 10:11:24I'll put the three
  15602. 10:11:27tweets. We're going to split this up in
  15603. 10:11:30a second. All right. So
  15604. 10:11:36you are a
  15605. 10:11:40Twitterx
  15606. 10:11:43tweet
  15607. 10:11:46creator. Take these three key points and
  15608. 10:11:48write three engaging tweets. Use emojis
  15609. 10:11:50and hashtags. Example. And let's
  15610. 10:11:57put an example over here. Now I'm not
  15611. 10:12:00the best at Twitter. I don't have a
  15612. 10:12:02large following. So obviously I haven't
  15613. 10:12:03figured out the platform. We'll just
  15614. 10:12:05give an example.
  15615. 10:12:07Dr.
  15616. 10:12:09WG Grace
  15617. 10:12:12founded
  15618. 10:12:14cricket. Do you know his amazing
  15619. 10:12:19backstory?
  15620. 10:12:23Read more. I don't know. We can do
  15621. 10:12:25something like that. And then we could
  15622. 10:12:27have another one over here.
  15623. 10:12:30Most people know
  15624. 10:12:34Babe Ruth
  15625. 10:12:36as a hitter, but he was an excellent
  15626. 10:12:42pitcher.
  15627. 10:12:45Let's look at his unknown
  15628. 10:12:50pitching
  15629. 10:12:52career.
  15630. 10:12:53Again, these are probably pretty poor,
  15631. 10:12:55but you get the point. Put some examples
  15632. 10:12:57over here. role additional information
  15633. 10:13:00we have some examples do not include the
  15634. 10:13:02article URL I'll put the three tweets
  15635. 10:13:05and uh let's find over here
  15636. 10:13:09and we should say like separate these
  15637. 10:13:11tweets
  15638. 10:13:12these tweets
  15639. 10:13:17oh you know what we need to do we need
  15640. 10:13:20to um actually put an output parser over
  15641. 10:13:23here so the reason why I want to put
  15642. 10:13:25output parser oh this is actually really
  15643. 10:13:28All right, cool. Cool. So, check this
  15644. 10:13:30out. What we're going to do
  15645. 10:13:34is something like this.
  15646. 10:13:37It probably won't make sense to you
  15647. 10:13:39right away.
  15648. 10:13:45And if you are paying attention, maybe
  15649. 10:13:47it will.
  15650. 10:13:49Not to discredit people who aren't
  15651. 10:13:51paying attention because this is a
  15652. 10:13:52little abstract.
  15653. 10:13:54I don't even know if it'll work
  15654. 10:13:55correctly. I think it will. All
  15655. 10:13:58right.
  15656. 10:14:03Go
  15657. 10:14:05put over here
  15658. 10:14:07and say key points.
  15659. 10:14:11Pass that in the output over here. Cool.
  15660. 10:14:15I hope this works. Also, I need to pin
  15661. 10:14:17this data because I don't want to run
  15662. 10:14:18that again. All right. So, let's see if
  15663. 10:14:21this works. I'm really hoping it works
  15664. 10:14:2450/50. I might have to rework the prompt
  15665. 10:14:26a little bit. [snorts]
  15666. 10:14:28Honestly, a lot of the time spent on
  15667. 10:14:31builds is kind of reworking the prompt
  15668. 10:14:33to be honest with you because there's
  15669. 10:14:34always so many nuances based off of what
  15670. 10:14:37a customer wants and what their expected
  15671. 10:14:39output is. So, you have to like
  15672. 10:14:41constantly fine-tune it. Oh, it did
  15673. 10:14:43work. Awesome. Awesome. Awesome. Check
  15674. 10:14:46that out. Yes. All right. So, all right.
  15675. 10:14:48Here's the deal. Why I included it like
  15676. 10:14:51this? Essentially, what I want is an
  15677. 10:14:53array of tweets because we can break
  15678. 10:14:55this out. We can now have each of these
  15679. 10:14:57become an item afterwards. So, I just
  15680. 10:14:59said tweets, tweet one, tweet two, tweet
  15681. 10:15:01three. And what we can do now, if we go
  15682. 10:15:04into our nodes, and I believe it's under
  15683. 10:15:06data transformations.
  15684. 10:15:08Yeah, split out. So, check this out. We
  15685. 10:15:12haven't used split out in a while. Oh,
  15686. 10:15:14this is perfect. This is perfect. Let me
  15687. 10:15:16pin this data as well.
  15688. 10:15:18Sweet, sweet, sweet, sweet.
  15689. 10:15:23Yeah, there we go. Okay, so we have our
  15690. 10:15:26initial article over here. We tell our
  15691. 10:15:29content summarizer to read our article
  15692. 10:15:31and uh specifically give us three key
  15693. 10:15:33points. Obviously, I'm just using
  15694. 10:15:34Wikipedia for this example. You could
  15695. 10:15:36change this up. Then what we do is we
  15696. 10:15:39create the tweets. Obviously, I would
  15697. 10:15:40want to have some type of winning tweet
  15698. 10:15:41on the platform and really build out a
  15699. 10:15:44thorough system message. This is like a
  15700. 10:15:46very mediocre like a C minus system
  15701. 10:15:48message. So, and then I essentially put
  15702. 10:15:51a structured output format or structured
  15703. 10:15:53output parser over here. So, that way we
  15704. 10:15:55have an array of different tweets which
  15705. 10:15:57makes it really easy for us to split
  15706. 10:15:59this out. As you can see over here, all
  15707. 10:16:01I did is pass in tweets. And now we have
  15708. 10:16:03three things. So, the first one, Rangi,
  15709. 10:16:05an Indian prince who played 15 tests for
  15710. 10:16:07England and later ruled I'm not going to
  15711. 10:16:09try pronouncing this. Um, rain from 1907
  15712. 10:16:12to 1933. From royal palaces to cricket
  15713. 10:16:14pitches, his life reads like a novel. I
  15714. 10:16:16actually kind of like that. Over here we
  15715. 10:16:18have some hashtags as well which we can
  15716. 10:16:19define like hey do we want hashtags or
  15717. 10:16:21not that can go all go in the system
  15718. 10:16:22prompts
  15719. 10:16:25batting the daring back foot play and
  15720. 10:16:26popularized maybe even invented the
  15721. 10:16:28silly leg lands a first class average of
  15722. 10:16:3056.37
  15723. 10:16:32says it all and then it says his legacy
  15724. 10:16:34complex the rangy trophy carries his
  15725. 10:16:36name yet he was criticized for not
  15726. 10:16:37promoting cricket in India and his
  15727. 10:16:39secession to again I'm not going to
  15728. 10:16:41pronounce that sparked controversy so we
  15729. 10:16:44have that over there and boom we
  15730. 10:16:46essentially split this out. And what's
  15731. 10:16:48nice is we can essentially go into
  15732. 10:16:49sheets if we really wanted to. I'm not
  15733. 10:16:51going to do it just to save some time,
  15734. 10:16:53but we can go into sheets and upload
  15735. 10:16:55each item individually as tweets or
  15736. 10:16:57however you want to schedule these on
  15737. 10:16:59social media. So, that's pretty awesome.
  15738. 10:17:01We have emojis in here. We have
  15739. 10:17:03hashtags. We have this over here as
  15740. 10:17:05well. And again, I would just recommend
  15741. 10:17:08for the social media side of things
  15742. 10:17:10really build out a prompt a little bit
  15743. 10:17:14more complicated than this. I would take
  15744. 10:17:16a look at what works in the platform and
  15745. 10:17:18try to emulate that specifically into
  15746. 10:17:21the system message. So that way it can
  15747. 10:17:22give you those specific results. Like I
  15748. 10:17:24would mention what is considered a good
  15749. 10:17:26hook. Give some examples of that. How
  15750. 10:17:28many characters you want in your tweet
  15751. 10:17:31spacing like really build this out and
  15752. 10:17:34this is something I'm going to be doing
  15753. 10:17:35in the future probably for repurposing
  15754. 10:17:38my content because I I'll be honest my
  15755. 10:17:39Twitter kind of sucks and I need to
  15756. 10:17:41research the platform. So I'll really
  15757. 10:17:43build something in depth based around
  15758. 10:17:44that. Like instead of this content
  15759. 10:17:46summarizer, I'll have something with a
  15760. 10:17:47YouTube video and then the social media
  15761. 10:17:49writer for each platform because there's
  15762. 10:17:50things that work on Twitter that might
  15763. 10:17:52not work on LinkedIn.
  15764. 10:17:54That is essentially it for our first
  15765. 10:17:56one. Let's take a look at our second
  15766. 10:17:58example now. All right. So, our second
  15767. 10:18:01example, it's going to be a little bit
  15768. 10:18:03more complicated.
  15769. 10:18:05And this is actually going to involve an
  15770. 10:18:07API as well. be honest with you, I have
  15771. 10:18:10not taken a look at this API, so I have
  15772. 10:18:12no idea if it's a complicated API or
  15773. 10:18:14not. We're going to go through it
  15774. 10:18:16together. So, essentially what we're
  15775. 10:18:18going to do over here is we're going to
  15776. 10:18:20do a comparison. So, like we input
  15777. 10:18:22compare iPhone 17 to Samsung S25. These
  15778. 10:18:26are newer phone models. I assume models
  15779. 10:18:28don't have that information. We're going
  15780. 10:18:30to use Perplexity this time to search
  15781. 10:18:32for uh news for iPhone 17. We're going
  15782. 10:18:35to use another side of Perplexity to
  15783. 10:18:37search for the Samsung S25.
  15784. 10:18:40Then we're going to use an HTTP request
  15785. 10:18:41to fetch prices from Best Buy's API.
  15786. 10:18:45We're going to use all three of these
  15787. 10:18:46and use another AI agent. I know it says
  15788. 10:18:50open AAI chat model, but it's fine. And
  15789. 10:18:52then we have all this context from
  15790. 10:18:54Perplexity on those to open AI results.
  15791. 10:18:57And then we'll just write a summary. So
  15792. 10:19:00again, if you guys want to give it a
  15793. 10:19:01shot first, this is the API by the way,
  15794. 10:19:04developer.b best buy.com. I found it for
  15795. 10:19:07here.
  15796. 10:19:09And you can see there's documentation as
  15797. 10:19:11well.
  15798. 10:19:13And we're just going to fall through.
  15799. 10:19:15This could be like a super fast
  15800. 10:19:18example or this is going to be something
  15801. 10:19:21that bites me back and uh it might take
  15802. 10:19:24a while to figure out and might make
  15803. 10:19:26some errors. But either way, I thought
  15804. 10:19:27this would be kind of cool to go
  15805. 10:19:28through. So feel free to try this out
  15806. 10:19:30for yourself to change the products if
  15807. 10:19:32you want and I will work on the solution
  15808. 10:19:35here shortly. All right, let's get
  15809. 10:19:37going. So I know I put manual trigger
  15810. 10:19:40over here. We could start with that or
  15811. 10:19:41we could do a form and just put in each
  15812. 10:19:43of these. So um let's do the manual
  15813. 10:19:47trigger or first and we're going to go
  15814. 10:19:49manual trigger
  15815. 10:19:53and actually we have already manual
  15816. 10:19:55trigger above. So we are off to a great
  15817. 10:19:57start. All right. Then we're going to do
  15818. 10:19:59just an edit set.
  15819. 10:20:02Obviously, you could do a chat trigger
  15820. 10:20:03for this, but I'm just going to go edit
  15821. 10:20:05set for this route.
  15822. 10:20:07And we're going to do a manual mapping.
  15823. 10:20:09And we're going to just call this
  15824. 10:20:11compare.
  15825. 10:20:14And we'll use the same exact string over
  15826. 10:20:16here.
  15827. 10:20:18iPhone 17 to Samsung S25.
  15828. 10:20:22So, we'll use that. Then, what I want to
  15829. 10:20:25do is build out an AI agent. So, we're
  15830. 10:20:27going to say AI agent like this. This is
  15831. 10:20:30a pretty easy one. We're not really
  15832. 10:20:31going to have to do much with this AI
  15833. 10:20:34agent. I'm just going to pin this data.
  15834. 10:20:36Oops. To
  15835. 10:20:39and pin it. Cool. So, all we're doing on
  15836. 10:20:43this, we should use a very cheap model
  15837. 10:20:45because this task is simple. All we're
  15838. 10:20:47doing is asking to extract the two
  15839. 10:20:50products. So, we're going to also put
  15840. 10:20:53structured output formats. Let's go
  15841. 10:20:56output parser. Great. And uh we'll say
  15842. 10:21:01products.
  15843. 10:21:07Product one.
  15844. 10:21:11We'll put product two. Next.
  15845. 10:21:14Two. We need to have that double quotes.
  15846. 10:21:18Great. So, we're in a good start.
  15847. 10:21:21We're going to use OpenAI. Okay, we're
  15848. 10:21:23going to use the cheapest model, GPT5
  15849. 10:21:25Nano. Uh, I'm sure there's cheaper
  15850. 10:21:28models out there. Well, there is, but
  15851. 10:21:30I'm going to use US cheapest
  15852. 10:21:34that side of things. Cool. Turn off
  15853. 10:21:36responses. We don't need that. Go to our
  15854. 10:21:38agent. All I want to say on here is for
  15855. 10:21:41our prompts,
  15856. 10:21:44add option system prompt. or you are an
  15857. 10:21:47AI agent
  15858. 10:21:50that takes
  15859. 10:21:53the comparison text
  15860. 10:21:57which I misspelled comparison that's all
  15861. 10:21:59right and extracts
  15862. 10:22:04the two products
  15863. 10:22:08can say example
  15864. 10:22:11tops
  15865. 10:22:14versus panini
  15866. 10:22:18Um, we'll say Yankees or Red Sox.
  15867. 10:22:26And I should just say for and not. Man,
  15868. 10:22:28look at that spelling. Terrible. All
  15869. 10:22:31right. So, we have both these. We'll say
  15870. 10:22:33user for these. User
  15871. 10:22:37is what we're trying to do is just give
  15872. 10:22:39a few examples. We'll say AI.
  15873. 10:22:43Right.
  15874. 10:22:54But
  15875. 10:22:58just literally giving the example what
  15876. 10:23:01it should be.
  15877. 10:23:03This is pretty self-explanatory.
  15878. 10:23:06Simple prompt. So all we should get is
  15879. 10:23:08iPhone 17 and Samsung S25.
  15880. 10:23:13Hopefully that works.
  15881. 10:23:17Cool. It works. You can see over here we
  15882. 10:23:20products. Great. Next thing what we need
  15883. 10:23:22to do is split this apart.
  15884. 10:23:25So
  15885. 10:23:27do essentially what we covered over here
  15886. 10:23:29with the split out.
  15887. 10:23:32Paste that there.
  15888. 10:23:35Lot of action today with the split out.
  15889. 10:23:37Not on purpose by any means like that.
  15890. 10:23:39Um, we're going to pin this also just to
  15891. 10:23:41save some costs. Not that we need it.
  15892. 10:23:45Then we're just going to go the
  15893. 10:23:46products. We should have two products.
  15894. 10:23:49Great. We have both of those.
  15895. 10:23:52And uh, actually, I'm trying to think.
  15896. 10:23:56Should we
  15897. 10:23:58Maybe we don't need to split these out.
  15898. 10:24:05Hold on.
  15899. 10:24:07We might actually need to split these
  15900. 10:24:08out. I'm I'm just thinking about this
  15901. 10:24:10architecture really quick or we might
  15902. 10:24:12need to for the best by API. I'm going
  15903. 10:24:14to save this really quick over here. I
  15904. 10:24:16don't know if we need to
  15905. 10:24:19let me think of this. All right, this is
  15906. 10:24:21on the fly thinking. So, we need to do a
  15907. 10:24:23perplexity node.
  15908. 10:24:26Perplexity
  15909. 10:24:28run message a model. Obviously, we could
  15910. 10:24:31use this in AI agent. I just wanted to
  15911. 10:24:32change things up.
  15912. 10:24:39All right. So then we're going to do I
  15913. 10:24:41think this is my Perplexity account.
  15914. 10:24:43Maybe it's not. Maybe it's this one.
  15915. 10:24:45We're going to go over here. Let me
  15916. 10:24:46text. So let me just click this.
  15917. 10:24:50Couldn't connect. It's Plexity 2.
  15918. 10:24:57All right. I think it's Perplexity 2.
  15919. 10:24:58That's my actual account. All right.
  15920. 10:25:00We're going to say based on the product
  15921. 10:25:06and we're going to feed in a product
  15922. 10:25:08over here.
  15923. 10:25:13Search for its specs and latest reviews.
  15924. 10:25:17Based on the product
  15925. 10:25:19and say search for specs.
  15926. 10:25:27Okay. So,
  15927. 10:25:29we're going to have a product that goes
  15928. 10:25:31through here.
  15929. 10:25:32Right now, if I build it like this,
  15930. 10:25:36each product goes individually one at a
  15931. 10:25:38time into this, which I think it's
  15932. 10:25:40probably the route we want to take.
  15933. 10:25:44Yeah. Yeah. What we're going to do is
  15934. 10:25:45we're going to we're going to split this
  15935. 10:25:47out and then we're going to put
  15936. 10:25:48everything. That's what I'm kind of
  15937. 10:25:50thinking right now. So, we were split
  15938. 10:25:52out. This is fine. Then what we're going
  15939. 10:25:55to do is go into perplexity based on the
  15940. 10:25:57product. We're going to put this product
  15941. 10:25:58over here.
  15942. 10:26:03This gets us our newest information.
  15943. 10:26:06Um obviously like we can make this way
  15944. 10:26:08better as well. Can add an options over
  15945. 10:26:12here.
  15946. 10:26:14I think this is fine. Let's just see
  15947. 10:26:16what the results are look like.
  15948. 10:26:21Search at specs and latest reviews.
  15949. 10:26:24Yeah, that's fine
  15950. 10:26:29because we're going to need the best by
  15951. 10:26:30API still. And I think what we're going
  15952. 10:26:32to do is probably split this apart. So,
  15953. 10:26:34we have two items. We have citations
  15954. 10:26:37over here. Search result choices.
  15955. 10:26:42Have a lot of text. Cool. All right.
  15956. 10:26:44This should be fine.
  15957. 10:26:47So, this is probably where the best by
  15958. 10:26:50API is going to go. I'm gonna say like
  15959. 10:26:52best by API.
  15960. 10:26:54Both of these
  15961. 10:26:57best buy API goes here. We should
  15962. 10:27:00probably solve that. I'm going to say
  15963. 10:27:02it's a HTTP request
  15964. 10:27:06again. I've never looked at the head
  15965. 10:27:07best by API. So I have no idea what in
  15966. 10:27:10stores for us. We're going to have to
  15967. 10:27:12merge after that because we're doing
  15968. 10:27:14perplexity
  15969. 10:27:18and then HTTP request specify API. Then
  15970. 10:27:21we're going to have another agent that
  15971. 10:27:23essentially takes everything. Also, you
  15972. 10:27:24don't need an agent here. You could use
  15973. 10:27:26a basic LM chain, but we haven't really
  15974. 10:27:28covered that yet. Cover it a little bit
  15975. 10:27:30later. All right. I need to have another
  15976. 10:27:33AI agent after we do a merge.
  15977. 10:27:37So, we're going to have this AI agent
  15978. 10:27:38over here. We're going to have a merge.
  15979. 10:27:41Also, since we're going to be doing a
  15980. 10:27:43summary on this side of things, I would
  15981. 10:27:44probably recommend to use a little bit
  15982. 10:27:47of a better model that side of things,
  15983. 10:27:51but uh we'll cover that here in a
  15984. 10:27:53second. All right, let's take a look at
  15985. 10:27:55Best Buy. So, we have all the
  15986. 10:27:57documentation over here. We should
  15987. 10:27:59probably get an API key and look at the
  15988. 10:28:01documentation. So, I wonder where we
  15989. 10:28:04have like pricing, things like that.
  15990. 10:28:10All right, there's pageionation as well.
  15991. 10:28:13A lot going on.
  15992. 10:28:17I think the first thing we should do is
  15993. 10:28:18sign up. Hopefully, it's a fast API to
  15994. 10:28:21sign up for. It's not uh
  15995. 10:28:24garbage. I wouldn't say garbage, but you
  15996. 10:28:26know what I mean. Um, okay. So,
  15997. 10:28:30only returns SQ name and price for the
  15998. 10:28:33products. All right. Well, we we'll go
  15999. 10:28:35through the documentation. Let's
  16000. 10:28:36actually sign up for this really fast.
  16001. 10:28:43I need to create an account.
  16002. 10:28:47All right, let me do this. We're going
  16003. 10:28:49to just cut this out. Then I got this
  16004. 10:28:52email just to verify my email
  16005. 10:28:57and apparently it doesn't work. We're
  16006. 10:28:58going to try it again.
  16007. 10:29:02Okay, apparently this link does not work
  16008. 10:29:05from Best Buy.
  16009. 10:29:07Let me see if I can go to my dashboard.
  16010. 10:29:10Free email and edge is not allowed at
  16011. 10:29:12this time.
  16012. 10:29:16Well,
  16013. 10:29:18I could use my actual email for my
  16014. 10:29:21website. However, the problem is not all
  16015. 10:29:25of you guys are going to be able to get
  16016. 10:29:27access to this API.
  16017. 10:29:29So,
  16018. 10:29:31I wonder if like another website has
  16019. 10:29:37we could use. I apologize because
  16020. 10:29:40essentially what I was going to try to
  16021. 10:29:42do and maybe we can just mock this up. I
  16022. 10:29:45was trying to get us to use an API to
  16023. 10:29:48get real-time prices.
  16024. 10:29:50So, maybe let me let's ask Claude really
  16025. 10:29:53quick. I'm going to put Claude in
  16026. 10:29:54another screen. I know this is a little
  16027. 10:29:56bit off and some of you guys might not
  16028. 10:30:00like this, but you know what? It's okay.
  16029. 10:30:04We're going to try to go through this.
  16030. 10:30:08Cool. I'm literally just going to say
  16031. 10:30:10I'm trying to use the Best Buy API to
  16032. 10:30:13use the Best Buy API to compare prices
  16033. 10:30:19of phones.
  16034. 10:30:21However, it doesn't allow free email
  16035. 10:30:26addresses.
  16036. 10:30:31Are there any alternative sites
  16037. 10:30:40we use
  16038. 10:30:42that will allow
  16039. 10:30:44for this?
  16040. 10:30:47And why I'm doing that, just to show you
  16041. 10:30:49guys like what happens if I have a
  16042. 10:30:50problem. Maybe a customer said I should
  16043. 10:30:52use the Best Buy API and they can't
  16044. 10:30:54access it as well. So do some research.
  16045. 10:30:56I'm using Claude here. Obviously, I
  16046. 10:30:58could use Perplexity, but I feel like
  16047. 10:31:01this might help. All right, so it says
  16048. 10:31:04fake store. No, I don't want that. Dummy
  16049. 10:31:06JSON
  16050. 10:31:08potential. We could use Amazon. It says
  16051. 10:31:10use web scraping.
  16052. 10:31:13And uh man, that's that's really
  16053. 10:31:16annoying. I mean, I can do web scraping
  16054. 10:31:18as well. Did we cover web scraping? I
  16055. 10:31:21just want to double check. I think web
  16056. 10:31:23scraping was last section. I'm recording
  16057. 10:31:25these a little bit out of order. We
  16058. 10:31:27could use web scraping. Um
  16059. 10:31:33will fire crawl allow me to web scrape
  16060. 10:31:36by?
  16061. 10:31:38It might.
  16062. 10:31:40We could try it.
  16063. 10:31:42They have a native node.
  16064. 10:31:46So,
  16065. 10:31:48we could extract from a page.
  16066. 10:31:53And I know for you guys, you're like,
  16067. 10:31:54"Oh, you explained it last lesson, but
  16068. 10:31:56I'm literally recording this section 16
  16069. 10:31:58before our web scripping one." So,
  16070. 10:32:01should be able to extract data. I don't
  16071. 10:32:03use firecrawl every single day.
  16072. 10:32:06URLs. All right. I have an idea. Yeah.
  16073. 10:32:10Let's see if this works.
  16074. 10:32:13So, we're going to look for Best Buy
  16075. 10:32:15iPhone or Best Buy.
  16076. 10:32:19What was the model? S25
  16077. 10:32:23Galaxy
  16078. 10:32:25S25.
  16079. 10:32:26Best Buy. We might actually change this
  16080. 10:32:29up a little bit, but
  16081. 10:32:32let's see
  16082. 10:32:35what it has over here. I will grab one
  16083. 10:32:37of these. Um,
  16084. 10:32:39all right. We'll grab this.
  16085. 10:32:42I think this is like a standard model.
  16086. 10:32:46I'm very curious if
  16087. 10:32:48Fire Call will get this or not. Let's
  16088. 10:32:51just test it out. So, let's say we have
  16089. 10:32:54to figure out how to get these product
  16090. 10:32:56URLs still.
  16091. 10:32:58And um,
  16092. 10:33:02let me just double check I'm in here as
  16093. 10:33:04well. Connection tested is successfully.
  16094. 10:33:06This is going to extract our data.
  16095. 10:33:07There's different operations as well.
  16096. 10:33:09Just double check. Have a website. You
  16097. 10:33:11get URLs. Scrape a URL and get its
  16098. 10:33:12content. We should probably just scrape
  16099. 10:33:14instead. So, here's the URL because we
  16100. 10:33:17can always clean this up after. Um,
  16101. 10:33:20crawl website. We're not going to use
  16102. 10:33:21that. List of crawlers. Again, all this
  16103. 10:33:23will be covered in uh the previous
  16104. 10:33:26video. Extract data. We might use
  16105. 10:33:28extract data there, too. Let's uh scrape
  16106. 10:33:30first and see if this is actually even
  16107. 10:33:32possible. We scraped it. And you can see
  16108. 10:33:34we have a value over here as well as
  16109. 10:33:36this price.
  16110. 10:33:38So that's the scraping example.
  16111. 10:33:42Fortunately, the best buy API did not
  16112. 10:33:44work. Let's see the other one if we can
  16113. 10:33:47try the other URL.
  16114. 10:33:49Instead of scrape, we're going to
  16115. 10:33:50extract data.
  16116. 10:33:53We're going to add in that URL
  16117. 10:33:56prompt. I will just say extract
  16118. 10:34:00the final price of the phone.
  16119. 10:34:04All right. And then
  16120. 10:34:07property, we should put like price.
  16121. 10:34:11So we'll just say price like that.
  16122. 10:34:15That's all we care about. Let's see if
  16123. 10:34:17we can get
  16124. 10:34:20No.
  16125. 10:34:21Oh, the URL is off. I don't know why
  16126. 10:34:23that was off there. That's kind of
  16127. 10:34:25weird. All
  16128. 10:34:27right, let's try it again.
  16129. 10:34:32Check your parameters
  16130. 10:34:36having something else. We have the URL
  16131. 10:34:39there. It looks correct.
  16132. 10:34:43Extract the price of the phone
  16133. 10:34:46schema. Define the structure of the
  16134. 10:34:48extract data. I mean, that's
  16135. 10:34:50really all we need.
  16136. 10:35:01I mean, I think this should be fine. We
  16137. 10:35:03might just use the scrape of the URL. I
  16138. 10:35:05mean, we'll test this one more time.
  16139. 10:35:08We're going to have 400 code. Obviously,
  16140. 10:35:10something's wrong on my side.
  16141. 10:35:13That's fine. This uh
  16142. 10:35:17we can feel free to test this out, but
  16143. 10:35:20this will essentially do that. So now I
  16144. 10:35:23need to think this through. It's like
  16145. 10:35:24okay, we have
  16146. 10:35:27we have this information.
  16147. 10:35:29Now I need to get the URLs. So how do I
  16148. 10:35:32get the URLs now? So that way I can pass
  16149. 10:35:35it in. And if I test this again, like I
  16150. 10:35:38just want to pin this. Can I from this
  16151. 10:35:40markdown? Can I get the actual final
  16152. 10:35:42price? So what I want to test as well is
  16153. 10:35:46that we're going to use another cheap AI
  16154. 10:35:48agent over here. pass that over here
  16155. 10:35:51like that
  16156. 10:35:53and we're going to test. So let's
  16157. 10:35:57try it out. So what I'm going to do is
  16158. 10:36:00pass this in here. We're going to pass
  16159. 10:36:03in this markdown. That's the only thing
  16160. 10:36:04we care about right now. Now I'm just
  16161. 10:36:07going to say based on the markdown can
  16162. 10:36:08you provide the final price
  16163. 10:36:12based
  16164. 10:36:14on the markdown
  16165. 10:36:17in the user message. Can you extract
  16166. 10:36:23final price? All right, let's test this
  16167. 10:36:25out.
  16168. 10:36:27We need to
  16169. 10:36:30change this up. And we'll say price.
  16170. 10:36:35And what we're going to do is just put
  16171. 10:36:37something over here like 500
  16172. 10:36:4364.
  16173. 10:36:46Let's see if that works. All right,
  16174. 10:36:48let's test this out. We're going to
  16175. 10:36:50unpin it.
  16176. 10:36:58again. I wish we could have used the
  16177. 10:36:59API. Look at that. $8.99.
  16178. 10:37:03Sweet. Okay, so
  16179. 10:37:06that's fine. We don't need the API. We
  16180. 10:37:10used fire call. We extracted it out. So
  16181. 10:37:12now we need to think about like, all
  16182. 10:37:14right, how how do we get these URLs?
  16183. 10:37:17Like because I don't want to manually
  16184. 10:37:19get these URLs. So we get our AI agent
  16185. 10:37:22over here.
  16186. 10:37:23Great. Then we message a model
  16187. 10:37:27perplexity.
  16188. 10:37:28I'm just wondering now it's like okay
  16189. 10:37:31and there's a lot of different ways we
  16190. 10:37:33could find this price.
  16191. 10:37:36I'm just trying to think like what would
  16192. 10:37:38be the easiest. So
  16193. 10:37:41I know fire crawl has other nodes as
  16194. 10:37:43well. I'm wondering if we go fire crawl
  16195. 10:37:46again and search something for a site.
  16196. 10:37:48They might have that. Search and
  16197. 10:37:50optionally scrape each search result.
  16198. 10:37:52That actually might be it.
  16199. 10:37:55Map a website and get URLs. There's too
  16200. 10:37:57many URLs on Best Buy for that.
  16201. 10:38:00Oh, a website. Might be able to do that.
  16202. 10:38:02Like crawl the site and then get the
  16203. 10:38:04URLs there. But I feel like there'd be a
  16204. 10:38:06more efficient way.
  16205. 10:38:10Cancel a crawl job,
  16206. 10:38:12extract data. I feel like Perplexity
  16207. 10:38:14would be really good at just finding the
  16208. 10:38:17URL.
  16209. 10:38:19So, let's try that.
  16210. 10:38:23So, this we might want to change as well
  16211. 10:38:25based on the product searched specs and
  16212. 10:38:26latest reviews. We might try this again
  16213. 10:38:28on the other side. So, I'm going to say
  16214. 10:38:32and we're going to try this out. And
  16215. 10:38:33again, I don't know if it's going to
  16216. 10:38:34work yet or not. based on the product.
  16217. 10:38:39Find
  16218. 10:38:42on Best Buy that is not out of a stock.
  16219. 10:38:48All right,
  16220. 10:38:50this might work. And maybe we might have
  16221. 10:38:53to put an AI agent here instead of just
  16222. 10:38:54this perplexity node. I'm going to say
  16223. 10:38:58only return the URL.
  16224. 10:39:02So thinking through this, we're going to
  16225. 10:39:04have the product here. I'm asking it to
  16226. 10:39:06find it on Best Buy. It's it's like a
  16227. 10:39:08web search and then I'm saying to only
  16228. 10:39:10return the URL.
  16229. 10:39:13Simplify output rather only return
  16230. 10:39:15essential fields, ID, citations,
  16231. 10:39:16message. Let's simplify that out. Add
  16232. 10:39:19options.
  16233. 10:39:22Search domain filter.
  16234. 10:39:27Ooh, this is good.
  16235. 10:39:29So, we can only search Best Buy. We
  16236. 10:39:31might as well throw that in.
  16237. 10:39:35So, we throw that there.
  16238. 10:39:37That might not work. But
  16239. 10:39:41search recency filter.
  16240. 10:39:43Yeah, it should be the last month.
  16241. 10:39:48Output randomness. We don't need the
  16242. 10:39:49temperature using sonar. Let's try this
  16243. 10:39:53again. And we might have to actually use
  16244. 10:39:55an AI agent.
  16245. 10:39:57But
  16246. 10:40:00we have the iPhone 17 here.
  16247. 10:40:03Does this work?
  16248. 10:40:08We need to get the actual product page
  16249. 10:40:10though.
  16250. 10:40:15That did not work
  16251. 10:40:18for that one. And then
  16252. 10:40:23I mean, it's close. It's close, right?
  16253. 10:40:26But this isn't the exact piece of
  16254. 10:40:29information I want.
  16255. 10:40:32And I need to prompt this better. So,
  16256. 10:40:34and I need to prompt this better. So, we
  16257. 10:40:36said based on the product, find one euro
  16258. 10:40:38on Best Buy that is not out of stock.
  16259. 10:40:40The URL
  16260. 10:40:44should be that of where I could I can
  16261. 10:40:48purchase the phone and not show a phone
  16262. 10:40:54plan. For example,
  16263. 10:40:58buying an iPhone
  16264. 10:41:04for $1,000. I don't know. We're just
  16265. 10:41:08gonna try this and see if that works.
  16266. 10:41:10Probably not the best, but we'll test it
  16267. 10:41:12out.
  16268. 10:41:14All right, so we have another two URLs.
  16269. 10:41:17Let's see what happened this time.
  16270. 10:41:19That link, it does not work.
  16271. 10:41:24See this link?
  16272. 10:41:27Okay, that does work. We should also
  16273. 10:41:30mention these are base models or
  16274. 10:41:32something like that. Or maybe we need to
  16275. 10:41:33look at unlocked version. I think that
  16276. 10:41:35might be the best approach. All right.
  16277. 10:41:36So, find one URL on Best Buy that is not
  16278. 10:41:39out of stock. The URL should be that of
  16279. 10:41:43an unlocked
  16280. 10:41:46version of the phone. And obviously,
  16281. 10:41:49this is going back into, you know,
  16282. 10:41:51you're fine-tuning this for a specific
  16283. 10:41:53domain. Maybe we're doing phone
  16284. 10:41:54searches. So, based on the provide one
  16285. 10:41:56URL, Best Buy does not should be that of
  16286. 10:41:58an unlocked version of the phone.
  16287. 10:42:01It should have a price to purchase it at
  16288. 10:42:08and is the base model only return the
  16289. 10:42:13All right, let's try this again.
  16290. 10:42:16At least you guys get to see some prompt
  16291. 10:42:18engineering. All right, so it says no
  16292. 10:42:20matching indicate iPhone unlocked
  16293. 10:42:22models. There are carrier locked. Is
  16294. 10:42:26that the case? I I don't know enough
  16295. 10:42:28about phones. And if it is the case,
  16296. 10:42:30maybe we just compare Verizon to
  16297. 10:42:32Verizon. Like this gets me the unlocked
  16298. 10:42:35one.
  16299. 10:42:36Does iPhone really not have an unlocked
  16300. 10:42:38version
  16301. 10:42:44or is it only iPhone 17 that there's
  16302. 10:42:47specific ones?
  16303. 10:42:49It looks like maybe iPhone 16's the
  16304. 10:42:51reason why. Let's just change this to
  16305. 10:42:53iPhone 16 and see what happens.
  16306. 10:42:57And obviously it I'm glad there's the
  16307. 10:42:59fallback which tells us what happened.
  16308. 10:43:02This is a little bit annoying, but is
  16309. 10:43:05what it is. All right, so we're going to
  16310. 10:43:07compare the iPhone 16 to Samsung there.
  16311. 10:43:12We're going to unpin that. Well, we can
  16312. 10:43:14just change that to 16 there.
  16313. 10:43:18Cool.
  16314. 10:43:21We're going to unpin that. Execute step.
  16315. 10:43:24Pin it again.
  16316. 10:43:26Oh, let's try this.
  16317. 10:43:30So, we have iPhone 16. Let's check that
  16318. 10:43:32out.
  16319. 10:43:36It was wrong again.
  16320. 10:43:41Wow. I mean, there's other ways to take
  16321. 10:43:44a look at it.
  16322. 10:43:48I would have thought uh Perplexity would
  16323. 10:43:50be the best one right out of the gate.
  16324. 10:43:51It's the product. Find one URL in Best
  16325. 10:43:53Buy that is not out of stock.
  16326. 10:43:56The URL should be that of an unlocked
  16327. 10:43:58version. It should be.
  16328. 10:44:01Double check the results. Double check
  16329. 10:44:04the results and make sure
  16330. 10:44:08there is a price on the page before
  16331. 10:44:13returning
  16332. 10:44:18the URL. Let's try it one more time.
  16333. 10:44:22I might think like SER API where we
  16334. 10:44:25scrape the Google search results and I
  16335. 10:44:27think there's a way to do in fire call
  16336. 10:44:28also might be the best approach now if
  16337. 10:44:31this doesn't work.
  16338. 10:44:35Wow. I mean I wonder if this used to be
  16339. 10:44:38the URL.
  16340. 10:44:40Let's check one. No.
  16341. 10:44:43All right. We need to think this through
  16342. 10:44:45again. So
  16343. 10:44:48let's
  16344. 10:44:50go to firecrawl because firecrol does
  16345. 10:44:52have an option to search Google I want
  16346. 10:44:55to say.
  16347. 10:44:57So
  16348. 10:44:59search and scrape search results. All
  16349. 10:45:01right, this is what we want to look at
  16350. 10:45:03now.
  16351. 10:45:06And we might not even need to scrape and
  16352. 10:45:08get his content, but we'll double check
  16353. 10:45:10this. All right, so fire call search and
  16354. 10:45:12we're going to have a query. So,
  16355. 10:45:16let's
  16356. 10:45:18search that. We're going to put our
  16357. 10:45:20product.
  16358. 10:45:22We're going to say
  16359. 10:45:25unlocked
  16360. 10:45:26Best Buy.
  16361. 10:45:29All right. So,
  16362. 10:45:31expanding this out. Let's just see what
  16363. 10:45:33the search results look like. Right now,
  16364. 10:45:39we're just going to go to the first one.
  16365. 10:45:41All right. So, that doesn't work.
  16366. 10:45:50It's interesting that these always go to
  16367. 10:45:52the plans first before it actually goes
  16368. 10:45:54to the model.
  16369. 10:45:56All right, so what does this look at?
  16370. 10:45:58Apple iPhone
  16371. 10:46:00unlocked.
  16372. 10:46:03All right, so let's see what the search
  16373. 10:46:04results look like. Web timeout limit.
  16374. 10:46:07We'll do limit 10
  16375. 10:46:11and we'll test it out.
  16376. 10:46:17Use a custom body if we want.
  16377. 10:46:23All right, let's try this off.
  16378. 10:46:34So, we have all these web URLs now.
  16379. 10:46:37And essentially what we'll have to do is
  16380. 10:46:40figure out what in that URL would have
  16381. 10:46:43that result that we care about.
  16382. 10:46:48So let's look at these URLs.
  16383. 10:46:54We have the title description.
  16384. 10:46:57We I think this is the one that we want,
  16385. 10:46:59right? It's unlocked.
  16386. 10:47:02Or was it one of these
  16387. 10:47:08unlocked black? That might be it.
  16388. 10:47:15All right. So, it gave us two items.
  16389. 10:47:18That's an example of a URL that we want
  16390. 10:47:21this notes.
  16391. 10:47:30So, that's an example.
  16392. 10:47:34because we need to have some sort of
  16393. 10:47:36filter before it goes over here to get
  16394. 10:47:38that price because obviously we don't
  16395. 10:47:39get the price here. I'm just going to
  16396. 10:47:41pin this as well. All right. And then
  16397. 10:47:44Best Buy.
  16398. 10:47:49So, I'm looking at this. We honestly
  16399. 10:47:51might need something that just has
  16400. 10:47:52unlocked with dashes next to it. You can
  16401. 10:47:56see this doesn't work. So, let's add in
  16402. 10:47:59a filter. I think this might be it.
  16403. 10:48:03I have an idea. This won't always work,
  16404. 10:48:06but
  16405. 10:48:07imagine we're just scraping Best Buy and
  16406. 10:48:10let's figure this out together. So,
  16407. 10:48:12we're going to put in a filter
  16408. 10:48:16and what we're going to take a look at
  16409. 10:48:17is this URL. We're going to say contains
  16410. 10:48:22and we're trying to find unlocked,
  16411. 10:48:23right? So, we'll say unlocked like this
  16412. 10:48:26because if you look at the URLs, that's
  16413. 10:48:28not correct.
  16414. 10:48:30That's not correct.
  16415. 10:48:33Obviously, we want best buy.com. So,
  16416. 10:48:35we'll have to make sure bestbuy.com is
  16417. 10:48:38in one of these. So, let's just add
  16418. 10:48:40another condition. And we're going to
  16419. 10:48:42say
  16420. 10:48:44this URL
  16421. 10:48:47going to say also string
  16422. 10:48:50contains
  16423. 10:48:53bestb.com.
  16424. 10:49:00slash product. All right. So,
  16425. 10:49:07all right. So, we have the Samsung
  16426. 10:49:09Galaxy here.
  16427. 10:49:12Okay. So, we need to split out these
  16428. 10:49:13URLs first.
  16429. 10:49:17Before we do that, you can see it. Okay.
  16430. 10:49:20I know. I know what we need to do. Let's
  16431. 10:49:23split out these URLs.
  16432. 10:49:26first before we actually do that. This
  16433. 10:49:29is turning into a more complicated build
  16434. 10:49:31than I anticipated. I thought it was
  16435. 10:49:33going to be pretty easy. That's all
  16436. 10:49:35right. Okay. So, give this split out.
  16437. 10:49:38Let's split out
  16438. 10:49:44web if this is or not.
  16439. 10:49:51Right. So, we split these out. I only
  16440. 10:49:54care about the URL now. So, let's do an
  16441. 10:49:56edit set
  16442. 10:49:58set.
  16443. 10:50:00We're going to pass in just the URL,
  16444. 10:50:05right? So,
  16445. 10:50:09have that
  16446. 10:50:12have iPhone
  16447. 10:50:14and the Galaxy. Great, great, great.
  16448. 10:50:16Okay. So, now let's try this filter.
  16449. 10:50:22We need to change this out though.
  16450. 10:50:28Let's use URL.
  16451. 10:50:32I think this should be it though because
  16452. 10:50:34we only want the product page because we
  16453. 10:50:37don't want slash site one slash product.
  16454. 10:50:40I think that will give us these two URLs
  16455. 10:50:45and then we'll do a limit for each of
  16456. 10:50:47these. All right, we've got three URLs.
  16457. 10:50:49We're pretty good. Um, let's remove
  16458. 10:50:52duplicates because you can see this is a
  16459. 10:50:53duplicate. Oh, actually it's not a
  16460. 10:50:55duplicate.
  16461. 10:50:57Almost there. We are almost there. Okay.
  16462. 10:51:01So,
  16463. 10:51:03we need to figure out a way to remove
  16464. 10:51:07that third product.
  16465. 10:51:11Okay,
  16466. 10:51:13that is not too bad. Almost there. At
  16467. 10:51:17the final stretch.
  16468. 10:51:20Let's think about this for a second. So,
  16469. 10:51:23we have Galaxy S25 120 AC Blue. I just
  16470. 10:51:28want to see why there's two different
  16471. 10:51:30ones there. So, this is $6.99. Okay.
  16472. 10:51:36What's the difference between these?
  16473. 10:51:39Okay. This item is no longer available
  16474. 10:51:41in new condition. So maybe we actually
  16475. 10:51:44want to have all of these
  16476. 10:51:48and we'll have three items just in case
  16477. 10:51:50like one is out of stock. Like again,
  16478. 10:51:52we're scraping Google.
  16479. 10:51:55We have only like five URLs for each of
  16480. 10:51:58these. And obviously we can expand this
  16481. 10:51:59out. I think this is a good fail safe
  16482. 10:52:01system just in case. All right, let's
  16483. 10:52:05test this out. So what we're going to do
  16484. 10:52:06now is paste each of these URLs into
  16485. 10:52:10over here. It's going to filter out
  16486. 10:52:11automatically. You watch what's going to
  16487. 10:52:13happen. So we have this URL and what I'm
  16488. 10:52:17going to say based on the final markdown
  16489. 10:52:18can you extract the final price if there
  16490. 10:52:22is no price
  16491. 10:52:25only output zero.
  16492. 10:52:29So we have a fail safe and we're just
  16493. 10:52:31going to filter out the zeros at the
  16494. 10:52:32very end because if you look we put a
  16495. 10:52:35final price there. So watch what's going
  16496. 10:52:38to happen now. We go to this extractor
  16497. 10:52:41and pin this. I execute the step. We're
  16498. 10:52:44gonna get the markdown now for each of
  16499. 10:52:46those URLs.
  16500. 10:52:50And obviously, like I apologize for this
  16501. 10:52:52being so long. I still hope you guys
  16502. 10:52:54find value. So, we have markdown for
  16503. 10:52:55each of these. And you can see this
  16504. 10:52:57third one's just not going to work.
  16505. 10:53:01And now we're going to test this in our
  16506. 10:53:03AI agent. Obviously, I want to pin this
  16507. 10:53:05again so we don't run music cost.
  16508. 10:53:10Just double check that this is correct.
  16509. 10:53:11Okay, execute the step.
  16510. 10:53:16Feel like we're almost there.
  16511. 10:53:20And to mention as well for production,
  16512. 10:53:22there's things I would change 100% for
  16513. 10:53:24this, but we're just going to test these
  16514. 10:53:26two phones.
  16515. 10:53:29All right, take a look. 659, 699, and
  16516. 10:53:32zero. Wow. I'm almost there. Let's just
  16517. 10:53:35double check. I think it was correct.
  16518. 10:53:38That's $6.99.
  16519. 10:53:41All right. 659. That was correct there.
  16520. 10:53:43And then we said $6.99.
  16521. 10:53:49Oh, we got it. Even with the discounts.
  16522. 10:53:51Look at that. So, let's pin this data.
  16523. 10:53:54And then what we're going to do Oh, you
  16524. 10:53:56know what we need as well? This is
  16525. 10:53:59annoying. All right. We need to update
  16526. 10:54:02this as well
  16527. 10:54:06because I don't know what each of these
  16528. 10:54:08are and we need to make sure that they
  16529. 10:54:11match. Well, actually, no, because we
  16530. 10:54:13have I guess we have this information
  16531. 10:54:15here.
  16532. 10:54:17If I execute this step again, however,
  16533. 10:54:22there could be a scenario.
  16534. 10:54:27There could be the scenario where these
  16535. 10:54:29are out of order in some capacity. It
  16536. 10:54:31was always going to be iPhone then
  16537. 10:54:33Android for this one just based off of
  16538. 10:54:35the search. However, down over here,
  16539. 10:54:38like what happens if there's two iPhones
  16540. 10:54:42and then Android? Like the the order is
  16541. 10:54:44going to be out. It's not going to be
  16542. 10:54:45sorry. It's going to be out of order. So
  16543. 10:54:47we need to pass also
  16544. 10:54:52the phone
  16545. 10:54:54or like
  16546. 10:54:57oh man you can see like when you start
  16547. 10:55:00building these advance there's always
  16548. 10:55:01like these edge cases. All right. So,
  16549. 10:55:03we're going to say phone
  16550. 10:55:07iPhone 16.
  16551. 10:55:15Great.
  16552. 10:55:17And should we put the URL? I feel like
  16553. 10:55:19we should put the URL as well.
  16554. 10:55:24URL.
  16555. 10:55:28Feel like it has the URL. All
  16556. 10:55:31right, let's try this one more time. I
  16557. 10:55:34did like these results, but we just want
  16558. 10:55:37to
  16559. 10:55:38specify that.
  16560. 10:55:47I might have to change that prompt
  16561. 10:55:49though for the output.
  16562. 10:55:52I might it might literally just be one
  16563. 10:55:54extra line that says also prints out the
  16564. 10:55:56the phone type as well as you know.
  16565. 10:56:00Well, and maybe I want to print colors.
  16566. 10:56:03I want to see if this works though out
  16567. 10:56:05of the box. If it does, fantastic.
  16568. 10:56:08And we'll just throw that here.
  16569. 10:56:13That is empty. Weird.
  16570. 10:56:18All right. So we need to write this as a
  16571. 10:56:20prompt.
  16572. 10:56:22Also
  16573. 10:56:25output the phone
  16574. 10:56:29brand
  16575. 10:56:31and the URL
  16576. 10:56:36you're unsure
  16577. 10:56:39both the phone rand
  16578. 10:56:45as an IDF.
  16579. 10:56:47All right, let's try this again.
  16580. 10:56:51I think I'm also using the cheapest
  16581. 10:56:53model here. If I remember correctly,
  16582. 10:56:55we're using Nano. I would I if it
  16583. 10:56:57doesn't get it correct, I'm going to
  16584. 10:56:58change this into mini because it is such
  16585. 10:57:01a bad model. Okay, I'm not going to say
  16586. 10:57:03it's a bad model. It's a cheap model.
  16587. 10:57:04Um, so you get what you get with it.
  16588. 10:57:10That's that's fine. I should have been
  16589. 10:57:12more explicit and said like the brand
  16590. 10:57:14and the phone type, but for now this is
  16591. 10:57:17fine because we have Samsung, we have
  16592. 10:57:19the URL
  16593. 10:57:21there. This is a header skip which is
  16594. 10:57:23interesting enough. All right, we're
  16595. 10:57:24good. We're good. This we have the phone
  16596. 10:57:26URL as well as the price. So now what we
  16597. 10:57:29need to do is filter out the zero.
  16598. 10:57:32Also should think about like
  16599. 10:57:36how we want to only have one of these.
  16600. 10:57:39Maybe a more advanced case would be to
  16601. 10:57:42use a code node and loop through these
  16602. 10:57:45and just grab, you know, the one of
  16603. 10:57:48these that looks correct. We're not
  16604. 10:57:49going to cover the code node yet, so I'm
  16605. 10:57:51not going to worry about that. We're
  16606. 10:57:52just going to filter this out for zero
  16607. 10:57:54and assume that every time we get these,
  16608. 10:57:56it's going to be correct. All right, so
  16609. 10:57:59filter this out
  16610. 10:58:01over here.
  16611. 10:58:03I say value
  16612. 10:58:06number has to be greater than and a
  16613. 10:58:10phone should not be less than 100 bucks.
  16614. 10:58:11So we'll execute that step and you can
  16615. 10:58:14see it keeps the two items. All right,
  16616. 10:58:16we have iPhone in there. Next, what
  16617. 10:58:19we're going to do is attach that over
  16618. 10:58:21here. So this input goes there. This
  16619. 10:58:25input goes over here.
  16620. 10:58:29We're going to do now these
  16621. 10:58:32combine by position.
  16622. 10:58:34We could combine by other stuff, but
  16623. 10:58:36it's fine.
  16624. 10:58:40Have all this
  16625. 10:58:42great. We have our our thing over here.
  16626. 10:58:48We should also probably clean this up
  16627. 10:58:50really quick. So, I go to edit sets just
  16628. 10:58:54because there's a lot of junk.
  16629. 10:58:57like we should clean up the junk first
  16630. 10:58:58before it goes into the merge.
  16631. 10:59:01So, what do we have over here that we
  16632. 10:59:04actually need?
  16633. 10:59:06So,
  16634. 10:59:08we don't need all the usage
  16635. 10:59:12there. You just need to have the
  16636. 10:59:14content.
  16637. 10:59:17That's it.
  16638. 10:59:20That's all we need. All right. So, now
  16639. 10:59:23we merge these in over here.
  16640. 10:59:27execute step.
  16641. 10:59:30We have the choices which is from
  16642. 10:59:32perplexity and we have our output there.
  16643. 10:59:36And what we're going to do now
  16644. 10:59:40is summarize.
  16645. 10:59:43Let's think this through. So we have
  16646. 10:59:47our choices there and our output.
  16647. 10:59:53So we have the final price.
  16648. 10:59:56So I'm thinking we do two nodes. We do
  16649. 10:59:59one that just does like a five sentence
  16650. 11:00:01summary about the price and URL.
  16651. 11:00:07Then we'll combine them together at the
  16652. 11:00:09very end and do a comparison. I don't
  16653. 11:00:11know. I'm trying to think this through.
  16654. 11:00:14Um
  16655. 11:00:16I think we might be fine.
  16656. 11:00:19Might be fine.
  16657. 11:00:25All right, let's just do a summarize
  16658. 11:00:29over here.
  16659. 11:00:32We're going to do is
  16660. 11:00:35paste in both of these.
  16661. 11:00:41We're going to append, not append,
  16662. 11:00:44concatenate. We're going to do a new
  16663. 11:00:46line or actually let's do a custom
  16664. 11:00:49other.
  16665. 11:00:50We'll do a space slashn
  16666. 11:00:54like that.
  16667. 11:00:56I think this is how we want to do it.
  16668. 11:01:04Do the same thing here.
  16669. 11:01:06Just want to see what this looks like.
  16670. 11:01:16other. All right, let's execute this
  16671. 11:01:18step.
  16672. 11:01:20Concatenated. Great. You can see these
  16673. 11:01:22are new lines
  16674. 11:01:24slash new lines. And then what we're
  16675. 11:01:26going to do,
  16676. 11:01:30let's use a better model. Let's use
  16677. 11:01:31sonnet over here.
  16678. 11:01:34So it's you're paying a little bit more,
  16679. 11:01:36but you're going to get better results.
  16680. 11:01:38And now we need to write our message.
  16681. 11:01:42Again, you did not expect this to be
  16682. 11:01:43this long. I really apologize. So,
  16683. 11:01:48we're going to say reviews and specs.
  16684. 11:01:57Going to say pricing
  16685. 11:02:01for all.
  16686. 11:02:03Now,
  16687. 11:02:07are a phone. You're an iPhone. I don't
  16688. 11:02:10know. You're an iPhone. Not iPhone.
  16689. 11:02:13You're a phone
  16690. 11:02:15comparison
  16691. 11:02:18article writer.
  16692. 11:02:22I don't know if I like that.
  16693. 11:02:24You are to compare
  16694. 11:02:28two phones
  16695. 11:02:31and talk about their specs and pricing.
  16696. 11:02:35Specs
  16697. 11:02:37pricing.
  16698. 11:02:39Let's go back over here and say the
  16699. 11:02:42phones are separated by this.
  16700. 11:02:48The phones
  16701. 11:02:50are separated by this.
  16702. 11:02:55Okay.
  16703. 11:02:59Make sure
  16704. 11:03:01comparison
  16705. 11:03:04is three to five sentences.
  16706. 11:03:08for each phone.
  16707. 11:03:11And then
  16708. 11:03:20the link,
  16709. 11:03:24this is like not the best prompt, but
  16710. 11:03:28to compare our two phones, talked about
  16711. 11:03:29their specs and pricing. I talked about
  16712. 11:03:30how they're getting separated. Make sure
  16713. 11:03:32to the comparison is three to five
  16714. 11:03:34sentences. We're just going to fix the
  16715. 11:03:36spelling mistakes really fast and we're
  16716. 11:03:39going to test this out.
  16717. 11:03:42A lot going on over here. Maybe paying a
  16718. 11:03:45pretty penny from Claude for this one,
  16719. 11:03:47but that's fine. We just want to test
  16720. 11:03:50this out.
  16721. 11:03:51And uh let's take a look. iPhone 16
  16722. 11:03:54versus Samsung Galaxy S25 comparison.
  16723. 11:03:58iPhone 16 delivers Apple signature
  16724. 11:04:00premium experience powered by A18 chips.
  16725. 11:04:03It offers excellent performance 30%
  16726. 11:04:06better at 170 grams. It maintains
  16727. 11:04:09comfortable lightweight design. Price
  16728. 11:04:11$6.99. Buy at Best Buy. It gives me the
  16729. 11:04:13link as well over here. Then it says
  16730. 11:04:16Samsung S25.
  16731. 11:04:18Talks about that over here. Top
  16732. 11:04:21performance. Take a look. Price by Best
  16733. 11:04:23Buy.
  16734. 11:04:26I think that's our workflow. Obviously,
  16735. 11:04:30there's things I would change like first
  16736. 11:04:32over here like I would make a note and
  16737. 11:04:34say what happens if there's multiple
  16738. 11:04:37like this is something that would have
  16739. 11:04:39to change. What happens
  16740. 11:04:41if multiple
  16741. 11:04:44have over $0?
  16742. 11:04:46Like we haven't figured that out. So
  16743. 11:04:49that would be another step to work out.
  16744. 11:04:52Obviously, I want to get through this
  16745. 11:04:54pretty fast, but the overall we take in
  16746. 11:04:57our string, which could be a chat
  16747. 11:04:59trigger. We split out the products,
  16748. 11:05:01which is a split out. Uh, first we use
  16749. 11:05:03Perplexity to do some research on
  16750. 11:05:05reviews and what the models have. And
  16751. 11:05:07maybe we could have factored in reviews
  16752. 11:05:08a little bit more towards the very end
  16753. 11:05:10for that three to five sentences. Then
  16754. 11:05:12what we want to do is scrape Google to
  16755. 11:05:13try to find specific URLs uh from Best
  16756. 11:05:16Buy. Uh, we do that over here. We get
  16757. 11:05:19the top five for each of those searches.
  16758. 11:05:20So, we split this out. We clean up the
  16759. 11:05:23data. We filter for only Best Buy URLs
  16760. 11:05:25as well as ones that are for product.
  16761. 11:05:27Then, we scrape each of those because,
  16762. 11:05:29as we saw, some of those URLs were just
  16763. 11:05:31offline. We go to the AI agent. If it
  16764. 11:05:34can't find that URL, it's going to just
  16765. 11:05:35give us $0 for it. We filter out the $0.
  16766. 11:05:39Uh, we take our perplexity results. We
  16767. 11:05:42just grab what we want, which I could
  16768. 11:05:43have just simplified the output, but
  16769. 11:05:45that's fine. We merge these together by
  16770. 11:05:46position because we do iPhone first,
  16771. 11:05:48then Android off of there. We put a
  16772. 11:05:51summarize so that way we throw
  16773. 11:05:52everything into the AI agent at once.
  16774. 11:05:54Turns multiple items into one. And we
  16775. 11:05:56have our AI agent right over there.
  16776. 11:05:58Obviously, like we could have other
  16777. 11:05:59areas where we want to print this out at
  16778. 11:06:01and things like that. But I think
  16779. 11:06:04this is a well enough example for you
  16780. 11:06:06guys. And that just became way more
  16781. 11:06:08complicated than I wanted it to be.
  16782. 11:06:10Damn, that Best Buy API. And it was a
  16783. 11:06:13good refresher on firecrop because I'm
  16784. 11:06:14literally going to be recording section
  16785. 11:06:1615 now. I wanted to get the AI agent
  16786. 11:06:20stuff out of the way, but guess I'll be
  16787. 11:06:22going backwards at doing that. Either
  16788. 11:06:23way, if you were able to follow along
  16789. 11:06:25and you understood like 70 or 80% of
  16790. 11:06:28this, you are doing a fantastic job. If
  16791. 11:06:32not, I apologize for kind of rambling
  16792. 11:06:34through this, but I felt like it'd be a
  16793. 11:06:35kind of a good idea to show you guys
  16794. 11:06:37like sometimes you're going to have to
  16795. 11:06:38pivot in workflows even if you have an
  16796. 11:06:40idea in your head. And uh I think this
  16797. 11:06:42series is going to help me on that side
  16798. 11:06:44of things, at least presents it in a way
  16799. 11:06:46that you guys can understand. All right.
  16800. 11:06:48Uh next section is going to cover I want
  16801. 11:06:50to say chat hub. So we'll jump into
  16802. 11:06:52that. So this part of the course we're
  16803. 11:06:54going to be talking about a relatively
  16804. 11:06:56new feature that N rolled out which is
  16805. 11:06:58going to be chatub. You can think of
  16806. 11:06:59chatub as your interface kind of like
  16807. 11:07:02with chat GPT but just for nan the best
  16808. 11:07:05part is we can change different models.
  16809. 11:07:07So we don't necessarily are tied to like
  16810. 11:07:09let's say for example GPT5 maybe you're
  16811. 11:07:11watching this future 6 or whatever else
  16812. 11:07:13is out but we can switch the models. So
  16813. 11:07:15we can go from GPT to Sonnet to Gemini,
  16814. 11:07:18whatever we want as long as we authorize
  16815. 11:07:21it. Another really great benefit is
  16816. 11:07:23Cathub has enabled us to have different
  16817. 11:07:25levels of users. We can now have users
  16818. 11:07:27that interact with our flows but cannot
  16819. 11:07:30access them and this is in one place.
  16820. 11:07:33They can just talk back and forth uh
  16821. 11:07:35conversationally with that workflow.
  16822. 11:07:38There's some nuances that you're going
  16823. 11:07:39to have to know to set this up properly,
  16824. 11:07:42but I want to go into the UI, explain
  16825. 11:07:44everything, and yeah, let's jump right
  16826. 11:07:46into it.
  16827. 11:07:48All right, so I just have a blank canvas
  16828. 11:07:50over here, but what we're going to do
  16829. 11:07:53first is we're going to actually show
  16830. 11:07:54you where ChatHub is. You might remember
  16831. 11:07:56this pretty early on in the course, and
  16832. 11:07:58if you didn't, no worries. You can see
  16833. 11:08:00it over here. If we go to the left, it
  16834. 11:08:01says chat beta. I'm just going to
  16835. 11:08:04control-click it to open up in a new
  16836. 11:08:05screen because we are going to be
  16837. 11:08:06building out a workflow over here or
  16838. 11:08:08multiple workflows in in that case. And
  16839. 11:08:12what you'll see is we have this chat hub
  16840. 11:08:14over here. We have a new chat that we
  16841. 11:08:16could have. We have personal agents. We
  16842. 11:08:19have workflow agents. You can see also
  16843. 11:08:21some of my older chats that I had over
  16844. 11:08:23here. These were essentially basic for
  16845. 11:08:27my uh initial ChatHub video. We're going
  16846. 11:08:29to be building out brand new stuff as I
  16847. 11:08:31mentioned for this particular video. And
  16848. 11:08:34then you can go back over here and go
  16849. 11:08:35into settings as well. But this shows
  16850. 11:08:37you all the settings, right? So you
  16851. 11:08:39would have to go to chat settings which
  16852. 11:08:40we're going to cover here in a second as
  16853. 11:08:41well. Uh but just going over here, you
  16854. 11:08:43know, you can have a normal conversation
  16855. 11:08:46like you would have with the chat GPT.
  16856. 11:08:48So first thing to notice is if you go to
  16857. 11:08:50the top left over here, you'll notice
  16858. 11:08:52that I have kind of a robot emoji. That
  16859. 11:08:55means I'm on a workflow agent. I can go
  16860. 11:08:58over here. If I go to a personal agent,
  16861. 11:09:00you'll see it has this icon which just
  16862. 11:09:02said chat and this is one that I built
  16863. 11:09:04out for SQL queries. And then if I want
  16864. 11:09:07to go to a specific model, let's say I
  16865. 11:09:08want to go to OpenAI and I want to use
  16866. 11:09:12uh we'll go over here and say GPT5 Mini
  16867. 11:09:14will actually have the logo of the
  16868. 11:09:16particular platform. So I could see this
  16869. 11:09:18tripping up people where you think
  16870. 11:09:19you're actually talking to a specific
  16871. 11:09:21model and you're talking to a personal
  16872. 11:09:23agent or a workflow agent. So, make sure
  16873. 11:09:25that you choose your model as required.
  16874. 11:09:28You can see also, let's say I want to go
  16875. 11:09:30over here and go to Gemini,
  16876. 11:09:32Gemini Pro Preview. You can see it has
  16877. 11:09:34the Gemini logo. I want to go to
  16878. 11:09:36anthropic. Let's say I want to use a
  16879. 11:09:39Sonet 45. You can see it changes to the
  16880. 11:09:41the logo. So, let's just test something
  16881. 11:09:44out here in the chat. I believe I have
  16882. 11:09:46all these set up. If not, I'll just show
  16883. 11:09:47you how to set this up really quickly.
  16884. 11:09:50I'm going just going to ask in general
  16885. 11:09:53what were the different guitarists? What
  16886. 11:09:55were the different
  16887. 11:10:00guitarists?
  16888. 11:10:01Man, I can't spell today. In the band
  16889. 11:10:06Red Hot Chili Peppers, I want to say
  16890. 11:10:09they've had like three or four
  16891. 11:10:10guitarists. And uh you can see we have
  16892. 11:10:15our conversation and this looks very
  16893. 11:10:18very similar into
  16894. 11:10:21our our interface over here. So uh it
  16895. 11:10:23says red hot chili peppers had several
  16896. 11:10:25guitarists throughout their history.
  16897. 11:10:27Main guitarist over here original
  16898. 11:10:29guitarist and co-founder played on the
  16899. 11:10:31albums for here. He tragically died over
  16900. 11:10:34there. Uh John obviously the guitarist
  16901. 11:10:38that just recently came back. talked
  16902. 11:10:41about that. Dave Navaro gains addiction
  16903. 11:10:43about that over there. And then Joshua,
  16904. 11:10:46he now plays curled man. You can see
  16905. 11:10:49early brief members also brought up over
  16906. 11:10:51here. And I think I said there was four
  16907. 11:10:53guitars. That's pretty spot on. And uh
  16908. 11:10:56yeah, so we have all this information.
  16909. 11:10:58Now, if I wanted to change this chat and
  16910. 11:11:00go over here and let's use OpenAI this
  16911. 11:11:03time. Use OpenAI Mini.
  16912. 11:11:06What's
  16913. 11:11:08or say who are all the different
  16914. 11:11:10drummers
  16915. 11:11:16tribute? And this might actually get it
  16916. 11:11:18wrong because one of their recently
  16917. 11:11:19drummers left, but we'll see what
  16918. 11:11:22happens. Over there, we have GPT5 Mini.
  16919. 11:11:25You can see it's thinking right now and
  16920. 11:11:28uh we should be able to get a response
  16921. 11:11:30assuming I already set this up.
  16922. 11:11:32All right, so we have the drummers over
  16923. 11:11:34here and as I mentioned it would get it
  16924. 11:11:36wrong. Alex Bent just left and they
  16925. 11:11:38actually got another Alex in the band
  16926. 11:11:40but you have the original drummer and
  16927. 11:11:42you have a bunch of replacements that
  16928. 11:11:44happened over a few year period and then
  16929. 11:11:46you have Bent and uh yeah so you can see
  16930. 11:11:50got it mostly correct except for the new
  16931. 11:11:52information which was kind of expected.
  16932. 11:11:54One of the things with these models, and
  16933. 11:11:56we talked about it in our section, is
  16934. 11:11:58they don't do a great job of getting
  16935. 11:12:00up-to-date information. You're going to
  16936. 11:12:02have to supplement it in some sort of
  16937. 11:12:04capacity. So, this kind of just shows
  16938. 11:12:05you that side of things. Now, let's we
  16939. 11:12:08can continue to do chats like this and
  16940. 11:12:10change the models. Um, as you can see
  16941. 11:12:13also in this chat, one really cool thing
  16942. 11:12:15I forgot to bring up, we started the
  16943. 11:12:17chat in Sunonnet 45 and we switched over
  16944. 11:12:20to GPT4 or GPT5 mini. So, what's really
  16945. 11:12:23cool is you can switch models directly
  16946. 11:12:26here in the chat. You don't have to
  16947. 11:12:28create new chats. And I just think
  16948. 11:12:29that's really just an added benefit.
  16949. 11:12:31Now, let's talk about personal agents.
  16950. 11:12:33So, I'm going to create a new agent over
  16951. 11:12:35here. You can actually prompt uh an
  16952. 11:12:38agent. You can set an icon in name,
  16953. 11:12:41enter in a description, uh specify a
  16954. 11:12:43specific model. So, let's say I would
  16955. 11:12:45just want to use Sonnet 45 with this
  16956. 11:12:48agent. You can also add in tools
  16957. 11:12:51depending on the model. So let's think
  16958. 11:12:53of something on the fly. Uh my last
  16959. 11:12:56video I did one particularly about uh
  16960. 11:12:59BigQuery and metabase SQL. Know my
  16961. 11:13:01full-time job I do write a lot of
  16962. 11:13:03Redshift SQL. Not to access my an
  16963. 11:13:06instance here, but let's go and build
  16964. 11:13:08out something for a Redshift SQL
  16965. 11:13:10debugger. So first we can change our
  16966. 11:13:13icon. We can choose whatever we want.
  16967. 11:13:15I'm just going to give me a check mark
  16968. 11:13:17over here. And I'm gonna say red shift
  16969. 11:13:20SQL debugger.
  16970. 11:13:23And uh we can enter in a description. So
  16971. 11:13:26this
  16972. 11:13:28and actually I said enter agent
  16973. 11:13:30description. So I say this agent helps
  16974. 11:13:34debug red shift SQL. And by the way if
  16975. 11:13:37you're watching this you're like why are
  16976. 11:13:38you making another SQL um agent? Well,
  16977. 11:13:41the thing is with SQL probably 80 to 90%
  16978. 11:13:43is the same language language, but
  16979. 11:13:45there's just some weird quirks and
  16980. 11:13:47things like that. So sometimes you just
  16981. 11:13:48need to define what SQL you're writing
  16982. 11:13:51in. All right, so you are a debugger
  16983. 11:13:56or writer that solely
  16984. 11:14:00focuses
  16985. 11:14:02on writing
  16986. 11:14:04red shift SQL.
  16987. 11:14:07no
  16988. 11:14:10other SQL variations.
  16989. 11:14:13Now, you would want to choose the model
  16990. 11:14:14that you think would perform best on
  16991. 11:14:16this task. Honestly, I've I've used a
  16992. 11:14:18lot of the cloud models for coding and I
  16993. 11:14:21do like using Sonnet over there. And
  16994. 11:14:23then you can also add in tools. So, we
  16995. 11:14:26can add in tools that are available to
  16996. 11:14:28us. There's only two available tools
  16997. 11:14:30right now. So, it says use SER API to
  16998. 11:14:32search the web for relevant information.
  16999. 11:14:33So, we could actually do that. In fact,
  17000. 11:14:35I actually have a video or my first HTTP
  17001. 11:14:39video, we talked about SER API. Here's
  17002. 11:14:41the deal though. This isn't really going
  17003. 11:14:43to help with coding. And then we have
  17004. 11:14:45GINA AI for web relevant information. So
  17005. 11:14:47when I talked about we weren't getting
  17006. 11:14:49up-to-date information. Well, these
  17007. 11:14:50tools would supplement it. So if I use
  17008. 11:14:52SER API and that trivia search, it would
  17009. 11:14:55tell me that Alex Ben left the band a
  17010. 11:14:57few months ago and they added a new
  17011. 11:14:58drummer. Um, so you can create these
  17012. 11:15:00credentials over here and this allows us
  17013. 11:15:03for a Google search. If we set this on
  17014. 11:15:05and obviously like we need to choose our
  17015. 11:15:07SER API and choose that and actually
  17016. 11:15:09let's probably do this as a second
  17017. 11:15:11version. I'll just show you how to do
  17018. 11:15:12that here in a second. So I'm not going
  17019. 11:15:14to set that up. I'm just going to say
  17020. 11:15:16cancel. And this is one without a tool.
  17021. 11:15:18So you click save and then [snorts] you
  17022. 11:15:21can see now we have this icon so it
  17023. 11:15:22stands out as a personal agent. And then
  17024. 11:15:25it just knows like hey I want to debug
  17025. 11:15:28or write shift SQL. I don't have to put
  17026. 11:15:31that context in here in the
  17027. 11:15:32conversations. So normally when I debug
  17028. 11:15:35I'm have to paste in code. I'm also
  17029. 11:15:37going to say hey this is redshift SQL
  17030. 11:15:39only write in red shift SQL. I don't
  17031. 11:15:40have to do that every single time
  17032. 11:15:42because I already put in this as a
  17033. 11:15:44system prompt and that should be very
  17034. 11:15:45familiar with you because we just talked
  17035. 11:15:47about that in the last lecture. So it's
  17036. 11:15:49really cool that we can put in a system
  17037. 11:15:50prompt over here. This has been around
  17038. 11:15:51for a while by the way. This isn't
  17039. 11:15:53anything brand new but it's a nice
  17040. 11:15:55addition into any end. Let's create one
  17041. 11:15:58new agent as well. And I'm going to say
  17042. 11:16:00up-to-date news. Up to date.
  17043. 11:16:06Let's just change an icon.
  17044. 11:16:08What icon are we going to use? Let's use
  17045. 11:16:11like the DM icon. It does not matter.
  17046. 11:16:13Use this agent
  17047. 11:16:16if we want
  17048. 11:16:18up toate news. All right. And then we're
  17049. 11:16:21going to put you are a research
  17050. 11:16:27assistant.
  17051. 11:16:28Use the SER API
  17052. 11:16:33when you
  17053. 11:16:35need to search
  17054. 11:16:39your
  17055. 11:16:41information.
  17056. 11:16:43Obviously, this is a terrible prompt.
  17057. 11:16:45And this time, let's use Gemini. So,
  17058. 11:16:48we're going to go over here. Actually,
  17059. 11:16:49let's go back and use OpenAI GPT5 Mini
  17060. 11:16:52because we used that earlier. We're
  17061. 11:16:53going to set up a tool. We're going to
  17062. 11:16:55use SER API account. And I'm gonna use
  17063. 11:16:58this over here. Um, you would obviously
  17064. 11:17:00want to set up your SER API account.
  17065. 11:17:01It's honestly really, really easy. Like,
  17066. 11:17:05go to SER API. Let me just show you this
  17067. 11:17:07really fast. Go to SER API,
  17068. 11:17:11register, and literally on the front
  17069. 11:17:13screen, it's going to give you your API
  17070. 11:17:14key. Like, I kid you not, it takes you
  17071. 11:17:17like two seconds to go over here. I
  17072. 11:17:20already have mine, but you would want to
  17073. 11:17:21register. I honestly just signed in with
  17074. 11:17:23Google. gonna give the API key and
  17075. 11:17:25you're gonna have to set that up. Um,
  17076. 11:17:27all right. So, I'm just showing you this
  17077. 11:17:29really fast. You don't have to follow
  17078. 11:17:30every single step. I just want to show
  17079. 11:17:32you really quick with tools. I do think
  17080. 11:17:34there's going to be a lot more tools in
  17081. 11:17:35the future, but right now, like probably
  17082. 11:17:37a week or two weeks after this is
  17083. 11:17:39released, there's only two tools. So,
  17084. 11:17:40I'm going to click confirm. Your
  17085. 11:17:42researcher use SER API tool. You need to
  17086. 11:17:44search information.
  17087. 11:17:47I might actually rewrite this. your
  17088. 11:17:49research assistant. Use SER API tool
  17089. 11:17:52to find the latest information
  17090. 11:17:57or a query that someone writes.
  17091. 11:18:01My only concern was if I put that trivia
  17092. 11:18:04question again, it's not going to
  17093. 11:18:05register uh that it should use the tool.
  17094. 11:18:08So, I'm going to click save. Hopefully,
  17095. 11:18:09I have some credits on there. I think I
  17096. 11:18:11do. And then we're going to literally
  17097. 11:18:13ask the same question. So, who are all
  17098. 11:18:16the different drummers for Trivia? This
  17099. 11:18:17could fail. uh this might not fail. So,
  17100. 11:18:20let me show you also how we can get to
  17101. 11:18:21the here. Let's imagine you're at a new
  17102. 11:18:22chat. So, instead of going over here and
  17103. 11:18:25hey, I want to go take a look at this
  17104. 11:18:27up-to-date news. I'm going to go new
  17105. 11:18:28chat, go over here to personal agents,
  17106. 11:18:30and I'm going to click update news. And
  17107. 11:18:32you can see it changes. And you can see
  17108. 11:18:33we have one tool attached over here. So,
  17109. 11:18:38let's try it out. So, who are all the
  17110. 11:18:39different terms for Trivia
  17111. 11:18:42again? Hopefully, I have some SER API
  17112. 11:18:44credits. I probably do not, and that's
  17113. 11:18:46why it went wrong. All right, let's try
  17114. 11:18:48it again.
  17115. 11:18:50Nope, I don't have any SER API credits.
  17116. 11:18:52I never paid for the tool, so um minus
  17117. 11:18:54the one HTTP video, but you're going to
  17118. 11:18:56have to trust me on this one that
  17119. 11:18:59essentially what happens is it would
  17120. 11:19:00search. I would go scrape Google, find
  17121. 11:19:03the information, and it would tell us
  17122. 11:19:05what it is. Let me just try one other
  17123. 11:19:08thing. Let's try a different model just
  17124. 11:19:11in case. Like 99% sure I'm just out of
  17125. 11:19:14credits. Um, maybe I'll just double
  17126. 11:19:16check that. But I don't want to pay for
  17127. 11:19:17extra credits because I only just used
  17128. 11:19:19it for a demo API video. All right,
  17129. 11:19:22let's just use Sonnet and see if we get
  17130. 11:19:24that. Nope. So, something wrong. That's
  17131. 11:19:26all right. But you understand now the
  17132. 11:19:28basics behind personal agents. You
  17133. 11:19:30essentially were able to add in a
  17134. 11:19:32prompt. You can also add in a tool as
  17135. 11:19:34necessary. You can see I've added insert
  17136. 11:19:35API over there. Just make sure that you
  17137. 11:19:37have credits for these tools, otherwise
  17138. 11:19:39you're going to have the error that I
  17139. 11:19:40have over there. All right, so that's
  17140. 11:19:43pretty easy.
  17141. 11:19:44Next, let me just show you. If you want
  17142. 11:19:46to delete a tool as well, you can just
  17143. 11:19:47go over here, right click that, and
  17144. 11:19:50click delete. I don't want to have this
  17145. 11:19:51here anymore. Boom. It's been deleted,
  17146. 11:19:53and now it is gone from your personal
  17147. 11:19:55agents. So, the other side, which is
  17148. 11:19:57pretty cool, is going to be your
  17149. 11:19:58workflow agents. So, essentially, what
  17150. 11:20:00you can do on this side of things is
  17151. 11:20:02actually chat with your workflows.
  17152. 11:20:04You're going to have to need a few
  17153. 11:20:05different things though to make that
  17154. 11:20:07available for you. We're actually just
  17155. 11:20:09going to build one workflow together.
  17156. 11:20:12We'll throw it in over here on that side
  17157. 11:20:14of things. So, we'll cover that here in
  17158. 11:20:16a second. Um, let me also show you
  17159. 11:20:19really fast some of the different
  17160. 11:20:20settings behind ChatHub because I do
  17161. 11:20:22think it is important. So, if we go to
  17162. 11:20:24settings and we go into chat, here's the
  17163. 11:20:26different models that you can make
  17164. 11:20:28available. So, first thing you're going
  17165. 11:20:30to do is click on these three dots and
  17166. 11:20:32you can click edit provider. And what
  17167. 11:20:35you want to do for chat hub is enable
  17168. 11:20:37the different large language models. So
  17169. 11:20:39you can see I enabled Open AI. Next, you
  17170. 11:20:42choose the credential. So this is your
  17171. 11:20:44account that we set up a little bit
  17172. 11:20:45earlier in the course. And then if you
  17173. 11:20:47want to limit models in any capacity,
  17174. 11:20:49you can click over here. And then you
  17175. 11:20:52can choose what model uh you want to
  17176. 11:20:54specifically use. So let's say if you
  17177. 11:20:56set this up, you only are allowed to use
  17178. 11:20:58GPT40 latest. Um I'm not going to limit
  17179. 11:21:01it. I'll just let people choose whatever
  17180. 11:21:03they specifically want. And then you can
  17181. 11:21:05see last edited just now. All these
  17182. 11:21:06other ones I haven't updated as of yet,
  17183. 11:21:08but you can just go in here and it
  17184. 11:21:10literally takes two seconds to do that.
  17185. 11:21:11Other thing as well is you have a users
  17186. 11:21:13section. So what's pretty cool is you
  17187. 11:21:16can actually invite users just to see
  17188. 11:21:18chat. So if I click over here, invite,
  17189. 11:21:20and you go into RO, you can see that
  17190. 11:21:22there's something called a chat user. So
  17191. 11:21:24what a chat user only allows them to do
  17192. 11:21:26is access chat hub. They cannot access
  17193. 11:21:29your specific workflows. So you can
  17194. 11:21:31think of this in the data governance
  17195. 11:21:32side of things. Let's say you're a tech
  17196. 11:21:34lead or a data scientist for a specific
  17197. 11:21:37team and you build out all these tools
  17198. 11:21:39that you just don't want people to
  17199. 11:21:40access the actual workflow behind it.
  17200. 11:21:42You just want them to be able to write
  17201. 11:21:44to that workflow. Well, that is where
  17202. 11:21:47having a chat user helps. Like you can
  17203. 11:21:49invite a lot of people. Let's say for my
  17204. 11:21:51full-time job, I do the data for our
  17205. 11:21:54risk and underwriting team. We probably
  17206. 11:21:55have, I don't know, 25 different people
  17207. 11:21:57in the department. I don't want all of
  17208. 11:21:59them to have access to my workflows. So
  17209. 11:22:01I'll make them chat users and then they
  17210. 11:22:02can interact with those workflows as
  17211. 11:22:05specifically required. All right. So I'm
  17212. 11:22:06going to go back to chat hub now and
  17213. 11:22:09we're actually going to build out a
  17214. 11:22:10workflow agent. So we're actually going
  17215. 11:22:12to have to start on this side of things
  17216. 11:22:14and we're going to build our first step.
  17217. 11:22:17And because it's literally chat, you
  17218. 11:22:19know, it should be pretty common sense
  17219. 11:22:20what we're going to start with. So we go
  17220. 11:22:22over here and we say chat trigger. And
  17221. 11:22:25this is going to start our workflow. The
  17222. 11:22:27next thing to know is no matter what in
  17223. 11:22:30your workflow, whether you only have a
  17224. 11:22:32chat trigger and an AI agent or you have
  17225. 11:22:34a full workflow, you have to respond
  17226. 11:22:37back with an AI agent. So, pretty
  17227. 11:22:40important on here. So, if I go to AI
  17228. 11:22:42agent and the setting that you have to
  17229. 11:22:44do is if you go over here and you choose
  17230. 11:22:48enable streaming, this has to be on. If
  17231. 11:22:51that is not on, your workflow will not
  17232. 11:22:53work. So, make sure that you enable
  17233. 11:22:55streaming on your AI agent. It is super
  17234. 11:22:58important. Again, it doesn't matter if
  17235. 11:22:59it's like right here or if it's like way
  17236. 11:23:01down here and you have 10 nodes before
  17237. 11:23:03your AI agent. Make sure that you enable
  17238. 11:23:06streaming. Otherwise, it's not going to
  17239. 11:23:08work. In addition, to have a workflow
  17240. 11:23:12populate in the workflow agents, you
  17241. 11:23:14have to publish your workflow. So,
  17242. 11:23:16you're going to have to go through the
  17243. 11:23:16process and publish it over here uh to
  17244. 11:23:20make it available. Otherwise, that will
  17245. 11:23:22not be there. Uh going in over here also
  17246. 11:23:25for this chat trigger you'll notice it
  17247. 11:23:27says make chat publicly available but
  17248. 11:23:29then you also have make available in nan
  17249. 11:23:32chat. So it says whether to make the
  17250. 11:23:34agent available in n chat. You have to
  17251. 11:23:37make this and it says your end users
  17252. 11:23:38will be able to use this agent in chat
  17253. 11:23:40once this workflow is published. Make
  17254. 11:23:42sure to share this workflow with at
  17255. 11:23:43least project chat user access to all
  17256. 11:23:45users use it. Currently only streaming
  17257. 11:23:47response mode is supported. So again
  17258. 11:23:49with streaming take a look enable
  17259. 11:23:51streaming. So, please set that up. It's
  17260. 11:23:54super easy to do within our AI agent.
  17261. 11:23:56We're just going to build out our very
  17262. 11:23:58basic prototype. We're going to just
  17263. 11:23:59have this chat trigger go straight into
  17264. 11:24:01this AI agent. So, just set that up over
  17265. 11:24:03here and then add in a chat model. Um,
  17266. 11:24:06what we're going to do is we can add
  17267. 11:24:10whatever. I'm going to use Gemini this
  17268. 11:24:11time. So, I'll just use Gemini. We'll go
  17269. 11:24:14over here to Gemini account one.
  17270. 11:24:17Actually, it's my Gemini account 3, I
  17271. 11:24:18believe, is the correct one. Uh, we're
  17272. 11:24:20going to go into three. So, group 3 pro
  17273. 11:24:23preview. Well, so that's there. I'm
  17274. 11:24:26going to save that. And um, you know, I
  17275. 11:24:29haven't really changed anything at all.
  17276. 11:24:30I should probably add in a system
  17277. 11:24:32message. And what are we going to
  17278. 11:24:34actually try to solve on this side of
  17279. 11:24:37things? You know, I haven't I didn't
  17280. 11:24:38even think about this when we're
  17281. 11:24:38building this out. Um, actually, it
  17282. 11:24:41doesn't matter. Let's just test this
  17283. 11:24:43out. We're going to save this. We're
  17284. 11:24:44going to publish this.
  17285. 11:24:47We should version this. Obviously, I
  17286. 11:24:49would want to write things out. Version
  17287. 11:24:50one, Gemini tests and uh test for live
  17288. 11:24:56video.
  17289. 11:25:01Got it. So, obviously we are live right
  17290. 11:25:05now. I would recommend that you test
  17291. 11:25:06this in here first before you actually
  17292. 11:25:09publish this. And I'm just going to
  17293. 11:25:11click over here and open chat.
  17294. 11:25:15Then let's ask it a particular question.
  17295. 11:25:18Um, what I'm going to ask over here is
  17296. 11:25:21what is the most valuable basketball
  17297. 11:25:26card in 1961 Fleer?
  17298. 11:25:31And again, just a stupid question, but
  17299. 11:25:34it should be a Will Chamberlain and
  17300. 11:25:36we'll get the exact results here. I'm
  17301. 11:25:38curious if it actually gives us like an
  17302. 11:25:39auction price or just as the exact card.
  17303. 11:25:42So, I could see both. They'll say this
  17304. 11:25:45the Wilt Chamberlain and then it'll tell
  17305. 11:25:47us some of the auction sales. But we'll
  17306. 11:25:49see. Again, just make sure before you
  17307. 11:25:50actually test in the chatub you have
  17308. 11:25:52that. And look at that. Without a
  17309. 11:25:54question, Wilt Chamberlain
  17310. 11:26:00PSA 9 have sold for 600 to 700,000. That
  17311. 11:26:03is correct. Runner up, Oscar Robertson,
  17312. 11:26:06Jerry West, and Elgen Baylor. That is
  17313. 11:26:10also correct over here.
  17314. 11:26:12All right. Great. So, we're going to
  17315. 11:26:14test this out now in ChatHub. So, again,
  17316. 11:26:16we made sure that this is available in
  17317. 11:26:18Cathub. We published our workflow and
  17318. 11:26:20our AI agent is streaming. So, those are
  17319. 11:26:22the three things you're going to have to
  17320. 11:26:23do. We're going to go over here and
  17321. 11:26:25we're going to just refresh this. Should
  17322. 11:26:27be available now.
  17323. 11:26:30Cool. You can see section 17, ChatHub is
  17324. 11:26:32available on here. Now, I didn't add in
  17325. 11:26:34a description. You can actually add in
  17326. 11:26:35your description as well for your
  17327. 11:26:37specific workflow. I didn't do that, but
  17328. 11:26:39you can see this populates over here.
  17329. 11:26:41Let me just show you really fast how we
  17330. 11:26:42can add a description. So, click these
  17331. 11:26:44three dots, edit description, and I'm
  17332. 11:26:46just going to say basic
  17333. 11:26:50tutorial showing chat hub like that.
  17334. 11:26:53Again, nothing like too spectacular. I
  17335. 11:26:56would recommend that you actually write
  17336. 11:26:57a detailed description for your users
  17337. 11:26:59that are doing this. Also, one of the
  17338. 11:27:01things I would recommend to I'm going to
  17339. 11:27:03have to republish this and save it for
  17340. 11:27:05it to show, but that's all right.
  17341. 11:27:06Obvious if you go over here, you can see
  17342. 11:27:07edit description that's over here.
  17343. 11:27:09Another thing I would recommend you do
  17344. 11:27:11is even outside of any end, write some
  17345. 11:27:13documentation on how things like work,
  17346. 11:27:15like what type of prompts you're
  17347. 11:27:16expecting to come in because obviously
  17348. 11:27:19this is pretty open-ended right now.
  17349. 11:27:20Like people can write whatever they want
  17350. 11:27:23and I don't always recommend that
  17351. 11:27:25especially if you're trying to get great
  17352. 11:27:27results. So I'd build out some sort of
  17353. 11:27:28template outside like these are prompts
  17354. 11:27:30I would expect to have over here um just
  17355. 11:27:32so that things work properly. Anyways,
  17356. 11:27:35and we're going to ask over here what is
  17357. 11:27:37the most valuable? Let's go. What is the
  17358. 11:27:41most valuable card in 1961 Fleer
  17359. 11:27:45basketball
  17360. 11:27:48that is not a rookie card? All those are
  17361. 11:27:51rookie cards. Um so, uh it's going to be
  17362. 11:27:54a Celtics player if you know vintage
  17363. 11:27:56basketball, but we'll get the exact
  17364. 11:27:59results over here in a second.
  17365. 11:28:02Let that run and you can see it's going
  17366. 11:28:03to go into our chat hub. I'll show you
  17367. 11:28:05some other pretty cool things here in a
  17368. 11:28:06second once we get the actual answer.
  17369. 11:28:09And again, you can see like I didn't
  17370. 11:28:10define a model. All I'm defining is that
  17371. 11:28:12specific workflow right over here. And
  17372. 11:28:14it's going to get me that exact result.
  17373. 11:28:17Show you where you can find this in your
  17374. 11:28:18chat as well here in a second once this
  17375. 11:28:20loads. That might take a little bit, but
  17376. 11:28:24most valuable card 61 that is not a
  17377. 11:28:26rookie card is Bill Russell Celtics.
  17378. 11:28:28There you go. U so there's that one.
  17379. 11:28:30Paul Aerin over there. Um technically
  17380. 11:28:34not a rookie. Caveat will Chamberlain.
  17381. 11:28:36It's amazing. It knows that because some
  17382. 11:28:38people will argue that it's a rookie.
  17383. 11:28:40Some people will not argue that it is
  17384. 11:28:42not a rookie card. So, um I love that
  17385. 11:28:45over here. Gemini is such a great model
  17386. 11:28:47because it even knows the nuances of
  17387. 11:28:49vintage card collecting, which is a
  17388. 11:28:50very, very small niche of collectors out
  17389. 11:28:53there that will argue about this. But,
  17390. 11:28:56uh yeah, that's pretty amazing. Oh, we
  17391. 11:28:58got this correct over here on that side
  17392. 11:29:00of things. So actually if you want to
  17393. 11:29:02test this out and you're like hey this
  17394. 11:29:04might bug like where can I see what's
  17395. 11:29:06going on. If you go to executions take a
  17396. 11:29:08look at this. So we know this is coming
  17397. 11:29:11from chatub and you'll see it says when
  17398. 11:29:13chat message received it goes into the
  17399. 11:29:15agent. So our chat message the most
  17400. 11:29:16valuable card that is not a rookie card.
  17401. 11:29:18And then we have our AI agent over here.
  17402. 11:29:20You know, I didn't bring this up to the
  17403. 11:29:21N team when we talked about ChatHub, but
  17404. 11:29:24I do think it would be kind of
  17405. 11:29:25interesting if there was like an icon
  17406. 11:29:26over here that just mentioned that this
  17407. 11:29:28was coming from ChatHub just to quickly
  17408. 11:29:30see this because I can see people
  17409. 11:29:32testing this directly in here or going
  17410. 11:29:35ChatHub. So, maybe an icon would be kind
  17411. 11:29:37of nice maybe in the future. I'll I'll
  17412. 11:29:39bring it up next time I talk to them.
  17413. 11:29:40Um, so again, this is like the very
  17414. 11:29:43basic prototype. So, I'm going to pause
  17415. 11:29:45the video really quick on my side of
  17416. 11:29:48things. I want to build out another
  17417. 11:29:49workflow within this chat hub. We're
  17418. 11:29:52actually going to just probably make a a
  17419. 11:29:54V2 over here for section 17. Both will
  17420. 11:29:56be in the school group. And I just want
  17421. 11:29:58to show you like what happens if you
  17422. 11:29:59have a chat trigger, multiple nodes, and
  17423. 11:30:01then another chat trigger or not chat
  17424. 11:30:03trigger, but AI agent at the very end
  17425. 11:30:06just to respond because it is slightly
  17426. 11:30:08different. Um, so really quick, just
  17427. 11:30:11before I pause to show you, [snorts] oh,
  17428. 11:30:13if we want to get into a workflow agent,
  17429. 11:30:15just click this over here, workflow
  17430. 11:30:16agents, and then you can see I go over
  17431. 11:30:18here to section 17, chat hub, and now
  17432. 11:30:20we're directly in workflow agent. You
  17433. 11:30:22can either go over here and start with
  17434. 11:30:23that, or you can go into a new chat and
  17435. 11:30:26uh, just go to workflow agents like
  17436. 11:30:27that, and go into chatub. And, uh, I
  17437. 11:30:31think there was one other thing I just
  17438. 11:30:32wanted to show really fast. Me go back
  17439. 11:30:34to new for here, workflow agents. So you
  17440. 11:30:36can see when we write a description, we
  17441. 11:30:39actually have the information about it.
  17442. 11:30:40See it says generate a video from text.
  17443. 11:30:42Again, I have to republish this if I
  17444. 11:30:44want to make that work correctly. But
  17445. 11:30:46we'll think of a example chat message,
  17446. 11:30:49multiple nodes, and then a AI agent here
  17447. 11:30:51at the very end. I'm just going to
  17448. 11:30:52pause, think about it, and I'll be right
  17449. 11:30:54back. All right, so let's uh build out
  17450. 11:30:57our second workflow. I'm just go over
  17451. 11:30:59here and call this section
  17452. 11:31:02part two and let's get going. So, I
  17453. 11:31:06thought of an idea. This isn't the best
  17454. 11:31:08idea as well for chat hub, but it will
  17455. 11:31:11kind of get you used to it. So,
  17456. 11:31:13essentially what we're going to do and
  17457. 11:31:15make a sticky note to explain. We're
  17458. 11:31:17going to get a chat. So, we'll get a
  17459. 11:31:19message.
  17460. 11:31:21Then, what I want to do is uh learn
  17461. 11:31:24about that message about the message.
  17462. 11:31:27We're going to do that through an AI
  17463. 11:31:29agent. I'm going to show you guys a
  17464. 11:31:30little bit later actually some other
  17465. 11:31:33nodes that you could utilize that
  17466. 11:31:37oh but for now since I haven't taught
  17467. 11:31:40you about those we're just going to use
  17468. 11:31:42a blank AI agent. Then we're going to go
  17469. 11:31:45and get an RSS feed based off of the
  17470. 11:31:47company someone wants to research bas
  17471. 11:31:50recent news around. We're going to limit
  17472. 11:31:52those results because RSS feeds can give
  17473. 11:31:55you a lot of results. Then what we're
  17474. 11:31:58going to do is summarize the results
  17475. 11:32:01so that way we have all the items in one
  17476. 11:32:03thing and finally send the AI agent
  17477. 11:32:06which then goes back to chat. So as I
  17478. 11:32:10mentioned like there's way better ways
  17479. 11:32:12that we could do this with like rag and
  17480. 11:32:15really build out some advanced workflows
  17481. 11:32:16with other AI nodes but since I haven't
  17482. 11:32:19taught you guys that yet maybe we can
  17483. 11:32:21explore this a little bit later on in
  17484. 11:32:23the course. So let's do this one. So,
  17485. 11:32:25first thing what I'm going to do is set
  17486. 11:32:26up a chat trigger.
  17487. 11:32:29And we'll grab that over here. And we'll
  17488. 11:32:32want to make this chat available in any
  17489. 11:32:34end chat. And uh we have that over here.
  17490. 11:32:38Again, you can put a name and a
  17491. 11:32:39description over here. I think I skipped
  17492. 11:32:41this step a little bit earlier. So, I
  17493. 11:32:44apologize on this. We'll say like RSS
  17494. 11:32:47researcher
  17495. 11:32:49for news
  17496. 11:32:50researches RSS feed.
  17497. 11:32:54for you. All right. So, we have
  17498. 11:32:56something like that. Okay. The next
  17499. 11:32:59step, what we're going to do is build
  17500. 11:33:00out an AI agent. So, what we're going to
  17501. 11:33:03do in inside our AI agent first is we
  17502. 11:33:05have this connected to chat. So, we're
  17503. 11:33:07good there. We're going to add in a chat
  17504. 11:33:08model. So, let's add in anthropic on the
  17505. 11:33:11side of things. I'm just going to use
  17506. 11:33:12Sonnet 45. Right. Then, what I want to
  17507. 11:33:15do is uh go and add option. And I want
  17508. 11:33:19to go over here.
  17509. 11:33:22Sorry, not add option, but I want to
  17510. 11:33:23require a specific output format. And
  17511. 11:33:26what we're going to do is add in a
  17512. 11:33:28structured output parser. All right. So,
  17513. 11:33:30what we're going to have in over here,
  17514. 11:33:32we're just going to remove this last
  17515. 11:33:34one. And then I'm going to go over here
  17516. 11:33:36and call this RSS URL. So, RSS URL. And
  17517. 11:33:41then I'm just going to put over here
  17518. 11:33:43example.com
  17519. 11:33:46RSS. So essentially what we're going to
  17520. 11:33:48do with our AI agent now is we're going
  17521. 11:33:50to go and add in a system message. Now I
  17522. 11:33:52already practiced this for you guys. So
  17523. 11:33:55I'm just going to type this out or sorry
  17524. 11:33:58paste this over here and I'm just going
  17525. 11:33:59to say a user will ask about the latest
  17526. 11:34:01news about a company. I want you to
  17527. 11:34:02research the RSS feed for a company and
  17528. 11:34:04give me me the URL to use only output
  17529. 11:34:07the URL. So essentially if I know a
  17530. 11:34:10website has an RSS feed, they're going
  17531. 11:34:11to constantly post news about it. I
  17532. 11:34:13don't want to have someone research that
  17533. 11:34:15RSS URL and spend time. This is going to
  17534. 11:34:18automatically give me that RSS. So
  17535. 11:34:20hopefully that makes sense. Obviously,
  17536. 11:34:21you can build this out way better. I'm
  17537. 11:34:23just making a very quick uh section of a
  17538. 11:34:26very long YouTube video. All right, so
  17539. 11:34:28we have that. Next thing we're going to
  17540. 11:34:31do is add in RSS. So we're going to go
  17541. 11:34:33RSS read. And what we're going to have
  17542. 11:34:35to do is pass in that specific URL. So,
  17543. 11:34:38I'm just going to test this out and I'm
  17544. 11:34:40just going to say Open AI or something
  17545. 11:34:42like that. So, what I'll do is first
  17546. 11:34:45disconnect this and I'll say
  17547. 11:34:49open AI. It'll go through here and it
  17548. 11:34:54will get me that specific RSS URL. And
  17549. 11:34:56you can see we have RSS XML like that,
  17550. 11:35:00which I believe this is the correct one.
  17551. 11:35:01I'm just going to pin this for testing
  17552. 11:35:03purposes and uh just go over here and
  17553. 11:35:07grab that. So, grab the RSS URL.
  17554. 11:35:12You can see 793 items. Perfect.
  17555. 11:35:14Obviously, we don't want to send 793
  17556. 11:35:16items to our next AI agent. So, what I'm
  17557. 11:35:18going to do is do a limit. So, we're
  17558. 11:35:20going to go over here to limit. I'm
  17559. 11:35:22going to set the max items of five.
  17560. 11:35:24Obviously, you can change that as you
  17561. 11:35:26want. And you'll see now we only have
  17562. 11:35:28five items. We have all this in a table.
  17563. 11:35:30Title, link, publish date, etc. Content
  17564. 11:35:33snippet, good, ISO date. Great. Cool.
  17565. 11:35:36So, next section, what we're going to do
  17566. 11:35:38is add all of these items together. And
  17567. 11:35:42again, I I told you a little bit earlier
  17568. 11:35:44in the course. I like using summarize
  17569. 11:35:47because I feel it gives us a lot more
  17570. 11:35:49customization options to it. So, I'm
  17571. 11:35:52going to go into concatenate.
  17572. 11:35:54What we're going to concatenate is the
  17573. 11:35:55content itself. So, we're going to throw
  17574. 11:35:57content over here. And then I'm gonna
  17575. 11:35:59add in actually a custom separator. So
  17576. 11:36:02I'm going to do slashn for new line.
  17577. 11:36:05Then I'm going to spam this a little bit
  17578. 11:36:06and I'm gonna say slashn just to let it
  17579. 11:36:08know like hey these are new sections
  17580. 11:36:10slashn slashn. Right. So if I execute
  17581. 11:36:13this step now you'll see we have this
  17582. 11:36:16big text block. This is a part of an
  17583. 11:36:18article or content. This is part of an
  17584. 11:36:20article. And actually I should probably
  17585. 11:36:21put a space here at the end just so that
  17586. 11:36:24way it doesn't
  17587. 11:36:26take up too much. Let's execute the
  17588. 11:36:29step. Good. Now you can see it's a
  17589. 11:36:30little bit more readable. Um, and you
  17590. 11:36:32can see where we have these new lines
  17591. 11:36:34and that is working correctly. Perfect.
  17592. 11:36:37So now like we have one, two, three,
  17593. 11:36:41four, five. Right? So that's the point.
  17594. 11:36:43Now we're going to send all this back
  17595. 11:36:44into an AI agent. So I'm going to go
  17596. 11:36:46into our AI agents
  17597. 11:36:48and uh, now we have to change a few
  17598. 11:36:50things up. So, first thing we're gonna
  17599. 11:36:52have to change up is we're gonna define
  17600. 11:36:55below and let me grab what I put for the
  17601. 11:36:58prompt over here.
  17602. 11:37:00So, I wrote a very very basic prompt
  17603. 11:37:02again like don't do this in a
  17604. 11:37:04production. I said based on the content
  17605. 11:37:06provide a two to three sentence summary
  17606. 11:37:07based on what is going on with recent
  17607. 11:37:08news. And there's better AI nodes out
  17608. 11:37:11there as well for summarization. We're
  17609. 11:37:13covering that a little bit later on. So,
  17610. 11:37:15what we're going to do is just drag and
  17611. 11:37:16drop this over here. I would just
  17612. 11:37:17recommend making this an expression
  17613. 11:37:19first. Then drag and drop that in. Cool.
  17614. 11:37:22So we have this. And I'm just going to
  17615. 11:37:23say contents
  17616. 11:37:26like that. Perfect. So let me save that.
  17617. 11:37:31We also need to attach a chat model. I'm
  17618. 11:37:33just going to go open AI this time.
  17619. 11:37:36It's fine for summarization. I'm going
  17620. 11:37:38to go to my specific accounts and grab
  17621. 11:37:40GPT5 mini. Obviously change the model as
  17622. 11:37:44you specifically want. And we have one
  17623. 11:37:46more thing we need to go over here and
  17624. 11:37:48do. If you go over here and look for
  17625. 11:37:50streaming. So you need to enable
  17626. 11:37:52streaming and then perfect. So I just
  17627. 11:37:54want to test this out really quick. So
  17628. 11:37:56based on the content provided to three
  17629. 11:37:58sentence summary. Perfect. All right.
  17630. 11:38:00We'll execute the step.
  17631. 11:38:04Just testing this out. Create. And there
  17632. 11:38:07we go. Enterprise adoption. Canva modern
  17633. 11:38:12PayPal Virgin Atlantic. BBBA Cisco. US
  17634. 11:38:15government. Cool.
  17635. 11:38:18all that information over there. Great.
  17636. 11:38:20So now what we need to do is publish
  17637. 11:38:22this workflow and unpin our data. So
  17638. 11:38:24first unpin our data on that side of
  17639. 11:38:26things. We're going to click save. So no
  17640. 11:38:29no data is pinned. So we're looking good
  17641. 11:38:31there. We're going to publish this. I'm
  17642. 11:38:33going to say version one RSS
  17643. 11:38:37AI and we're just going to say added in
  17644. 11:38:40streaming. I don't know. It doesn't
  17645. 11:38:41matter. Write write your changes over
  17646. 11:38:43here. Obviously, for a change log, it's
  17647. 11:38:45it's actually important, but um this is
  17648. 11:38:48for just a quick video. Cool. So, we
  17649. 11:38:50have all of this built in over here.
  17650. 11:38:53And what we need to do is now go back
  17651. 11:38:55into our chat. We're going to go into
  17652. 11:38:57our workflow agents. And you can see our
  17653. 11:38:59ISS researcher news is over here. So,
  17654. 11:39:02I'm literally just going to type in a
  17655. 11:39:04website. Let's go an example and do
  17656. 11:39:06OpenAI. So, Open AI
  17657. 11:39:10and it should now run that specific
  17658. 11:39:12workflow. And we actually got an error.
  17659. 11:39:15That is interesting. So I'm going to
  17660. 11:39:17pause that and we're actually going to
  17661. 11:39:18debug this here in a second. All right.
  17662. 11:39:21So let's take a look at what happened.
  17663. 11:39:24So I have our executions over here.
  17664. 11:39:28So we sent in the message as open AI and
  17665. 11:39:32I have a user asked about the latest
  17666. 11:39:34news about a company. I want you to
  17667. 11:39:35research RSS feed. Only output the URL.
  17668. 11:39:38I need to actually define this a little
  17669. 11:39:40bit better. Also, I apologize if you
  17670. 11:39:42hear the dog in the background. Um, user
  17671. 11:39:44will ask you latest, I want you to
  17672. 11:39:46research RSS feed and give me the RSS
  17673. 11:39:50URL to use only output the RSS URL.
  17674. 11:39:58For example,
  17675. 11:40:00if someone s searches
  17676. 11:40:05or asks about Microsoft and I'm just
  17677. 11:40:09going to search Microsoft RSS really
  17678. 11:40:11quick. Microsoft RSS URL.
  17679. 11:40:20I'm probably going to go into Perplexity
  17680. 11:40:22and search that.
  17681. 11:40:29What is the RSS URL? Microsoft. And I
  17682. 11:40:32know it's on my other screen. I'm just
  17683. 11:40:34going to show you guys this in a second.
  17684. 11:40:37Cool. We have this over here. Okay.
  17685. 11:40:39Let's just say Microsoft AIF RSS feed
  17686. 11:40:43URL. I'm sure there's one over here.
  17687. 11:40:49Great. So, we have that URL.
  17688. 11:40:52I'm going to paste this over here.
  17689. 11:40:55Microsoft AI
  17690. 11:40:57Let's try this a second time. Cool. So,
  17691. 11:41:01we'll save that and we'll go back over
  17692. 11:41:04here and try this again. So, go to new
  17693. 11:41:07chat again. This is why you build out
  17694. 11:41:09and test a lot more than just once, but
  17695. 11:41:12that's perfectly fine. All right. So,
  17696. 11:41:14we're going to go into our RSS
  17697. 11:41:16researcher news. I'll say latest news
  17698. 11:41:20open AI. And hopefully this goes through
  17699. 11:41:23the entire workflow.
  17700. 11:41:30All right. So, we're having errors there
  17701. 11:41:32again. I'm just going to stop this
  17702. 11:41:34really fast. I'm going to remove that
  17703. 11:41:37test one more time.
  17704. 11:41:42And you know what? I need to republish
  17705. 11:41:44this as well. So, we're just going to
  17706. 11:41:46say v2
  17707. 11:41:48because the changes I made in here
  17708. 11:41:50aren't going to be applicable on that
  17709. 11:41:52side of things. All right, we're going
  17710. 11:41:54to try this again.
  17711. 11:41:57And I'm just going to say latest news
  17712. 11:41:58open AAI
  17713. 11:42:04now. It looks like it's actually
  17714. 11:42:05working. And I'm actually kind of glad
  17715. 11:42:08that I have some errors so that way we
  17716. 11:42:11can test this out. All right, so OpenAI
  17717. 11:42:12says more than 1 million customers.
  17718. 11:42:15Great. So now let's try something else.
  17719. 11:42:17We'll say latest
  17720. 11:42:19news anthropic.
  17721. 11:42:23Let's see if we can get something with
  17722. 11:42:24entropic.
  17723. 11:42:29Please try again. All right. So now
  17724. 11:42:31let's go back into our executions. Let's
  17725. 11:42:32see what happened over here. What is our
  17726. 11:42:34error on this side of things?
  17727. 11:42:37We actually got a bad URL. So you can
  17728. 11:42:39see it says that is the URL for
  17729. 11:42:42Enthropic. However, that is not correct.
  17730. 11:42:45And maybe they don't have RSS feed. Um,
  17731. 11:42:47all right. Let's take a look at another
  17732. 11:42:49one. Maybe Perplexity has one. So, we'll
  17733. 11:42:51go latest news Perplexity. Again, I I
  17734. 11:42:54know this wasn't the best example, and
  17735. 11:42:56I've told you guys this a few times, but
  17736. 11:42:58we'll do latest news perplexity. See if
  17737. 11:43:00it works.
  17738. 11:43:03I assume it's the same thing with
  17739. 11:43:04Perplexity.
  17740. 11:43:08D code 403.
  17741. 11:43:11All right. So, we're not actually
  17742. 11:43:12getting the RSS URLs. Uh, let's look up
  17743. 11:43:16what are some other RSS URLs for AI
  17744. 11:43:19news.
  17745. 11:43:24And, uh,
  17746. 11:43:26just going to search this really fast.
  17747. 11:43:29All right, we're going to look up
  17748. 11:43:31something over here
  17749. 11:43:33and say uh, AI models FYI. That's one
  17750. 11:43:38possibly. Hold on. I'm trying to find
  17751. 11:43:40another good one. Oh, business insider
  17752. 11:43:43might be interesting.
  17753. 11:43:45Let's do business insider.
  17754. 11:43:48We'll go latest
  17755. 11:43:51business insider.
  17756. 11:43:55All right. And if this doesn't work, you
  17757. 11:43:57know,
  17758. 11:43:59I'll have to change some stuff. But, uh,
  17759. 11:44:02hopefully this example works. Knock on
  17760. 11:44:04wood. There we go. So obviously like
  17761. 11:44:08this needs a lot of work just based off
  17762. 11:44:10of the prompting if there's an RSS feed
  17763. 11:44:12or not like sending some message back
  17764. 11:44:14that there is none. But you can see in
  17765. 11:44:16this workflow um it worked properly. You
  17766. 11:44:18can see we have our chat message goes to
  17767. 11:44:20our AI agent. AI agent finds the RSS for
  17768. 11:44:23business insider
  17769. 11:44:25RSS over here. It gives us 20 new
  17770. 11:44:28articles and then we have the updates
  17771. 11:44:30over there. Um we can try one more.
  17772. 11:44:33Let's do Crunch Base. So, we go latest
  17773. 11:44:36news. Crunch base.
  17774. 11:44:38News. Crunch base.
  17775. 11:44:44That should be fine. Try it out. I see
  17776. 11:44:47it as a subdomain, at least on this RSS
  17777. 11:44:50list I'm looking at. So, I don't know if
  17778. 11:44:51it'll work correctly or not. Again,
  17779. 11:44:54that'd be something I'd probably put in
  17780. 11:44:55the prompt if it doesn't.
  17781. 11:44:58There we go.
  17782. 11:45:01Awesome. So that is a chat hub.
  17783. 11:45:04Essentially, if you want to
  17784. 11:45:06have an AI agent start, I would
  17785. 11:45:08recommend you have a chat message, AI
  17786. 11:45:11agent or another node, which I'll show
  17787. 11:45:13you shortly, processes, what's in that
  17788. 11:45:15message. Then you build out a very basic
  17789. 11:45:17workflow. I just shown you RSS one as
  17790. 11:45:20well as summarize and then go back into
  17791. 11:45:22an AI agent. Just imagine that there's
  17792. 11:45:24streaming. Sorry. So just make sure that
  17793. 11:45:27you enable streaming at the very end. So
  17794. 11:45:28it goes back into chat hub again. In
  17795. 11:45:31chatub you have personal agents which
  17796. 11:45:33you can define your own system prompt.
  17797. 11:45:35You can add in tools. Right now there's
  17798. 11:45:36two tools but there will be more
  17799. 11:45:38workflow agents work directly with your
  17800. 11:45:40workflows that have a chat trigger and
  17801. 11:45:42then streaming available at the very
  17802. 11:45:44end. Um you can go and use this kind of
  17803. 11:45:47like chat GPT. You can go and choose a
  17804. 11:45:49model if you want or you can go over
  17805. 11:45:51here and choose a personal agent which I
  17806. 11:45:53talked about or your workflow agents.
  17807. 11:45:56And again you can choose different
  17808. 11:45:57options based off of the security level
  17809. 11:45:59of a person. So if you don't want them
  17810. 11:46:01accessing your workflows, you can just
  17811. 11:46:02set them to chaton privilege. And that
  17812. 11:46:05is chat hub. So next section we're going
  17813. 11:46:08to do is talk about testing and
  17814. 11:46:09debugging strategies, which I guess we
  17815. 11:46:12already looked at a little bit of the
  17816. 11:46:13basics over here, but that was a little
  17817. 11:46:14bit of a warm preview for that. Uh keep
  17818. 11:46:17up the awesome work. You know, uh we've
  17819. 11:46:20learned a lot so far in this course and
  17820. 11:46:22hopefully you have really increase your
  17821. 11:46:25A skills. All right, see you in the next
  17822. 11:46:27section. So this section is going to
  17823. 11:46:28cover something pretty important. A lot
  17824. 11:46:31of people will find it boring and um
  17825. 11:46:33know it's unfortunate but it is
  17826. 11:46:35something that you need to understand to
  17827. 11:46:37really take your workflows to the next
  17828. 11:46:39level and this is going to be error
  17829. 11:46:42handling. So what happens if there is an
  17830. 11:46:45error in a workflow? Everyone thinks
  17831. 11:46:46they can build out perfect workflows but
  17832. 11:46:49the real world hits you. In reality
  17833. 11:46:51that's not the case. Like there's always
  17834. 11:46:52going to be some sort of edge case. some
  17835. 11:46:55API service is going to be down and
  17836. 11:46:57you're going to be stuck with an error.
  17837. 11:46:59And you know, a lot of people that are
  17838. 11:47:01on the amateur level will not build out
  17839. 11:47:04specific use cases for error handling.
  17840. 11:47:06And it's important, really important.
  17841. 11:47:09Um, that's going to be one part of the
  17842. 11:47:10video. Another one is going to be about
  17843. 11:47:12debugging and really kind of thinking of
  17844. 11:47:16how can you fix an error that is going
  17845. 11:47:18on in your workflow. We're also going to
  17846. 11:47:21cover some of the nodes and that can be
  17847. 11:47:23helpful in debugging as well because
  17848. 11:47:26there's two sides of debugging, right?
  17849. 11:47:28There's the debugging of your workflow
  17850. 11:47:30not working but then um that goes into
  17851. 11:47:33errors but you also have the side of
  17852. 11:47:35debugging where like you're not getting
  17853. 11:47:36the correct results in some capacity. So
  17854. 11:47:39just wanted to share some nodes that
  17855. 11:47:41might help over there show some
  17856. 11:47:43strategies and we're going to combine
  17857. 11:47:44these together. So this is going to be
  17858. 11:47:46our section on error handling as well as
  17859. 11:47:49debugging. Hopefully you learn a few
  17860. 11:47:50things and hopefully it it really
  17861. 11:47:52doesn't for you.
  17862. 11:47:55Promise you after this we're going to go
  17863. 11:47:56into some really cool AI notes in the
  17864. 11:47:58next lesson so that way you have some
  17865. 11:48:00more exciting things to learn. Again, I
  17866. 11:48:02understand this is not everyone's
  17867. 11:48:04favorite topic. So, let's jump into it.
  17868. 11:48:08First thing what we want to do is make
  17869. 11:48:10some errors happen. And uh it'll be kind
  17870. 11:48:13of fun. So, what I'm going to do is do a
  17871. 11:48:15manual trigger. And what we'll set up is
  17872. 11:48:18an AI agent. So, just go over here, grab
  17873. 11:48:20our AI agent. You should be pretty
  17874. 11:48:21familiar with how to set this up, and
  17875. 11:48:24we're going to remove this chat trigger.
  17876. 11:48:27Let's remove that out of the way.
  17877. 11:48:30And uh yeah, so what we're going to do
  17878. 11:48:32is go in over here. We're going to say
  17879. 11:48:35define below. And the first thing what
  17880. 11:48:37we're going to do is make an error
  17881. 11:48:38happen on purpose. Obviously, I don't
  17882. 11:48:40have a chat model. I'm just going to run
  17883. 11:48:41this workflow. And you'll see it says
  17884. 11:48:44problem executing workflow. There was a
  17885. 11:48:46problem executing the workflow has
  17886. 11:48:47issues and cannot be executed. the
  17887. 11:48:48workflow has issues. Let's try running
  17888. 11:48:51it internally over here. And you'll see
  17889. 11:48:54that there's issues. So, I'm going to
  17890. 11:48:55just save this. If we go into our
  17891. 11:48:57executions, you'll see we also have
  17892. 11:49:00errors over here. And uh yeah, it says
  17893. 11:49:03error in 23 milliseconds.
  17894. 11:49:06And you'll see exactly where our error
  17895. 11:49:08is at. Um this tells us we're in a test
  17896. 11:49:10execution. If we don't have this icon,
  17897. 11:49:12we're in a normal execution in
  17898. 11:49:14production. So, be wary of that. But
  17899. 11:49:18there's some ways to handle these errors
  17900. 11:49:20here in a second. I just was going to
  17901. 11:49:21show you like what happens. Now, by
  17902. 11:49:23default, I think everyone knows like if
  17903. 11:49:26there is an error, your workflow will
  17904. 11:49:28stop. But that's not always the case. We
  17905. 11:49:30can actually change the way that we
  17906. 11:49:33approach this. So, we can actually
  17907. 11:49:36continue forward. And it says execution
  17908. 11:49:38will continue even if the node fails.
  17909. 11:49:40And you can see we have this icon over
  17910. 11:49:42here. So, we can run this. And actually
  17911. 11:49:44looks like we probably have another
  17912. 11:49:45error probably because we don't have a
  17913. 11:49:46chat model in over here. Um but you can
  17914. 11:49:49see we would be able to continue this
  17915. 11:49:51forward. Another option that we have is
  17916. 11:49:53we can go and continue with an error
  17917. 11:49:56output. So what this allows us to do is
  17918. 11:49:59have a second output. If our note is
  17919. 11:50:01success, we go in this way. If we have
  17920. 11:50:03an error, we go into this path. And why
  17921. 11:50:07this is important? Well, you can set
  17922. 11:50:09that second path to notify people on
  17923. 11:50:11your team or notify yourself. You might
  17924. 11:50:13have that second path. Send an email to
  17925. 11:50:16an IT administrator or send an email to
  17926. 11:50:19your AI engineer that's focused directly
  17927. 11:50:21on building out your NA workflows. So
  17928. 11:50:25with an error, you have the three
  17929. 11:50:27options. You can either stop the
  17930. 11:50:28workflow, nothing happens. You could go
  17931. 11:50:31and continue the workflow even if a node
  17932. 11:50:34fails or you could go into that specific
  17933. 11:50:37error output. Now the second part of it
  17934. 11:50:39is what happens if there's a failure?
  17935. 11:50:42Can we retry it? Well, you can. And you
  17936. 11:50:44can see that there's an option over
  17937. 11:50:45here. It says retry on fail. So, if you
  17938. 11:50:48click on that, you have a few different
  17939. 11:50:50settings. So, by default, it says you
  17940. 11:50:52have three max retries. So, this tells
  17941. 11:50:54you how many times you're going to retry
  17942. 11:50:56that particular node. Why this is
  17943. 11:50:59helpful? If you're calling an API or
  17944. 11:51:01you're using like some sort of AI agent,
  17945. 11:51:03sometimes the API service is going to be
  17946. 11:51:05down. So, you might want to retry this
  17947. 11:51:07again multiple times for it to work
  17948. 11:51:09properly. So, um, by default it's 1,000
  17949. 11:51:12milliseconds, which is 1 second. You can
  17950. 11:51:15change that. If you go over here, 2
  17951. 11:51:17seconds, 3 seconds, you get the point.
  17952. 11:51:19The same with the retries. It doesn't
  17953. 11:51:21have to be three, it could be two, it
  17954. 11:51:23could be four, it could be seven. You
  17955. 11:51:25choose what you want. And these settings
  17956. 11:51:28can be in addition to what happens with
  17957. 11:51:30the error. So, you can see this example
  17958. 11:51:32over here. Um, we have retry on failure.
  17959. 11:51:35And then we go in here and say hey we
  17960. 11:51:37want to actually continue even after we
  17961. 11:51:39retry. So you see the icon has changed
  17962. 11:51:43if we want to continue error output
  17963. 11:51:44again icon has changed as well. Um so
  17964. 11:51:48not icon but the ends have changed over
  17965. 11:51:50here as well. So you have a few
  17966. 11:51:51different options on the errors on that
  17967. 11:51:54side. Again this is by default you can
  17968. 11:51:56uh stop workflow and doesn't retry on
  17969. 11:51:59fill but if it's really important I
  17970. 11:52:00would just recommend that you change
  17971. 11:52:02that. Uh, okay. So, we have that side
  17972. 11:52:06covered. The next thing what I want to
  17973. 11:52:09talk about is the error node. And this
  17974. 11:52:12is pretty cool because if we go into
  17975. 11:52:13this side over here, you'll see there's
  17976. 11:52:17something called stop an error. So, let
  17977. 11:52:18me just say stop and error. So, whenever
  17978. 11:52:21this node is called, there's going to be
  17979. 11:52:24an error message. So, you can see stop
  17980. 11:52:25an error and it says an error occurred
  17981. 11:52:28by default. We can say that. So, an
  17982. 11:52:30error occurred. And why this is helpful,
  17983. 11:52:35you can see we have the red X. This is
  17984. 11:52:37what happens, by the way, if your
  17985. 11:52:38workflow fails. When you go to
  17986. 11:52:40executions, you'll see it over here. It
  17987. 11:52:42says error.
  17988. 11:52:44You can see stop in error. This isn't
  17989. 11:52:46set up correctly, which is why that has
  17990. 11:52:48issues. This actually has an error. But
  17991. 11:52:51yeah, so you can specify what type of
  17992. 11:52:54error message you want. I'm going to say
  17993. 11:52:57error occurred like this.
  17994. 11:52:59You can see that has specifically
  17995. 11:53:01changed. But why this is helpful? Let's
  17996. 11:53:03imagine you have some sort of logic in
  17997. 11:53:05your workflow and you say anything that
  17998. 11:53:07goes to this branch, this should never
  17999. 11:53:08happen. Well, and let me just show you
  18000. 11:53:11that as example. Let's say we have an if
  18001. 11:53:13statement or we could have a switch or
  18002. 11:53:15something like that. And you know, okay,
  18003. 11:53:17all cases technically should be if, but
  18004. 11:53:19just like there's this really weird edge
  18005. 11:53:21case that sometimes happens and if this
  18006. 11:53:23happens, someone needs to know. Um, so
  18007. 11:53:26let's go and run the stop and error. So
  18008. 11:53:29if this returns false, it has that
  18009. 11:53:32specific error and obviously you can
  18010. 11:53:34build upon that error as you
  18011. 11:53:36specifically want. But you have that
  18012. 11:53:40option over here to use it. So again in
  18013. 11:53:44our AI agent we have the options to
  18014. 11:53:46retry and this is all nodes by the way
  18015. 11:53:48just to show you it's not just a agent.
  18016. 11:53:51If we go to edit sets we go to settings
  18017. 11:53:54you can see over here we have the option
  18018. 11:53:56to retry on fail and and error. Right?
  18019. 11:53:58So we have that option in both but we
  18020. 11:54:03have those settings to stop and handle
  18021. 11:54:05errors. We also have a way to cause
  18022. 11:54:07errors on purpose with the stop and
  18023. 11:54:09error. Again, very commonly used after
  18024. 11:54:12an if node or a switch node.
  18025. 11:54:15And you know, obviously it depends on
  18026. 11:54:18where you want to host this, but
  18027. 11:54:20typically after some sort of logic like
  18028. 11:54:22this where you expect 99% of the cases
  18029. 11:54:24to go in one direction, if it's
  18030. 11:54:26something really weird, stop an air. But
  18031. 11:54:29let me also explain there's some other
  18032. 11:54:31really cool things that you could build
  18033. 11:54:33out with this because if you actually
  18034. 11:54:36have errors, you could send those errors
  18035. 11:54:39to another workflow. So let me show you
  18036. 11:54:42this for example and we're just going to
  18037. 11:54:43create a brand new workflow.
  18038. 11:54:46I'm actually go over here workflow
  18039. 11:54:49create and personal
  18040. 11:54:51and I'm just going to make this as like
  18041. 11:54:53a part two. So what we have over here is
  18042. 11:54:57something called an error trigger. So it
  18043. 11:54:58says triggers the workflow when another
  18044. 11:55:00workflow has an error. So this is really
  18045. 11:55:03amazing because what happens? Let's
  18046. 11:55:06imagine you have a larger workflow and
  18047. 11:55:08you have some sort of error. Well, you
  18048. 11:55:11can send that error to this workflow and
  18049. 11:55:14this does all your error handling like
  18050. 11:55:16hey you need to message this person it
  18051. 11:55:18you need to log this into a spreadsheet.
  18052. 11:55:21It's really important. So like two
  18053. 11:55:22concepts that you should know is like
  18054. 11:55:24when you have an error what do you need
  18055. 11:55:26to do? Number one, you need to log your
  18056. 11:55:28errors. So, I have a background in risk
  18057. 11:55:32and um it's really important if you have
  18058. 11:55:35any sort of error that you need to log
  18059. 11:55:36it. So, make sure log your errors. This
  18060. 11:55:39could be in a database, this could be a
  18061. 11:55:43sheet like a document of any sort, but
  18062. 11:55:46you need to specify like when did you
  18063. 11:55:48have an error? You need to keep control
  18064. 11:55:50of that. The second is you need to let
  18065. 11:55:53people know. So, let people know.
  18066. 11:55:56who should know like should the AI
  18067. 11:55:58engineer knowments
  18068. 11:56:03or should like it know but that's the
  18069. 11:56:05two components of it and you can build
  18070. 11:56:07out a workflow based around this like
  18071. 11:56:08this error trigger you could connect
  18072. 11:56:10this into sheets
  18073. 11:56:13or data tables and then you could like
  18074. 11:56:16add in a new row and let's imagine you
  18075. 11:56:18had something that over here just solely
  18076. 11:56:21focused on errors. So you could add in
  18077. 11:56:23new rows over there. Let's say you have
  18078. 11:56:25a Slack channel. So you go into Slack.
  18079. 11:56:27And I haven't set up Slack on this
  18080. 11:56:28instance. Um, but you could also make a
  18081. 11:56:31message. So let's say
  18082. 11:56:35you want to create a channel based
  18083. 11:56:36around it. You can send a message.
  18084. 11:56:37Whatever the case is, send a message.
  18085. 11:56:41So you have an error. It gets sent over
  18086. 11:56:44here and then you know it updates a row
  18087. 11:56:47in a spreadsheet and it lets someone
  18088. 11:56:48know that something has happened. You
  18089. 11:56:50could also send an email. So if you go
  18090. 11:56:52to Gmail, right, you can send an email
  18091. 11:56:54as well and send a message and maybe you
  18092. 11:56:57have all three. But it's just super
  18093. 11:56:59important that you log your errors,
  18094. 11:57:01whatever the case that is. And then you
  18095. 11:57:02let people know that something has
  18096. 11:57:04failed. Now, you might be wondering,
  18097. 11:57:06it's like, okay, this is really cool,
  18098. 11:57:07but how do we get an error in here to
  18099. 11:57:11start this workflow? So if you take a
  18100. 11:57:14look at these three dots over here, and
  18101. 11:57:15you go into settings, and what we have
  18102. 11:57:18next is our errors. So it says error
  18103. 11:57:21workflow to notify when we have an
  18104. 11:57:22error. You just go over here and choose
  18105. 11:57:24your specific workflow. So you can see I
  18106. 11:57:27have an email newsletter error trigger
  18107. 11:57:28over here and an and error handling part
  18108. 11:57:30three. So those were two that I've built
  18109. 11:57:33out. I need to publish this if I wanted
  18110. 11:57:35to specifically send my errors over
  18111. 11:57:37here. So make sure that you do that. I'm
  18112. 11:57:40just going to close that out over there.
  18113. 11:57:42Um so that's the other step, right? Make
  18114. 11:57:43sure you save this, you publish it, so
  18115. 11:57:45then it will be available on that side
  18116. 11:57:48of things. But yeah, that's all you got
  18117. 11:57:50to do. Click that and then when you have
  18118. 11:57:51an error, it will populate over here and
  18119. 11:57:54you can see your executions like, hey,
  18120. 11:57:56when did this specifically run and you
  18121. 11:57:58can see that directly in over there. So,
  18122. 11:58:01I think that's pretty much the basics of
  18123. 11:58:03error handling that I want to cover. I'm
  18124. 11:58:05going to take a look at my notes and
  18125. 11:58:07double check. Um, but we're going to
  18126. 11:58:08talk about debugging here in a second if
  18127. 11:58:10I didn't forget anything. All right. I
  18128. 11:58:12just want to also quickly show you what
  18129. 11:58:14the error looks like. So for example,
  18130. 11:58:17you get the URL. It tells you what
  18131. 11:58:19description of the error is. You also
  18132. 11:58:23see like what was sent over. This was an
  18133. 11:58:25error that I had with Nano Banana Pro
  18134. 11:58:29that I had specifically. A lot more
  18135. 11:58:31other details associated with it. And
  18136. 11:58:33this is what you would kind of break up
  18137. 11:58:35and put within your spreadsheet. So you
  18138. 11:58:39can see, for example, this is kind of
  18139. 11:58:41broken out. We can get the URL, the
  18140. 11:58:44description, the date which I would put
  18141. 11:58:47as now and workflow name. Obviously, I
  18142. 11:58:50grabbed this from my other video which
  18143. 11:58:52we already had this sort of built out
  18144. 11:58:54for air handling and I have a full video
  18145. 11:58:57like I said covering air handling in
  18146. 11:58:58more details if you want to learn just
  18147. 11:59:00like everything else in uh this
  18148. 11:59:02particular video or I should say like
  18149. 11:59:0580% of it. But that is kind of the first
  18150. 11:59:08part of this video. The second part what
  18151. 11:59:11I want to cover is essentially how do we
  18152. 11:59:13debug
  18153. 11:59:17so
  18154. 11:59:20how do we debug workflows now first
  18155. 11:59:26thing I would probably recommend that
  18156. 11:59:29you do for debugging is try to see if
  18157. 11:59:33you can solve it yourself. So, it seems
  18158. 11:59:36self-explanatory, but number one, I'd
  18159. 11:59:38say try and solve first
  18160. 11:59:47if you can't figure it out. And there's
  18161. 11:59:49ways to take a look at it. The second
  18162. 11:59:51thing I would try to do is
  18163. 11:59:55grab the error
  18164. 11:59:57and then a few screenshots and send it
  18165. 12:00:00to an LLM.
  18166. 12:00:05So, how would that work?
  18167. 12:00:07Let's make an error on purpose. So,
  18168. 12:00:11I'm going to go and
  18169. 12:00:14grab my uh
  18170. 12:00:16example from one of the previous videos.
  18171. 12:00:19We'll just go all these workflows really
  18172. 12:00:21quick.
  18173. 12:00:23And I want to say it was in the web
  18174. 12:00:25scraping one. We had this. So, what I'm
  18175. 12:00:28going to do is make an error on this
  18176. 12:00:31HTTP request on purpose. Let's say we
  18177. 12:00:35have
  18178. 12:00:37Oh, yeah. We don't have an API key in
  18179. 12:00:39here. So, this is going to be perfect.
  18180. 12:00:40So, let me execute this step
  18181. 12:00:44and we're going to make an error happen.
  18182. 12:00:46So, let me grab a manual trigger,
  18183. 12:00:51which it says I need only one manual
  18184. 12:00:53trigger. That's fine. Just remove this
  18185. 12:00:55here.
  18186. 12:00:57And we're gonna make error happen over
  18187. 12:00:59here on purpose. So
  18188. 12:01:01hopefully
  18189. 12:01:05we can test this out.
  18190. 12:01:09All right. Oh, you know why? There is
  18191. 12:01:15to turn off this filter.
  18192. 12:01:17So, by the way, if you want to test
  18193. 12:01:18things out, you want to deactivate
  18194. 12:01:20things, we'll just go to the next node.
  18195. 12:01:24Cool. This is going to air.
  18196. 12:01:27Great. So, take a look at this error
  18197. 12:01:30that we have over here. It says
  18198. 12:01:31forbidden apps. Check your credentials.
  18199. 12:01:33You're not subscribed to this API. Now,
  18200. 12:01:35this is pretty basic. Like, it's saying
  18201. 12:01:37that there's an issue with the API. And
  18202. 12:01:39this is pretty self-explanatory. Like, I
  18203. 12:01:41don't have an API key. And you'll notice
  18204. 12:01:44the same errors happen over and over
  18205. 12:01:46again. But, let me show you what we
  18206. 12:01:48would do in this case. So, like imagine
  18207. 12:01:50I don't know what's happening. I'm going
  18208. 12:01:52to go to Claude. And we're going to go
  18209. 12:01:54over here, Claude. Let's
  18210. 12:01:59say what is my error my N any workflow
  18211. 12:02:08workflow
  18212. 12:02:10and can you help solve it?
  18213. 12:02:15So, first I send the error message. So,
  18214. 12:02:18you can see we have our error message.
  18215. 12:02:20We have that over here. The next thing I
  18216. 12:02:22would do is try to get all the different
  18217. 12:02:24settings. And I'm just going to close
  18218. 12:02:25out some of these over here. I don't
  18219. 12:02:27need that part too.
  18220. 12:02:29That's okay. Next, I would just scroll
  18221. 12:02:32down. So, we have everything through the
  18222. 12:02:35JSON, I want to say.
  18223. 12:02:39Or no, it's not through the JSON. We
  18224. 12:02:41have the first part over here missing.
  18225. 12:02:44So, let's just take the other
  18226. 12:02:46screenshots.
  18227. 12:02:50So we have two screenshots showing
  18228. 12:02:52everything in these parameter section
  18229. 12:02:54and I would also take a screenshot of
  18230. 12:02:57what's happening over here.
  18231. 12:03:05All right. So we have the three
  18232. 12:03:06screenshots. We have the all the
  18233. 12:03:07workflow and we have the different
  18234. 12:03:09images inside. Let's see what happens.
  18235. 12:03:18looking at own workflow there is clear
  18236. 12:03:20you're not subscribed to this API you
  18237. 12:03:23need active subscription
  18238. 12:03:27so it's saying update your any end
  18239. 12:03:29credentials with the correct API key now
  18240. 12:03:31obviously I do have a subscription but
  18241. 12:03:33the hint is over here update your any
  18242. 12:03:35end credentials with the correct API key
  18243. 12:03:37obviously I removed the API key here so
  18244. 12:03:40it's not working and that is the case
  18245. 12:03:44right so pretty self-explanatory Okay,
  18246. 12:03:48additional issues in image one. Your
  18247. 12:03:49headers show this looks truncated. Make
  18248. 12:03:53sure both your actual API key, not just
  18249. 12:03:56X. So, obviously read through all of
  18250. 12:03:58this, but this was just one example and
  18251. 12:04:00it's hard to replicate your exact error.
  18252. 12:04:03But I can tell you from a lot of
  18253. 12:04:04debugging, like I'll recognize the same
  18254. 12:04:07patterns over and over again.
  18255. 12:04:09However, if I don't, I just send it to a
  18256. 12:04:12large language model. I use I like using
  18257. 12:04:14Claude. put the screenshots in over here
  18258. 12:04:17and let it go. And I also know through
  18259. 12:04:20MCP you could also
  18260. 12:04:23test it with that and you could also
  18261. 12:04:25possibly upload JSON. I just find that
  18262. 12:04:28this approach typically works best for
  18263. 12:04:30me. So that is what I use. And um one
  18264. 12:04:36other thing to note is if you're using
  18265. 12:04:37APIs and I don't know if I talked about
  18266. 12:04:39this in the API section or not.
  18267. 12:04:41Depending on the error code, it could be
  18268. 12:04:44your fault or it could be someone else's
  18269. 12:04:45fault. So if it's like a 500 error code,
  18270. 12:04:49that is the server's fault. That's not
  18271. 12:04:51your fault and I wouldn't really worry
  18272. 12:04:52about it. There's something else going
  18273. 12:04:54on on that side of things. Another thing
  18274. 12:04:57is like how do you debug workflows when
  18275. 12:05:00you get the wrong output? So,
  18276. 12:05:03I'm just going to say like errors. Now,
  18277. 12:05:06how about like wrong output? Well,
  18278. 12:05:08really when you get the wrong output
  18279. 12:05:11things I would recommend.
  18280. 12:05:14So, number one, I would take a look at
  18281. 12:05:17your prompting to take a look how you
  18282. 12:05:21prompt because chances are your prompt
  18283. 12:05:25is inefficient in some capacity and it's
  18284. 12:05:28just not going to work. So, I'd take a
  18285. 12:05:30look at your prompt. There's probably
  18286. 12:05:31something off or something that you
  18287. 12:05:33could tweak in your prompt. Maybe you're
  18288. 12:05:34getting a lot of hallucinations,
  18289. 12:05:36something in your prompt. Maybe you need
  18290. 12:05:37to add in more context, etc. The second
  18291. 12:05:41thing I would take a look at is your
  18292. 12:05:43data like is the data bad.
  18293. 12:05:46And how how can we also test this? So,
  18294. 12:05:49few things that we can take a look at
  18295. 12:05:51over here. You have a node called
  18296. 12:05:53compare data sets. So, maybe you just
  18297. 12:05:55have a wrong data set. you have some
  18298. 12:05:58issues within a data set, you could
  18299. 12:06:00possibly compare it. Another thing you
  18300. 12:06:03could take a look at is duplicates. So,
  18301. 12:06:07sometimes you don't want to have
  18302. 12:06:08duplicates in your data set. So, I
  18303. 12:06:11didn't mean to click clear duplication
  18304. 12:06:12history. Um, but I would test duplicates
  18305. 12:06:16as well. Like, you have some bad data
  18306. 12:06:19with duplicates. Make sure to keep that
  18307. 12:06:21in over here. We've already talked about
  18308. 12:06:23this, but for testing purposes,
  18309. 12:06:26sometimes I want to limit and maybe I
  18310. 12:06:29don't want to send 10, 15, 20 items at a
  18311. 12:06:31time. I just want to send in one item
  18312. 12:06:33and see if I can get the correct results
  18313. 12:06:35or not. So these are three nodes that
  18314. 12:06:37I've used before just for testing
  18315. 12:06:40purposes and trying to debug. So compare
  18316. 12:06:42data set to see like if one data set
  18317. 12:06:45matches the other, maybe you have an
  18318. 12:06:46incorrect data set, not source of truth.
  18319. 12:06:50Remove duplicates. Duplicates are a big
  18320. 12:06:52issue in a lot of different databases.
  18321. 12:06:55So maybe you're having duplicates and
  18322. 12:06:57that's why you're having an issue in
  18323. 12:06:58some capacity as well as the limit node
  18324. 12:07:01over here. So to kind of reiterate
  18325. 12:07:05what is going on few things number one
  18326. 12:07:09lot of different settings within your
  18327. 12:07:10nodes. You can retry on fail which I
  18328. 12:07:12would highly recommend for critical
  18329. 12:07:14nodes. I would also possibly change on
  18330. 12:07:18what happens with a specific error. you
  18331. 12:07:19have stop workflow, continue or pass. In
  18332. 12:07:22addition, if you have workflows with you
  18333. 12:07:26know that 99.99% of the data should go
  18334. 12:07:29in one path, but if it goes another
  18335. 12:07:30path, there should be um alarm bells
  18336. 12:07:33raising. Use a stop and air with
  18337. 12:07:35something like an if or a switch. How do
  18338. 12:07:38you debug workflows? In my opinion, the
  18339. 12:07:39best way to learn is to try and solve it
  18340. 12:07:41yourself. So, like try to see what is
  18341. 12:07:44going on, try to fix it. Um, one other
  18342. 12:07:47thing I should mention is a lot of
  18343. 12:07:49people mess up with their merges. So,
  18344. 12:07:53please double check what is in your
  18345. 12:07:54merge settings. I see so many people
  18346. 12:07:56using the incorrect merge. And I've
  18347. 12:07:58covered a decent amount in this video.
  18348. 12:08:00I've covered it a long time in another
  18349. 12:08:01video. Make sure your merges are correct
  18350. 12:08:03because that is one of the biggest
  18351. 12:08:05errors I see uh for people that reach
  18352. 12:08:07out and I say, "Hey, my my workflow has
  18353. 12:08:09errors. How can I fix it?" Oh, I see the
  18354. 12:08:12merge is incorrect. Um, another thing I
  18355. 12:08:15see as well. So, and maybe I'll put this
  18356. 12:08:18over here as examples.
  18357. 12:08:22Oops.
  18358. 12:08:24And we'll put this over here as
  18359. 12:08:25examples. Like I see merge incorrect.
  18360. 12:08:30I see terrible bumps,
  18361. 12:08:35which this includes like stuffing.
  18362. 12:08:39too much information
  18363. 12:08:41or asking too many things
  18364. 12:08:46or not enough context.
  18365. 12:08:50So I just want to be a little bit more
  18366. 12:08:51explicit with you guys and explain why
  18367. 12:08:55let's say missing examples. Always when
  18368. 12:08:58you provide examples you're going to get
  18369. 12:09:00better results. So spend some time and
  18370. 12:09:03write that or the data is bad and you
  18371. 12:09:05can take a look at bad data. compare
  18372. 12:09:07data set, row duplicates as well as
  18373. 12:09:10limit. And that is going to be our
  18374. 12:09:12section on error handling. I know
  18375. 12:09:13there's really not any um workflows for
  18376. 12:09:16us to build together for this one. We
  18377. 12:09:19could do a a a debugging of a specific
  18378. 12:09:23workflow. Uh but I think we were going
  18379. 12:09:25to probably do that another time. So, as
  18380. 12:09:28promised, the next section is going to
  18381. 12:09:29be more advanced AI agents and or not AI
  18382. 12:09:32agents, but advanced AI notes. And I
  18383. 12:09:34think you're going to enjoy that one. So
  18384. 12:09:35see you there. All right. So this next
  18385. 12:09:37section we're going to be focusing
  18386. 12:09:39specifically on different types of AI
  18387. 12:09:42nodes available in any and so far
  18388. 12:09:44throughout this course we've been solely
  18389. 12:09:46focusing on AI agents and they're great
  18390. 12:09:48because you can use them in a lot of
  18391. 12:09:50different use cases but typically it's
  18392. 12:09:53not the best scenario. There's sometimes
  18393. 12:09:55that you want to use a basic LLM chain.
  18394. 12:09:57There's some times you want to use
  18395. 12:09:59information extractor. We're going to go
  18396. 12:10:01through all these different types of
  18397. 12:10:02nodes. explain why you specifically want
  18398. 12:10:05to use them. And like all of our other
  18399. 12:10:07sections, we'll cover some examples at
  18400. 12:10:09the very end. So that way you have some
  18401. 12:10:11practice using them in real workflows.
  18402. 12:10:14So let's not waste any time and jump
  18403. 12:10:16right into it. All right. So first node
  18404. 12:10:19I want to cover over here is something
  18405. 12:10:22called the basic LM chain. Now I also
  18406. 12:10:25want to show you where you can find
  18407. 12:10:26these AI nodes because if you go over
  18408. 12:10:27here, let's just trigger our workflow
  18409. 12:10:30manually for now. And you'll see that we
  18410. 12:10:32have a section called AI. And we have a
  18411. 12:10:35ton of nodes. And obviously, we're not
  18412. 12:10:38going to cover every single one of these
  18413. 12:10:40today. But we're going to start off with
  18414. 12:10:43our basic LM chain. And jumping into our
  18415. 12:10:47basic LM chain. Let's remove this chat
  18416. 12:10:50trigger. You'll notice it's very similar
  18417. 12:10:52to our AI agent. If we click in over
  18418. 12:10:55here, uh connected chat trigger like we
  18419. 12:10:57can set that up or you can define below.
  18420. 12:11:00There's output format. There's a
  18421. 12:11:01fallback model. There's chat messages.
  18422. 12:11:04If using a chat model, you have batch
  18423. 12:11:06processing. Um, so very similar, but
  18424. 12:11:09you'll notice a few things are missing.
  18425. 12:11:11Like even if we go over here, output
  18426. 12:11:13fallback, which is great. We don't have
  18427. 12:11:16any tools. We don't have any memory. So
  18428. 12:11:20this is essentially your dumbed down AI
  18429. 12:11:23agent. Well, it can perform a lot of the
  18430. 12:11:26different tasks. you can't access tools
  18431. 12:11:28and also you don't have access to memory
  18432. 12:11:31and there's nothing wrong with that
  18433. 12:11:32because a lot of things we've covered so
  18434. 12:11:34far in the course you know we just used
  18435. 12:11:37a model a fallback model if possible in
  18436. 12:11:40output parser you don't need an AI agent
  18437. 12:11:43like everything in your AI agent is over
  18438. 12:11:45here in your basic LM chain and again
  18439. 12:11:48you can just go over here and choose a
  18440. 12:11:50model right great we'll use open AI over
  18441. 12:11:53here um could you could choose whatever
  18442. 12:11:56model use specific one doesn't really
  18443. 12:11:57matter. I'm blind right now and could
  18444. 12:12:00not find open AI but you can see for
  18445. 12:12:02model or fallback model got an output
  18446. 12:12:05parser. So you know starting this off
  18447. 12:12:08hopefully you already learned like we
  18448. 12:12:10could simplify things. So if you see a
  18449. 12:12:12basic LM chain right someone just
  18450. 12:12:14doesn't want to use a tool and that's
  18451. 12:12:16why uh it's available for you. All right
  18452. 12:12:19so next we're going to jump into uh
  18453. 12:12:22something called sentiment analysis.
  18454. 12:12:24This is a little bit more fun. And
  18455. 12:12:27again, we'll just jump into here
  18456. 12:12:30and uh we'll jump into sentiment
  18457. 12:12:32analysis. So, very straightforward. You
  18458. 12:12:35take a look at it. It says, is this
  18459. 12:12:37positive, negative, or neutral? And it
  18460. 12:12:40asks you to add in a particular model.
  18461. 12:12:43So, we're just going to add in Open AI
  18462. 12:12:47to save some money.
  18463. 12:12:53go over here,
  18464. 12:12:55use GPT5 mini.
  18465. 12:12:57So, not the best accuracy, but that's
  18466. 12:12:59all right. And let's just add in some
  18467. 12:13:02text. And let's say you wasted
  18468. 12:13:07eight hours of my time. I have no idea,
  18469. 12:13:09by the way, how long into the video uh
  18470. 12:13:12this is, but I'm recording in different
  18471. 12:13:14sections, but feel like this is way over
  18472. 12:13:16eight hours by now.
  18473. 12:13:19Uh we have here. Okay, that's
  18474. 12:13:22interesting.
  18475. 12:13:24We don't have any error here.
  18476. 12:13:28All right, let's
  18477. 12:13:30use a for model just in case. Please
  18478. 12:13:34sit. We're going to get an error here as
  18479. 12:13:37well.
  18480. 12:13:42And it worked this time. So, remember
  18481. 12:13:45how we talk about fallback models?
  18482. 12:13:48So, I don't think you actually have a
  18483. 12:13:49fallback model option. over here for the
  18484. 12:13:52sentiment analysis.
  18485. 12:13:54We do not and I think this was something
  18486. 12:13:57I did bring up to the NAN team on a call
  18487. 12:14:00like some of these other advanced nodes.
  18488. 12:14:01They don't have fallback models yet. So
  18489. 12:14:04if it did, this is a perfect example.
  18490. 12:14:06OpenAI failed and Anthropic
  18491. 12:14:10came to the rescue on that side of
  18492. 12:14:11things. But you can see that you wasted
  18493. 12:14:13eight hours of my time. It went into the
  18494. 12:14:15negative branch because it just wasn't a
  18495. 12:14:20something positive, right? You can have
  18496. 12:14:22positive, neutral, or negative. This was
  18497. 12:14:24just straight up a negative. Let's do a
  18498. 12:14:27critique of the video. Awesome video.
  18499. 12:14:29Awesome video.
  18500. 12:14:32However,
  18501. 12:14:34after 10 minutes,
  18502. 12:14:37I got bored. This might go into the
  18503. 12:14:40positive branch. It might go neutral. I
  18504. 12:14:42think this should go neutral
  18505. 12:14:46if I was making a decision
  18506. 12:14:48and uh it went into the neutral branch.
  18507. 12:14:51There's some positive aspects of it. The
  18508. 12:14:54boredom
  18509. 12:14:55that's negative. So it fit into the I'd
  18510. 12:14:59say thank you so much
  18511. 12:15:02for dropping a uh 10 plus hour any end
  18512. 12:15:07video.
  18513. 12:15:08That's my goal when I was recording
  18514. 12:15:10this. I wanted to make this 10 to 15
  18515. 12:15:12hours
  18516. 12:15:14and uh we'll see what happens over here.
  18517. 12:15:17You can see this get put into our
  18518. 12:15:21positive range. And what's great about
  18519. 12:15:24it is you can actually build out
  18520. 12:15:26workflows based around it. So you could
  18521. 12:15:28have a certain action if it goes to
  18522. 12:15:30positive, a certain action if it goes to
  18523. 12:15:33neutral, or a certain action if it goes
  18524. 12:15:35to negative. And you can think about
  18525. 12:15:36this. You have a chatbot on your site
  18526. 12:15:38asking for feedback or email feedback
  18527. 12:15:41goes through gets information goes
  18528. 12:15:44through sent analysis and then you build
  18529. 12:15:45out different scenarios based off of
  18530. 12:15:47positive, neutral or negative. Maybe
  18531. 12:15:48it's negative. You give someone a coupon
  18532. 12:15:51and you have someone reach out and see
  18533. 12:15:53like why this end up being a negative.
  18534. 12:15:56Just trying to think on my feet like
  18535. 12:15:57some of the different ways that you
  18536. 12:15:58could use this. There's tons of
  18537. 12:16:00different ways. You could also scrape
  18538. 12:16:02social media posts for a brand and see
  18539. 12:16:04like, okay, how many are positive? How
  18540. 12:16:06many neutral? how many are negative.
  18541. 12:16:07Let's reach out to these users that just
  18542. 12:16:09had a negative experience or let's
  18543. 12:16:11reward the people that are talking
  18544. 12:16:12positive about our brand online. Uh
  18545. 12:16:15something very similar to sentiment
  18546. 12:16:17analysis. And by the way, I just want to
  18547. 12:16:18quickly cover some of these properties
  18548. 12:16:20over here. So you can actually change
  18549. 12:16:22your categories
  18550. 12:16:24and you can add to these if you just put
  18551. 12:16:26a comma. So you can see like added to
  18552. 12:16:28four. By default, it's positive,
  18553. 12:16:29negative, and neutral. But you have the
  18554. 12:16:31option to change those. Uh you can
  18555. 12:16:33include detailed results. So if I
  18556. 12:16:35actually rerun this again, it says
  18557. 12:16:37sentiment scores are LM generated, not
  18558. 12:16:39statistically measurements. They may be
  18559. 12:16:41inconsistent across runs and rough
  18560. 12:16:43indicators. And that is true. Uh there
  18561. 12:16:45is actually fine-tuned sentiment
  18562. 12:16:47analysis. If you want to go to hugging
  18563. 12:16:49face, we're going to cover that
  18564. 12:16:50literally towards the end of the video.
  18565. 12:16:52Not today's lecture, but probably like
  18566. 12:16:55lecture 30 or something like that. Also,
  18567. 12:16:57I don't know if you guys are watching
  18568. 12:16:58like one lecture at a time. You're just
  18569. 12:16:59trying to watch this all at once. Um I
  18570. 12:17:02don't know. Either way, I'm recording
  18571. 12:17:04this over multiple days, but we uh go
  18572. 12:17:08over here and you can see the strength
  18573. 12:17:10associated with the 095 confidence 0.98.
  18574. 12:17:13I'll run this again uh and we'll see if
  18575. 12:17:16it gets the same score. It probably
  18576. 12:17:17won't because again it's LM base and
  18577. 12:17:20it's very hard to get the same results
  18578. 12:17:22over and over again. And uh it's the
  18579. 12:17:24same exact results. So, take back what I
  18580. 12:17:25say.
  18581. 12:17:27Let's go back to you wasted eight hours
  18582. 12:17:29of my life. wasted
  18583. 12:17:32eight hours of my life.
  18584. 12:17:35Unsubscribe.
  18585. 12:17:38We'll run that. Let's go to the negative
  18586. 12:17:40branch. Also, if you're seeing those
  18587. 12:17:42errors over here, I just haven't
  18588. 12:17:44attached a trigger. So, I don't want to
  18589. 12:17:47do that right now. You can see negative
  18590. 12:17:48the strength associated with it as well
  18591. 12:17:50as the confidence. Cool. So, that is
  18592. 12:17:54sentiment analysis. Do I have anything
  18593. 12:17:56else? There's a system prompt. So, we've
  18594. 12:17:59already covered how you could update
  18595. 12:18:00system prompts. One of the cool things
  18596. 12:18:02about a bunch of the AI nodes is the N
  18597. 12:18:04team already developed decent system
  18598. 12:18:06prompts. It's not perfect. I would
  18599. 12:18:08fine-tune this for your specific use
  18600. 12:18:10case and write a better prompt, but out
  18601. 12:18:12of the box, it's way better than the
  18602. 12:18:14you're a helpful assistant. And with
  18603. 12:18:17batch processing, yeah, so that is
  18604. 12:18:19essentially the first part of sentiment
  18605. 12:18:22analysis. Something that is very similar
  18606. 12:18:24is going to be this next node. So if we
  18607. 12:18:25go into AI once again, we have something
  18608. 12:18:29called a text classifier. So very
  18609. 12:18:32similar at the very top where we have an
  18610. 12:18:34option to specifically classify
  18611. 12:18:39text and you can see we have that over
  18612. 12:18:40here. Person sentiment text to analyze.
  18613. 12:18:44So very similar. And uh you want to add
  18614. 12:18:47in categories this time. So we could add
  18615. 12:18:50in let's say for example we're doing a
  18616. 12:18:53review site or not review yeah let's say
  18617. 12:18:56we want to classify reviews based off of
  18618. 12:18:59product. So
  18619. 12:19:01we'll say tech product
  18620. 12:19:06or a tech service.
  18621. 12:19:10So like imagine you're a PC store and
  18622. 12:19:12you either fix computers or you uh sell
  18623. 12:19:15computers. So, someone is trying to
  18624. 12:19:20buyronics.
  18625. 12:19:26Someone needs
  18626. 12:19:28help with
  18627. 12:19:30their tech.
  18628. 12:19:36Now, I'd really write this like a way
  18629. 12:19:38better description, but you can see I've
  18630. 12:19:40just wrote some basic stuff. And uh what
  18631. 12:19:42I'll keep saying is my Windows
  18632. 12:19:47computer
  18633. 12:19:49keeps saying
  18634. 12:19:52it's infected
  18635. 12:19:54with malware.
  18636. 12:19:57Right. And we're going to run this now.
  18637. 12:19:59Misspelled probably malware. These
  18638. 12:20:01aren't the best descriptions. And you
  18639. 12:20:03can see this jumps into the tech service
  18640. 12:20:05branch. And we have one item there. If
  18641. 12:20:09we want to change this out and say I
  18642. 12:20:13I want to buy
  18643. 12:20:16RAM
  18644. 12:20:18for my computer.
  18645. 12:20:23My nice absolute great spelling of
  18646. 12:20:25computer too. This should go into the
  18647. 12:20:27other category and you can see it goes
  18648. 12:20:29into the tech product ranch. So you can
  18649. 12:20:32add in categories as you want. Keep
  18650. 12:20:34expanding these out
  18651. 12:20:37over there. Uh but this is
  18652. 12:20:38classification. People sometimes get
  18653. 12:20:40these two confused. Just remember
  18654. 12:20:42sentiment is like okay this is great
  18655. 12:20:45terrible etc. And you can obviously
  18656. 12:20:46change these. This is kind of more broad
  18657. 12:20:50and a lot of different applications with
  18658. 12:20:51this. Sentiment analysis is a type of
  18659. 12:20:54text classification. So there's other
  18660. 12:20:57things you can also have over here. So
  18661. 12:20:59you can allow multiple classes to be
  18662. 12:21:01true. So imagine if someone says, "I
  18663. 12:21:03want to I want to buy computer parts and
  18664. 12:21:06need help building a computer. I want to
  18665. 12:21:10buy computer parts
  18666. 12:21:13and need help
  18667. 12:21:15building a computer.
  18668. 12:21:19Should knock out both of these." Again,
  18669. 12:21:22I don't know because I'm writing this on
  18670. 12:21:23the fly, but
  18671. 12:21:26we'll see.
  18672. 12:21:28And actually I didn't mark this as
  18673. 12:21:31multiple. So this time it probably will.
  18674. 12:21:36And you can see it flagged for both tech
  18675. 12:21:38product branch as well as tech service
  18676. 12:21:40branch. Um when no clear match you could
  18677. 12:21:43have another option. So this is kind of
  18678. 12:21:45like switch like okay what happens if we
  18679. 12:21:48can't match something up? You could
  18680. 12:21:49either disregard it or output on other
  18681. 12:21:51branch. You can see over here now we
  18682. 12:21:53have other on that side of it. What else
  18683. 12:21:57is worth bringing up? System prompt.
  18684. 12:21:59Again, you can see they did a pretty
  18685. 12:22:01good job building out a basic system
  18686. 12:22:02prompt. And I would just change it up
  18687. 12:22:04for that specific domain. So, it says,
  18688. 12:22:06"Please classify the text provided on
  18689. 12:22:08the user into one of the following
  18690. 12:22:09categories and use the provided
  18691. 12:22:10formatting instructions below. Don't
  18692. 12:22:12explain or only output the JSON." Again,
  18693. 12:22:14pretty nice because you don't even have
  18694. 12:22:15to worry about output parser. I'd
  18695. 12:22:17probably just expand on this slightly,
  18696. 12:22:19but out of the box, it's perfectly okay.
  18697. 12:22:22So, that is going to be our text
  18698. 12:22:23classifier. I'm just going to mark this
  18699. 12:22:25off on my page over here to the side.
  18700. 12:22:28Next, we should talk about the
  18701. 12:22:30information extractor. Another really
  18702. 12:22:33important node. So, we go to information
  18703. 12:22:35extractor. And uh I like this a ton when
  18704. 12:22:38working with chat because essentially
  18705. 12:22:41what you can do is pass in text and tell
  18706. 12:22:44it to say, "Hey, I want to grab this
  18707. 12:22:46piece of information." So, let's say I
  18708. 12:22:49want to grab and I'm trying to think of
  18709. 12:22:51something that would be kind of
  18710. 12:22:52interesting. Um,
  18711. 12:22:55let's think of this for a second. We're
  18712. 12:22:57going to have some sort of text
  18713. 12:23:00and oh, here's an idea. Company. So,
  18714. 12:23:03let's say you want to have a chat and
  18715. 12:23:06say someone says, I want you to research
  18716. 12:23:10you to research Upper Deck. Imagine
  18717. 12:23:15you're doing some sort of review of a
  18718. 12:23:18potential customer
  18719. 12:23:20and you just type into a chat, I want
  18720. 12:23:21you to research Upper Deck. So name is
  18721. 12:23:24going to be company, type is going to be
  18722. 12:23:26a string and you can change this to a
  18723. 12:23:28boolean, true or false, a date, a number
  18724. 12:23:30or a string and say this is a company
  18725. 12:23:35that someone
  18726. 12:23:38wants to look to. All right. So, we'll
  18727. 12:23:42require this and obviously like this is
  18728. 12:23:44going to be built out based off of what
  18729. 12:23:45you think people are going to be
  18730. 12:23:46prompting um through your chat for, but
  18731. 12:23:49we'll execute this step
  18732. 12:23:52and we will get nothing because I'm lazy
  18733. 12:23:55and I forgot to attach in a chat model.
  18734. 12:23:58So, let's add in that over here. We'll
  18735. 12:24:00execute the step
  18736. 12:24:03and we'll see what happens.
  18737. 12:24:07It says company Upper Deck. So, we can
  18738. 12:24:09change this up again. And um let's say
  18739. 12:24:15I don't know,
  18740. 12:24:16Billy's
  18741. 12:24:18Cheese Steak
  18742. 12:24:21LLC
  18743. 12:24:25had a phenomenal sandwich. I don't know.
  18744. 12:24:30And this is just like peak spelling. I
  18745. 12:24:32can't spell cheese steak. I can't spell
  18746. 12:24:34phenomenal. Um,
  18747. 12:24:38did I at least spell sandwich correct? I
  18748. 12:24:39did. Obviously, I know how to spell, but
  18749. 12:24:42it's it's hard sometimes with the
  18750. 12:24:43keyboard down here looking at the camera
  18751. 12:24:45talking and uh we'll just see if it
  18752. 12:24:48pulls out Philly's Cheese Stakes LLC.
  18753. 12:24:50And you can see it pulls out Philly
  18754. 12:24:51Cheese Stake LLC. So, pretty cool. You
  18755. 12:24:54can have your chat go directly into your
  18756. 12:24:58information extractor and then you get
  18757. 12:25:00the JSON that you specifically want to
  18758. 12:25:02pass on in your workflow. and maybe
  18759. 12:25:05based off of that information that was
  18760. 12:25:07extracted, we send that to an API of
  18761. 12:25:09some sort. Um, but very very common to
  18762. 12:25:12do it based around that. Another use
  18763. 12:25:14case for the information extractor is
  18764. 12:25:17just a lot of text. Imagine you have
  18765. 12:25:20like very long paragraph and I'll just
  18766. 12:25:24give an example.
  18767. 12:25:25go into uh
  18768. 12:25:28long paragraph
  18769. 12:25:31form is
  18770. 12:25:33so like imagine you had a very large
  18771. 12:25:36piece of information
  18772. 12:25:40and I'm just grabbing in text but you
  18773. 12:25:42have like all this text and you don't
  18774. 12:25:44want to read it and you just want to
  18775. 12:25:45grab a few pieces of information from
  18776. 12:25:47it. You could do that over here. Um
  18777. 12:25:51and in this case like this is the first
  18778. 12:25:53time I'm reading this Lauram text. I
  18779. 12:25:55didn't even generate it. I just grabbed
  18780. 12:25:56it directly from the website. But you
  18781. 12:25:59could just ask a few questions like what
  18782. 12:26:01do you want to extract from here and it
  18783. 12:26:04out. So let's say for example, let's I'm
  18784. 12:26:08just going to read this the text. So it
  18785. 12:26:10says contrary to popularity floor misma
  18786. 12:26:11is not simply random text has roots in
  18787. 12:26:13classic Latin literature from 45 BC
  18788. 12:26:16making it over 2,000 years old. Okay. So
  18789. 12:26:19let's change this up instead of a name.
  18790. 12:26:22And what we're going to say is age.
  18791. 12:26:26And we're going to say how old is the
  18792. 12:26:27text? How old is the text in years?
  18793. 12:26:32And what we're going to do is just say
  18794. 12:26:34this is a number. Again, very basic, but
  18795. 12:26:36you can see like there's a lot of text
  18796. 12:26:38over here. And let's add in some more as
  18797. 12:26:40well.
  18798. 12:26:43Obviously, I don't want to spend all
  18799. 12:26:44this extra money. But let's say we have
  18800. 12:26:46all this text. All we care about in this
  18801. 12:26:48text is the age. Just going to be a
  18802. 12:26:50number. I run this now and we'll get our
  18803. 12:26:53result. It should say 2000. Well, it
  18804. 12:26:55says 2069. Why is that?
  18805. 12:27:00That's weird. Why does it say 2069?
  18806. 12:27:05Oh, you know what it's doing? 45 BC and
  18807. 12:27:08then it's adding 45 to get it to 2000
  18808. 12:27:11and then um No, that would Yeah. No,
  18809. 12:27:15it's a little bit off on there. But
  18810. 12:27:16either way, um that is funny.
  18811. 12:27:22Is it still looking at that 2024 context
  18812. 12:27:24window
  18813. 12:27:27to to show the math really quick? If
  18814. 12:27:29you're confused why I got 2069, so well
  18815. 12:27:3345 years before zero. So 45 plus and
  18816. 12:27:38we're at year zero, right? So then you
  18817. 12:27:40add 2024 and that's equal to 2069. So it
  18818. 12:27:44didn't take into effect. almost
  18819. 12:27:46recording in 2026. But
  18820. 12:27:50yeah, that's where we got that number
  18821. 12:27:51from. So it was actually pretty smart on
  18822. 12:27:54that side of it. And you know, we can
  18823. 12:27:56add in, by the way, multiple attributes.
  18824. 12:27:58So you can specify it's required or not.
  18825. 12:28:00So if it doesn't figure it out, you can
  18826. 12:28:02just save this as like not required. And
  18827. 12:28:04again, you can change the date and
  18828. 12:28:06things like that. Ozer, here you have
  18829. 12:28:08other options. So this is your system
  18830. 12:28:10prompt. Maybe you want to add in a
  18831. 12:28:11little bit more context over there.
  18832. 12:28:13Again, it's not bad, but I would just
  18833. 12:28:16add in more additional elements as
  18834. 12:28:17needed. But I use this a lot. I've had a
  18835. 12:28:20customer that I essentially helped him
  18836. 12:28:22and like take pages of information and
  18837. 12:28:25just grab a few different pieces of
  18838. 12:28:26information that he wants. And man, it's
  18839. 12:28:28a it's a game changer. Know that word
  18840. 12:28:30gets thrown all the time, but that's
  18841. 12:28:32information extractor. I'm going to
  18842. 12:28:35close out of uh from ISPM because we
  18843. 12:28:39don't need that anymore. And what we're
  18844. 12:28:41going to do next is jump into the
  18845. 12:28:44summarization chain. So very similar uh
  18846. 12:28:47to information extractor. However, it
  18847. 12:28:49just gives you a summary at the very
  18848. 12:28:51end. And there's a few different ways
  18849. 12:28:52that you could use the summarization
  18850. 12:28:54chain. And you can take a look. It's
  18851. 12:28:57like another one of these nodes.
  18852. 12:29:00We'll paste that in over here.
  18853. 12:29:03Cool. And you can see a data to
  18854. 12:29:06summarize. Now, the one thing that's
  18855. 12:29:07interesting with the summarization chain
  18856. 12:29:09since we are taking a look at a lot more
  18857. 12:29:13information or it's just assumed we're
  18858. 12:29:15taking a look at a lot more information.
  18859. 12:29:17The end team does not allow you to
  18860. 12:29:20actually put in the text over here. So,
  18861. 12:29:21you can see information extractor. We
  18862. 12:29:24had this this text. However, that is not
  18863. 12:29:26available in the summarization chain
  18864. 12:29:28which I have iffy thoughts about. I feel
  18865. 12:29:30like you still should have that option
  18866. 12:29:32to classify the text or not classify but
  18867. 12:29:35put in the text over there. I understand
  18868. 12:29:37why they didn't. So you could either use
  18869. 12:29:39a node as input, you could upload a
  18870. 12:29:43binary file or use a document loader. I
  18871. 12:29:45don't even want to cover document
  18872. 12:29:46loaders until we get into the whole rag
  18873. 12:29:49side of it. We're going to talk like an
  18874. 12:29:50hour or two hours on a rag, I have a
  18875. 12:29:52feeling. So let's not cover that today.
  18876. 12:29:55We already talked about binary files,
  18877. 12:29:57right? You can have like a PDF of some
  18878. 12:30:00sort and pass it in or a document or you
  18879. 12:30:02could literally just have all this
  18880. 12:30:04information in an edit set node or
  18881. 12:30:06whatever JSON that you want and pass it
  18882. 12:30:08directly in over there. Uh chunking
  18883. 12:30:12again I'm don't want to cover this until
  18884. 12:30:14we get into the rag side of things. So
  18885. 12:30:16we're just going to keep this by default
  18886. 12:30:17right now. And then you can see there's
  18887. 12:30:20different ways to summarize over here as
  18888. 12:30:22well. So you have map reduce which it
  18889. 12:30:24just recommends at over here. and it
  18890. 12:30:27says summarize each document or chunk
  18891. 12:30:29individually then summarize those
  18892. 12:30:30summaries. So I guess I have to teach
  18893. 12:30:33you a little bit about rag but
  18894. 12:30:35regardless what map produce essentially
  18895. 12:30:36does is you have a full document imagine
  18896. 12:30:40it's a thousand paragraphs and we assume
  18897. 12:30:42each chunk is going to be one paragraph.
  18898. 12:30:45So what it does is it summarizes each
  18899. 12:30:47paragraph and then takes all those
  18900. 12:30:49summaries and then summarizes it at the
  18901. 12:30:52very end. uh refine. What this does is
  18902. 12:30:55it summarizes the first paragraph. Then
  18903. 12:30:57it reads paragraph 2 and says, "Hey,
  18904. 12:30:59well, your final summary should include
  18905. 12:31:01this from paragraph 2. Then it goes to
  18906. 12:31:03paragraph 3. Actually, you're missing
  18907. 12:31:05this detail as well. Add that in." Chunk
  18908. 12:31:07four has this information. Add that back
  18909. 12:31:09in. And then stuff, it's literally just
  18910. 12:31:12uploading a whole document. And you say,
  18911. 12:31:14"Summarize this all at once." But based
  18912. 12:31:17off of what you choose, you'll have
  18913. 12:31:19different prompts over here to tweak. So
  18914. 12:31:21you have a lot more prompt engineering
  18915. 12:31:23based around this. Uh so you can see
  18916. 12:31:25subsequent refine prompt and then the
  18917. 12:31:27initial prompt and then stuff you just
  18918. 12:31:29have the one prompt. So these will have
  18919. 12:31:31two prompts each whether you use map
  18920. 12:31:34reduce or refine. By default it just
  18921. 12:31:36uses map reduce but I would recommend
  18922. 12:31:38that you choose one of these. Test it
  18923. 12:31:40out because sometimes you might get
  18924. 12:31:42better results based off of what you
  18925. 12:31:44want. start with map reduce to see if
  18926. 12:31:46it's working correctly for that
  18927. 12:31:48particular domain or the piece of
  18928. 12:31:50information that you have in there.
  18929. 12:31:52Again, I don't want to confuse you too
  18930. 12:31:54much, but just remember map produce, we
  18931. 12:31:57summarize each uh section and then we
  18932. 12:32:01take those summaries and summarize that
  18933. 12:32:02for our final answer. We go into refine
  18934. 12:32:06which every section we keep summarizing
  18935. 12:32:09it and get more information as we go a
  18936. 12:32:11little bit further. And why this works
  18937. 12:32:12as well is if you think about how a
  18938. 12:32:14paper is written, typically you're going
  18939. 12:32:16to have most of the summary or
  18940. 12:32:18information here at the very top. So it
  18941. 12:32:20should have a pretty good idea of what
  18942. 12:32:21that paper is about, then stuff is
  18943. 12:32:24really used for a small amount of text.
  18944. 12:32:26Like if you have a document that's 20 30
  18945. 12:32:28pages, probably wouldn't recommend
  18946. 12:32:30stuff. But if you have something short
  18947. 12:32:31like that Loris film I showed you,
  18948. 12:32:33probably isn't acceptable route to go.
  18949. 12:32:36So that's a summarization chain. Another
  18950. 12:32:39thing that's really u important to know
  18951. 12:32:41is different services have AI nodes in
  18952. 12:32:46over here and you can use them as well.
  18953. 12:32:48So if you go into AI you'll notice that
  18954. 12:32:50there's anthropic in Google Gemini as
  18955. 12:32:53well as open AAI. Uh so each of these
  18956. 12:32:55have a lot of different nodes. So you
  18957. 12:32:58can see OpenAI has anything from
  18958. 12:32:59generate a video which I wouldn't use
  18959. 12:33:01this right now. We're going to talk
  18960. 12:33:02about generating videos. You can create
  18961. 12:33:04conversations. You can work with files.
  18962. 12:33:07You have audio actions, image actions,
  18963. 12:33:09which is like analyze an image, generate
  18964. 12:33:11an image or edit image. You could also
  18965. 12:33:13message a model and just uh go into open
  18966. 12:33:17AI to show you. Let's say we want to
  18967. 12:33:20analyze an image of some sort. So we'll
  18968. 12:33:23go analyze image and uh yeah, you can
  18969. 12:33:26see we have this particular node going
  18970. 12:33:28into Gemini. You can go to Gemini on
  18971. 12:33:31there and you can see a lot more actions
  18972. 12:33:33built. So we have 15 over here. I've
  18973. 12:33:35used Gemini when I want to process
  18974. 12:33:38YouTube videos. So like I want to get a
  18975. 12:33:40summary of a YouTube video. I find it
  18976. 12:33:41really helpful just to go through the
  18977. 12:33:44native node directly in here and uh I
  18978. 12:33:47just go to analyze a video and you can
  18979. 12:33:49put in a URL like I put just YouTube
  18980. 12:33:51over here. I fill out all this stuff. So
  18981. 12:33:53it says like text input. What are you
  18982. 12:33:55prompting it? The one thing that's kind
  18983. 12:33:57of weird right now with Gemini, and I
  18984. 12:33:59don't know if they're ever going to do
  18985. 12:34:00this or not, is I wish you could specify
  18986. 12:34:03an output parser here, like just
  18987. 12:34:05annoying that you can't, not to go on a
  18988. 12:34:08tangent. You also have anthropic. So if
  18989. 12:34:11I go to anthropic, you can see anthropic
  18990. 12:34:13has 10 actions. So you analyze a
  18991. 12:34:14document, upload a file, etc. Analyze an
  18992. 12:34:17image. So depending on your use case,
  18993. 12:34:19you know, if it's maybe analyzing an
  18994. 12:34:21image or video, maybe you don't want to
  18995. 12:34:23put that into whether a basic LLM chain
  18996. 12:34:26or an AI agent because you just want
  18997. 12:34:28that specifically. And feel free to mess
  18998. 12:34:31with it because sometimes it works in
  18999. 12:34:33your workflow, sometimes it won't. Um,
  19000. 12:34:36I've had issues analyzing videos within
  19001. 12:34:39a uh a basic LM chain or an AI agent
  19002. 12:34:41whereas this worked perfect. So wanted
  19003. 12:34:44to show those to you. And lastly, what I
  19004. 12:34:47wanted to talk about is OCR. So,
  19005. 12:34:50essentially what OCR allows us to do is
  19006. 12:34:52take an image of text, whether it's like
  19007. 12:34:55handwritten text or uh photos, copied
  19008. 12:34:58text, and then extract all the
  19009. 12:35:01information on to it and uh get some
  19010. 12:35:04results. So, let me just show you. We
  19011. 12:35:06can do this in Mistl although OCR is
  19012. 12:35:09available in all the larger models.
  19013. 12:35:11Mistrol right now and obviously things
  19014. 12:35:13change really fast is the premier OCR
  19015. 12:35:16model. So you just go to Mistral AI and
  19016. 12:35:19you can extract text. So it says
  19017. 12:35:21document extract text. You can choose
  19018. 12:35:23the model which this is just the one
  19019. 12:35:25over here. You set binary data document
  19020. 12:35:29type whether it's a document or an image
  19021. 12:35:32and then you specify this. And I'd show
  19022. 12:35:35you how to do this. We're actually going
  19023. 12:35:36to be using OCR as one of our examples
  19024. 12:35:39in this video. So, we'll do an example
  19025. 12:35:42of like analyzing a YouTube video uh
  19026. 12:35:44analyzing specifically with this and
  19027. 12:35:47maybe like one or two other examples. I
  19028. 12:35:49think this is a pretty good use case
  19029. 12:35:51just to show you some cool stuff that we
  19030. 12:35:53could build now that we know how an AI
  19031. 12:35:55agent works, how we know also about some
  19032. 12:35:57of these other nodes as well. So, I'm
  19033. 12:35:59going to take a quick break and then
  19034. 12:36:00we're going to jump into a few examples
  19035. 12:36:03shortly. All right. So, I brainstormed
  19036. 12:36:05three ideas. is we're going to build
  19037. 12:36:06them out together. Uh I haven't even
  19038. 12:36:07started the workflow, so you'll kind of
  19039. 12:36:09just see my process of how we going to
  19040. 12:36:11build these out. And yeah, let's jump
  19041. 12:36:13into it. So the first one over here and
  19042. 12:36:16obviously if you want to try it yourself
  19043. 12:36:17first before I build these out, kind of
  19044. 12:36:20like what we did with some of the
  19045. 12:36:20earlier tutorials, go for it. I I
  19046. 12:36:23encourage you to do that. But example
  19047. 12:36:25one, we take an input. We have a basic
  19048. 12:36:27LM chain. Basic LM chain again. And then
  19049. 12:36:29we have an output over here. So chain
  19050. 12:36:31one takes raw notes or ideas and
  19051. 12:36:33generates a structured blog outline.
  19052. 12:36:35Chain two takes the outline and writes a
  19053. 12:36:37polished into a a paragraph. So think
  19054. 12:36:41about how you're going to build this
  19055. 12:36:43out. You can either do a chat trigger or
  19056. 12:36:45you can do it manually and just set
  19057. 12:36:48something as like an edit set. I don't
  19058. 12:36:49really care. And uh yeah, pause the
  19059. 12:36:52video and get that going. Otherwise, I
  19060. 12:36:55will build this out. And I'm trying to
  19061. 12:36:57think like do we have a chat checker?
  19062. 12:36:58No, we don't have a chat trigger over
  19063. 12:37:00here yet.
  19064. 12:37:01and uh yeah, let's jump into it. So, I'm
  19065. 12:37:03going to do a chat trigger,
  19066. 12:37:06throw that in, and we're going to start
  19067. 12:37:08this as a conversation. So, obviously
  19068. 12:37:11the first part is we're going to get um
  19069. 12:37:13our raw notes or ideas. Then, we need to
  19070. 12:37:15generate a structured blog outline from
  19071. 12:37:19that. Okay. So, what we're going to do
  19072. 12:37:21is add in a basic LM chain.
  19073. 12:37:26Also to mention, I am not going to be
  19074. 12:37:28writing the best prompts. I am not going
  19075. 12:37:29to do a ton of testing, which real world
  19076. 12:37:31scenario, you are going to have to do
  19077. 12:37:33that. So, please make these better if
  19078. 12:37:36you're pushing them into production.
  19079. 12:37:37Make sure you're testing them. Make sure
  19080. 12:37:39like there's a lot of other steps that
  19081. 12:37:41I'm skipping over here. Don't watch this
  19082. 12:37:43and think like, oh, you can build a
  19083. 12:37:45workflow in 20 minutes and it's good.
  19084. 12:37:47No, it's not the case. And I say that
  19085. 12:37:49because I see a lot of Upwork jobs and
  19086. 12:37:50freelance jobs that people say, can you
  19087. 12:37:52build this in an hour? And it's like,
  19088. 12:37:53come on, guys. Like, be realistic. So,
  19089. 12:37:56what we're going to do is we have our
  19090. 12:37:58like raw notes and ideas. So, I'm going
  19091. 12:38:00to say I'm going to create a another
  19092. 12:38:04message over here. We're going to have
  19093. 12:38:05our system message. We're going to
  19094. 12:38:07expand this out and say you are an AI
  19095. 12:38:11agent or let's not say an agent. Let's
  19096. 12:38:15say you are
  19097. 12:38:18a um
  19098. 12:38:20an outline creator because that's what
  19099. 12:38:23we're doing first, right? I should have
  19100. 12:38:24probably just copied this over
  19101. 12:38:29so we can keep the verbiage the same.
  19102. 12:38:31All right,
  19103. 12:38:33so chain one takes the raw notes and
  19104. 12:38:35generates a structured blog outline. So
  19105. 12:38:37you are an outline creator.
  19106. 12:38:40A user will give you
  19107. 12:38:44few pieces of information.
  19108. 12:38:49Your goal
  19109. 12:38:52is to take that and generate
  19110. 12:38:57an outline for a blog
  19111. 12:39:01post.
  19112. 12:39:05For example,
  19113. 12:39:08we have to give an example over here.
  19114. 12:39:10Um,
  19115. 12:39:12we'll say user,
  19116. 12:39:14let's do an AI example. We'll say user
  19117. 12:39:17message
  19118. 12:39:21system
  19119. 12:39:23message
  19120. 12:39:25best practices.
  19121. 12:39:28All right. So like intro
  19122. 12:39:32user versus system message
  19123. 12:39:38body.
  19124. 12:39:40We'll say like user message
  19125. 12:39:46body
  19126. 12:39:48system message
  19127. 12:39:51and then we'll do
  19128. 12:39:54body
  19129. 12:39:56comparing
  19130. 12:40:02messages
  19131. 12:40:04conclusion
  19132. 12:40:07let's write let's think about our
  19133. 12:40:08conclusion I'll just say like summarize
  19134. 12:40:12both of these summarize
  19135. 12:40:16like this is so simple and obviously
  19136. 12:40:19like I would want to layer this with
  19137. 12:40:22multiple examples like okay here's
  19138. 12:40:24example one here's example two Um let's
  19139. 12:40:27do another example actually for example
  19140. 12:40:33let's say example one
  19141. 12:40:37but here are two examples
  19142. 12:40:42all right so example one
  19143. 12:40:46AI
  19144. 12:40:50it's going to be like that
  19145. 12:40:53great and I should probably just make
  19146. 12:40:57these a little bit different.
  19147. 12:41:00Uh it's cool. All right. And let's do a
  19148. 12:41:04second article.
  19149. 12:41:08We'll need this best practices for this
  19150. 12:41:10one. So that was like a comparison
  19151. 12:41:12article. Let's do another article over
  19152. 12:41:15here. Example two.
  19153. 12:41:18What are we going to do now? Um,
  19154. 12:41:23oh, you know what we're going to do?
  19155. 12:41:2619
  19156. 12:41:28No, no. I'm I'm going to think about
  19157. 12:41:29like doing a a card set. We'll do like a
  19158. 12:41:321948
  19159. 12:41:351948
  19160. 12:41:37Bowman
  19161. 12:41:40basketball.
  19162. 12:41:42It's like basketball cards.
  19163. 12:41:46Okay. And then let's just write these
  19164. 12:41:48out.
  19165. 12:41:50like this.
  19166. 12:41:55Okay. So, introwise
  19167. 12:41:58um
  19168. 12:42:00history
  19169. 12:42:02of Bowman
  19170. 12:42:05basketball cards
  19171. 12:42:12and checklist.
  19172. 12:42:14Cool. Then we're going to set a body.
  19173. 12:42:16You know, let me say let's say most
  19174. 12:42:19valuable cards
  19175. 12:42:23recent auction sales.
  19176. 12:42:26I know this is mine.
  19177. 12:42:31Okay, we'll put like future
  19178. 12:42:34Bowman
  19179. 12:42:36basketball releases.
  19180. 12:42:40Obviously, like this is going to be
  19181. 12:42:41better if it's fine-tuned towards
  19182. 12:42:43something in general. Like I would
  19183. 12:42:45assume someone that's going to be
  19184. 12:42:46building out an outline for a blog post
  19185. 12:42:48is going to be focused on a niche and it
  19186. 12:42:50might be a little bit easier. I just
  19187. 12:42:51gave two random examples, an AI one and
  19188. 12:42:54then a card one. So, we're going to just
  19189. 12:42:56test this out. I'm going to save this
  19190. 12:42:58really fast and let's think of something
  19191. 12:43:01we're going to do an outline on. Um,
  19192. 12:43:05what? Let's do
  19193. 12:43:07trying to think of a good outline.
  19194. 12:43:11Let's do an outline on Ellis and Chains.
  19195. 12:43:14Ellis in chains
  19196. 12:43:18Seattle grunge scene. Maybe it's
  19197. 12:43:20something like that.
  19198. 12:43:24Let's see what happens. And uh that did
  19199. 12:43:27not work because I have the wrong open
  19200. 12:43:29AI account. Man, I knew that would come
  19201. 12:43:31to bite me.
  19202. 12:43:34I still need to delete that old account.
  19203. 12:43:36All right, let's try this again. So
  19204. 12:43:39anticlimatic.
  19205. 12:43:42All right, let's see if we get a good
  19206. 12:43:43outline.
  19207. 12:43:47And uh
  19208. 12:43:50I don't think it'll be too difficult.
  19209. 12:43:53Obviously, like I said, probably better
  19210. 12:43:55off if you're fine-tuning it for a
  19211. 12:43:57specific use case rather than what I
  19212. 12:44:00have at everything broad. But
  19213. 12:44:03all right, title, intro. It's
  19214. 12:44:05interesting. It actually gave me a lot
  19215. 12:44:06more stuff over here. And you can see
  19216. 12:44:09brief hook, quick thesis, suggestion,
  19217. 12:44:12length, section one, section two,
  19218. 12:44:15section three, section four, section
  19219. 12:44:17five. This is actually pretty good.
  19220. 12:44:22I'm fine with this. I mean, we're not
  19221. 12:44:23going to use all of it, but like I think
  19222. 12:44:26this is good. So the second part, it
  19223. 12:44:28says takes outline writes the polish
  19224. 12:44:30intro paragraph. So let's do that. So
  19225. 12:44:34we're going to get another basic LM
  19226. 12:44:35chain.
  19227. 12:44:37And again with this you see that I
  19228. 12:44:39didn't attach any tools. I didn't do
  19229. 12:44:41anything else crazy. I just literally
  19230. 12:44:43just put that over there. So we have our
  19231. 12:44:45basic LLM chain. And then uh we'll go
  19232. 12:44:49over here and instead of connected we'll
  19233. 12:44:52define below there. You're going to say
  19234. 12:44:54this is an expression. Drag and drop
  19235. 12:44:56this over here. So you can see JSON.ext.
  19236. 12:44:59I'm going to add in a prompt system
  19237. 12:45:01message. And uh
  19238. 12:45:04all I'm going to say is interrop. So
  19239. 12:45:10based on
  19240. 12:45:13I'll put that over here. Let me make
  19241. 12:45:15this full thing. I don't need that to be
  19242. 12:45:18an expression per se. I just want to
  19243. 12:45:20make that there. Cool.
  19244. 12:45:22You're man. I don't know why it's cut
  19245. 12:45:25out. All right.
  19246. 12:45:28is
  19247. 12:45:31to write an intro
  19248. 12:45:34paragraph
  19249. 12:45:36that is
  19250. 12:45:38200ish words
  19251. 12:45:41when you should be more dynamic we or
  19252. 12:45:44sorry give more of a definition I'll say
  19253. 12:45:47150 to 250 words based
  19254. 12:45:51on the outline
  19255. 12:45:53of a
  19256. 12:45:58I don't know It needs to be paper say an
  19257. 12:46:00article
  19258. 12:46:04a user
  19259. 12:46:06will give
  19260. 12:46:08outline
  19261. 12:46:11will give you an outline.
  19262. 12:46:16All right. So your goal is to write an
  19263. 12:46:18intro paragraph that is 250 250 words
  19264. 12:46:20based on the outline of an article. Your
  19265. 12:46:22user will give you an outline. All you
  19266. 12:46:26need to do
  19267. 12:46:28is write it based on an eighth grade
  19268. 12:46:34reading level. It's fine there. You
  19269. 12:46:37know, there's other things you could
  19270. 12:46:38define like how do you want your intro?
  19271. 12:46:41You know, type the tone. Like there's a
  19272. 12:46:43lot of other things. I'm just going to
  19273. 12:46:45keep it like this to keep it basic.
  19274. 12:46:49And again, I mess up because I don't
  19275. 12:46:52throw a model over here.
  19276. 12:46:54And uh that will rerun that again.
  19277. 12:46:59It'll be fine. 150 to 250 words for an
  19278. 12:47:02intro on Allison Chains. And we'll be
  19279. 12:47:04good to go. So we take a look at our
  19280. 12:47:07output now.
  19281. 12:47:09And here we go. So it says Allison Chain
  19282. 12:47:11sits in the center of Seattle grunge
  19283. 12:47:13story because their music captured both
  19284. 12:47:14heavy sound, darker feelings marked the
  19285. 12:47:16era formed in the 1980s. The band mixed
  19286. 12:47:19metalike riffs with haunting vocal
  19287. 12:47:21harmonies and lyrics. uh those elements
  19288. 12:47:24made them stand out in a scene blah blah
  19289. 12:47:26blah talks a little bit more about the
  19290. 12:47:27album facelift will examine the human
  19291. 12:47:29side
  19292. 12:47:31talks a little bit more I think this is
  19293. 12:47:32a pretty good intro and all I did if you
  19294. 12:47:35go back over take a look at the input
  19295. 12:47:38Allison chains Seattle grun scene we got
  19296. 12:47:41our outline and uh now we have our
  19297. 12:47:44article and obviously like you can add
  19298. 12:47:45in steps there's something called human
  19299. 12:47:47in loop where you can actually approve
  19300. 12:47:49things before it gets sent along I just
  19301. 12:47:51wanted to show you chain
  19302. 12:47:53into chain. No pun intended with Alice
  19303. 12:47:55and chains. I didn't even think about
  19304. 12:47:57that when I was just given that example.
  19305. 12:48:00But uh cool. So now what I want to do is
  19306. 12:48:04our second example.
  19307. 12:48:06There like I said I I thought of these
  19308. 12:48:08while I was seating dinner and uh made
  19309. 12:48:10these out and uh we're going to go
  19310. 12:48:12through them. So our second one is we're
  19311. 12:48:14going to have like a review that's input
  19312. 12:48:16and over here we're going to find the
  19313. 12:48:18sentiment of a new feature and then send
  19314. 12:48:20it to a branch. So positive branch will
  19315. 12:48:22extract specific features mentioned
  19316. 12:48:25generate a thank you response negative
  19317. 12:48:26branch will categorize a complaint type
  19318. 12:48:29check if the critical bug is mentioned
  19319. 12:48:31create a jar ticket I put that as
  19320. 12:48:33optional like I'm not going to do it but
  19321. 12:48:35you can see with this type of stuff like
  19322. 12:48:37you can really expand this out notify
  19323. 12:48:39the product team we'll do the product
  19324. 12:48:41team I'm the product team myself and I
  19325. 12:48:43and generate an empathetic response
  19326. 12:48:45which I'll just generate myself as well
  19327. 12:48:48a neutral branch will flag for manual
  19328. 12:48:50review the feedback backlog. Yeah, you
  19329. 12:48:52get the point. So, let's talk about the
  19330. 12:48:55review. Let's just pretend we have like
  19331. 12:48:57a manual trigger.
  19332. 12:48:59We already have a manual trigger. We do.
  19333. 12:49:02Zoom out. We're going to steal it
  19334. 12:49:04wherever it's at. There it is. All the
  19335. 12:49:07way at the top. Going to steal that and
  19336. 12:49:09bring it down over here. Cool.
  19337. 12:49:13Then what we're going to do is throw in
  19338. 12:49:14edit sets. We're going to put in our
  19339. 12:49:16review
  19340. 12:49:19and let's just take the side of any end
  19341. 12:49:23and what we're going to do is pretend
  19342. 12:49:24there's a bug. So,
  19343. 12:49:28we're going to say
  19344. 12:49:31the new AI agent, let's just pretend
  19345. 12:49:35there's a new AI agent, does not work
  19346. 12:49:39with Google Gemini 4.
  19347. 12:49:44tried everything.
  19348. 12:49:47Tried everything,
  19349. 12:49:51but my production workflows
  19350. 12:49:57are useless.
  19351. 12:50:00Also, I put this in the wrong section.
  19352. 12:50:02It's been a long day. Uh, we're going to
  19353. 12:50:04say review over here like that. Cool.
  19354. 12:50:07So, we have our review and our edit set.
  19355. 12:50:09We have our manual trigger. Next, what
  19356. 12:50:10we need to do is find the sentiment. So,
  19357. 12:50:12we're going to do just close out of
  19358. 12:50:15that. Go to AI
  19359. 12:50:17and then find our sentin analysis. So,
  19360. 12:50:20we have that over here. I'm just going
  19361. 12:50:22to keep it very basic. Positive,
  19362. 12:50:25negative, neutral. No big deal. Let's
  19363. 12:50:27copy in our LM
  19364. 12:50:31over here. We'll use something cheap.
  19365. 12:50:32That's fine. And let's uh test this out.
  19366. 12:50:36So, I'm just going to run this over
  19367. 12:50:37here.
  19368. 12:50:39Workflow has issues. And well, you know
  19369. 12:50:40why the issue is? because I never
  19370. 12:50:42actually passed in the data. So if I
  19371. 12:50:44execute the step, we have that there. We
  19372. 12:50:47got to pass in our data. Make a lot of
  19373. 12:50:49mistakes. I'm tired. Cool. So we have
  19374. 12:50:51this over here and uh we'll see which
  19375. 12:50:54branch it goes on.
  19376. 12:50:57This goes back into our issue we had a
  19377. 12:50:59little bit earlier with the sentiment
  19378. 12:51:00analysis, which it seems like it's
  19379. 12:51:02broken for GPT5 mini for some reason. I
  19380. 12:51:05don't know why, but it was anthropic.
  19381. 12:51:06Not a big deal. So, I'll just grab that,
  19382. 12:51:10paste it over here, and we'll use that
  19383. 12:51:13for this example. Let's run it again.
  19384. 12:51:17Should be fine.
  19385. 12:51:19And you see it goes into negative.
  19386. 12:51:21Great. So, now what we need to do is
  19387. 12:51:22kind of design the workflow. So, for the
  19388. 12:51:25negative branch over here, we got to
  19389. 12:51:28categorize the complaint type.
  19390. 12:51:31So, we could do like a text classifier
  19391. 12:51:34of some sort.
  19392. 12:51:36Let me just make a sticky note.
  19393. 12:51:40So, we'll just go over here
  19394. 12:51:46and uh we'll go to our text classifier.
  19395. 12:51:52All right. So, we have our text
  19396. 12:51:54classifier that's going to go in over
  19397. 12:51:55here.
  19398. 12:51:57All right. So, we're going to categorize
  19399. 12:51:58a complaint type. We're going to have to
  19400. 12:52:00fill this out. I don't know how we're
  19401. 12:52:03going to fill this out yet. We'll figure
  19402. 12:52:04it out. check if the critical bug is
  19403. 12:52:06mentioned. Well, we did talk about a
  19404. 12:52:08bug. So, we should probably do like an
  19405. 12:52:11information extractor as well. So, what
  19406. 12:52:15I'm thinking
  19407. 12:52:19is we go over here, information
  19408. 12:52:22extractor.
  19409. 12:52:25Saw it here in a second. I'm just going
  19410. 12:52:27to go down here and grab it. I need our
  19411. 12:52:29information extractor as well. And I
  19412. 12:52:32just close that out
  19413. 12:52:34and both of those.
  19414. 12:52:40Cool.
  19415. 12:52:42What else do we need? We're not going to
  19416. 12:52:43do the jerro ticket. Notify the product
  19417. 12:52:45team and write a response. So let's
  19418. 12:52:48scribe
  19419. 12:52:50agent. We could write a basic LM chain
  19420. 12:52:52for our response.
  19421. 12:52:56So this will be the response.
  19422. 12:52:58Again, we can just grab a cheap OpenAI
  19423. 12:53:01chat model
  19424. 12:53:04and then
  19425. 12:53:06other thing that we need over here is
  19426. 12:53:09notifying the product team. So, what
  19427. 12:53:12we'll do is have a Gmail trigger
  19428. 12:53:16and we're going to send it Gmail. So,
  19429. 12:53:17we'll say send a message.
  19430. 12:53:20Great. So, this will be over here
  19431. 12:53:24and let's jump into it. So
  19432. 12:53:28let's think about each of these steps.
  19433. 12:53:30So the first one, let's just generate an
  19434. 12:53:32empathetic response. So we're going to
  19435. 12:53:34do the basic LM chain. We're going to
  19436. 12:53:36say cat.
  19437. 12:53:41We don't need the connected. We're going
  19438. 12:53:42to use define below.
  19439. 12:53:45And we're going to pass in this
  19440. 12:53:48information.
  19441. 12:53:50So we need to pass in that review into
  19442. 12:53:52the user message. And then we're going
  19443. 12:53:54to add in a prompt and we say based on
  19444. 12:54:00the review,
  19445. 12:54:02write an empathetic
  19446. 12:54:06message to the customer
  19447. 12:54:10who had a bad experience.
  19448. 12:54:14Obviously, if you have some type of
  19449. 12:54:16documentation, you're going to write
  19450. 12:54:17this a little bit better. Go for it. I'm
  19451. 12:54:20doing a two second YouTube video
  19452. 12:54:22and you can see we have this over here
  19453. 12:54:28and it says really sorry frustrating
  19454. 12:54:30must be over here. Thank you for letting
  19455. 12:54:31us know we'll priority is getting it
  19456. 12:54:33fixed to help us investigate escalate
  19457. 12:54:35quickly. So like this makes the
  19458. 12:54:37assumption that we don't have that
  19459. 12:54:38information where you know maybe we do
  19460. 12:54:40already have that info. I don't know. We
  19461. 12:54:42could keep that as is. You can obviously
  19462. 12:54:45tweak it. I'm not going to do a lot of
  19463. 12:54:47tweaking for this one. And then let's
  19464. 12:54:48pretend like we send the message back
  19465. 12:54:50into our customer. I'm just going to
  19466. 12:54:53send it to myself.
  19467. 12:54:59But you know what? I don't actually like
  19468. 12:55:00this because we should have an output
  19469. 12:55:04parser
  19470. 12:55:06and we're going to tweak this say based
  19471. 12:55:08on the view write empathy also
  19472. 12:55:11generate a subject line.
  19473. 12:55:15Cool. So we're going to have this create
  19474. 12:55:16a subject as well. We're going to add an
  19475. 12:55:18output parser. So, we will go and do
  19476. 12:55:23that.
  19477. 12:55:24And we'll put over here.
  19478. 12:55:27We're going to say email message.
  19479. 12:55:32And then we're going to do subject line.
  19480. 12:55:39Oops.
  19481. 12:55:47subject.
  19482. 12:55:51Sorry.
  19483. 12:55:54Let's run this again
  19484. 12:55:58and do this.
  19485. 12:56:01Hopefully, we get the correct
  19486. 12:56:02information.
  19487. 12:56:12Honestly, the more I think about it,
  19488. 12:56:13like, yeah, we could Oh, we'll keep this
  19489. 12:56:16going. All right. What's my error over
  19490. 12:56:17here?
  19491. 12:56:21Model doesn't fit.
  19492. 12:56:25All right. So, let's see what we put
  19493. 12:56:27over here. Based on the review, write
  19494. 12:56:29empathetic message.
  19495. 12:56:33Oh, you know what? We should probably
  19496. 12:56:34call this just message.
  19497. 12:56:37Probably getting confused.
  19498. 12:56:40Let's run that again. Make sure those
  19499. 12:56:41are one to one.
  19500. 12:56:48And then while that's running,
  19501. 12:56:52let's go in our information extractor.
  19502. 12:56:54We're going to have our text. We're
  19503. 12:56:55going to add an attribute. And we're
  19504. 12:56:57going to call this
  19505. 12:56:59product
  19506. 12:57:01bug.
  19507. 12:57:04And because we're saying over here, I
  19508. 12:57:06I'll fix this here in a second, but it
  19509. 12:57:08says categorize complaint type check if
  19510. 12:57:11critical bug is mentioned. So, we should
  19511. 12:57:13probably call this critical bug.
  19512. 12:57:15Critical product bug.
  19513. 12:57:22There is something wrong with the
  19514. 12:57:26software provided.
  19515. 12:57:30Cool. So, what we can do, I'll test this
  19516. 12:57:34out in a second with this basic LM
  19517. 12:57:36chain. I'm not sure why it's not
  19518. 12:57:37working. I mean, I'm sure I can debug it
  19519. 12:57:39in a second. Let's see if this
  19520. 12:57:41information extractor is working.
  19521. 12:57:44Let's pass that in.
  19522. 12:57:51It needs to take this review.
  19523. 12:57:54Cool.
  19524. 12:57:57It should say this is required as well.
  19525. 12:58:00The new AI agent does not work with
  19526. 12:58:01Google Gemini 4 causing problems.
  19527. 12:58:03Perfect. Let's make sure that's required
  19528. 12:58:05as well. So that's working. Let's
  19529. 12:58:07pretend that's sending over to uh
  19530. 12:58:11our team as well. So we'll send this
  19531. 12:58:13over there
  19532. 12:58:15again. We'll say new critical bug.
  19533. 12:58:21And honestly, just based off of this
  19534. 12:58:23extraction, I think this is fine. I was
  19535. 12:58:25saying like I don't think we really need
  19536. 12:58:27the classifier on this side of things
  19537. 12:58:29because we're just going to look at bugs
  19538. 12:58:31in general. I mean we could get super
  19539. 12:58:32nuanced and do that. I don't think it's
  19540. 12:58:35we don't need it for this one. All
  19541. 12:58:36right. So we have that over here. We
  19542. 12:58:38need to get this chain working as well.
  19543. 12:58:42So going to do is build that out. So
  19544. 12:58:45product team knows we just got to figure
  19545. 12:58:47out why this chain isn't working. So we
  19546. 12:58:49have this review. It goes in over here.
  19547. 12:58:52Now why does this not work? I think I
  19548. 12:58:55might have to provide the exact example
  19549. 12:58:57in this message for the system message
  19550. 12:59:00and uh again if this doesn't work I'll
  19551. 12:59:04just put that exact example. All right.
  19552. 12:59:05So it says model output doesn't fit to
  19553. 12:59:09continue execution on error. So
  19554. 12:59:13I'm not sure why that's not working but
  19555. 12:59:16we'll go over here load this up.
  19556. 12:59:21Example,
  19557. 12:59:26we'll just say
  19558. 12:59:28user
  19559. 12:59:30I hated
  19560. 12:59:32using this product.
  19561. 12:59:37Then we'll say AI
  19562. 12:59:42message.
  19563. 12:59:44Sorry to hear that you had a negative
  19564. 12:59:48experience.
  19565. 12:59:53Also, I'm just going to go and change
  19566. 12:59:55this out.
  19567. 13:00:01Obviously, this is pretty terrible
  19568. 13:00:03saying like we are
  19569. 13:00:05sorry and things like that, but it's
  19570. 13:00:07okay.
  19571. 13:00:11Cool. So,
  19572. 13:00:14Let's see if this works.
  19573. 13:00:17Should
  19574. 13:00:19I'm going to execute the step again.
  19575. 13:00:24I mean, I'm I think I'm very explicit
  19576. 13:00:26there.
  19577. 13:00:30Man, did it really break again? I'm
  19578. 13:00:32generally curious if it did.
  19579. 13:00:37All right, so let's see what is going on
  19580. 13:00:40over here.
  19581. 13:00:51I wonder if it's a special character
  19582. 13:00:52because you can see we have the text on
  19583. 13:00:55that side of things.
  19584. 13:01:06All right, let's try this. Sometimes the
  19585. 13:01:08basic LM chain is a little buggy. Let's
  19586. 13:01:10try our AI agent.
  19587. 13:01:16Going to try the same exact thing over
  19588. 13:01:18and again with their agents. It happens.
  19589. 13:01:21Not a big deal. You got to pivot. And uh
  19590. 13:01:25I'm keeping this in here just to show
  19591. 13:01:26you that things happen. So
  19592. 13:01:31this says output formats.
  19593. 13:01:34find below.
  19594. 13:01:38Pass in this review.
  19595. 13:01:41Add in the system message.
  19596. 13:01:44Try the system message here.
  19597. 13:01:47Yeah. So, go back in and try this out.
  19598. 13:01:51And if it doesn't work here, obviously
  19599. 13:01:52like I have another bug which maybe I'm
  19600. 13:01:54oblivious to see, but I don't think I
  19601. 13:01:57should have an issue. I mean, it's
  19602. 13:01:59pretty straightforward
  19603. 13:02:03and it could be uh the output parser is
  19604. 13:02:06bugged as well or I'm missing like the
  19605. 13:02:08most obvious thing.
  19606. 13:02:11It it worked like you can see I I didn't
  19607. 13:02:13change anything. So, just an error with
  19608. 13:02:15the basic LM chain. Uh you can see we
  19609. 13:02:18have this over here subject line and
  19610. 13:02:22output. So, really we can go back into
  19611. 13:02:24our email. We can define our subject
  19612. 13:02:28line. So you can just grab your subject
  19613. 13:02:30line there. You can grab this message
  19614. 13:02:32which will just say it's text. And uh
  19615. 13:02:35yeah, there we go. I could execute this
  19616. 13:02:37out as well. I can show it to my Google
  19617. 13:02:39account. I'm not going to run it. But
  19618. 13:02:41yeah, so we have our negative sentiment.
  19619. 13:02:44We send a email to the person saying
  19620. 13:02:46we're sorry. And then we extract what
  19621. 13:02:48the bug was from that message and we
  19622. 13:02:50send it to our engineering team.
  19623. 13:02:52Obviously, again, I could have created a
  19624. 13:02:54Jira ticket pretty easily. I' never set
  19625. 13:02:56up Jira with an any. I know it's a
  19626. 13:02:58popular thing to do. And really, if I
  19627. 13:03:01spent some time, we could categorize all
  19628. 13:03:03the different types of bugs and and I
  19629. 13:03:05think that'd be useful for like a a
  19630. 13:03:07engineering team to do like, oh, this is
  19631. 13:03:09the type of bug we're experiencing. So
  19632. 13:03:11that way you can fix those bugs as they
  19633. 13:03:12pop up. But I just didn't do that here.
  19634. 13:03:15So next, what we want to do is let's go
  19635. 13:03:17into our neutral branch. We'll like flag
  19636. 13:03:20for manual review. So, we could just say
  19637. 13:03:22it's like in a spreadsheet.
  19638. 13:03:24And uh yeah, let's do that. So, what
  19639. 13:03:27we're going to do is
  19640. 13:03:29go to sheets. Let's just pretend we have
  19641. 13:03:32a sheet over here. We're going to insert
  19642. 13:03:34into a sheet. So, we'll say appender row
  19643. 13:03:38in sheets. And let's imagine we have a
  19644. 13:03:41sheet. And again, this could be a
  19645. 13:03:42database. This could be wherever else.
  19646. 13:03:44We're just going to populate some
  19647. 13:03:45information.
  19648. 13:03:47I'm going to load up Sheets accounts.
  19649. 13:03:50I'm going to go in all YouTube video
  19650. 13:03:53update. We're going to load this up here
  19651. 13:03:54in a second. We're going to create
  19652. 13:03:57another sheets. We'll say sheet six
  19653. 13:04:01and we'll say this is going to be a um
  19654. 13:04:06annual review.
  19655. 13:04:10Well, that exact name is going to be
  19656. 13:04:11what? Neutral. So, it should say neutral
  19657. 13:04:13reviews.
  19658. 13:04:17Go and fix that.
  19659. 13:04:21Then we'll put like time stamp.
  19660. 13:04:24Oh, we could add in like user emails and
  19661. 13:04:26all this other stuff. I'm kind of
  19662. 13:04:27skipping that over here. Don't need it
  19663. 13:04:29for today. I mean, hopefully you guys
  19664. 13:04:32understand. Just add one additional
  19665. 13:04:33step. So then all we do over here is go
  19666. 13:04:37and add in our neutral view. Obviously,
  19667. 13:04:40we don't have one over here. So, I kind
  19668. 13:04:42of want to change this up. I don't want
  19669. 13:04:44to get rid of this. But
  19670. 13:04:47yeah, here's what we're going to do.
  19671. 13:04:51You say it's like review two.
  19672. 13:04:57The product
  19673. 13:04:58is okay.
  19674. 13:05:01Favorite
  19675. 13:05:03I've seen worse. Like that seems pretty
  19676. 13:05:06neutral.
  19677. 13:05:08Then we're going to just send in JSON
  19678. 13:05:10review 2 over here. Hopefully it gets
  19679. 13:05:13into the neutral step.
  19680. 13:05:16And uh sweet neutral branch. And you
  19681. 13:05:20could just literally just drop this in
  19682. 13:05:24neutral review is there. And then time
  19683. 13:05:27stamp. Let's just go JSON now.
  19684. 13:05:30JSON. Now
  19685. 13:05:33I thought that was the time. It's not
  19686. 13:05:35the time. I got to fix that. Um I'll
  19687. 13:05:38just check that for a second.
  19688. 13:05:43I think it's just this actually. No,
  19689. 13:05:45it's not.
  19690. 13:05:48All right, I'm back. I literally just
  19691. 13:05:49asked Claude and it's actually just
  19692. 13:05:52dollar now. And I didn't need to have
  19693. 13:05:54the extra JSON. Anyways, so we have that
  19694. 13:05:57now and uh we can just execute the step
  19695. 13:05:59over here and it'll populate within our
  19696. 13:06:03spreadsheet. So you can see we have our
  19697. 13:06:05neutral review and then time stamp so
  19698. 13:06:07someone can review it a little bit
  19699. 13:06:08later. All right, great. And then let's
  19700. 13:06:10look at the easy one. So, extract a
  19701. 13:06:12specific feature mentioned and then
  19702. 13:06:14generate a thank you for the response.
  19703. 13:06:16So, maybe we want to extract that
  19704. 13:06:17feature and then put it into a
  19705. 13:06:18spreadsheet. So, I'm just going to go
  19706. 13:06:20over here and create a sheet seven. And
  19707. 13:06:23then we'll put like feature
  19708. 13:06:26liked. I don't know. I could again I I'm
  19709. 13:06:30just architecting. I'm building this on
  19710. 13:06:31the on the fly. Like this is not great
  19711. 13:06:34architecture. This is really great
  19712. 13:06:35thinking. Um but I just wanted to show
  19713. 13:06:38different ways that you could use this
  19714. 13:06:39and really start expanding this out. So,
  19715. 13:06:42all we're doing on this one is what?
  19716. 13:06:44Generate a thank you message. So, we
  19717. 13:06:46already have something very similar. So,
  19718. 13:06:49we'll just say
  19719. 13:06:51this.
  19720. 13:06:54Go in here and instead of
  19721. 13:06:57based on the review, write a
  19722. 13:07:04thank you message
  19723. 13:07:09had a great experience.
  19724. 13:07:16Also generate a subject line
  19725. 13:07:20example.
  19726. 13:07:33Cool. Um, so we're gonna say thank you
  19727. 13:07:38for
  19728. 13:07:41such great feedback
  19729. 13:07:44for our Oh, this is pretty bad subject
  19730. 13:07:48line.
  19731. 13:07:50Thanks for the feedback.
  19732. 13:07:56And we're going to say, I loved the new
  19733. 13:08:00AI agent.
  19734. 13:08:03Cool.
  19735. 13:08:06That's fine. Again, it's very basic. You
  19736. 13:08:09can always tweak your prompts. So,
  19737. 13:08:11that'll be one version of it. We'll call
  19738. 13:08:13this JSON review three. So, we had one
  19739. 13:08:17and two, right? Just double check. Yeah,
  19740. 13:08:20we'll do three.
  19741. 13:08:23I loved the AI agent feature.
  19742. 13:08:29Great.
  19743. 13:08:31It saves me
  19744. 13:08:34hundreds of hours.
  19745. 13:08:38Okay, so we have that. So we know that's
  19746. 13:08:41built in. And then lastly, we're going
  19747. 13:08:43to do our information extractor.
  19748. 13:08:46Just going to be instead of bug, we're
  19749. 13:08:49going to change this up. We're going to
  19750. 13:08:50go in here
  19751. 13:08:54and put favorite feature.
  19752. 13:09:01the feature
  19753. 13:09:03someone
  19754. 13:09:05like
  19755. 13:09:07and I'd make this optional because
  19756. 13:09:09sometimes people will say positive
  19757. 13:09:10things and not give a feature and then
  19758. 13:09:13um go to the spreadsheet route. Now, one
  19759. 13:09:16other thing to note is like this is very
  19760. 13:09:18messy. You can't tell what's going on.
  19761. 13:09:21So, in real world, you're going to re
  19762. 13:09:22label all these. You're going to leave
  19763. 13:09:24sticky notes. You're going to space
  19764. 13:09:25these out. As I mentioned, for like the
  19765. 13:09:28probably 10th time, this is a YouTube
  19766. 13:09:31video. I'm trying to teach you how these
  19767. 13:09:32nodes work, how to build flows. So,
  19768. 13:09:35there's definitely things to work on
  19769. 13:09:37making this better if you're going to
  19770. 13:09:39actually present this to a customer.
  19771. 13:09:41Anyways, going back over here, we're
  19772. 13:09:43going to go into sheet seven now. And uh
  19773. 13:09:47we'll use JSON review 3.
  19774. 13:09:51It's not going to be a neutral review.
  19775. 13:09:53We need to refresh this.
  19776. 13:10:00It's going to fetch these columns and
  19777. 13:10:02then this feature linked. I'm just
  19778. 13:10:04literally just going to go here,
  19779. 13:10:07copy this JSON review 2, populate it
  19780. 13:10:10over here. Say this is JSON review 3.
  19781. 13:10:16Yeah, we can just run this one more time
  19782. 13:10:18over here with three. It should go into
  19783. 13:10:20the positive branch.
  19784. 13:10:25Why did this not work? Oh. Oh, that's
  19785. 13:10:28why it didn't work.
  19786. 13:10:32It should be review three.
  19787. 13:10:35Cool. We have review three there now.
  19788. 13:10:38Then we go over here. Execute the step.
  19789. 13:10:41Should go positive.
  19790. 13:10:45Positive branch. Boom. And then you can
  19791. 13:10:48see if we extract this over here should
  19792. 13:10:51say the AI agent.
  19793. 13:10:58Oh, you know what? Because we're still
  19794. 13:11:00using
  19795. 13:11:02initial JSON review. I was like that is
  19796. 13:11:05interesting. Always make sure these are
  19797. 13:11:07correct. Look at that AI agent feature.
  19798. 13:11:09And then that would just get populated
  19799. 13:11:10into the spreadsheet.
  19800. 13:11:13And you can see in sheet seven
  19801. 13:11:16we actually do not get the correct
  19802. 13:11:18result. We just get that um
  19803. 13:11:22that's why we're not we don't have this
  19804. 13:11:23as an expression and also this is off.
  19805. 13:11:26It should be favorite feature
  19806. 13:11:29that now if I execute the step always
  19807. 13:11:32double check your work.
  19808. 13:11:34Cool. Now we have that working over
  19809. 13:11:37there and then uh
  19810. 13:11:41our agents that will send the email.
  19811. 13:11:44So let's test what this agent would uh
  19812. 13:11:47populate.
  19813. 13:11:49And we can send that email if we want.
  19814. 13:11:52I probably won't, but
  19815. 13:11:55thank you so much for your feedback.
  19816. 13:11:56We're thrilled to hear the AI agent
  19817. 13:11:58feature saving you hundreds of hours.
  19818. 13:11:59Thanks. Glad the AI gen is saving us.
  19819. 13:12:02That's fine. Again, I would probably
  19820. 13:12:04recommend you spend some time and build
  19821. 13:12:06out a way better system message. And
  19822. 13:12:07I've taught you the fundamentals behind
  19823. 13:12:09it, but this video would be way too long
  19824. 13:12:12to build out something for like a a
  19825. 13:12:15production level for this over here.
  19826. 13:12:18All right, and we're going to do one
  19827. 13:12:21more. I'm going to take another quick
  19828. 13:12:22break and then we'll jump into example
  19829. 13:12:25number three. I'm just going to throw
  19830. 13:12:26this over here, though. So, example
  19831. 13:12:29three,
  19832. 13:12:31add it on here. Cool. So, here's our
  19833. 13:12:34third example.
  19834. 13:12:36Build this out a little bit later. I'll
  19835. 13:12:38just drag and drop this here. But what
  19836. 13:12:41we're going to do is essentially our OCR
  19837. 13:12:44example. I promise you guys we do OCR.
  19838. 13:12:47We're going to use a filter and things
  19839. 13:12:48like that. So, we'll probably set that
  19840. 13:12:50up. I'll probably record that a little
  19841. 13:12:51bit tomorrow morning. Jump into there
  19842. 13:12:54and uh yeah, I will see you guys there.
  19843. 13:12:56All right. So, example three. I have
  19844. 13:12:58this ready to go. So what we're going to
  19845. 13:13:00do is we're going to grab input of an
  19846. 13:13:02image. Then we're going to use OCR to
  19847. 13:13:04extract information, extract if someone
  19848. 13:13:06has experiences or not on their resume
  19849. 13:13:09for a specific job, filter them out, and
  19850. 13:13:12then add otherwise to a spreadsheet. And
  19851. 13:13:15few things we'll need for that. First is
  19852. 13:13:17résumés. So how did I find rums? Well, I
  19853. 13:13:20literally went to the data science
  19854. 13:13:21Reddit and I just searched ré and I
  19855. 13:13:24grabbed these four. You can go to any
  19856. 13:13:25type of professional Reddit and I'm sure
  19857. 13:13:27people are posting their resumes. So, um
  19858. 13:13:30because people always want to get them
  19859. 13:13:31critiqued. So, you can just go and
  19860. 13:13:33screenshot these. I already saved these
  19861. 13:13:34on my computer. So, screenshot them or
  19862. 13:13:36save them. I'm just saving these as PNG
  19863. 13:13:38files. Another thing you'll need to get
  19864. 13:13:40is Mistl. So, how you want to set up
  19865. 13:13:44Mistl just go into console.mmistl.ai.
  19866. 13:13:48And then you're going to want to go into
  19867. 13:13:50your API keys over here to the top left.
  19868. 13:13:52And I'll show you how to set this up
  19869. 13:13:54here in a second. Let me actually do
  19870. 13:13:55that. So I'm going to go and search for
  19871. 13:13:57Mistral AI
  19872. 13:14:00extract text. And then I'm going to go
  19873. 13:14:02over here. You're going to create a new
  19874. 13:14:04credential. I already have an account
  19875. 13:14:05over here. So I'm just going to click my
  19876. 13:14:07pencil icon and going into AI Studio.
  19877. 13:14:10Create a new key. I'm just going to say
  19878. 13:14:11this is any big course.
  19879. 13:14:15It's fine. You can set an expiration
  19880. 13:14:17date. I'm not going to set one for now.
  19881. 13:14:19I'm going to create a new key. And uh
  19882. 13:14:22you'll see I have this key over here.
  19883. 13:14:24Now I'm going to just going to pause the
  19884. 13:14:26video probably and create a new key so
  19885. 13:14:28that way you guys don't see this, but
  19886. 13:14:30ideally you would just copy this key and
  19887. 13:14:32go back into any and then fill this API
  19888. 13:14:34key over here. Obviously I don't want
  19889. 13:14:36this to be shared. So I'm just going to
  19890. 13:14:38delete this key. Also you might have to
  19891. 13:14:40add in credits. I believe Mistral is
  19892. 13:14:42still free if they train on your data.
  19893. 13:14:44Um could be wrong on that. So if you
  19894. 13:14:47need to add in u money into Mistl,
  19895. 13:14:50please do so. Again, I haven't taken a
  19896. 13:14:52look at that documentation in probably a
  19897. 13:14:54few months, but I should be good on my
  19898. 13:14:56side. Just double check it works on
  19899. 13:14:58yours. All right, I'm going to create a
  19900. 13:14:59new key, and I will be right back.
  19901. 13:15:06All right, I'm back. So, my key has been
  19902. 13:15:08created. I just called this Nan Live
  19903. 13:15:101230, and I I put it back into myself.
  19904. 13:15:13Obviously, name this as you want, but
  19905. 13:15:15now we have our OCR. The first thing we
  19906. 13:15:17need to do though is how are we going to
  19907. 13:15:19actually get the image into any N? I'm
  19908. 13:15:22going to do the lazy route and just set
  19909. 13:15:24up a form over here. Obviously, there's
  19910. 13:15:26other approaches that you could use, but
  19911. 13:15:27I feel like this is going to be easy way
  19912. 13:15:29to just test this out and we know how to
  19913. 13:15:31add in binary data. So, what we're going
  19914. 13:15:34to do is say this is like a resume
  19915. 13:15:36uploader.
  19916. 13:15:39I'm going to do like literally the MVP
  19917. 13:15:41as fast as possible. So, field name,
  19918. 13:15:43we'll just call this data as I see that
  19919. 13:15:45all the time. uh label, we'll say
  19920. 13:15:47resumeé goes here.
  19921. 13:15:50Element type, but we're going to call
  19922. 13:15:52this a file. And we're going to accept
  19923. 13:15:54only one file. Uh we can test this out
  19924. 13:15:56as well. So, I'm just going to grab one
  19925. 13:15:58of the resumes. We'll throw it in over
  19926. 13:16:00here. Click submit. And we just make
  19927. 13:16:02sure that we get our file. Boom. We have
  19928. 13:16:04this file. And if you're watching this
  19929. 13:16:06video, uh thank you for uploading to the
  19930. 13:16:08data science Reddit. But yeah, so we
  19931. 13:16:10have that over here.
  19932. 13:16:12And uh now what we want to do is see if
  19933. 13:16:15Mistl can actually extract the text from
  19934. 13:16:18there. So going to mistrol obviously you
  19935. 13:16:20have your account we're going to
  19936. 13:16:21resource. We're going to use a document
  19937. 13:16:23operation. We're going to extract text
  19938. 13:16:25model. They only give you one option. So
  19939. 13:16:27ML OCR latest document type. You can
  19940. 13:16:29choose a document or image. I'm using an
  19941. 13:16:31image because like this is an image over
  19942. 13:16:33here. Uh input type you can use a URL or
  19943. 13:16:36binary data. I'll show you URL in a
  19944. 13:16:38second but we can do binary data as
  19945. 13:16:40well. input binary data name. Well, it's
  19946. 13:16:42just called data. Over here, you have
  19947. 13:16:44other options for like batch processing
  19948. 13:16:46and things like that too. But I'm just
  19949. 13:16:47going to execute this step
  19950. 13:16:49and uh what you can see is we have our
  19951. 13:16:52information. So we have this in markdown
  19952. 13:16:55and just to go into our table, you can
  19953. 13:16:58see we scroll down over here. Extracted
  19954. 13:17:01text is our information. So do we want
  19955. 13:17:04all this? Not really. We just want our
  19956. 13:17:06extracted text. So what we're going to
  19957. 13:17:08do is just have a edit set.
  19958. 13:17:12Go edit set and then we'll just grab
  19959. 13:17:14this extracted text and populate it
  19960. 13:17:16there. I'm also going to just put our
  19961. 13:17:18data really fast and uh we will grab
  19962. 13:17:22that out and then you can execute the
  19963. 13:17:24step. Obviously we could clean this up
  19964. 13:17:26if we wanted to but I think this is
  19965. 13:17:28fine. All we're going to ask is some
  19966. 13:17:30questions based around it like does this
  19967. 13:17:32person have uh specific information? So,
  19968. 13:17:36um, because you can see a bunch of
  19969. 13:17:38skills are listed over here, and we're
  19970. 13:17:39just going to do essentially a keyword
  19971. 13:17:41extraction. So, going back over to this
  19972. 13:17:44resume, this is the one we're taking a
  19973. 13:17:46look at. So, maybe we want to say, hey,
  19974. 13:17:48does someone have SQL experience? Great.
  19975. 13:17:51What type of projects do they have?
  19976. 13:17:53Like, obviously, I I'm not putting a ton
  19977. 13:17:55of thought into the design on this one.
  19978. 13:17:57I'm just teaching you guys how to use
  19979. 13:17:59the nodes. A real world experience. Like
  19980. 13:18:01if you're going to build out a resume
  19981. 13:18:02extractor, you're going to spend hours
  19982. 13:18:04trying to think about like all the
  19983. 13:18:06different nuances. I just thought about
  19984. 13:18:07this right before recording. So what
  19985. 13:18:10we're going to do next is extract if
  19986. 13:18:12they have experiences or not. So let's
  19987. 13:18:14add in our information extractor. So
  19988. 13:18:16we're going to say information extractor
  19989. 13:18:18hop over here and we're going to do is
  19990. 13:18:21first pass in our data.
  19991. 13:18:24So, and you know, actually, you know
  19992. 13:18:26what would be kind of interesting as
  19993. 13:18:27well? If we did a summary of what this
  19994. 13:18:31guy's resume is, that would be kind of
  19995. 13:18:33cool. So, out of the box thinking over
  19996. 13:18:36here, let's go and grab where is our
  19997. 13:18:39thing at? The summarization chain. We're
  19998. 13:18:41going to just grab that.
  19999. 13:18:43Out of the box thinking, we're going to
  20000. 13:18:44do this really fast. I don't know why I
  20001. 13:18:46just thought of this, but that's fine.
  20002. 13:18:48And, uh, we're going to use that to
  20003. 13:18:50summarize this.
  20004. 13:18:53Cool. So we have our summarization
  20005. 13:18:54chain. We'll set this up here in a
  20006. 13:18:55second. I also kind of wanted just to do
  20007. 13:18:57that so I can copy over this. Save some
  20008. 13:19:00time. All right. So information
  20009. 13:19:01extractor. We have all this. What do we
  20010. 13:19:03want to uh
  20011. 13:19:06grab? So I'm trying to think really
  20012. 13:19:08quick. What do we want to grab from
  20013. 13:19:10here? Um we'll say like SQL experience
  20014. 13:19:15experience
  20015. 13:19:18mentions
  20016. 13:19:20SQL in the text.
  20017. 13:19:24Okay. Some jobs require master's
  20018. 13:19:26degrees. So maybe want to do that. Um we
  20019. 13:19:29have a certification. Do we have even a
  20020. 13:19:32degree? Oh, we have education right here
  20021. 13:19:33at the top. We have a bachelor's. So
  20022. 13:19:36we'll go over here. Master's degree.
  20023. 13:19:38sister's degree.
  20024. 13:19:41Um,
  20025. 13:19:53and I'm saying either yes or no. So, I'm
  20026. 13:19:56going to say like over here as well,
  20027. 13:19:57either yes or no.
  20028. 13:20:01All right. So, we're looking for SQL.
  20029. 13:20:03We're looking for a master's degree. Um,
  20030. 13:20:06next we should probably look at
  20031. 13:20:09another example. Obviously, like this is
  20032. 13:20:12someone that just graduated college in
  20033. 13:20:14this instance, but we should probably do
  20034. 13:20:16like Python as well.
  20035. 13:20:18So, we're going to call this like and
  20036. 13:20:20I'm just going to call this masters.
  20037. 13:20:23Great. We'll just do three. So, we'll
  20038. 13:20:25say like Python experience.
  20039. 13:20:28Python experience
  20040. 13:20:33mentions Python
  20041. 13:20:36the text. What else can we put in here
  20042. 13:20:38really fast?
  20043. 13:20:41Um,
  20044. 13:20:44I think this is fine. I mean, this is a
  20045. 13:20:46very basic resume.
  20046. 13:20:50I And I would not [clears throat]
  20047. 13:20:51recommend you build out your resume like
  20048. 13:20:52this. If you're applying for a job right
  20049. 13:20:54now in data science, you're not going to
  20050. 13:20:56get a job. But that's fine. Obviously,
  20051. 13:20:58there's nuances like every job will have
  20052. 13:20:59like 10 or 15 required skills. So, I'm
  20053. 13:21:02curious where uh this will populate. I'm
  20054. 13:21:05just going to click execute step
  20055. 13:21:08and take a look. So, it says SQL
  20056. 13:21:10experience, yes. Master's degree, no.
  20057. 13:21:12Python experience, yes. And we go to his
  20058. 13:21:14resume. So, mentioned SQL right over
  20059. 13:21:17here. It should mention Python over here
  20060. 13:21:20as well. You can see Python. Python used
  20061. 13:21:23multiple times. And then no master's
  20062. 13:21:25degree. So that's why we have yes, yes,
  20063. 13:21:27no. Really, really cool because we just
  20064. 13:21:30essentially took an image, we extracted
  20065. 13:21:32all the text over there, and then we're
  20066. 13:21:34looking for specific pieces of
  20067. 13:21:35information. So we built that out. Next,
  20068. 13:21:37what we can do too is [snorts] do a
  20069. 13:21:40summarization chain. So what I'm going
  20070. 13:21:42to do on this one, since it's super
  20071. 13:21:44easy, we're just going to use a stuff.
  20072. 13:21:46Uh we're going to use the node input
  20073. 13:21:48JSON over here because you can see the
  20074. 13:21:50JSON is just this markdown. Uh we'll use
  20075. 13:21:52simple, which is just defined over here.
  20076. 13:21:56And then it says, "Write a concise
  20077. 13:21:57summary of the following resume." I'm
  20078. 13:21:59just going to say that following resume.
  20079. 13:22:03That's it. Again, super basic. I didn't
  20080. 13:22:05really change stuff, but execute steps
  20081. 13:22:08and we'll see what happens. Like this is
  20082. 13:22:10a terrible prompt. I would not recommend
  20083. 13:22:12you just only use this prompt, but we're
  20084. 13:22:14going to use it out of the box. And
  20085. 13:22:16resume summary, data science, and you
  20086. 13:22:19know what? You know what should we
  20087. 13:22:20probably put over here? Write a
  20088. 13:22:24concise two to three sentence
  20089. 13:22:28summary of the following resume. And I
  20090. 13:22:30know I misspelled sentence, so we're
  20091. 13:22:31going to fix that. I don't know why I
  20092. 13:22:32always misspell it. So, we'll test it
  20093. 13:22:35out. Now,
  20094. 13:22:37obviously, there's other nodes that you
  20095. 13:22:38could use, but take a look. Data science
  20096. 13:22:41intern who graduated a bachelor's in
  20097. 13:22:42computer science engineering from a
  20098. 13:22:44guru. I'm not even going to try to
  20099. 13:22:47pronounce that. University in 2023 with
  20100. 13:22:49a 8.4 CGPA, technical skills in Python,
  20101. 13:22:52machine learning frameworks, blah blah
  20102. 13:22:54blah. Right? So I essentially what we've
  20103. 13:22:58done now with the the summarization
  20104. 13:23:00chain and information extractor. There's
  20105. 13:23:02specific things I want to look at a
  20106. 13:23:03resume. We've extracted that. We also
  20107. 13:23:05have a a quick summary. Okay. So here's
  20108. 13:23:08the cool thing as well. We can now merge
  20109. 13:23:11these together if we really wanted to.
  20110. 13:23:13So what we can go here is find a merge
  20111. 13:23:15node. And what we'll do is just merge
  20112. 13:23:19these together.
  20113. 13:23:21Great. And how I want to do this is
  20114. 13:23:23combine. And we're going to combine by
  20115. 13:23:26position, too. So, we're going to go
  20116. 13:23:28here like that. Also, they probably
  20117. 13:23:31should have just pinned our data here so
  20118. 13:23:32we don't get extra calls. Fortunately,
  20119. 13:23:35I'm going have to rerun that one over
  20120. 13:23:36here. I'll just pin it. Save us some
  20121. 13:23:39time. Great. So, it's pinned all of this
  20122. 13:23:43just so that way this can uh be tested.
  20123. 13:23:46We'll execute this workflow. I'm just
  20124. 13:23:48going to drag this in over here. It's
  20125. 13:23:49not going to really do anything, but
  20126. 13:23:51sometimes you saw from the merge
  20127. 13:23:52section, we have issues. So now if I go
  20128. 13:23:54into this merge, you can see we have
  20129. 13:23:56text and then we have SQL experience
  20130. 13:23:58etc. You know I probably should re label
  20131. 13:24:00this instead of just having this as
  20132. 13:24:02text. But that's fine. We have this all
  20133. 13:24:04over here. Next what we can do is create
  20134. 13:24:06a filter if we wanted to. So let's put
  20135. 13:24:08in a filter.
  20136. 13:24:10And what we can do on this filter now is
  20137. 13:24:14go over and based off of things. So we
  20138. 13:24:17want to filter everyone that has SQL
  20139. 13:24:19experience.
  20140. 13:24:20So we're going to say is equal to yes.
  20141. 13:24:24We're going to add in Python experience
  20142. 13:24:27equal to yes. And then we're going to
  20143. 13:24:30add in over here, let's say you want to
  20144. 13:24:31have a master's degree. And I wouldn't
  20145. 13:24:33get a job because I don't have a
  20146. 13:24:34master's degree. Um, but we're going to
  20147. 13:24:36say this has to be a yes as well. So
  20148. 13:24:38you'll see since all three of these are
  20149. 13:24:40not met, this is disregarded. So
  20150. 13:24:44unfortunately, you did not get the job.
  20151. 13:24:46However, if we remove the option for the
  20152. 13:24:48master's degree, you'll see it is kept.
  20153. 13:24:51So we'll put in the whatever we want
  20154. 13:24:54over here. Obviously it changes job to
  20155. 13:24:55job and we have that there. Cool. So
  20156. 13:24:57let's just imagine we only care about
  20157. 13:24:59Python experience and SQL experience
  20158. 13:25:01which is um very fresh like you don't
  20159. 13:25:04have a lot over there. Obviously there's
  20160. 13:25:06a lot into the resume here. I'm not
  20161. 13:25:07saying this guy doesn't have experience.
  20162. 13:25:09I'm just saying if you're trying to get
  20163. 13:25:10a data science job and you don't have
  20164. 13:25:11Python experience and SQL experience,
  20165. 13:25:13you're not going to get that job.
  20166. 13:25:14Anyways, let's go now and add this to
  20167. 13:25:17sheets or a data table. It it really
  20168. 13:25:19doesn't matter to be honest with you.
  20169. 13:25:20We'll just do sheets. So, we'll just go
  20170. 13:25:22through this in sheets, append our own
  20171. 13:25:25sheets. We're going to use literally the
  20172. 13:25:26same sheet that we've been using like
  20173. 13:25:28this entire tutorial. I don't know why
  20174. 13:25:30I've just decided to use this sheet that
  20175. 13:25:32I'm using for uh YouTube timestamps, but
  20176. 13:25:36that's okay. Go over here to sheet eight
  20177. 13:25:39and we'll say um resumeé
  20178. 13:25:44writeups.
  20179. 13:25:46We'll say SQL
  20180. 13:25:49Python masters.
  20181. 13:25:53Great. And then what we can do now
  20182. 13:25:57is grab this sheet eight which obviously
  20183. 13:26:00you can re label these sheets as well.
  20184. 13:26:02And what we can do is send our different
  20185. 13:26:05things. So we have resume write up,
  20186. 13:26:08SQL experience,
  20187. 13:26:11masters and Python experience. And I can
  20188. 13:26:14execute the step.
  20189. 13:26:17And check it out. We have that. Now, if
  20190. 13:26:19I go over here, boom. So, obviously, we
  20191. 13:26:22can test this out with others, and I
  20192. 13:26:24would recommend that you do so. I'm just
  20193. 13:26:25going to unpin these, and we're going to
  20194. 13:26:27test it with one more example over here.
  20195. 13:26:30So,
  20196. 13:26:31we'll find another.
  20197. 13:26:33Obviously, I have I have four different
  20198. 13:26:35ones on here, so we can uh really mess
  20199. 13:26:38with it if we wanted to. So, which one
  20200. 13:26:41do we want to now? All right. So, we've
  20201. 13:26:43already done this one. I'm going to
  20202. 13:26:44close it out. This doesn't have a name.
  20203. 13:26:47This doesn't have a name either. We have
  20204. 13:26:50first a last name. That's a pretty cool
  20205. 13:26:52name. This is way too blocky.
  20206. 13:26:57University of London. Oh, that's not
  20207. 13:26:59University of London. Middle over here.
  20208. 13:27:02I guess that's fine. [snorts]
  20209. 13:27:05We'll execute workflow.
  20210. 13:27:08I think it's this one.
  20211. 13:27:12Obviously, didn't have a name on it. So,
  20212. 13:27:13we're just going to see it go through
  20213. 13:27:14the live workflow over here.
  20214. 13:27:18And uh I'm curious what ends up
  20215. 13:27:20happening. [snorts]
  20216. 13:27:25Did it filter?
  20217. 13:27:29It got disregarded. So, no SQL
  20218. 13:27:31experience on that resume. Let's see if
  20219. 13:27:33that's correct. So, that was this one
  20220. 13:27:35over here.
  20221. 13:27:38And I recommend that you know SQL if
  20222. 13:27:40you're working with I need a data
  20223. 13:27:43science job because you're going to have
  20224. 13:27:44to pull data all the time.
  20225. 13:27:49Junior data scientist. Yeah, there's
  20226. 13:27:51literally no mention of SQL on here.
  20227. 13:27:55It's crazy to me. uh e like even think
  20228. 13:27:58like people that are going to or systems
  20229. 13:28:00that have things in place like hey we
  20230. 13:28:02want to make sure someone has SQL like
  20231. 13:28:04put it in at least one bullet point
  20232. 13:28:07you can see no SQL so this guy got
  20233. 13:28:09automatically rejected although doesn't
  20234. 13:28:11look too bad on the side of things you
  20235. 13:28:14know you have what happened and then the
  20236. 13:28:16result associated with it all right
  20237. 13:28:18let's test another one we're going to
  20238. 13:28:19test this one over here with the block
  20239. 13:28:21letters this is someone out of the USA
  20240. 13:28:24and we will test it out So let's execute
  20241. 13:28:26that workflow. Hopefully this is the
  20242. 13:28:28correct one and click submit.
  20243. 13:28:32This can go through the same thing. I
  20244. 13:28:33probably should have looked at what
  20245. 13:28:34happened to the summarization as well.
  20246. 13:28:37We looked at information extractor like
  20247. 13:28:38I had like a masters and things like
  20248. 13:28:40that. But do that and take a look. This
  20249. 13:28:43one actually got added to the sheet. So
  20250. 13:28:45it says yes and yes. PhD data scientist
  20251. 13:28:49with eight plus years of experience
  20252. 13:28:50specialized in machine learning
  20253. 13:28:51statistics and large scale biomedical
  20254. 13:28:53data analysis. proven track record
  20255. 13:28:55developing novel ML methods and tools
  20256. 13:28:57have significantly improved disease
  20257. 13:28:59biomarker discovery and cancer
  20258. 13:29:01prediction a lot more over there as well
  20259. 13:29:03but I'm not going to read it all and
  20260. 13:29:05that is a very simple again very simple
  20261. 13:29:09this isn't super complicated way to
  20262. 13:29:12summarize a resume extract information
  20263. 13:29:15filter based around it we've added a
  20264. 13:29:17merge in over here so all this over here
  20265. 13:29:20OCR summarization chain information
  20266. 13:29:23extractor merge filter add to sheets.
  20267. 13:29:25You could really see how things are
  20268. 13:29:26stacking up and why I couldn't show you
  20269. 13:29:28things like this initially in the
  20270. 13:29:30beginning, right? But again, just to
  20271. 13:29:32kind of recap what we've covered, I
  20272. 13:29:34still think this one was a little bit
  20273. 13:29:35more complicated. So, the different
  20274. 13:29:38nodes and things like that, basic LM
  20275. 13:29:41chain essentially, you don't need tools,
  20276. 13:29:44you don't need memory. People overuse
  20277. 13:29:47the AI agent, use the basic LM chain.
  20278. 13:29:49Obviously, you saw I did have some
  20279. 13:29:51issues with the basic LM chain. So if it
  20280. 13:29:53does not work for you, feel free to
  20281. 13:29:55change it into an AI agent. Uh sentiment
  20282. 13:29:58analysis, you can see things are
  20283. 13:29:59positive, neutral, or negative.
  20284. 13:30:01Typically used in customer reviews or to
  20285. 13:30:03find what's happening for a specific
  20286. 13:30:05person or a company. Text classifier,
  20287. 13:30:08you know, again, something that you
  20288. 13:30:10typically will use in some sort of
  20289. 13:30:11chatbot if you want to route specific
  20290. 13:30:14areas on there. Information extractor
  20291. 13:30:17allows us to grab data from a large
  20292. 13:30:20piece of text and give us answers like
  20293. 13:30:23hey does this person have experience
  20294. 13:30:25within this section. You can prompt it
  20295. 13:30:27to say yes or no or you can say uh
  20296. 13:30:29search through something and get like a
  20297. 13:30:31specific year or things like that and I
  20298. 13:30:32showed you that there. Summarization
  20299. 13:30:34chain allows you to do a very quick
  20300. 13:30:36summary of a document. There's three
  20301. 13:30:38different approaches based around that.
  20302. 13:30:40You have the internal models that have
  20303. 13:30:43their own use cases such as like Gemini
  20304. 13:30:46for video and you can just pull in
  20305. 13:30:48YouTube video and it'll it'll analyze
  20306. 13:30:49it. On that side of things, we have
  20307. 13:30:52extract text. This is my OCR that I like
  20308. 13:30:55using with Mistl. Obviously, other
  20309. 13:30:57models have OCR as well. I just find
  20310. 13:30:59Mistrol to work really, really well. And
  20311. 13:31:01then we took a look at some examples
  20312. 13:31:02such as like chaining together uh the
  20313. 13:31:05basic L and chain. We took a example
  20314. 13:31:08over here of finding the sentiment based
  20315. 13:31:10off of a review and we went different
  20316. 13:31:12routes associated with it and then we
  20317. 13:31:15went through this example of OCR with a
  20318. 13:31:17resume. Awesome work uh through this
  20319. 13:31:20section. If you already learned this,
  20320. 13:31:21you you probably know more than like 99%
  20321. 13:31:23of people that even uh touch nan and I
  20322. 13:31:26don't know how long this is into the
  20323. 13:31:28video, but you should be very proud
  20324. 13:31:30yourself and I will see you guys in the
  20325. 13:31:32next section. So, this section is going
  20326. 13:31:34to cover kind of advanced NEN nodes,
  20327. 13:31:37things that I didn't really want to
  20328. 13:31:38cover a little bit earlier on in the
  20329. 13:31:40course because they might confuse you
  20330. 13:31:42and a lot of people use them wrong. This
  20331. 13:31:44includes things like the loop node as
  20332. 13:31:47well as our Python nodes and it's also
  20333. 13:31:49going to cover subworkflows. So, let's
  20334. 13:31:52jump right into it. The first node I
  20335. 13:31:54want to teach you guys about is the loop
  20336. 13:31:56node. I hinted a little bit about it
  20337. 13:31:58within the API section. So, first let me
  20338. 13:32:01show you what the loop node is. So,
  20339. 13:32:03we're going to go over here to loop and
  20340. 13:32:04you'll see it says loop over items split
  20341. 13:32:07in batches. So, we'll load this up over
  20342. 13:32:10here and then you can see it says this
  20343. 13:32:12is there is a batch size and it says
  20344. 13:32:14also you may not need this node. Any end
  20345. 13:32:16nodes automatically run once for each
  20346. 13:32:18input item. So, by default it actually
  20347. 13:32:22gives you this over here. I'm going to
  20348. 13:32:23remove this execute workflow and let me
  20349. 13:32:26explain what is going on. So, first
  20350. 13:32:30imagine we have 100 items and I'll just
  20351. 13:32:33make a sticky note over here to kind of
  20352. 13:32:35explain it. So, we have 100 items over
  20353. 13:32:37here, 100 items over here, right? And
  20354. 13:32:40then we're going to pass those 100 items
  20355. 13:32:43across our workflow. Typically, all 100
  20356. 13:32:45items will run in one node. Then it goes
  20357. 13:32:47to the next node, it runs 100 items.
  20358. 13:32:49Then it goes to the next node and runs
  20359. 13:32:51100 items. Right? So, let's go over here
  20360. 13:32:53and just
  20361. 13:32:55explain this out. And I I explained this
  20362. 13:32:57really early on in the course as well.
  20363. 13:32:59So this is a kind of a good refresher.
  20364. 13:33:00So by default we go 100 items, 100
  20365. 13:33:04items.
  20366. 13:33:06And I feel like this should be better.
  20367. 13:33:09And it should be 100 items. And you can
  20368. 13:33:12imagine each of these are nodes. So that
  20369. 13:33:15makes sense. Well, what happens with uh
  20370. 13:33:17APIs is you get something that's called
  20371. 13:33:20rate limits. So rate limits like this.
  20372. 13:33:25And unfortunately
  20373. 13:33:29you have to send a specific amount of
  20374. 13:33:32data. So some APIs
  20375. 13:33:36you cannot send 100 items.
  20376. 13:33:43This is processing
  20377. 13:33:45too many requests.
  20378. 13:33:47And what happens is you'll get some sort
  20379. 13:33:50of error message that hey you're having
  20380. 13:33:52an issue. you cannot send this much data
  20381. 13:33:55over there. I had this happen to me with
  20382. 13:33:57the YouTube transcripts as I showed you.
  20383. 13:33:59We use a loop over items over there.
  20384. 13:34:02Well, the problem was I was sending too
  20385. 13:34:03much information to Claude when it came
  20386. 13:34:06to Sonet 45 and I hit limits and because
  20387. 13:34:09of that I had to use loop over items. So
  20388. 13:34:13why you want to use loop over items?
  20389. 13:34:15Typically like only if you are using
  20390. 13:34:20APIs. There's probably a few other use
  20391. 13:34:22cases, but people if they don't
  20392. 13:34:25understand that N works like this, they
  20393. 13:34:28think you have to build a whole workflow
  20394. 13:34:29and just loop over it one item at a time
  20395. 13:34:31like that. No, it's like it's not like a
  20396. 13:34:34for loop in programming where you need
  20397. 13:34:35to constantly uh loop over things or a
  20398. 13:34:38while loop. You need and and it goes
  20399. 13:34:41node to node. So if you have something
  20400. 13:34:44that needs to slow down, that's the best
  20401. 13:34:46part about loop over items. but only if
  20402. 13:34:48using or slow down data.
  20403. 13:34:53And this is pretty easy because it says
  20404. 13:34:55replace me. So imagine we just delete
  20405. 13:34:57this and then we set up an HTTP request.
  20406. 13:35:01I'm not going to set up our HTTP request
  20407. 13:35:04to an API, but imagine we have this
  20408. 13:35:06built to an API and we say, "All right,
  20409. 13:35:09we're going to loop over here. It's
  20410. 13:35:12going to run this and it's going to
  20411. 13:35:14build this out." and you say a batch
  20412. 13:35:16size of 10. So instead, what this does
  20413. 13:35:20is you'll have this going on. Ready? So
  20414. 13:35:25we'll have our first node. Imagine a
  20415. 13:35:27node previous to loop over items. And
  20416. 13:35:29maybe I'll just set this up. Let's
  20417. 13:35:30imagine we have an edit set node.
  20418. 13:35:34And we have this edit set that goes
  20419. 13:35:36directly into our loop over items. So
  20420. 13:35:38our edit set again, fictional world has
  20421. 13:35:41100 items.
  20422. 13:35:43Then we go into our loop over items
  20423. 13:35:46which has the input of 100 items.
  20424. 13:35:48However, we do a batch size of 10. So
  20425. 13:35:51what it does is 10 runs
  20426. 13:35:54of 10 items. So then each time we go
  20427. 13:35:57into the HTTP request, it only has 10
  20428. 13:36:00items.
  20429. 13:36:07So hopefully that makes sense. And
  20430. 13:36:10typically you are not going to just have
  20431. 13:36:13the loop over items and HTTP request in
  20432. 13:36:16there. You're actually going to have one
  20433. 13:36:17other node and this is really important
  20434. 13:36:20to add in and typically you'll do it
  20435. 13:36:22after the HTTP request. And this is
  20436. 13:36:24going to be your weight node. So it says
  20437. 13:36:26wait before continuing with execution.
  20438. 13:36:28So why we want to have that is our rate
  20439. 13:36:32limits. Just to go back to these notes
  20440. 13:36:34over here.
  20441. 13:36:36Rate limits
  20442. 13:36:38will tell us
  20443. 13:36:41how many requests
  20444. 13:36:44allowed. And this could be anything from
  20445. 13:36:46like per second,
  20446. 13:36:49it could be per minutes,
  20447. 13:36:52it could be per hour. Really depends on
  20448. 13:36:55the API.
  20449. 13:36:57And how do you find that out? Once
  20450. 13:36:59again, and I I preach it all the time.
  20451. 13:37:02documentation.
  20452. 13:37:03And if you don't want to read the
  20453. 13:37:04documentation, maybe you ask Perplexity,
  20454. 13:37:07you ask Claude to read it over. You
  20455. 13:37:10populate the documentation. But how do
  20456. 13:37:12you find this out? Documentation. It
  20457. 13:37:14will tell you, hey, you can only send
  20458. 13:37:17100 requests per minute. And I had this
  20459. 13:37:21happen in HubSpot. So, unfortunately,
  20460. 13:37:23due to the HubSpot nodes, I had to use
  20461. 13:37:25an HTTP request because they're not
  20462. 13:37:27really built out that well yet in any
  20463. 13:37:29end. If you go over here to HubSpot,
  20464. 13:37:32there's a lot of them, but for what I
  20465. 13:37:34specifically needed, it was not in here.
  20466. 13:37:36Maybe it is in here now because I built
  20467. 13:37:38out a workflow about three months ago
  20468. 13:37:40with it, but I had to use essentially
  20469. 13:37:43this. I had a loop over items. I had a
  20470. 13:37:45HubSpot uh HTTP request and I I kept
  20471. 13:37:49sending payloads over to HubSpot just
  20472. 13:37:52based off of their requirements. And the
  20473. 13:37:54funny thing about HubSpot is their rate
  20474. 13:37:56limits depend on the level of an
  20475. 13:37:59account. So the more you pay, the more
  20476. 13:38:00data you could process, which is not
  20477. 13:38:03uncommon. As you get into enterprise
  20478. 13:38:05software, there's going to be limits
  20479. 13:38:06based off of your account level. So if
  20480. 13:38:08you have a lower tier account, you can
  20481. 13:38:10send less data per minute or per hour.
  20482. 13:38:12So something to be aware of. Um, going
  20483. 13:38:16into this weight node, you can change up
  20484. 13:38:17a lot of different settings. So this is
  20485. 13:38:20the weight amount time. This is in
  20486. 13:38:21seconds, by the way. And you can change
  20487. 13:38:24this to minutes, hours, days as
  20488. 13:38:26necessary. It's really weird they don't
  20489. 13:38:28have milliseconds over here as well
  20490. 13:38:29because feel like a lot of the nodes in
  20491. 13:38:31a are based around milliseconds. So when
  20492. 13:38:34you get into wait and it's like 5
  20493. 13:38:36seconds by default, it's kind of
  20494. 13:38:37interesting especially if you go into uh
  20495. 13:38:40just to show you our settings over here
  20496. 13:38:42and we've covered the retry on fail. You
  20497. 13:38:44know it's milliseconds. So it's an
  20498. 13:38:47interesting choice that we have seconds
  20499. 13:38:50as the default thing over here instead.
  20500. 13:38:51I'm just going to turn off the retry by
  20501. 13:38:53fail. Um, so that is essentially what we
  20502. 13:38:57see with loop over items. People way
  20503. 13:38:59over complicate it. Like they use it for
  20504. 13:39:02every single workflow. I did not want to
  20505. 13:39:03teach you this early on because it's a
  20506. 13:39:05very bad habit that I see. And I thought
  20507. 13:39:08this at first because I came from a
  20508. 13:39:09programming background. I'm a data
  20509. 13:39:11scientist full-time. So I write a good
  20510. 13:39:14amount of loops. And I thought like,
  20511. 13:39:16hey, you know what? We're going to need
  20512. 13:39:17the loop over items for all my
  20513. 13:39:19workflows. So when I first joined and
  20514. 13:39:21learned about Nan, I always used loop
  20515. 13:39:23over items until I actually learned how
  20516. 13:39:25items process node to node. And that is
  20517. 13:39:28why I I taught that so early on in the
  20518. 13:39:30course because that is something I wish
  20519. 13:39:31I knew when I first started any um all
  20520. 13:39:34right so that is loop over items that is
  20521. 13:39:38wait I want to show you also the
  20522. 13:39:41different code nodes on this side of
  20523. 13:39:43things. Now this isn't going to be a
  20524. 13:39:44full Python tutorial. In fact, um I'm
  20525. 13:39:47kind of thinking for my next very long
  20526. 13:39:50video, I just teach you guys everything
  20527. 13:39:52I know about Python or like Python
  20528. 13:39:55pandas or something like that. But uh
  20529. 13:39:58we're going to jump into our code node.
  20530. 13:40:00And right now in nan you have two
  20531. 13:40:03different programming languages that you
  20532. 13:40:04could use. You could use JavaScript or
  20533. 13:40:07you could use Python. And right now I
  20534. 13:40:10would say if you had to learn just one
  20535. 13:40:13language for any end focus on
  20536. 13:40:16JavaScript. Now I don't have a
  20537. 13:40:18JavaScript background because in data a
  20538. 13:40:22lot of programming is done in Python and
  20539. 13:40:25SQL. So I know Python. I don't know
  20540. 13:40:28JavaScript. That's going to change next
  20541. 13:40:30year. I actually want to learn a little
  20542. 13:40:31bit about JavaScript. I think it would
  20543. 13:40:32be helpful for any N and I think there's
  20544. 13:40:34other applications for it that I should
  20545. 13:40:36learn about it. However, if you your
  20546. 13:40:38only focus is to learn a programming
  20547. 13:40:41language for NAN, go JavaScript. If your
  20548. 13:40:43focus is to expand out of NAN and you
  20549. 13:40:47want to learn AI outside of this, if you
  20550. 13:40:49want to learn how to analyze data, if
  20551. 13:40:52you want to possibly become a
  20552. 13:40:53programmer, I would recommend using
  20553. 13:40:56Python. So, two different routes.
  20554. 13:40:58Personally, I will still say probably go
  20555. 13:41:00the Python route just because one, I'm
  20556. 13:41:03biased, but I think eventually
  20557. 13:41:05everything that's going to be in
  20558. 13:41:06JavaScript will be in Python and nan and
  20559. 13:41:09it's only like a few weird use cases
  20560. 13:41:11that there's no Python available, but
  20561. 13:41:13and I think it's like with the sort
  20562. 13:41:15node. If I remember correctly, if I go
  20563. 13:41:16to sort, you can see code, this is only
  20564. 13:41:20JavaScript. So, it's weird that you
  20565. 13:41:22can't change the sort node into Python.
  20566. 13:41:24Um, well, next time I talk to any hand
  20567. 13:41:26team, I'll bring that up. However, um
  20568. 13:41:29there's weird cases like that where
  20569. 13:41:30JavaScript is probably the better
  20570. 13:41:32approach, whereas Python, you can't use
  20571. 13:41:35that, but I would just recommend
  20572. 13:41:37learning how to use Python because I
  20573. 13:41:39think there's a ton of applications
  20574. 13:41:40there. And I think you could if you're
  20575. 13:41:42going into like a full-time job, I think
  20576. 13:41:45Python probably pays a little bit higher
  20577. 13:41:47than JavaScript just based off of what
  20578. 13:41:49is needed. You see software developers
  20579. 13:41:50using Python, you see data scientists
  20580. 13:41:52using Python, data engineers, data
  20581. 13:41:54analysts. So there's a lot of
  20582. 13:41:55applications out over there. A lot of AI
  20583. 13:41:58packages out there also use Python if
  20584. 13:42:00you know how to use it. So um yeah, I
  20585. 13:42:02like that. Anyways, not to not to go on
  20586. 13:42:04a full rant. So by default, you'll see
  20587. 13:42:07that we have an ask AI. So we could ask
  20588. 13:42:09in here directly, hey, how do I build
  20589. 13:42:12out this code? And the same thing with
  20590. 13:42:15Python. And I want to give you guys a
  20591. 13:42:17heads up. A lot of people what they're
  20592. 13:42:20going to do is go straight into the code
  20593. 13:42:22node and go into chat gpt or claude and
  20594. 13:42:26ask like hey can you um build out all
  20595. 13:42:30this code in one code node and skip
  20596. 13:42:33other additional nodes and we've we
  20597. 13:42:35spent a lot of time talking about nodes
  20598. 13:42:37like the summarize node and aggregations
  20599. 13:42:40and things like that and if you go back
  20600. 13:42:42over here and go to data transformations
  20601. 13:42:45a lot of these data transformations
  20602. 13:42:46whether it's like a a split out or
  20603. 13:42:49aggregate or a merge like people try to
  20604. 13:42:50do this in the Python code node or the
  20605. 13:42:53JavaScript node and it's like use the
  20606. 13:42:55native nodes when possible. So one of
  20607. 13:42:57the mistakes that people use is they'll
  20608. 13:43:00they'll try to stuff too much
  20609. 13:43:01information into a Python code node.
  20610. 13:43:03They um vibe code at all. They don't
  20611. 13:43:06understand what the code actually does
  20612. 13:43:08and it just becomes a mess. So do not do
  20613. 13:43:11that. Only use the code node when you
  20614. 13:43:15have to when you have no other choices
  20615. 13:43:17in nan and you're like I'm stuck. I
  20616. 13:43:19can't figure out what to do next. Use
  20617. 13:43:21the code node edition. You're like okay
  20618. 13:43:24um should I ask AI in here? Should I?
  20619. 13:43:28And it's interesting there's no ask AI
  20620. 13:43:30on the Python side. I just I didn't
  20621. 13:43:31notice that. Look, you have the ask AI
  20622. 13:43:33for JavaScript. Don't have ask AI over
  20623. 13:43:36here.
  20624. 13:43:38Weird. Either way, um, one other
  20625. 13:43:41benefit, oh, sorry. I was gonna say for
  20626. 13:43:43building out this code, what I
  20627. 13:43:45recommend, and obviously things change,
  20628. 13:43:48so take this with a grain of salt
  20629. 13:43:49because if you look over how AI changed
  20630. 13:43:52in all of 2025, um, what things people
  20631. 13:43:55recommended in January might have
  20632. 13:43:56changed by the end of the year. Claude
  20633. 13:43:58Code is phenomenal. So, I use that for
  20634. 13:44:02generating code. Like, it's really,
  20635. 13:44:04really nice. I use Sonnet 45 as well. It
  20636. 13:44:07just like I think it does a great job.
  20637. 13:44:09It understands what's happening. I as I
  20638. 13:44:12showed you guys and I'll show it again.
  20639. 13:44:13I have a screenshot over here and I
  20640. 13:44:15populated. One other thing to mention
  20641. 13:44:17with both these code nodes and again
  20642. 13:44:19I'll I'll show you some basic use cases.
  20643. 13:44:22These are great for building out example
  20644. 13:44:25data. Now earlier in the code in the
  20645. 13:44:27course we built out example data with
  20646. 13:44:29our edit set. So we go over here and
  20647. 13:44:31let's say we have name and I'll just put
  20648. 13:44:33Ryan over here. Well, the thing with
  20649. 13:44:36code node is you can actually build out
  20650. 13:44:38like 10 names at once and I didn't mean
  20651. 13:44:40to actually run the code node, but you
  20652. 13:44:42can see we have output of one item and
  20653. 13:44:44that's kind of a limitation of edit set.
  20654. 13:44:46So you can see like okay well we build
  20655. 13:44:47out one and I showed you we could build
  20656. 13:44:49out an array and split this out or break
  20657. 13:44:52it out and have multiple items. Well, we
  20658. 13:44:53could do this directly in any n and let
  20659. 13:44:56me show you how we could do this. Um, so
  20660. 13:45:00I'm just going to copy over an example I
  20661. 13:45:02already did in my Python video. So,
  20662. 13:45:03don't kill me on that one. I try to make
  20663. 13:45:05a lot of the different stuff here um
  20664. 13:45:08differently. But you can see over here,
  20665. 13:45:10all I'm doing is return. I'm returning
  20666. 13:45:11this JSON. I have a name for each of
  20667. 13:45:14these people and then I have a salary.
  20668. 13:45:15And take a look. Now, what we have is we
  20669. 13:45:19have five items. So, if you want to test
  20670. 13:45:21with multiple items, the code node is
  20671. 13:45:24phenomenal for that. You could do the
  20672. 13:45:25same thing in JavaScript. You just have
  20673. 13:45:28to grab uh you just have to essentially
  20674. 13:45:30give an example. And I again I like I
  20675. 13:45:33mostly build out in Python rather than
  20676. 13:45:34JavaScript. So applicable to each of
  20677. 13:45:37these languages and uh I find it great
  20678. 13:45:39for testing because now we've built out
  20679. 13:45:41five items and we can test a workflow
  20680. 13:45:43based around it. Whereas in our edit set
  20681. 13:45:45we only have one. So if you need
  20682. 13:45:47multiple items to test code node
  20683. 13:45:50otherwise you go into here and just to
  20684. 13:45:52explain this code what we're doing is
  20685. 13:45:54returning a JSON object. We have name
  20686. 13:45:56over here. We paired all these over here
  20687. 13:45:58to name. So you can see Alice, Bob,
  20688. 13:46:00Charlie, Diana, and Eve. And then we set
  20689. 13:46:02up salaries. Uh there's a lot of other
  20690. 13:46:04things that we could do within the
  20691. 13:46:05Python code node. So you can actually do
  20692. 13:46:09math in here, which I find that to be
  20693. 13:46:11pretty good. Um math when you're going
  20694. 13:46:14into like edit set and some of the other
  20695. 13:46:15stuff can be a little bit wonky. So I
  20696. 13:46:18find it easier to do it within the code
  20697. 13:46:20node at times. Also, if you want to add
  20698. 13:46:22in a new um column for all these items,
  20699. 13:46:26I find it easier to do it in Python.
  20700. 13:46:29And literally all you have to do to add
  20701. 13:46:31in a new column, and I'll just like add
  20702. 13:46:33in a new code node. So, I'll just grab
  20703. 13:46:35Python over here.
  20704. 13:46:38Let's go to Python.
  20705. 13:46:40And uh I'll just show you this really
  20706. 13:46:42quick. All you got to do is this.
  20707. 13:46:47I'm just again I'm just grabbing over
  20708. 13:46:49some code I already have. And it's
  20709. 13:46:50actually very Oh, it's actually
  20710. 13:46:52literally the same as this over here.
  20711. 13:46:54So, I guess I could have just explained
  20712. 13:46:56it with that, but it's fine. So, all we
  20713. 13:46:59do is we create the new column name. So,
  20714. 13:47:00you can see in the example code, it says
  20715. 13:47:02my new field. And this one that I built
  20716. 13:47:04out, I called this status, and I set
  20717. 13:47:06this equal to process by default. You
  20718. 13:47:08can see my new field is equal to one.
  20719. 13:47:10So, if I run this, all of these are
  20720. 13:47:11going to have a new field that says my
  20721. 13:47:14new field with one. And this is the
  20722. 13:47:15default code it gives you out of the
  20723. 13:47:16box. So it shows you essentially how to
  20724. 13:47:18build out a new column for everything
  20725. 13:47:20which again I find this very helpful if
  20726. 13:47:22you want to start this out and obviously
  20727. 13:47:24you can build out logic just from this
  20728. 13:47:26for loop and really expand this out
  20729. 13:47:28where each of these could have different
  20730. 13:47:30values associated with it. I want to say
  20731. 13:47:32I have an example of that over here as
  20732. 13:47:34well. Um let me just double check.
  20733. 13:47:37Maybe not.
  20734. 13:47:41Think I did though. Oh here we go.
  20735. 13:47:43Here's another example of that. So let
  20736. 13:47:46me just show you this code. So again,
  20737. 13:47:47we're using the same structure. So you
  20738. 13:47:50can see the four item and items. This is
  20739. 13:47:51going to stay the same. We're returning
  20740. 13:47:53items at the very end as well. So keep
  20741. 13:47:55that the same. And then all you have to
  20742. 13:47:56do is write the code here in the middle.
  20743. 13:47:58So what I'm doing is I'm grabbing the
  20744. 13:48:00salary for each of these items. And then
  20745. 13:48:02I'm creating a new category based off
  20746. 13:48:05the salary level. So if I say they're
  20747. 13:48:06greater than 80,000, senior, mid-level,
  20748. 13:48:09junior. If I run this step over here,
  20749. 13:48:12you'll see all these are different. So
  20750. 13:48:14you know we have the different
  20751. 13:48:15approaches. We can build out something
  20752. 13:48:17by default
  20753. 13:48:18again just go into Python code node and
  20754. 13:48:21assign all the values over there which
  20755. 13:48:24this is the example over here. All we do
  20756. 13:48:26is create a new field and put the value.
  20757. 13:48:29Again super super easy or we can go in
  20758. 13:48:32and um have different customization
  20759. 13:48:35based off of this. I find if lf else is
  20760. 13:48:37probably the easiest route to go.
  20761. 13:48:39Obviously, there's a lot that I could
  20762. 13:48:40teach you with Python programming
  20763. 13:48:43video for another day. And obviously,
  20764. 13:48:46like you can go and use this structure
  20765. 13:48:48and ask Claude. So, just to show you,
  20766. 13:48:53if I wanted to ask Claude, for example,
  20767. 13:48:55I'm just going to go into our code node.
  20768. 13:49:01I don't know, we could ask a question
  20769. 13:49:03based around this.
  20770. 13:49:05over here based on this
  20771. 13:49:08this nan code
  20772. 13:49:12structure.
  20773. 13:49:15Can you modify this?
  20774. 13:49:18So there is five holes. Like this is a
  20775. 13:49:20super e easy coding request. But
  20776. 13:49:25I would just recommend you take a
  20777. 13:49:26screenshot of everything that is going
  20778. 13:49:28on. Your input, your code, your output.
  20779. 13:49:32And then look, it says look at your end
  20780. 13:49:34code. I can modify five levels. Here is
  20781. 13:49:36the updated Python code. So we have all
  20782. 13:49:38this over here. We can just copy this
  20783. 13:49:40in. Again, super super basic. You don't
  20784. 13:49:42need um code node over here for that.
  20785. 13:49:45And now you can see we have senior
  20786. 13:49:46mid-level, junior entry level. And we
  20787. 13:49:49have all that on that side of things.
  20788. 13:49:51This look good. So intern under 30,000,
  20789. 13:49:53entry level over 30, junior over 50,
  20790. 13:49:56mid-level over 70, and senior over 90.
  20791. 13:49:59Pretty basic.
  20792. 13:50:00Great. And again, everything is
  20793. 13:50:02applicable in JavaScript. I don't know
  20794. 13:50:04JavaScript as well as I know Python. So
  20795. 13:50:06um I probably explained things a few a
  20796. 13:50:08bit wrong and I don't want to do that
  20797. 13:50:10this particular video. But you know you
  20798. 13:50:14can use a large language model. All
  20799. 13:50:16right. Uh last thing I wanted to cover
  20800. 13:50:18really fast is uh the call nan workflow
  20801. 13:50:21tool and sub workflow nodes. So let's
  20802. 13:50:25cover that in this section. And what
  20803. 13:50:27we're going to do is call or execute
  20804. 13:50:30subworkflow.
  20805. 13:50:34Great.
  20806. 13:50:37So we'll have that over here. We'll also
  20807. 13:50:40add in an AI agent.
  20808. 13:50:42Grab that as well.
  20809. 13:50:46Pass that in. And then we're going to go
  20810. 13:50:48and look for workflow as well. You can
  20811. 13:50:51see at the very top call any workflow
  20812. 13:50:53tool. All right. So, let's explain all
  20813. 13:50:56of these. Oh, I want to go to execute
  20814. 13:51:00workflow trigger here as well.
  20815. 13:51:05Great. So we're going to explain all
  20816. 13:51:06three of these and we're so essentially
  20817. 13:51:09what we can do in our NAN workflow is
  20818. 13:51:12call another workflow. So imagine you
  20819. 13:51:16have logic that you essentially are
  20820. 13:51:18going to use in multiple workflows or
  20821. 13:51:20it's very complicated logic and you
  20822. 13:51:22would rather just simplify your workflow
  20823. 13:51:24and have that complicated logic in one
  20824. 13:51:26area. Well, one way that you could do
  20825. 13:51:28this is through the execute workflow uh
  20826. 13:51:31node or as well as a tool. So what are
  20827. 13:51:35the differences? Well, this is going to
  20828. 13:51:36be in the middle of the orchestration
  20829. 13:51:38layer. So you have some sort of input
  20830. 13:51:39that comes in over here. Then we execute
  20831. 13:51:41that workflow. Whatever happens in that
  20832. 13:51:43workflow, then it comes back into this
  20833. 13:51:45node and then it processes along the
  20834. 13:51:48way. This actually changed a little bit
  20835. 13:51:51between version one of Nan as well as
  20836. 13:51:54version two. Um they the N any team
  20837. 13:51:56really beefed this up so that way you
  20838. 13:51:58could use a little bit more human in the
  20839. 13:52:00loop and make it much easier and which
  20840. 13:52:01is why we're going to have a full
  20841. 13:52:03section on this. But essentially all you
  20842. 13:52:06need to know for this over here for the
  20843. 13:52:07execute workflow is you can have another
  20844. 13:52:10workflow essentially inside your
  20845. 13:52:12workflow. So, imagine what we had over
  20846. 13:52:14here
  20847. 13:52:16is a imagine we had an AI agent.
  20848. 13:52:22And I'm I'm building things on the fly,
  20849. 13:52:24so I'm not like really thinking about
  20850. 13:52:25what we're doing, but imagine we had
  20851. 13:52:27some sort of AI agent that goes right
  20852. 13:52:29into a code node.
  20853. 13:52:33Let's say code JavaScript that goes into
  20854. 13:52:35an edit set
  20855. 13:52:38that goes into um let's go to data
  20856. 13:52:41transformations. Let's say we go to
  20857. 13:52:43split. Again, none of this makes any
  20858. 13:52:45sense at all. Um, actually, let's do one
  20859. 13:52:48more data transformation. We're going to
  20860. 13:52:50do is we're going to do an aggregate
  20861. 13:52:52before we go to that node over here.
  20862. 13:52:55All right,
  20863. 13:52:57I'm just thinking on the fly right here.
  20864. 13:52:59But imagine we wanted to have this like
  20865. 13:53:01we think this is very complicated logic.
  20866. 13:53:03We're going to use this logic over
  20867. 13:53:04again, multiple workflows. Let's send
  20868. 13:53:06this to another workflow. So you could
  20869. 13:53:09replace all that with this node. And the
  20870. 13:53:14easiest way to replace this in a
  20871. 13:53:15workflow is if you highlight all this,
  20872. 13:53:18you rightclick and then what we have the
  20873. 13:53:20option to is over here. Convert five
  20874. 13:53:23nodes to subworkflow. So what we'll say
  20875. 13:53:26over here is section
  20876. 13:53:2920 subworkflow
  20877. 13:53:32part two just because that way I can let
  20878. 13:53:34you guys uh download this and mess with
  20879. 13:53:36it. But you'll see now we have that all
  20880. 13:53:39replaced with this node. And you're
  20881. 13:53:40like, "All right, that's cool. What
  20882. 13:53:42happened?" So click over here, open a
  20883. 13:53:44new tab, and take a look. So now what we
  20884. 13:53:47have is this start trigger, which you
  20885. 13:53:49need to connect this over here. And then
  20886. 13:53:52it has our entire workflow. We already
  20887. 13:53:54renamed this section 20 sub workflow
  20888. 13:53:55part two. But now we have this whole
  20889. 13:53:57workflow in essentially its own blank
  20890. 13:54:00canvas. And now all of that junk has
  20891. 13:54:03been cleaned up into one uh particular
  20892. 13:54:06node. It's very very helpful on this
  20893. 13:54:08side of things. And this trigger starts
  20894. 13:54:11it. So whenever we hit that node, we go
  20895. 13:54:14into this workflow, it runs. Once it
  20896. 13:54:16hits that very last node, it comes back
  20897. 13:54:18over here into this node and it keeps
  20898. 13:54:21moving forward. So kind of like the part
  20899. 13:54:24two of this is you can do this with an
  20900. 13:54:25AI agent as well. So imagine you want
  20901. 13:54:28your AI agent to have access to a
  20902. 13:54:30workflow that you already built like hey
  20903. 13:54:32this AI agent is going to process data
  20904. 13:54:34and you know what it should access this
  20905. 13:54:36workflow over here because it goes
  20906. 13:54:38through that entire process I want the
  20907. 13:54:39AI agent to do well that's where the N
  20908. 13:54:42workflow tool is. So you can go over
  20909. 13:54:44here and it says call this tool to get a
  20910. 13:54:45random color the input should be a
  20911. 13:54:46string with comma separated by colors to
  20912. 13:54:48exclude. So, you want to fill this out
  20913. 13:54:50with details to let your AI agent know
  20914. 13:54:53explicitly, hey, this is what's going on
  20915. 13:54:56in this workflow. This is why you need
  20916. 13:54:58to call it. And you should also, as I
  20917. 13:55:02mentioned in our AI agent lesson, you
  20918. 13:55:04need to explicitly write that in the
  20919. 13:55:06system message. When should it access
  20920. 13:55:08this tool? So, you need to say the
  20921. 13:55:10description over here. When should it
  20922. 13:55:12access this workflow? You need to make
  20923. 13:55:14sure you write this here. Make sure the
  20924. 13:55:15names are one, two, one. I would rename
  20925. 13:55:17this instead of call any end workflow
  20926. 13:55:19tool to whatever thing that you want it
  20927. 13:55:21to be. So if your workflow generates a
  20928. 13:55:23random color, call this random number or
  20929. 13:55:25random color generator. Define that in
  20930. 13:55:28here as well. It's so important that you
  20931. 13:55:31do that it because otherwise you're
  20932. 13:55:33going to get hallucinations. Sometimes
  20933. 13:55:35it's not going to call the specific tool
  20934. 13:55:36that you want it to do. So be as
  20935. 13:55:38explicit as possible. So again to kind
  20936. 13:55:41of recap what is going on over here.
  20937. 13:55:45First, you can replace multiple nodes
  20938. 13:55:47with this execute subworkflow. So, you
  20939. 13:55:49can see it says execute workflow over
  20940. 13:55:51here. So, if you have repeated logic
  20941. 13:55:53that you're going to use in multiple
  20942. 13:55:55workflows and you want to control in one
  20943. 13:55:57place so that way you don't have to
  20944. 13:55:58update it multiple times, this is
  20945. 13:56:00helpful over here. Or if you have
  20946. 13:56:01something very complicated and you're
  20947. 13:56:03like, this is just taking up too much
  20948. 13:56:04space on my screen. And obviously, like
  20949. 13:56:06that five node example isn't really too
  20950. 13:56:09complicated. I don't know if that's five
  20951. 13:56:10or six nodes, but sometimes when when
  20952. 13:56:12you're building out real world workflows
  20953. 13:56:13for customers, you might have 20 or 30
  20954. 13:56:15nodes and you're like, well, you know, a
  20955. 13:56:17lot of this might be easier done with
  20956. 13:56:19the execute subworkflow. Um, maybe you
  20957. 13:56:21want to go that approach. In addition,
  20958. 13:56:23it'll go all over here and we can run
  20959. 13:56:26that. You can also see your executions
  20960. 13:56:28on the side of things. So, you will be
  20961. 13:56:30able to see your executions in the sub
  20962. 13:56:32workflow as well as your actual
  20963. 13:56:34workflow. Uh, one of the best benefits
  20964. 13:56:36of our execute workflow like this, well,
  20965. 13:56:39there's two benefits. The first one is
  20966. 13:56:41we can use human in the loop, which
  20967. 13:56:42we're going to talk about in two
  20968. 13:56:44sections. The other thing that's this is
  20969. 13:56:46really helpful for is parallel
  20970. 13:56:48processing. So, we haven't really talked
  20971. 13:56:51about that too much, but parallel
  20972. 13:56:53processing is a way to optimize the
  20973. 13:56:55speed of your workflows. Sometimes
  20974. 13:56:58people have very slow workflows and
  20975. 13:57:00you'll want to essentially parallel
  20976. 13:57:01process so they run quite faster. I'll
  20977. 13:57:04show you that here in a second, how we
  20978. 13:57:06could utilize that. Um, but that would
  20979. 13:57:08be the other benefit. So, we'll cover
  20980. 13:57:10that here in a second. In addition,
  20981. 13:57:11right, when we go into our AI agent,
  20982. 13:57:14what we're going to do is use a call any
  20983. 13:57:16workflow tool if we want to have that
  20984. 13:57:17agent access a specific workflow. You
  20985. 13:57:20could also set up multiple workflows to
  20986. 13:57:22talk to our AI agent. Just remember what
  20987. 13:57:24you need to do is have a workflow that
  20988. 13:57:26starts with this execute subworkflow and
  20989. 13:57:29that can be called by either this tool
  20990. 13:57:31or it can be called by this node. And
  20991. 13:57:34you can see over here it says source
  20992. 13:57:36like where we looking for um the
  20993. 13:57:38workflow specifically. So this has the
  20994. 13:57:41section 20 sub workflow part two. And
  20995. 13:57:43then you have different modes is you can
  20996. 13:57:45run once for each item or you can run
  20997. 13:57:47once for all items. So the difference is
  20998. 13:57:49is run once for all items pass all items
  20999. 13:57:51into a single execution of the sub
  21000. 13:57:53workflow called the nan sub workflow for
  21001. 13:57:55for each specific item. So this goes
  21002. 13:57:57back into what I was talking about with
  21003. 13:57:59how items are processed. So, do you want
  21004. 13:58:01all 100 items directly into that
  21005. 13:58:04subworkflow or do you want one item at a
  21006. 13:58:07time to go through that sub workflow? It
  21007. 13:58:09really depends on your specific use case
  21008. 13:58:11and if you're going to use human in the
  21009. 13:58:13loop or not. All right, some other
  21010. 13:58:15settings over here as well. And you can
  21011. 13:58:18wait for the sub workflow to complete or
  21012. 13:58:19you can have this continue to go
  21013. 13:58:21forward. So what that means is like hey
  21014. 13:58:23should we wait for all 100 items to be
  21015. 13:58:25processed by this or as soon as one is
  21016. 13:58:28done we should go back over here and
  21017. 13:58:31continue on the workflow like the extra
  21018. 13:58:33nodes that are after. So that is going
  21019. 13:58:34to be that option over there. Um the
  21020. 13:58:37call any end workflow tool you can see
  21021. 13:58:39we have the same exact thing. We just
  21022. 13:58:41put the description. Uh let's say for
  21023. 13:58:43example we do the section 20 and it says
  21024. 13:58:44a sub workflow tool set up to receive
  21025. 13:58:46all input data. Without specific inputs
  21026. 13:58:48the agent will not be able to pass data
  21027. 13:58:50to the tool. You can define specific
  21028. 13:58:51inputs in a subworkflow trigger. So if
  21029. 13:58:53we go over to that trigger just to show
  21030. 13:58:56you over here, we can define input data
  21031. 13:58:58mode. So you can either accept all data,
  21032. 13:59:00you could accept specific fields. So you
  21033. 13:59:02can define what fields it should expect
  21034. 13:59:05or you could use JSON as an example of
  21035. 13:59:07what to accept in this sub workflow. And
  21036. 13:59:10I know we're not really doing an example
  21037. 13:59:12over here, but when we jump into human
  21038. 13:59:15in the loop, it's going to be a lot more
  21039. 13:59:17explicit on what we are doing over
  21040. 13:59:19there. you're just going to have to wait
  21041. 13:59:20one more section. So, in general, what
  21042. 13:59:23we covered first, um, again, loop over
  21043. 13:59:26items, you don't always need the loop
  21044. 13:59:27over items. Just use it when you're
  21045. 13:59:29using APIs and you're getting rate
  21046. 13:59:31limited. Not even all APIs are needed
  21047. 13:59:33loop over items. You'll just, if you're
  21048. 13:59:34sending a lot of data over and you're
  21049. 13:59:36having issues, loop over items, use the
  21050. 13:59:38HTTP request or the native node, and
  21051. 13:59:40then use a weight. You can decide what
  21052. 13:59:42the batch size is. So, if you want to
  21053. 13:59:44send one item, 10 items, 100 items. And
  21054. 13:59:47how you find out this information is
  21055. 13:59:49based off of the documentation. Look at
  21056. 13:59:51the rate limits. So you'll have to
  21057. 13:59:52change what's the loop and then what's
  21058. 13:59:55also the weight. And obviously like you
  21059. 13:59:57would want to try to optimize the batch
  21060. 13:59:59size. A larger batch size um with maybe
  21061. 14:00:01a a larger weight is better because I do
  21062. 14:00:04find any and bugs out when you get into
  21063. 14:00:06like over 100 200 300 executions at
  21064. 14:00:09times um through the loop over items.
  21065. 14:00:11It's it can be a little bit funky. So
  21066. 14:00:13try to optimize both of those. And then
  21067. 14:00:16we talked about the code node. So
  21068. 14:00:17JavaScript and Python obviously if you
  21069. 14:00:19want to learn and get better NE I'd
  21070. 14:00:21focus on one of the two really if you
  21071. 14:00:23want to grow your career I would
  21072. 14:00:25recommend Python although JavaScript is
  21073. 14:00:26a little bit more powerful in N. You can
  21074. 14:00:29use this to generate items as well for
  21075. 14:00:31testing which I highly recommend. I do
  21076. 14:00:33that all the time. It's super easy to do
  21077. 14:00:35in JavaScript as well. Then we talked
  21078. 14:00:37about the sub workflows. So you can use
  21079. 14:00:40the subworkflow tool or you can use the
  21080. 14:00:41execute workflow node. Um, and then
  21081. 14:00:44there's a trigger in that separate
  21082. 14:00:45workflow. You can rightclick and jump
  21083. 14:00:46into that. We'll talk about this more in
  21084. 14:00:48human in loop. And that is going to be
  21085. 14:00:50section 20. Uh, we're going to change it
  21086. 14:00:52up a little bit before we jump into
  21087. 14:00:54human loop. We're going to actually talk
  21088. 14:00:55about multimodal, which is going to be
  21089. 14:00:57generating images and videos. I will see
  21090. 14:00:59you there. Now, so this next section is
  21091. 14:01:01going to be focused on generating images
  21092. 14:01:03and videos with AI. Now, I will say the
  21093. 14:01:08workflow we're going to be using today,
  21094. 14:01:09I have built this out in a previous
  21095. 14:01:11video, but I'm going to go through every
  21096. 14:01:13single step and walk with you guys
  21097. 14:01:14through um why I built it and how we can
  21098. 14:01:18build it together. In addition, we're
  21099. 14:01:20going to be talking about a marketplace
  21100. 14:01:22that I use for gathering different image
  21101. 14:01:25and video models. Image and video models
  21102. 14:01:28are changing rapidly. So, literally
  21103. 14:01:30probably a month after this video,
  21104. 14:01:32people's preferences for models are
  21105. 14:01:34going to change. So obviously use what's
  21106. 14:01:36popular. This is a framework to get
  21107. 14:01:38started. Feel free to tweak the
  21108. 14:01:40workflow. Feel free to tweak how you
  21109. 14:01:42approach this. So let me jump into
  21110. 14:01:45there. This is the workflow which we're
  21111. 14:01:47going to be building. It's pretty easy.
  21112. 14:01:50And yeah, we're using we're taking a
  21113. 14:01:52look at a website called i.aii.
  21114. 14:01:55And you can see that there's like
  21115. 14:01:57popular video models like VO31 or Sora 2
  21116. 14:02:00Sora 2 watermark. Or if you go back into
  21117. 14:02:02the first page, there's some of these
  21118. 14:02:04other newer models. Like GPT Image 15, I
  21119. 14:02:06want to say came out like a week ago. I
  21120. 14:02:08haven't used it yet. I use Nano Banana
  21121. 14:02:10Pro quite a bit. And you can see it says
  21122. 14:02:13starting from 9 cents, which is really
  21123. 14:02:15cheap. This one doesn't say where it's
  21124. 14:02:17starting from. This Z image is very
  21125. 14:02:19cheap. Look at how cheap that is. Um,
  21126. 14:02:21Cream is pretty cheap as well. So, we'll
  21127. 14:02:25jump into some of these. You can
  21128. 14:02:26actually generate stuff as well directly
  21129. 14:02:28in here. So this is an example that they
  21130. 14:02:31give you. Change your clothing to a blue
  21131. 14:02:33evening gown. Reserve face, identity,
  21132. 14:02:36hairstyle. And you can see the
  21133. 14:02:37background is nearly identical and all
  21134. 14:02:39you did is change the image. A nano
  21135. 14:02:42banana. It shows you essentially a
  21136. 14:02:45graphic that was created. Although I
  21137. 14:02:47find it really great for UGC creators.
  21138. 14:02:49And then BO3 generates videos. So you
  21139. 14:02:52can generate videos like vertically or
  21140. 14:02:54horizontally. So vertically for like a
  21141. 14:02:56Tik Tok or Instagram, horizontally like
  21142. 14:02:59this if you're going to get like B-roll
  21143. 14:03:01for a YouTube video. And again, I've
  21144. 14:03:03used these for YouTube videos and
  21145. 14:03:05YouTube thumbnails and and things like
  21146. 14:03:07that. So these are actually quite easy
  21147. 14:03:10to set up here in Nan. I'm going to
  21148. 14:03:13essentially reproduce this for you guys
  21149. 14:03:15step by step just to show you how to do
  21150. 14:03:17this. Um we can also just go over here
  21151. 14:03:20and generate something. So this is an
  21152. 14:03:22example that was generated just by text.
  21153. 14:03:26This again wasn't something that I
  21154. 14:03:27created but something that's already
  21155. 14:03:29populated over here. And the prompt that
  21156. 14:03:31this person used is create a photo
  21157. 14:03:33realalistic candid photograph of an
  21158. 14:03:35elderly sailor standing on a small
  21159. 14:03:37fishing boat. He has weathered skin with
  21160. 14:03:40visible wrinkles, pores and sun texture
  21161. 14:03:42and a few faded. A traditional sailor
  21162. 14:03:44tattoos on his arm. He's commonly
  21163. 14:03:46adjusting a net while his dog sits
  21164. 14:03:47nearby on a dock. Shot like a 35
  21165. 14:03:50millimeter film. Photography medium
  21166. 14:03:51close-up at eye level. Use a 50
  21167. 14:03:53millimeter lens. The image should feel
  21168. 14:03:55honest and unposed with real skin
  21169. 14:03:57texture, worn materials, and everyday
  21170. 14:03:59detail. No glimmerization or heavy
  21171. 14:04:01retouching. And this is like a very good
  21172. 14:04:03photo. I mean, this looks realistic. I
  21173. 14:04:05mean, it's phenomenal.
  21174. 14:04:07One thing you'll notice is there's a lot
  21175. 14:04:10of detail in this prompt, right? We talk
  21176. 14:04:13about the close-up. We talk about what
  21177. 14:04:16the person should look like. We talk
  21178. 14:04:17about the boat. We talk about the dog.
  21179. 14:04:20So, when it comes to like building out
  21180. 14:04:22really good image or video, a lot of
  21181. 14:04:25this is dependent on your prompts. And
  21182. 14:04:28there's so much that you could cover
  21183. 14:04:30with prompts. You could talk about
  21184. 14:04:31lighting, you could talk about angles,
  21185. 14:04:33you could talk about and video side of
  21186. 14:04:36things. You could talk about the audio.
  21187. 14:04:38You could talk about transitions. You
  21188. 14:04:39could talk about the type of camera
  21189. 14:04:41shot. Like, is it a close and zooms out
  21190. 14:04:43or does it start far away and zoom in?
  21191. 14:04:46You can talk about the exact
  21192. 14:04:48conversation that multiple people or one
  21193. 14:04:50person says. Uh you could literally
  21194. 14:04:53build out kind of meme videos with like
  21195. 14:04:55yetis and snowmen and there's so much
  21196. 14:04:58that you could do with prompts, but
  21197. 14:05:01really you just got to describe it.
  21198. 14:05:02Think of yourself as the filmmaker and
  21199. 14:05:05what type of shot do you want? Give as
  21200. 14:05:07much detail as possible. We'll say
  21201. 14:05:10hallucinations do happen so be wary of
  21202. 14:05:13that. So, you can see the cost on this
  21203. 14:05:15is like very cheap. It's bore to run
  21204. 14:05:18this. And just to show you the pricing,
  21205. 14:05:21I think I mentioned in this take, but
  21206. 14:05:23I've spent about $50 on here. Um, and
  21207. 14:05:26you can see billing over here. You get
  21208. 14:05:29$50 for 10,000 credits. So, the fact
  21209. 14:05:31that this is available at four credits
  21210. 14:05:33is super cheap. Uh, you can change the
  21211. 14:05:35quality medium or high as well. And
  21212. 14:05:38actually, I'm shocked that this didn't
  21213. 14:05:40Oh, there we go. I'm like, that seems
  21214. 14:05:42very cheap for four credits.
  21215. 14:05:44uh medium and high but you can see high
  21216. 14:05:47is way more expensive. I don't know if
  21217. 14:05:49this is the medium quality or not but
  21218. 14:05:51there is that and you can see our
  21219. 14:05:53results JSON we have this image over
  21220. 14:05:56here as a WEBP file. So pretty easy to
  21221. 14:05:59set up.
  21222. 14:06:01First show you where you can get your
  21223. 14:06:02API key at. So all you have to want to
  21224. 14:06:06do is go to API keys over here and
  21225. 14:06:08create a new key. copy the key because
  21226. 14:06:11we will be utilizing that here in a
  21227. 14:06:13second. So how this workflow operates
  21228. 14:06:17first what we want to do is in this case
  21229. 14:06:21I am going to use a Google sheet and um
  21230. 14:06:24I'm essentially documenting what
  21231. 14:06:26workflows I want to have built out. So
  21232. 14:06:29I'm not going to show this because this
  21233. 14:06:30is part of a customer project but I'm
  21234. 14:06:33kind of bulking out images that I want
  21235. 14:06:36to create. I put like 15 images in this
  21236. 14:06:39spreadsheet just based off of prompts
  21237. 14:06:41because I'm going to pass them forward.
  21238. 14:06:44Next thing I'm going to do is set up two
  21239. 14:06:46HTTP requests. And this is just based
  21240. 14:06:49off of the documentation. So
  21241. 14:06:51documentation
  21242. 14:06:53just to go into there. Let me grab this
  21243. 14:06:56for this old man.
  21244. 14:06:58Go into our API. You can see we have
  21245. 14:07:02different information that we
  21246. 14:07:03specifically need. And it says all APIs
  21247. 14:07:06require authentication v via a bearer
  21248. 14:07:08token.
  21249. 14:07:10And essentially all I did is go over
  21250. 14:07:14here and copy the curl. And if you take
  21251. 14:07:17a look, there's an import curl section.
  21252. 14:07:20We took over this in the API section,
  21253. 14:07:21but literally just copy and paste it. I
  21254. 14:07:24set up a header off based off of the API
  21255. 14:07:26key. So in the past, it was populating
  21256. 14:07:30in here, but I just set up a header off.
  21257. 14:07:32And to show you, all I did is call
  21258. 14:07:34authorization and paste that API key
  21259. 14:07:36that we saved a little bit earlier.
  21260. 14:07:40And then based off the model, it's going
  21261. 14:07:41to ask you to send a specific body. So
  21262. 14:07:45what you can see is for example over
  21263. 14:07:48here,
  21264. 14:07:50go to the body. It says model,
  21265. 14:07:53you have the string over here, call
  21266. 14:07:55back, and then input. So input parameter
  21267. 14:07:57is based off the form configuration. So
  21268. 14:08:00there's going to be probably some
  21269. 14:08:01examples over here.
  21270. 14:08:03We go to examples.
  21271. 14:08:06All right. And then we just jump into
  21272. 14:08:08the examples. So you can see like input
  21273. 14:08:10prompt, you have all this over here. You
  21274. 14:08:12have input aspect ratio, you have input
  21275. 14:08:15quality. So those are your three options
  21276. 14:08:17that you can choose. You put your
  21277. 14:08:18prompt, you put your aspect ratio, and
  21278. 14:08:20then you put in your quality. So you can
  21279. 14:08:22see for this example for nano banana
  21280. 14:08:25what I put over here is I use the model
  21281. 14:08:27there's the callback URL and then input
  21282. 14:08:29as a prompt and I just passed in JSON
  21283. 14:08:32for this based around um what it was in
  21284. 14:08:36that specific spreadsheet. This one you
  21285. 14:08:38had the option to choose an aspect ratio
  21286. 14:08:40for GPT image. I don't think you have
  21287. 14:08:43that option. Let me just go over here.
  21288. 14:08:45Oh no you have the option you have 1x 1,
  21289. 14:08:462x3 or 3x two. So you could define that
  21290. 14:08:50here in the model resolution I nanobin
  21291. 14:08:544K but this one would have the quality.
  21292. 14:08:56So you just change it up for medium or
  21293. 14:08:57high and then output format
  21294. 14:09:00option I don't believe over here. So it
  21295. 14:09:03will automatically give that to you
  21296. 14:09:05based off here. But honestly it's
  21297. 14:09:06literally just reading the documentation
  21298. 14:09:09and to show you like if I was going to
  21299. 14:09:11set this up
  21300. 14:09:14we'll go build out HTTP. So HTP request
  21301. 14:09:20like that
  21302. 14:09:23and let's go through it. So API
  21303. 14:09:27let's find our curl. So this is the
  21304. 14:09:29request example. We're going to copy
  21305. 14:09:31that curl.
  21306. 14:09:33Go over here for curl. Paste.
  21307. 14:09:40Great. And you can see obviously we have
  21308. 14:09:42this barrier API key. Again, I just set
  21309. 14:09:44this up directly in over here instead.
  21310. 14:09:48So, I just created a header off. So,
  21311. 14:09:50make sure authentication generic
  21312. 14:09:52credential type
  21313. 14:09:54header off and then create a new one,
  21314. 14:09:56which I did. Create new credential ki
  21315. 14:09:58AI. So, literally just create new
  21316. 14:10:01credential
  21317. 14:10:03and um you can see I called this
  21318. 14:10:05authorization with a capital A, paste in
  21319. 14:10:07my API key. That's all you got to do.
  21320. 14:10:11authorization, past in your API key.
  21321. 14:10:14Everything else is already filled out
  21322. 14:10:16and going down over here.
  21323. 14:10:18All you need to do is change up a few
  21324. 14:10:20things like you don't need to change up
  21325. 14:10:21your model if you're using GPT15 image.
  21326. 14:10:24You don't need to change this. You just
  21327. 14:10:26change your prompt. You change the
  21328. 14:10:28aspect ratio to how you want it as well
  21329. 14:10:30as the quality. Like three things. And
  21330. 14:10:32you can pass in JSON with an expression
  21331. 14:10:34if you want to define that a little bit
  21332. 14:10:36earlier. Next side of it, so this is a
  21333. 14:10:38little bit funky. This is something
  21334. 14:10:39called pulling and um essentially what
  21335. 14:10:42we're trying to do over here is wait for
  21336. 14:10:44the image to be generated or the video
  21337. 14:10:46in your case. So because of that you
  21338. 14:10:49know sometimes it might take 30 seconds
  21339. 14:10:51for aage to be created. Sometimes it
  21340. 14:10:52might take three or four vid minutes for
  21341. 14:10:54a video to be created. So we have a wait
  21342. 14:10:57node over here. We're waiting 30
  21343. 14:10:59seconds. Obviously like you can increase
  21344. 14:11:01it decrease it. I would recommend at
  21345. 14:11:03least 30 seconds. And then we have a
  21346. 14:11:05second HTTP request. This time we do a
  21347. 14:11:07get. The reason why
  21348. 14:11:10is with this first one, which I skipped
  21349. 14:11:12over it, but it's a a post. We're using
  21350. 14:11:14post to create the image or video and
  21351. 14:11:16then we're using get to grab those
  21352. 14:11:19specific results. Again, use the same
  21353. 14:11:21header off and why I recommend just
  21354. 14:11:23doing this also for security purposes so
  21355. 14:11:25you don't share your API key. And then
  21356. 14:11:27what you're going to do is paste in a
  21357. 14:11:29task ID over here. You'll get your task
  21358. 14:11:32ID from the first run. So you'll see I
  21359. 14:11:35have a task ID over here. So, make sure
  21360. 14:11:37that you paste it in on the side of
  21361. 14:11:40things. Really, it's pretty basic. All
  21362. 14:11:43you got to do is grab this URL,
  21363. 14:11:46which is the record info.
  21364. 14:11:49Put in a task ID. And again, I just did
  21365. 14:11:52this with curl initially, but you can
  21366. 14:11:53see get task. And this is the request.
  21367. 14:11:55Like, honestly, you don't really need
  21368. 14:11:57the curl request. Just get that URL.
  21369. 14:12:02This is the same as before. And then
  21370. 14:12:04just send in the task ID. It's JSON.
  21371. 14:12:07Then I have a switch. So all we're
  21372. 14:12:10taking a look at is the data state. It
  21373. 14:12:11might be a little bit different
  21374. 14:12:12depending on the model. But when I hit
  21375. 14:12:14success, it'll go over here. Otherwise,
  21376. 14:12:18if it's not ready, it'll repopulate. And
  21377. 14:12:20if there's an error, I just set that as
  21378. 14:12:22a fallback. So sometimes there is errors
  21379. 14:12:24based off of guidelines of the model. So
  21380. 14:12:27sometimes if you put something that's in
  21381. 14:12:29that gray area, Google or OpenAI might
  21382. 14:12:32reject it. Otherwise,
  21383. 14:12:34usually it's pretty good. But there's
  21384. 14:12:35some guidelines, too. Like if you use a
  21385. 14:12:37famous figure, um it's not going to
  21386. 14:12:39work. Then what I did next is just test
  21387. 14:12:42this out. So I have the generated image
  21388. 14:12:45as a specific
  21389. 14:12:47uh link over here.
  21390. 14:12:50I just updated this into a spreadsheet.
  21391. 14:12:52Now, I could go a few different routes.
  21392. 14:12:55Like I could download this image, have
  21393. 14:12:57it as a binary file, and then upload
  21394. 14:12:59this into Google Drive if I really
  21395. 14:13:01wanted to. And that honestly might be
  21396. 14:13:02the version two of this. We're just
  21397. 14:13:04doing some testing based around this
  21398. 14:13:06right now. And um yeah, again it's a
  21399. 14:13:09very similar setup you're using image or
  21400. 14:13:12video models. Another thing that people
  21401. 14:13:14tend to use quite a bit is they'll
  21402. 14:13:16generate the image first. Make sure the
  21403. 14:13:18image is great and then use that image
  21404. 14:13:20for a video. So like you can imagine
  21405. 14:13:23this old man over here.
  21406. 14:13:26Someone might create this guy as a UGC
  21407. 14:13:28creator.
  21408. 14:13:30And we'll go back over here to text
  21409. 14:13:32image. Like this literally might be a
  21410. 14:13:34UGC creator and someone creates a video
  21411. 14:13:37about it. And maybe we'll just test this
  21412. 14:13:39out really quick just to show you. So if
  21413. 14:13:41I go over here, I'm going to say image
  21414. 14:13:43to video. And this is a little bit
  21415. 14:13:46different for video side of things.
  21416. 14:13:53All right. And I have the old man over
  21417. 14:13:54here. And I'm just gonna say, and I I
  21418. 14:13:57honestly don't have audio on this
  21419. 14:13:59computer unless my Bluetooth is out, so
  21420. 14:14:00I can't hear what it's saying. I'm just
  21421. 14:14:02gonna say have the old command hold up a
  21422. 14:14:08sign saying subscribe
  21423. 14:14:12to Ryan
  21424. 14:14:16Science.
  21425. 14:14:18We'll spend the 60 tokens or whatever it
  21426. 14:14:21is for this. This is image to video.
  21427. 14:14:23Like there's a lot of things that you
  21428. 14:14:24could do.
  21429. 14:14:25with this over here. So you can see you
  21430. 14:14:27can do text to video just straight up
  21431. 14:14:29prompted which by the way you can also
  21432. 14:14:30do JSON for this side of things. We have
  21433. 14:14:33image to video and then references to
  21434. 14:14:35video where like if you have four or
  21435. 14:14:37five different images actually I believe
  21436. 14:14:39it's up to only three on here but if you
  21437. 14:14:40have three different images and you want
  21438. 14:14:42to turn it into a video the weird thing
  21439. 14:14:43is like image to video and text to video
  21440. 14:14:45you could have it vertical. Uh the
  21441. 14:14:47reference is the video you cannot have
  21442. 14:14:48this vertical as of yet. So it's very
  21443. 14:14:52common someone creates a static image
  21444. 14:14:53first. You can use a Nano Banana Pro or
  21445. 14:14:56GPT15 or one of the other models out
  21446. 14:14:59there. And then what people will do is
  21447. 14:15:01use that image and put it into a video
  21448. 14:15:04model kind of like uh VO31 which we have
  21449. 14:15:07over here. Now this is at 18%. I'm just
  21450. 14:15:10going to pause really fast and when this
  21451. 14:15:12hits 100% we'll be right back.
  21452. 14:15:15All right, so the video is ready. Let's
  21453. 14:15:17see what ends up happening. Again, this
  21454. 14:15:19is like a a pretty terrible prompt and I
  21455. 14:15:21would recommend building out a way
  21456. 14:15:23better one, but I I can't hear what the
  21457. 14:15:26audio is on at the moment unless I turn
  21458. 14:15:28on my speaker. And at the end of day,
  21459. 14:15:30this is just a use case just to share it
  21460. 14:15:32with you guys. So, we have the old man,
  21461. 14:15:33he's doing fishing and then take a look.
  21462. 14:15:36Subscribe to Ryan in math data science.
  21463. 14:15:40So, obviously that's a hallucination.
  21464. 14:15:44And you know, the sign could be a little
  21465. 14:15:46bit better, but at the end of the day,
  21466. 14:15:48this was
  21467. 14:15:50very poor prompt. And uh I would
  21468. 14:15:52probably run it again and describe what
  21469. 14:15:54the sign should look like, how he holds
  21470. 14:15:56the sign, things like that. But just to
  21471. 14:15:58show you and uh the API on this side of
  21472. 14:16:01it for V31, a little bit different. You
  21473. 14:16:03can see the screen on this side of it.
  21474. 14:16:06And you have more options. So I'm going
  21475. 14:16:10over here
  21476. 14:16:12you can see you have your prompts you
  21477. 14:16:14have your image urls you have your model
  21478. 14:16:17generation type aspect ratio
  21479. 14:16:21seeds so this is the randomness of the
  21480. 14:16:24video call back urls enable fallback
  21481. 14:16:26like there's a lot more over here than
  21482. 14:16:29just the image side of it but it's
  21483. 14:16:30honestly not too bad so you can download
  21484. 14:16:33this full workflow
  21485. 14:16:36as well and feel free to test this out.
  21486. 14:16:38Why I do this is like you don't want to
  21487. 14:16:40wait a minute, 2 minutes, 3 minutes for
  21488. 14:16:42every single video. So, it's better off
  21489. 14:16:44just to have a spreadsheet, build out
  21490. 14:16:47that spreadsheet based off of what you
  21491. 14:16:48want, run through the workflow, and uh
  21492. 14:16:51append the very end, but feel free to
  21493. 14:16:53tweak it for Google Drive. So, if you
  21494. 14:16:56remembered anything from this video,
  21495. 14:16:57it's super easy to build out AI
  21496. 14:16:59generated images and videos. You could
  21497. 14:17:01do it manually on Kai or other services,
  21498. 14:17:03or you can bulk it in nan. In addition,
  21499. 14:17:06be super specific with the prompts. The
  21500. 14:17:08more specific you are and calling out
  21501. 14:17:11like the type of shots and the type of
  21502. 14:17:12audio, the better results that you are
  21503. 14:17:14going to have. I talked about prompting
  21504. 14:17:16for videos for like well over an hour in
  21505. 14:17:18another video. So, if you want to watch
  21506. 14:17:20that, go ahead. I'm not going to waste
  21507. 14:17:22you guys time for the hour there. And uh
  21508. 14:17:25that is the end of this lecture. Next
  21509. 14:17:28lesson we're going to be doing is
  21510. 14:17:29talking about something called human in
  21511. 14:17:32the loop. So essentially AI creates
  21512. 14:17:34something and then you have to approve
  21513. 14:17:36it before it is finalized. A lot of
  21514. 14:17:38companies want to have human in the loop
  21515. 14:17:40within their workflows. Um I know my
  21516. 14:17:43company has a slogan for that
  21517. 14:17:44specifically as do others. So it'll be
  21518. 14:17:47kind of exciting to cover that and I
  21519. 14:17:49will see you right there. This section
  21520. 14:17:51is going to focus on human in the loop.
  21521. 14:17:54It might be a buzz word that you have
  21522. 14:17:56heard before and let me explain what
  21523. 14:17:58this is. So a lot of different companies
  21524. 14:18:00are going to have some sort of
  21525. 14:18:01regulation where they say, "Hey, we like
  21526. 14:18:04things that are generated by AI. AI is
  21527. 14:18:06awesome. But before we actually publish
  21528. 14:18:08the content that AI has created, can we
  21529. 14:18:11have a human review it?" And the thing
  21530. 14:18:14about it is why companies have this in
  21531. 14:18:16place, AI tends to hallucinate. And this
  21532. 14:18:19will be a way to just have another fail
  21533. 14:18:21safe in the system before you publish
  21534. 14:18:23something. Let's say, for example,
  21535. 14:18:25you're going to be creating some sort of
  21536. 14:18:27image when you want to post it on your
  21537. 14:18:29social media accounts. Well, sometimes
  21538. 14:18:31when you're doing image creation, text
  21539. 14:18:33isn't going to be 100% accurate. You'll
  21540. 14:18:35have some gibberish on a sign or
  21541. 14:18:37something like that or you create some
  21542. 14:18:39sort of graphic and there's just a weird
  21543. 14:18:41spot and you shouldn't publish this.
  21544. 14:18:43Well, without human in the loop, you
  21545. 14:18:45generate something in AI, you automate
  21546. 14:18:46it and it gets sent automatically to
  21547. 14:18:48LinkedIn or Twitter. It makes your
  21548. 14:18:50company look bad. So instead of
  21549. 14:18:52automatically posting something, we have
  21550. 14:18:54a reviewer that takes a look at it,
  21551. 14:18:56says, "Hey, this is awesome and this is
  21552. 14:18:58good to go." And then it gets sent out.
  21553. 14:19:00And because of this process and it's
  21554. 14:19:02being used so often, there's a whole
  21555. 14:19:05section of nodes within any called human
  21556. 14:19:08in the loop. Today, we're going to be
  21557. 14:19:10covering some of these different types
  21558. 14:19:12of nodes and show you an example
  21559. 14:19:14workflow. A workflow we're going to use
  21560. 14:19:16is based off of the workflow from the
  21561. 14:19:18last lecture. So, we're going to
  21562. 14:19:19generate an image, then we're going to
  21563. 14:19:21send out an email and have someone
  21564. 14:19:23approve of the image or not, and then
  21565. 14:19:26work from there. And yeah, let's take a
  21566. 14:19:28look at it right now. Okay, so what I
  21567. 14:19:32did is I imported in our workflow from
  21568. 14:19:34the last lesson and I actually put in
  21569. 14:19:37one additional item and that is this
  21570. 14:19:40send a message. So, let's kind of walk
  21571. 14:19:43through what is going on in this node
  21572. 14:19:46and where I found this. All right. So,
  21573. 14:19:47you click this plus icon over here and
  21574. 14:19:49you'll notice that we have human in the
  21575. 14:19:51loop and it says wait for approval or
  21576. 14:19:52human input before continuing. And then
  21577. 14:19:55you'll see all the different human in
  21578. 14:19:56the loop notes. So, we have Discord, we
  21579. 14:19:58have Gmail, we have Google chat,
  21580. 14:20:00outlook, teams, respond to chat, send
  21581. 14:20:03email, Slack, Telegram, as well as
  21582. 14:20:05WhatsApp Business Cloud. So, you know,
  21583. 14:20:08it would take a long time to cover each
  21584. 14:20:10of these. And I'll be honest with you
  21585. 14:20:11guys, I don't even have credentials set
  21586. 14:20:12up for Outlook or Teams. Slack is on my
  21587. 14:20:16backlog and I haven't used Telegram
  21588. 14:20:18before although I should because it's
  21589. 14:20:19really really popular. We're going to go
  21590. 14:20:21through the Gmail example over here. But
  21591. 14:20:24you can imagine like if you use Slack,
  21592. 14:20:26you'll get a message in Slack and I'll
  21593. 14:20:28just show you the Slack node here for a
  21594. 14:20:29second. You get a message and send or
  21595. 14:20:31wait for a response. You can specify the
  21596. 14:20:34message and you can set a response type.
  21597. 14:20:37So obviously there's different settings
  21598. 14:20:39for each of these particular nodes. I
  21599. 14:20:41want to show you the Gmail one over
  21600. 14:20:43here. So, what we have in this Gmail
  21601. 14:20:45note, I literally just connect to my
  21602. 14:20:47Gmail account, which all of you guys
  21603. 14:20:48should know how to do by now. I'm
  21604. 14:20:50sending it to my personal email and I
  21605. 14:20:52have a subject approval required. Please
  21606. 14:20:54review. You can obviously set a subject
  21607. 14:20:56as you want. I think this is fine. I
  21608. 14:20:58said, "Hello, please review the
  21609. 14:20:59following request." And click the
  21610. 14:21:01approve button and I send in image. Now,
  21611. 14:21:03this is the image that's getting
  21612. 14:21:04generated by this workflow. You can't
  21613. 14:21:07pass in binary data over here. So, I'm
  21614. 14:21:09passing in a link that will pass into
  21615. 14:21:12the image. You might have to use a B 64
  21616. 14:21:14or something like that otherwise, but I
  21617. 14:21:16think this is pretty fine. And I say
  21618. 14:21:18thank you. Also, then we go into the
  21619. 14:21:21response type. So, this says approval.
  21620. 14:21:23And let me show you what approval looks
  21621. 14:21:25like. So, in my email, you'll see that
  21622. 14:21:27this looks like I don't know why this
  21623. 14:21:29didn't go full screen. Oops. Let me uh
  21624. 14:21:32move this over here. It's getting caught
  21625. 14:21:35up in my monitor. There we go. All
  21626. 14:21:39right. So, you can see this is an
  21627. 14:21:40example. Hello, please review the
  21628. 14:21:42following request and click the approve
  21629. 14:21:43button and you can click that approve
  21630. 14:21:45and it says automated with any n over
  21631. 14:21:47there. So that's approval by default.
  21632. 14:21:50But that's not the only option. You have
  21633. 14:21:52free text. So user can submit a response
  21634. 14:21:54via a form and you could set that up
  21635. 14:21:56also or you could have a custom form
  21636. 14:21:58where you define below. Let's keep it as
  21637. 14:22:00approval. And then you can see there's
  21638. 14:22:02currently no items exist under the
  21639. 14:22:04options. Well, you have a few different
  21640. 14:22:06options as well. So you can do approve
  21641. 14:22:08only or you can set approve and
  21642. 14:22:11disapprove. So you can change the label
  21643. 14:22:13buttons as well. Approve is the primary,
  21644. 14:22:16decline is the secondary. You obviously
  21645. 14:22:18could switch these as well. And what's
  21646. 14:22:19cool is when you have that built in, you
  21647. 14:22:23can just set a decline and etc. Then we
  21648. 14:22:26have also over here, let me go back in
  21649. 14:22:29other options. You have a limit wait
  21650. 14:22:31time. So, you can set a specific amount
  21651. 14:22:33of time that you should get a response
  21652. 14:22:34back, which is helpful. You can set like
  21653. 14:22:38this as 45 minutes. You can say hours,
  21654. 14:22:40you could say days. I probably wouldn't
  21655. 14:22:41recommend days on that side of things,
  21656. 14:22:44especially in a corporate environment.
  21657. 14:22:45You might want to just have it as like
  21658. 14:22:4645 minutes. I think this is pretty
  21659. 14:22:47appropriate. And then you could pin that
  21660. 14:22:49any attribution. Honestly, I would keep
  21661. 14:22:51that NAN attribution automated with NAN,
  21662. 14:22:54but you can turn that off if you
  21663. 14:22:55particularly want it to. So, let me show
  21664. 14:22:58you this example of approve and
  21665. 14:22:59disapprove. So, we're just going to use
  21666. 14:23:01the same thing that we have over here
  21667. 14:23:04for a generated image. And actually, I'm
  21668. 14:23:07going to pin this data point. So, I
  21669. 14:23:08don't want to do this all over again.
  21670. 14:23:11And I'm going to click on this. You'll
  21671. 14:23:12see our node is running like this very
  21672. 14:23:15slowly. And hopefully, we do get an
  21673. 14:23:17email. Now, I'm going to check my Gmail
  21674. 14:23:19account and I will load this up.
  21675. 14:23:23All right. So, now we have the email and
  21676. 14:23:26it says, "Hello, please review the
  21677. 14:23:28following request." and click the
  21678. 14:23:30approve button. We have the image. So,
  21679. 14:23:32this image over here, just to show you
  21680. 14:23:33what it looks like, all I did is
  21681. 14:23:35generate a UGC creator promoting a
  21682. 14:23:37watch. So, we have that over there. It
  21683. 14:23:40looks like there's like a branded cup.
  21684. 14:23:42So, maybe I don't want to have that in
  21685. 14:23:43on that side of things. But either way,
  21686. 14:23:45we have an image. And you know what? You
  21687. 14:23:47can approve it or disprove it. So, I'm
  21688. 14:23:49going to click over here and click
  21689. 14:23:51approve. And it says got it. Thanks.
  21690. 14:23:52This page can be closed. Now, I'm going
  21691. 14:23:55back over here. You'll see it says one
  21692. 14:23:57item sent out. And then it says
  21693. 14:23:59approved. So what you can also do is
  21694. 14:24:01based off of this being approved or not,
  21695. 14:24:03you can go over and set an if node and
  21696. 14:24:07you can route based around that. Now I
  21697. 14:24:10wish this was natively built into this
  21698. 14:24:11human in the loop node, but that's okay.
  21699. 14:24:15And you can see over here what we can
  21700. 14:24:16say is if approved is equal to and let's
  21701. 14:24:20just say the value of true. So go to
  21702. 14:24:22your boolean and we'll put true. And you
  21703. 14:24:25can see it it executes and we have our
  21704. 14:24:27true branch. So then we can have let's
  21705. 14:24:29say a social media post created over
  21706. 14:24:31here. If it's false, maybe we want to
  21707. 14:24:34regenerate this image and just like
  21708. 14:24:36start again here at the beginning. Let
  21709. 14:24:38me show you what happens on the false
  21710. 14:24:39side. So we'll just go over here. We'll
  21711. 14:24:41click this again. So you can see it's
  21712. 14:24:43loading and I will wait for the next
  21713. 14:24:46email to be sent out.
  21714. 14:24:52All right. So we have this over here.
  21715. 14:24:53And you know what? I'm going to decline
  21716. 14:24:55it. So I do not want that. It says got
  21717. 14:24:57it. Thanks. This page can be closed now.
  21718. 14:24:59And going in over here, we have this
  21719. 14:25:01declined. So we can say approved is
  21720. 14:25:04false. And then we go over here and we
  21721. 14:25:06run the step. It goes into the false
  21722. 14:25:09branch. So now we can have our specific
  21723. 14:25:11workflow go back around and regenerate
  21724. 14:25:14that specific image. And the same thing
  21725. 14:25:16can happen again. So you can start
  21726. 14:25:17seeing that we're going to be building
  21727. 14:25:18out loops based around the approval or
  21728. 14:25:21not. And again, we have all these other
  21729. 14:25:23nodes over here that we could choose. I
  21730. 14:25:25just showed you Gmail because it's
  21731. 14:25:26already set up and we haven't really
  21732. 14:25:27covered the other sections in over here.
  21733. 14:25:30But you can see if I check for Discord
  21734. 14:25:32for example. There's a connection type.
  21735. 14:25:35We have a resource send and wait for
  21736. 14:25:37response. You set up a server and it's
  21737. 14:25:39really the same type of things, right?
  21738. 14:25:41Approve and disapprove. You just change
  21739. 14:25:43the environment where this message is
  21740. 14:25:44sent. I feel it's pretty easy to do with
  21741. 14:25:47Gmail. In addition, one of the other
  21742. 14:25:50really nice things with Nan version two
  21743. 14:25:52is with sub workflows, it makes it
  21744. 14:25:54actually really easy to have a human in
  21745. 14:25:56the loop aspect. So, you can go into the
  21746. 14:25:59human in the loop and throw this into
  21747. 14:26:01another workflow. And I already talked
  21748. 14:26:03about this a little bit in the execute
  21749. 14:26:05subworkflow section. I think I mentioned
  21750. 14:26:07that we're going to talk about it in
  21751. 14:26:08this video, but what I see happening now
  21752. 14:26:11is people take the human in the loop
  21753. 14:26:13section and they just literally populate
  21754. 14:26:15that directly into another workflow. So
  21755. 14:26:17let's say like I have this Gmail and I
  21756. 14:26:20want to send it to another workflow and
  21757. 14:26:21I just have this execute subworkflow and
  21758. 14:26:23we use this human in the loop aspect in
  21759. 14:26:26multiple workflows. So now we've kind of
  21760. 14:26:27templatized it. Obviously there's other
  21761. 14:26:29steps that you might want to take after
  21762. 14:26:31this if it's approved or disapproved in
  21763. 14:26:33that sub workflow, but it's very common
  21764. 14:26:35you have this and then let's say we have
  21765. 14:26:36our social media post like let's say we
  21766. 14:26:38have LinkedIn to create a post after
  21767. 14:26:41and we have that over here. So we'll
  21768. 14:26:43just say create a post and it kind of
  21769. 14:26:46goes like that. Again, you could use
  21770. 14:26:47these over here or you could use
  21771. 14:26:49something like an execute subworkflow.
  21772. 14:26:51It goes to under the workflow and it
  21773. 14:26:53performs its action. But that is human
  21774. 14:26:56in the loop directly here in any end. I
  21775. 14:26:58want to also mention there's one other
  21776. 14:27:00approach to this which really isn't
  21777. 14:27:03natively here in NE. So I just want to
  21778. 14:27:06talk about this really fast. So one of
  21779. 14:27:08the other ways that you could actually
  21780. 14:27:09perform human in the loop is kind of
  21781. 14:27:11writing to spreadsheets. So, I feel like
  21782. 14:27:13it's easier to explain this out. So,
  21783. 14:27:17let's imagine you have workflow one that
  21784. 14:27:19generates an image. So, we'll say
  21785. 14:27:21workflow one
  21786. 14:27:23generates an image
  21787. 14:27:27and then we send that image to Google
  21788. 14:27:30Drive and then add a link
  21789. 14:27:34to a spreadsheet to the image. Well,
  21790. 14:27:37then you could have workflow 2
  21791. 14:27:40that starts with a trigger.
  21792. 14:27:44They trigger when the approved column
  21793. 14:27:48is set to true. And we've already talked
  21794. 14:27:50about the triggers in Google Sheets.
  21795. 14:27:54But essentially, another way of human in
  21796. 14:27:55the loop is building out multiple
  21797. 14:27:57workflows. So our first workflow
  21798. 14:27:58generates an image, uploads it to Google
  21799. 14:28:00Drive, and then adds a link to a
  21800. 14:28:01spreadsheet. Someone goes in there,
  21801. 14:28:03takes a look at the image that was
  21802. 14:28:05generated, and then if they say yes, it
  21803. 14:28:07starts a trigger on a second workflow.
  21804. 14:28:09Then we have our second workflow, which
  21805. 14:28:11starts with a trigger based off of the
  21806. 14:28:13proof column set to true, and then it
  21807. 14:28:15will post on social media.
  21808. 14:28:17Post on social media. So, you can do it
  21809. 14:28:21all in one workflow or you could go the
  21810. 14:28:23route of building out multiple workflows
  21811. 14:28:25and setting up a spreadsheet. It really
  21812. 14:28:27depends also on what your customer wants
  21813. 14:28:30or what you personally prefer. I've done
  21814. 14:28:32both like okay we have the human in loop
  21815. 14:28:35over here or specify with multiple
  21816. 14:28:38workflows like hey we're going to upload
  21817. 14:28:39this into spreadsheet and then approve
  21818. 14:28:42it manually on that side of things but
  21819. 14:28:44that is human in the loop essentially
  21820. 14:28:46why companies have this well they just
  21821. 14:28:48want to have a safeguard something like
  21822. 14:28:50a chatbot you're not going to really
  21823. 14:28:51have a safeguard where people can
  21824. 14:28:52approve it because chat bots are real
  21825. 14:28:54time however when you're doing other
  21826. 14:28:55types of things like image generation or
  21827. 14:28:58post generation or whatever the case may
  21828. 14:29:00be or email response es you want to have
  21829. 14:29:02that human in the loop aspect and I
  21830. 14:29:05would just recommend going in over here
  21831. 14:29:07rather than looking at the normal
  21832. 14:29:08Discord node is it is much faster like
  21833. 14:29:10if you're using Discord or Gmail like
  21834. 14:29:12way faster just to go into the human in
  21835. 14:29:14the loop rather than search through all
  21836. 14:29:15the settings because this is already
  21837. 14:29:17technically set up for us we can make it
  21838. 14:29:19so someone approves only I would
  21839. 14:29:21recommend approve or disprove so that
  21840. 14:29:23way you can build out a little bit more
  21841. 14:29:25complicated workflows if someone
  21842. 14:29:26declines something maybe you want to
  21843. 14:29:28refresh that particular image and that's
  21844. 14:29:30why I would recommend that and obviously
  21845. 14:29:32choose a time frame that is reasonable.
  21846. 14:29:34Don't choose like 45 days to approve an
  21847. 14:29:36item. Make sure it's like maybe 45
  21848. 14:29:38minutes, an hour. Obviously, it depends
  21849. 14:29:40on how busy that particular person is
  21850. 14:29:42and if they're going to be in meetings
  21851. 14:29:43or not. So, that is human in the loop
  21852. 14:29:46and awesome job guys going through the
  21853. 14:29:48course so far. I know this was a little
  21854. 14:29:50bit of an easier section. The next one
  21855. 14:29:52we're going to be covering is
  21856. 14:29:52evaluation. Something I really really
  21857. 14:29:54like. Another really kind of important
  21858. 14:29:57and I wouldn't really call this an
  21859. 14:29:58advanced skill but intermediate skill
  21860. 14:30:00that most people should pick up. We're
  21861. 14:30:02going to talk about evaluations directly
  21862. 14:30:04in any end as well as evaluations
  21863. 14:30:05outside of it. And I will see you in
  21864. 14:30:07that lesson right now. So this section
  21865. 14:30:10is going to be covering evaluations. I'm
  21866. 14:30:12going to be showing you two different
  21867. 14:30:13approaches that you could take. One
  21868. 14:30:15which is going to be external
  21869. 14:30:16evaluations which does not rely on the
  21870. 14:30:19system that NAN built out. And then the
  21871. 14:30:22second approach is going to show you
  21872. 14:30:23what NE has created within their
  21873. 14:30:26software. I'm also going to give a
  21874. 14:30:29little bit of a caveat because one of
  21875. 14:30:31the things I found out about NEN is if
  21876. 14:30:33you're on the cheapest cloud plan, you
  21877. 14:30:36only can have evaluations on one
  21878. 14:30:39workflow, which is really a bummer. Um,
  21879. 14:30:42and it's really not mentioned anywhere
  21880. 14:30:44where you can essentially expand out the
  21881. 14:30:46amount of evaluations. So, I'm going to
  21882. 14:30:49just use a workflow that I've already
  21883. 14:30:51had set up for evaluations. I've already
  21884. 14:30:53used it in another video. So, I do
  21885. 14:30:55apologize for that part being repeated.
  21886. 14:30:58The first part is not going to be
  21887. 14:31:00repeated. In fact, I haven't shown this
  21888. 14:31:01in another video as of yet on the
  21889. 14:31:03channel. So, let's jump into both of
  21890. 14:31:05these really quick. So, what we have
  21891. 14:31:08over here is just a a very blank
  21892. 14:31:11workflow. And I just want to demonstrate
  21893. 14:31:13what I typically do with evaluations. I
  21894. 14:31:16use a framework outside of N. And this
  21895. 14:31:20framework has helped me quite a bit when
  21896. 14:31:22I want to fine-tune essentially what I'm
  21897. 14:31:24building out. So, what I want to show
  21898. 14:31:26you really quick is this spreadsheet.
  21899. 14:31:28And ideally, what I typically have is
  21900. 14:31:32let's say I'm running some sort of
  21901. 14:31:33workflow or automation. I'll first label
  21902. 14:31:36our specific inputs over here like okay,
  21903. 14:31:39what did you input to start the system?
  21904. 14:31:42This could be what's being filled out in
  21905. 14:31:44a form. This could be what's being sent
  21906. 14:31:46in a chat trigger. This could be like
  21907. 14:31:50whatever the case is like sent to a web
  21908. 14:31:53hook. Whatever is the input that starts
  21909. 14:31:56the workflow, this is what goes over
  21910. 14:31:58here. The next part is the system
  21911. 14:32:01prompts. So often when you're building
  21912. 14:32:03out AI systems or orchestration or
  21913. 14:32:06workflows, whatever you want to call it,
  21914. 14:32:08you're going to have one or more system
  21915. 14:32:11prompts associated with it. So obviously
  21916. 14:32:13if you have multiple systems prompts uh
  21917. 14:32:16with different agents you're going to
  21918. 14:32:18want to expand this out. I'm just making
  21919. 14:32:19the assumption you only have one AI
  21920. 14:32:21agent in a workflow uh which is not
  21921. 14:32:23always the case and I should say one AI
  21922. 14:32:25agent or AI node because you can use
  21923. 14:32:27system prompts with other nodes. So I
  21924. 14:32:30would just mention like what system
  21925. 14:32:32prompt this goes to as well as the model
  21926. 14:32:35used. So define your input you know what
  21927. 14:32:39starts your system define your system
  21928. 14:32:42prompt for each AI node as well as the
  21929. 14:32:44model specifically used. The result
  21930. 14:32:47could be two parts. So like one is the
  21931. 14:32:50result of the entire system or what is
  21932. 14:32:52the result for that specific AI node or
  21933. 14:32:55AI agent or whatever the case is. Again
  21934. 14:32:57you could expand this out afterwards.
  21935. 14:33:00Then what I have as well is a notes
  21936. 14:33:02section. So when you run the workflow or
  21937. 14:33:06someone else at your company runs the
  21938. 14:33:07workflow, they can put an additional
  21939. 14:33:09notes. And how I like building these
  21940. 14:33:11out, I actually like color coding these.
  21941. 14:33:13So what I try to teach people is like if
  21942. 14:33:15this worked perfect, label this as
  21943. 14:33:18green. If it had a hallucination of some
  21944. 14:33:20sort or just did not work, label it red.
  21945. 14:33:24If it almost got it correct and there's
  21946. 14:33:25just like something minor, whether it's
  21947. 14:33:27like a formatting or whatever the case
  21948. 14:33:29may be, highlight this yellow. What I
  21949. 14:33:32end up doing is I will always take a
  21950. 14:33:34look at this and say, "Okay, what do I
  21951. 14:33:37notice? Do I notice any trends? What can
  21952. 14:33:39I fix to turn those yellows into greens,
  21953. 14:33:41those reds into yellow or green?" Um, on
  21954. 14:33:44the corporate side, there's two other
  21955. 14:33:46things I would probably recommend for
  21956. 14:33:48you to do. On the first is you want to
  21957. 14:33:50typically have some sort of backlog
  21958. 14:33:52where you're showing or not necessarily
  21959. 14:33:54a backlog, but some sort of log that
  21960. 14:33:56shows incremental improvements over
  21961. 14:33:58time. So what I would define also is a
  21962. 14:34:01date as well as user and then also like
  21963. 14:34:05reviewer and review date. So the reason
  21964. 14:34:08why is depending on
  21965. 14:34:12like what type of systems you're in like
  21966. 14:34:15this is just on my side because I work
  21967. 14:34:17in risk and underwriting. We have
  21968. 14:34:19external parties that need to audit what
  21969. 14:34:22we specifically do. So it's really
  21970. 14:34:24important that we define what is being
  21971. 14:34:27sent to AI agents, what is happening in
  21972. 14:34:30our systems. So you want to have a
  21973. 14:34:32framework like this like uh who used it,
  21974. 14:34:35what was the review associated with it
  21975. 14:34:38like and then you can just see
  21976. 14:34:39improvements over time. And this is
  21977. 14:34:41helpful as well when there's like some
  21978. 14:34:43sort of governance with AI because since
  21979. 14:34:46models are changing all the time, if you
  21980. 14:34:47want to upgrade models, you want to make
  21981. 14:34:49sure it's working properly. And if it
  21982. 14:34:51doesn't work properly, maybe you fall
  21983. 14:34:52back to a little bit of an older model.
  21984. 14:34:55Either way, that is kind of the
  21985. 14:34:57framework I like to do. And you can
  21986. 14:34:59honestly just add this into our workflow
  21987. 14:35:02where you just append or update row in a
  21988. 14:35:04sheet. I would just append a row in and
  21989. 14:35:07you would append in, you know, that
  21990. 14:35:09specific results, the dates of that
  21991. 14:35:12results and some other info if you want
  21992. 14:35:13to grab it specifically or not. or you
  21993. 14:35:16can just sp code in like a system prompt
  21994. 14:35:18if you're not really changing it that
  21995. 14:35:20often. And then what I like to do as
  21996. 14:35:21well is if like there's a massive
  21997. 14:35:22change. I'll typically just like black
  21998. 14:35:25out a line and then just start with the
  21999. 14:35:27line below. Um obviously you can just
  22000. 14:35:30fill out text over here or just put like
  22001. 14:35:31all X's or dots or whatever the case may
  22002. 14:35:34be. So when you append a new row, it
  22003. 14:35:36doesn't fill in that specific row. But
  22004. 14:35:38there's a lot of different options on
  22005. 14:35:40that side of things. So you're going to
  22006. 14:35:41take anything away from this like define
  22007. 14:35:44what prompt you're using. Define what
  22008. 14:35:45models you're using. Put in the results.
  22009. 14:35:48Make sure that you put in some notes
  22010. 14:35:50like what worked correctly, what didn't
  22011. 14:35:51work, color code, green, yellow, red,
  22012. 14:35:54and put in the dates when things are
  22013. 14:35:56changing or not. This will really help
  22014. 14:35:58you out with specifically logging
  22015. 14:36:01changes and things like that. So, that
  22016. 14:36:04is this section. This isn't really fun,
  22017. 14:36:06but I want to show you also what NEN has
  22018. 14:36:09built out. Now again, since I'm limited
  22019. 14:36:12on evaluations, like if you take a look,
  22020. 14:36:14if I go over here, I'm just going to
  22021. 14:36:15save this.
  22022. 14:36:17We go into evaluations. You could say
  22023. 14:36:19it's says limit reach to your plan
  22024. 14:36:22includes custom metrics for one workflow
  22025. 14:36:24only, which is so annoying, man. Um,
  22026. 14:36:27wonder if I could happen skip. I can't.
  22027. 14:36:29Like you can see it says run editor and
  22028. 14:36:32I just don't have that option. So,
  22029. 14:36:34instead of deleting my workflow, I'm
  22030. 14:36:37literally just going to show you what
  22031. 14:36:39happens. Like, I've tried to figure out
  22032. 14:36:42how to reset these evaluations. Like, I
  22033. 14:36:44generally don't know. Um, how I can
  22034. 14:36:48reset it. Like, I don't want to delete
  22035. 14:36:49this workflow.
  22036. 14:36:52And I mean, maybe I have to turn off the
  22037. 14:36:55evaluations. I don't know. I I have to
  22038. 14:36:57talk to any end team still about this
  22039. 14:36:59because I just don't think it's crystal
  22040. 14:37:01clear. like maybe you can clear
  22041. 14:37:03evaluations and it works in other
  22042. 14:37:04workflows is I I like what they built
  22043. 14:37:07out and maybe other people are having
  22044. 14:37:08this problem as well. I just want to
  22045. 14:37:10quickly go over the specific nodes that
  22046. 14:37:14we're using over here. So when you use
  22047. 14:37:16evaluations in any you can actually have
  22048. 14:37:19an evaluation data set. So you can
  22049. 14:37:22define that data set in either Google
  22050. 14:37:23Sheets or a data table in N in Google
  22051. 14:37:28Sheets or in Nan
  22052. 14:37:31and this is what you can use to test
  22053. 14:37:33your workflow. You know I see both sides
  22054. 14:37:35of it or like you could test with a test
  22055. 14:37:38data set over here or use start using
  22056. 14:37:41live data and test it directly in here.
  22057. 14:37:43I've seen both used so they're both both
  22058. 14:37:45okay. Um so over here this would be like
  22059. 14:37:48the test data. Then what you have over
  22060. 14:37:50here next is check if evaluating. So
  22061. 14:37:53what this note essentially does is like
  22062. 14:37:55if you grab your data from this
  22063. 14:37:57evaluation, it will split your workflow
  22064. 14:37:59and go into the evaluation side. Whereas
  22065. 14:38:02if it's not and it's a normal test of
  22066. 14:38:04your workflow, a normal run of your
  22067. 14:38:06workflow, it'll go to the opposite side.
  22068. 14:38:08So you can think of this as like an if
  22069. 14:38:10else like okay, if our if we use
  22070. 14:38:13evaluation data, we go one way. If not,
  22071. 14:38:16we just run this as normal. Um, so that
  22072. 14:38:19is essentially what this check if
  22073. 14:38:21evaluating does. Set outputs presents
  22074. 14:38:24the results that are ran into a Google
  22075. 14:38:26Sheets or data table. So very similar
  22076. 14:38:28like what I have over here just
  22077. 14:38:30populating in data. Uh going back on
  22078. 14:38:33this side of things, what we have next
  22079. 14:38:36what we have next is uh different
  22080. 14:38:39metrics. So there's metrics that involve
  22081. 14:38:42an AI agent or not AI agent but a AI
  22082. 14:38:44model and there's metrics that don't
  22083. 14:38:46evolve around an AI model. So you can
  22084. 14:38:49see uses AI is correctness whether the
  22085. 14:38:50answer is meaning is consistent with the
  22086. 14:38:52supplied reference answer. So in this
  22087. 14:38:55case when we're doing evaluations we
  22088. 14:38:57have essentially what we expected for
  22089. 14:39:00that correct answer and um what we're
  22090. 14:39:04testing right whereas over here when we
  22091. 14:39:07go into this one over here we don't
  22092. 14:39:09define automatically what the correct
  22093. 14:39:12answer is it's up to interpretation of
  22094. 14:39:14the person that is running. So this is a
  22095. 14:39:16little bit different than what N
  22096. 14:39:18evaluations has. and evaluations expects
  22097. 14:39:21you to already kind of know what the
  22098. 14:39:22answer is. Whereas this over here, it
  22099. 14:39:25it's sub it's subjective. Someone could
  22100. 14:39:27say this is correct or not. Um it's up
  22101. 14:39:30to them. Whereas this one, it's pretty
  22102. 14:39:32definitive. Obviously uses AI uses AI
  22103. 14:39:34model to take a look at what the
  22104. 14:39:36supplied answer should be versus what
  22105. 14:39:38answer you get from your AI agent. Um so
  22106. 14:39:41there's two different ways to use this.
  22107. 14:39:42Use correctness, so whether the answer's
  22108. 14:39:44meaning is consistent or not, and
  22109. 14:39:46helpfulness, whether the answer is
  22110. 14:39:48helpful or not. And any defines this as
  22111. 14:39:50a one through five. There's specific
  22112. 14:39:52prompts. NonAI, you have uh three
  22113. 14:39:55different options tools used. So this is
  22114. 14:39:58important to me measure like are the
  22115. 14:39:59tools correctly being used by your AI
  22116. 14:40:01agent. Um then you have categorization
  22117. 14:40:04whether the answer is an exact match or
  22118. 14:40:06not. You can think of this as like a
  22119. 14:40:07categorization with machine learning as
  22120. 14:40:10well like where you're trying to predict
  22121. 14:40:12a category. This is it with specifically
  22122. 14:40:15AI agents. Then you have string
  22123. 14:40:16similarity. how close is the answer to
  22124. 14:40:18the reference answer? Um, it returns a
  22125. 14:40:20score 0 to one that's going to be
  22126. 14:40:22decimal of some capacity. So really the
  22127. 14:40:25difference between both of these
  22128. 14:40:27approaches and is a lot more structured
  22129. 14:40:29like you have your your evaluation set
  22130. 14:40:32and then you split your workflow, you
  22131. 14:40:34have your outputs getting sent to a
  22132. 14:40:36spreadsheet and then you already have
  22133. 14:40:38like what you expected to be correct or
  22134. 14:40:39not. And if it's something that deals
  22135. 14:40:42with just text in general, like um
  22136. 14:40:46that's not a specific category text that
  22137. 14:40:48changes, there's two ways. It's either
  22138. 14:40:50correct or not with helpfulness if it's
  22139. 14:40:53going to be something that you expect
  22140. 14:40:54almost like a correct answer every time.
  22141. 14:40:56It's categorization string similarity if
  22142. 14:40:59you have an output and then tools used.
  22143. 14:41:01And yeah, like these were some of the
  22144. 14:41:03different examples I was going to use
  22145. 14:41:05for this even evaluations video, but I
  22146. 14:41:07got blocked because you only can have
  22147. 14:41:09one evaluation at a time. But
  22148. 14:41:11regardless, evaluations are important.
  22149. 14:41:13So, if you want to delete your workflows
  22150. 14:41:16or delete these evaluations after you
  22151. 14:41:18use it, um, go for it. Or if you have an
  22152. 14:41:20upper tier plan and you can constantly
  22153. 14:41:22use evaluations, highly recommend that
  22154. 14:41:24you mess with it. Otherwise, kind of go
  22155. 14:41:26with this Google Sheets route. A lot of
  22156. 14:41:28people um that build AI systems will do
  22157. 14:41:30this. They'll just kind of have
  22158. 14:41:32something like this. Obviously, it
  22159. 14:41:34changed for a different scenario. Green,
  22160. 14:41:36yellow, red, and just improve it over
  22161. 14:41:38time. This is what I've used in systems
  22162. 14:41:40that I build for work. And it's done a
  22163. 14:41:43pretty good job. Obviously, there's
  22164. 14:41:44things I I would improve over time and
  22165. 14:41:47things that I can add in um as design is
  22166. 14:41:50getting changed a little bit. Also, I
  22167. 14:41:52apologize. I'm losing my voice. So,
  22168. 14:41:53we've been recording non-stop. I don't
  22169. 14:41:55even know how far into the course this
  22170. 14:41:57is. I've been recording it over like
  22171. 14:41:59three or four days, but so I feel a
  22172. 14:42:01little tired and my voice is being lost
  22173. 14:42:04a little bit. I'm trying to get this out
  22174. 14:42:05by January 1st. I don't know if it's
  22175. 14:42:07going to happen or not, but I apologize
  22176. 14:42:10if I didn't go out of step as I wanted
  22177. 14:42:13to for evaluations, but it is a really
  22178. 14:42:16really important concept to test your
  22179. 14:42:18workflows, see if they are getting
  22180. 14:42:20correct or not. Um, and yeah, and you
  22181. 14:42:23might be wondering like what is the
  22182. 14:42:24correct amount of data to test a
  22183. 14:42:27workflow? It really depends on how
  22184. 14:42:28critical a system is and how long you
  22185. 14:42:30want to test it. Um, I constantly test
  22186. 14:42:33things at work. Like even if things are
  22187. 14:42:36like fully correct, I'm still doing a
  22188. 14:42:39test every week or every other week just
  22189. 14:42:41to make sure it still is working
  22190. 14:42:43properly. And uh, yeah, that is
  22191. 14:42:46essentially it for evaluations. The next
  22192. 14:42:49section we're going to be covering is a
  22193. 14:42:51little bit bit about security and
  22194. 14:42:54compliance. So, a little bit more
  22195. 14:42:55important stuff. We're going to talk
  22196. 14:42:56about guard rails. We're going to talk
  22197. 14:42:58about just logging in general, which is
  22198. 14:43:00very similar um to logging. This is kind
  22199. 14:43:03of just evaluations on that. And talked
  22200. 14:43:06about web hook security, but we'll cover
  22201. 14:43:08that again. And then we'll also cover
  22202. 14:43:12credential management, version control,
  22203. 14:43:14and uh naming conventions. So, I will
  22204. 14:43:17see you guys in that next video. I don't
  22205. 14:43:19know why I'm on this workflows page.
  22206. 14:43:21We'll go back to this evaluations page
  22207. 14:43:23and end it there. All right, see you
  22208. 14:43:24guys. So far through this course, you've
  22209. 14:43:27been building a lot of workflows from
  22210. 14:43:29scratch and if an API doesn't exist,
  22211. 14:43:31you've had to use the HTTP request node,
  22212. 14:43:34but I'm going to be showing you guys
  22213. 14:43:35some shortcuts that might save you some
  22214. 14:43:38time. This won't be applicable in every
  22215. 14:43:40single case, so don't use it as a
  22216. 14:43:43crutch. However, if there is a specific
  22217. 14:43:45use case that you need done and you
  22218. 14:43:47think, "Hey, I might be able to save
  22219. 14:43:48some time after this video," definitely
  22220. 14:43:50take that approach. Uh, so let's jump
  22221. 14:43:52into it right now and I'm going to show
  22222. 14:43:54you kind of four different ways. All
  22223. 14:43:56right, so the first way we're going to
  22224. 14:43:58do is go over here and we're going to
  22225. 14:44:00actually look at templates. So, there
  22226. 14:44:03are a ton of templates online. In fact,
  22227. 14:44:06I showed you quite early on in the
  22228. 14:44:08course how to import in templates just
  22229. 14:44:10because of all the material. Uh, but all
  22230. 14:44:12I'm going to go over here is say N
  22231. 14:44:14template library. And you'll go to the
  22232. 14:44:17website. It says 7,656
  22233. 14:44:20workflow automations.
  22234. 14:44:23And depending on what you specifically
  22235. 14:44:25want to search, it's they might have
  22236. 14:44:28something already over here that you
  22237. 14:44:30could start with. Now, the thing with
  22238. 14:44:32templates, a lot of people will build
  22239. 14:44:34out some fancy automation and you don't
  22240. 14:44:36need all of that or there's going to be
  22241. 14:44:37small sections that are broken.
  22242. 14:44:39Obviously, the NE team does a fantastic
  22243. 14:44:41job vetting these templates, but NE is a
  22244. 14:44:44fastmoving software. There's new updates
  22245. 14:44:46constantly, and you know, something that
  22246. 14:44:48uses a Python code node 6 months ago is
  22247. 14:44:51going to be broken. Something that
  22248. 14:44:53specifically uses uh maybe a human in
  22249. 14:44:56the loop with that execute uh sub
  22250. 14:44:59workflow could possibly be broken just
  22251. 14:45:01because things do change uh from version
  22252. 14:45:04to version and you'll have to update
  22253. 14:45:06that. So, a little bit of heads up on
  22254. 14:45:08that side of things because some of
  22255. 14:45:09these are a little bit older. But let's
  22256. 14:45:11take a look at this over here. Generate
  22257. 14:45:12AI viral videos on ano banana in V3. So,
  22258. 14:45:15I've already showed you essentially how
  22259. 14:45:17to do that. It says shared on socials
  22260. 14:45:19via Bolato.
  22261. 14:45:21And we can take a look at this over
  22262. 14:45:24here.
  22263. 14:45:26And first, on this side of things, you
  22264. 14:45:28can mostly zoom in, I want to say, on
  22265. 14:45:30these templates. I don't know why it's
  22266. 14:45:31not letting me zoom in on this one,
  22267. 14:45:32which is kind of weird. Maybe I'll just
  22268. 14:45:34refresh. Normally you can just like zoom
  22269. 14:45:36in and things like that but it is not
  22270. 14:45:40like you can just drag around but either
  22271. 14:45:42way you can see step one like this guy
  22272. 14:45:43did a pretty good job put a full
  22273. 14:45:45tutorial documentation requirements on
  22274. 14:45:47the side so major props there you can
  22275. 14:45:49see step one collect the ideas and image
  22276. 14:45:51create two create image with nano banana
  22277. 14:45:54so we have a very similar workflow
  22278. 14:45:56mine's a little bit different step three
  22279. 14:45:58it says generate video ad script and
  22280. 14:46:00then step four generate video with V3
  22281. 14:46:02and step five post to all platform
  22282. 14:46:04platforms. So, I haven't tested Blow
  22283. 14:46:06Blowato yet. I heard some pretty good
  22284. 14:46:09things about it. I believe the the
  22285. 14:46:10founder of that was recently on the N
  22286. 14:46:12podcast,
  22287. 14:46:14but yeah, I don't know why this isn't
  22288. 14:46:15letting me zoom in. Maybe it's like a
  22289. 14:46:16bug on the platform right now, but and
  22290. 14:46:19you can see last update is four months
  22291. 14:46:20ago associated with this. It tells you
  22292. 14:46:23who this is for, what problem solve,
  22293. 14:46:26what this workflow does, the setup
  22294. 14:46:29associated with it. Like this is really,
  22295. 14:46:30really good documentation on the side of
  22296. 14:46:33things. So, let's actually try to
  22297. 14:46:35download this. I'm going to click use
  22298. 14:46:36for free. And I'm going to import in
  22299. 14:46:39over here. Uh, you could copy the
  22300. 14:46:41template to support JSON. You could open
  22301. 14:46:44self-hosting. I'm just going to import
  22302. 14:46:45the template to my cloud workspace.
  22303. 14:46:48And you'll see set this up. And it says
  22304. 14:46:53you need one Telegram, one Google
  22305. 14:46:54Sheets, one Google Drive to set up this
  22306. 14:46:56template. And I'm just going to click
  22307. 14:46:58skip. Now, obviously, I would recommend
  22308. 14:47:00that you set up these credentials
  22309. 14:47:01because I don't have a Telegram yet. I
  22310. 14:47:03haven't built this out for YouTube yet,
  22311. 14:47:05but it is in my backlog. Uh, Google
  22312. 14:47:08Sheets, Google Drive, OpenAI. I'm just
  22313. 14:47:09going to click skip. We're going to load
  22314. 14:47:11this template up. And boom, we have this
  22315. 14:47:13in over here. Obviously, I have issues
  22316. 14:47:15with Telegram because I haven't set that
  22317. 14:47:17up. And that's why you see these red
  22318. 14:47:19icons over here. It says credential.
  22319. 14:47:21But, we have just successfully gone to
  22320. 14:47:24the NE website. We wanted to download
  22321. 14:47:26this and it says use for free. And we
  22322. 14:47:28have this over here. So, I'm actually
  22323. 14:47:30curious what this guy um I'm not
  22324. 14:47:33familiar with this YouTuber.
  22325. 14:47:36You can see this has 9,000 views, the AI
  22326. 14:47:38doctor. So, someone else to watch
  22327. 14:47:41possibly. Don't uh completely leave my
  22328. 14:47:43channel for this guy. But, uh
  22329. 14:47:44regardless, it was a pretty cool
  22330. 14:47:45workflow on that side of things. And uh
  22331. 14:47:48this is not beginner friendly. It's for
  22332. 14:47:49people who already know any. And the
  22333. 14:47:51well taken point introduction to 11 lab
  22334. 14:47:53and information about 10,00 credit. nice
  22335. 14:47:55work as an update. So, this is not the
  22336. 14:47:57right link connected to my automation.
  22337. 14:47:59Mine was about Nano Banana.
  22338. 14:48:01Oh, I guess
  22339. 14:48:04put the wrong link in his thing over
  22340. 14:48:06here. Either way, um, and you can see
  22341. 14:48:08actually a lot of people watch this
  22342. 14:48:10video from over there. So, uh, full
  22343. 14:48:12documentation on notion. Let's take a
  22344. 14:48:14look at that. Again, this is a great
  22345. 14:48:16template in my personal opinion because
  22346. 14:48:18you have a lot of ideas over here. Uh he
  22347. 14:48:21has his notion link, download my
  22348. 14:48:23workflow, has all this over here
  22349. 14:48:27like a ton of stuff all built out on
  22350. 14:48:30this side of things like really really
  22351. 14:48:32crazy value on there. I create a bolato
  22352. 14:48:35account pro plan required for API
  22353. 14:48:37access. You can see it links over here.
  22354. 14:48:39You can see there's a referral. So
  22355. 14:48:41obviously some sort of affiliate
  22356. 14:48:43associated with it. Yeah, this was the
  22357. 14:48:45nan uh
  22358. 14:48:48I want to say
  22359. 14:48:51podcast I was listening to.
  22360. 14:48:54I'm actually curious about the pricing.
  22361. 14:48:55So, you can see starter $29, creator 97,
  22362. 14:48:58agency $4.99 at 1250 credits per month.
  22363. 14:49:02There's a lot of different things in
  22364. 14:49:03here.
  22365. 14:49:05So, either way, I'm going to close out
  22366. 14:49:07over here. Just showing you an example.
  22367. 14:49:10And uh yeah, just set up your
  22368. 14:49:11credentials, test out the workflow, see
  22369. 14:49:13if it works for you. I'd also personally
  22370. 14:49:16take a look at like what's happening. So
  22371. 14:49:18maybe you don't want to start with
  22372. 14:49:19Telegram, you want to do something else.
  22373. 14:49:21Like you can always delete these. You
  22374. 14:49:22don't necessarily have to follow the
  22375. 14:49:24workflow. Just remember like there's
  22376. 14:49:25other nodes that are going to be
  22377. 14:49:26incorporated. So like you can see over
  22378. 14:49:28here, this Telegram trigger, this inputs
  22379. 14:49:31that and also this. So based off of
  22380. 14:49:34this, like you're going to have to
  22381. 14:49:35change two different nodes. So just
  22382. 14:49:37follow the patterns. Um, and also a
  22383. 14:49:40little bit of pet peeve. I don't like
  22384. 14:49:41when when they're vertical like this. I
  22385. 14:49:44always just like putting it horizontal
  22386. 14:49:46and then if like two things need to
  22387. 14:49:48happen, go like that. But that's a minor
  22388. 14:49:50pet peeve because obviously there's a
  22389. 14:49:51lot of effort that was put into this
  22390. 14:49:53template and things like that. It
  22391. 14:49:54probably works fantastic.
  22392. 14:49:56Regardless,
  22393. 14:49:57just go through it over here and see
  22394. 14:49:59what's happening. You can see this over
  22395. 14:50:01here. Posts on multiple platforms. Tik
  22396. 14:50:02Tok, LinkedIn, Facebook, YouTube,
  22397. 14:50:04Twitter, Threads, Blue Sky, as well as
  22398. 14:50:06Pinterest. There's this merge node which
  22399. 14:50:08we've covered merge nodes. There's nine
  22400. 14:50:10different merges over there. I'm
  22401. 14:50:12curious. Um, wait for all inputs to
  22402. 14:50:14arrive. Data specific input use input
  22403. 14:50:16over there. Update status to done. So,
  22404. 14:50:19pretty awesome on that side of things.
  22405. 14:50:21So, a lot of documentation. So, that is
  22406. 14:50:24one way that you could populate those.
  22407. 14:50:26I'm going to go back to templates. Let's
  22408. 14:50:28uh leave out of here and then just
  22409. 14:50:30search for something. Now, I don't know
  22410. 14:50:32what I'm going to search for right now,
  22411. 14:50:34but let's see. Um, I'm just literally
  22412. 14:50:36going to look for featured templates or
  22413. 14:50:38something like that. Automate 3D models.
  22414. 14:50:39Oh, I saw this on LinkedIn this morning.
  22415. 14:50:41So, let's take a look at this. Automate
  22416. 14:50:433D model generation from images using CM
  22417. 14:50:463D and sheets. Yeah, I saw this on here.
  22418. 14:50:48So, let's So, you can see this one
  22419. 14:50:51allows click to explore.
  22420. 14:50:53So, this is pretty sick. All right. So,
  22421. 14:50:56what happens? Step one, Google Sheets.
  22422. 14:50:58So, you can actually mess around with
  22423. 14:51:00this before we actually even jump into
  22424. 14:51:02our instance. So in the image model, use
  22425. 14:51:04the basic image to dress. Leave 3D
  22426. 14:51:06results. Get the foul API key. This was
  22427. 14:51:10created with foul. Interesting.
  22428. 14:51:14And you can see we have a golfer
  22429. 14:51:15swinging. And then we have our golfer
  22430. 14:51:18over here. Although I would have
  22431. 14:51:21probably just changed that up so they're
  22432. 14:51:22one to one.
  22433. 14:51:25That is really cool though.
  22434. 14:51:30And free template and tutorial. Oh, is
  22435. 14:51:32that his YouTube channel, too?
  22436. 14:51:35My new YouTube channel. Let's take a
  22437. 14:51:37look.
  22438. 14:51:39Oh,
  22439. 14:51:41I guess they're just shorts. I'll give
  22440. 14:51:45him a subscribe. I don't know if he's
  22441. 14:51:47watching this video, but five
  22442. 14:51:49subscribers, five videos. There you go.
  22443. 14:51:50I'm subscriber number six. Either way,
  22444. 14:51:54um, this is pretty cool. And you can see
  22445. 14:51:55use cases. sports analytics, emotion
  22446. 14:51:57optimization, fitness, health, fashion,
  22447. 14:52:00gaming. I have some fitness customers.
  22448. 14:52:03So, this is pretty sick.
  22449. 14:52:07I I like this a lot. This is cool.
  22450. 14:52:11And it says, "Need help customizing?
  22451. 14:52:13Contact me for consulting." Oh, I didn't
  22452. 14:52:15even know you could put that in here on
  22453. 14:52:17the any community forums.
  22454. 14:52:22So, you can put your email in here and
  22455. 14:52:23you can add someone on LinkedIn. That's
  22456. 14:52:25pretty sweet. Uh you can see setup
  22457. 14:52:27steps. There's a lot of steps associated
  22458. 14:52:29with it really going into the
  22459. 14:52:31documentation. So you know not
  22460. 14:52:33everything in on the work on the
  22461. 14:52:35templates is going to have this thorough
  22462. 14:52:36of documentation. This one does however
  22463. 14:52:39and uh it is pretty great side of
  22464. 14:52:42things. So you can click use for free
  22465. 14:52:44this time. Let's just copy uh template
  22466. 14:52:47to clipboard. So we have that over here.
  22467. 14:52:50I'm going to go into any end now. And uh
  22468. 14:52:53we can go over here and click these
  22469. 14:52:55three dots. And what we could do is
  22470. 14:52:57import from a URL or a file, whatever
  22471. 14:53:00the case may be. Let's do a file. I'm
  22472. 14:53:02going to create a new JSON file really
  22473. 14:53:03fast. And uh we'll go in there. All
  22474. 14:53:07right. So, I'm just in VS Code. I'm just
  22475. 14:53:09going to save this. Obviously, there's
  22476. 14:53:10other ways you could save your JSON, but
  22477. 14:53:12I'm just showing you this over here. I'm
  22478. 14:53:15going to save this really quick. And I'm
  22479. 14:53:17just going to save this under downloads.
  22480. 14:53:20or desktop. We'll just put this on
  22481. 14:53:21desktop. We'll say 3D image.
  22482. 14:53:26Save. And I probably should put
  22483. 14:53:27underscore, but that's all right. And
  22484. 14:53:29then what I'm going to do is click these
  22485. 14:53:30three dots. I'm going to import in from
  22486. 14:53:32a file. Go over here to desktop 3D
  22487. 14:53:36image. And since we just imported this
  22488. 14:53:39in, you can see all this over here.
  22489. 14:53:42And again, like if you if you download a
  22490. 14:53:44template and there's a creator that does
  22491. 14:53:46this, give them a subscribe. Like you
  22492. 14:53:48have to understand this is a lot of
  22493. 14:53:49effort to building in these templates,
  22494. 14:53:51put in the documentation, write it up
  22495. 14:53:52for forums. Um, so obviously like people
  22496. 14:53:56are trying to build out their social
  22497. 14:53:57following and there's nothing wrong with
  22498. 14:53:58that. So support those creators out
  22499. 14:54:00there. I know the first one I showed you
  22500. 14:54:01a YouTube uh creator. This one also was
  22501. 14:54:04built by another YouTube creator.
  22502. 14:54:06They're building out some pretty cool
  22503. 14:54:07use cases. I I like this one a ton.
  22504. 14:54:10Either way, that is the forms. You can
  22505. 14:54:13obviously search stuff as well. So just
  22506. 14:54:15going back to templates. Let's say I
  22507. 14:54:17wanted to have something with Discord.
  22508. 14:54:19So I can search Discord and it shows me
  22509. 14:54:22113 different templates that people have
  22510. 14:54:25created for Discord. So let's say I want
  22511. 14:54:27to do something with HubSpot. And also,
  22512. 14:54:29by the way, you [snorts] can see um
  22513. 14:54:31verified creators and things like that
  22514. 14:54:32and see what other templates they have.
  22515. 14:54:34So like imagine you like this guy's
  22516. 14:54:35template. Well, you can see his other
  22517. 14:54:37templates associated with it. Rahul
  22518. 14:54:40Joshy, let's say you like his templates.
  22519. 14:54:42You can see how many of these over here.
  22520. 14:54:45and he doesn't really have a lot of
  22521. 14:54:46views unfortunately. Um, let's say
  22522. 14:54:48David, he has 204. Wow. And he has his
  22523. 14:54:52school community, a hacker by nature.
  22524. 14:54:54So, you can take a look at what's going
  22525. 14:54:55on over there. He has his own uh school
  22526. 14:54:59community too. 100 members at $47 a
  22527. 14:55:01month powered by school. Regardless, he
  22528. 14:55:04has all these templates on here and you
  22529. 14:55:05can take a look at that. So, let's say
  22530. 14:55:06you want to send messages from a agents
  22531. 14:55:08with the mandrel. Cool tool to MCP
  22532. 14:55:10server says user free. We have a full
  22533. 14:55:12setup over here as well. And uh yeah,
  22534. 14:55:14this is pretty awesome. So that is the
  22535. 14:55:17forums. That's only one way though to
  22536. 14:55:20essentially build out your workloads.
  22537. 14:55:21I'm just going to close out my VS Code
  22538. 14:55:23that I have off to the side because I
  22539. 14:55:25can't see my notes. And we're going to
  22540. 14:55:27jump into our next example. And uh our
  22541. 14:55:30next thing that's going to save us some
  22542. 14:55:31time is the AI workflow builder. So I'm
  22543. 14:55:34just going to create a new workflow.
  22544. 14:55:35Well, I already have this over here. Um
  22545. 14:55:38where is our section 24? I'm just going
  22546. 14:55:40to go home. Leave without saving. We
  22547. 14:55:42don't need to have that right now. We're
  22548. 14:55:44going to go back into section 24. All
  22549. 14:55:46right. So, you'll notice on here we have
  22550. 14:55:49add first steps or start from a
  22551. 14:55:50template. Obviously, you can go
  22552. 14:55:51templates over here as well, which I
  22553. 14:55:53didn't even show you, but you can just
  22554. 14:55:54literally say automated quiz delivery
  22555. 14:55:56with Google Sheets and Telegram. Let's
  22556. 14:55:58just use that or scrape AI news. Let's
  22557. 14:56:01scrape this. Use this workflow. Again,
  22558. 14:56:04you'll see the same screens. So, I'm not
  22559. 14:56:06going to waste your time setting that
  22560. 14:56:07up, but I just want to show you that you
  22561. 14:56:09can do it's a template here. You don't
  22562. 14:56:10necessarily have to go to the template
  22563. 14:56:11library, but let's go into build with
  22564. 14:56:13AI. So, you'll see you have a monthly
  22565. 14:56:15credit on this side of things. And
  22566. 14:56:17there's other ones that are built in.
  22567. 14:56:19And later in the course, we're going to
  22568. 14:56:21be talking about rag. So, maybe I want
  22569. 14:56:23to build out something automated with a
  22570. 14:56:25rag knowledge assistant. So, I'm going
  22571. 14:56:27to click this. Obviously, you could type
  22572. 14:56:29out exactly what you want, but let's say
  22573. 14:56:31I want to do the rag knowledge
  22574. 14:56:32assistant. So, it says build an
  22575. 14:56:33automation that creates an a document to
  22576. 14:56:36chat rag pipeline. The workflow starts
  22577. 14:56:38with an any form where a user uploads
  22578. 14:56:40one or more files. Each upload should
  22579. 14:56:42trigger a process that reads the file,
  22580. 14:56:43splits into chunks, and generates
  22581. 14:56:44embeddings using OpenAI. You can see
  22582. 14:56:46uses 41 mini, which is an older model. I
  22583. 14:56:49probably wouldn't recommend using that
  22584. 14:56:50old of a model. Um, saved in one pine
  22585. 14:56:52cone table. Add a second part of the
  22586. 14:56:54workflow for querying. Use a chat
  22587. 14:56:55message. So, like this is a lot of
  22588. 14:56:57information. This is very thorough and
  22589. 14:56:59you should be as thorough as possible as
  22590. 14:57:00well on the side of things. It's like
  22591. 14:57:02prompting. uh the better that your
  22592. 14:57:04prompts are, the more likely you're
  22593. 14:57:05going to get a better accurate
  22594. 14:57:07representation. So, let's run this. I'm
  22595. 14:57:08curious if it's only one credit. So, it
  22596. 14:57:10says remaining AI credits 50, monthly
  22597. 14:57:12credits 50, one credit equals one
  22598. 14:57:14message. So, credits renewed February
  22599. 14:57:151st, 2026, unused credits expire. So,
  22600. 14:57:19one credit to use this. You might as
  22601. 14:57:20well try it and see how well this goes.
  22602. 14:57:23And I'm going to run this and you'll see
  22603. 14:57:25it says thinking and we have all this
  22604. 14:57:27getting built out right now over here.
  22605. 14:57:29And it's working. So we'll see how this
  22606. 14:57:32populates.
  22607. 14:57:34And it says, I'll build a comprehensive
  22608. 14:57:35document to chat rag pipeline with form
  22609. 14:57:37uploaded, embedded generation, and
  22610. 14:57:39chatbot interface. So I'm actually
  22611. 14:57:41curious how long this particularly
  22612. 14:57:44takes. And uh we'll see. So we're about
  22613. 14:57:472 minutes into this right now, and you
  22614. 14:57:49can see it already populated these
  22615. 14:57:50nodes. However, it still hasn't built
  22616. 14:57:52the workflow. So again, I'll just pause
  22617. 14:57:54and wait for this to be ready so that
  22618. 14:57:56way you don't waste your guys time. All
  22619. 14:57:58right, another minute in. Essentially,
  22620. 14:58:00we have this over here, but it still
  22621. 14:58:02says it's working. I don't think it's
  22622. 14:58:03ready to go yet, obviously. Taking a
  22623. 14:58:05look at this. And uh we will see what
  22624. 14:58:08happens. Another minute in and you can
  22625. 14:58:11see it's changed things up, but it is
  22626. 14:58:14still thinking. You can see thinking on
  22627. 14:58:16the side, working over here. And just
  22628. 14:58:18more updates.
  22629. 14:58:23All right. So, this took me I want to
  22630. 14:58:25say four to five minutes. And uh cool.
  22631. 14:58:29Let's take a look at what is going on.
  22632. 14:58:30So first we have a response how to set
  22633. 14:58:32up. It says pine cone configuration. It
  22634. 14:58:35tells you data tables create two data
  22635. 14:58:37tables in any end. One for storing form
  22636. 14:58:39uploads one for logging chat email
  22637. 14:58:42address in the send daily summary email
  22638. 14:58:44node replace there. Pine cone
  22639. 14:58:46credentials credentials Gmail
  22640. 14:58:48credentials. So I think it's pretty nice
  22641. 14:58:50that it tells you like hey set these
  22642. 14:58:52credentials up. Workflow has three main
  22643. 14:58:53parts. document upload chat interface
  22644. 14:58:56daily reporting every day at 9 a.m. The
  22645. 14:58:58workflow analyzes chat logs and emails a
  22646. 14:59:00summary of stats top reference files and
  22647. 14:59:02field lookups. And then it says complete
  22648. 14:59:04these steps before executing your
  22649. 14:59:06workflow. Update pine cone index with
  22650. 14:59:08the parameter store form uploads. So you
  22651. 14:59:10have to upload these over here. Log chat
  22652. 14:59:13interactions fetch chat logs and then
  22653. 14:59:15send daily over here. Update as that
  22654. 14:59:18side of things. So you can go over here
  22655. 14:59:20and build these particularly out. I'm
  22656. 14:59:22actually curious as well just taking a
  22657. 14:59:24look at how this is being built out. So
  22658. 14:59:28what we have over here is our form
  22659. 14:59:29upload and also
  22660. 14:59:32can I not move these? Okay, I can't move
  22661. 14:59:34this. I was just spot. All right, so
  22662. 14:59:38first off from the design perspective, I
  22663. 14:59:41do like how we split this out, but it is
  22664. 14:59:45kind of weird. So like you can see
  22665. 14:59:49I don't know if I would have
  22666. 14:59:52set this up like this.
  22667. 14:59:58Like just from the design, it's a little
  22668. 15:00:01bit funky.
  22669. 15:00:04I guess that's okay. All right. So, I
  22670. 15:00:06think this looks already a little bit
  22671. 15:00:08better. Again, I I don't know. I just
  22672. 15:00:09like having the lines go like this.
  22673. 15:00:13Making a little bit better. Um, even
  22674. 15:00:15things like this, like you can see the
  22675. 15:00:17chat trigger.
  22676. 15:00:23And uh, I don't know. I'm one that
  22677. 15:00:26always likes just duplicating this just
  22678. 15:00:28I think it's cleaner. I know it's I know
  22679. 15:00:32they're both connected to the same
  22680. 15:00:33thing. I just like that's just a
  22681. 15:00:36personal use. Like I think this just
  22682. 15:00:38looks cleaner. Some people are going to
  22683. 15:00:40disagree, but I think already this looks
  22684. 15:00:42way better just moving things around.
  22685. 15:00:44So, it's just like a a pet peeve. I
  22686. 15:00:46don't even know if this works correctly
  22687. 15:00:47or not. And obviously, you can test it
  22688. 15:00:49out. I'm curious. We have different
  22689. 15:00:51settings already filled out in here,
  22690. 15:00:52too, which is kind of nice. It'll save
  22691. 15:00:54you some time. Book configuration
  22692. 15:00:57placeholder value. So, make sure to fill
  22693. 15:00:59that in as you need it. You can see over
  22694. 15:01:02here pine cone index from a little bit
  22695. 15:01:04earlier with the exact JSON that we need
  22696. 15:01:08and the schedule summary. Also, this
  22697. 15:01:12chat trigger is huge. I've never seen it
  22698. 15:01:14that big. Never seen it that big. Is it
  22699. 15:01:16just because it's publicly available? I
  22700. 15:01:18wonder if I turn that off.
  22701. 15:01:22That is ah okay
  22702. 15:01:25publicly available.
  22703. 15:01:27No, it went back. That's weird that it
  22704. 15:01:30uh
  22705. 15:01:33turned huge. I may control Z that. Oops.
  22706. 15:01:38I guess I can't control Z what's going
  22707. 15:01:40on in that chat trigger.
  22708. 15:01:43Interesting. Either way, you can see
  22709. 15:01:45like it it builds out your framework.
  22710. 15:01:48Our goal of this video wasn't to really
  22711. 15:01:50evaluate this whatever was built in, but
  22712. 15:01:53yeah. So, that is another option. You
  22713. 15:01:54can go over here to the workflow builder
  22714. 15:01:57and start out. Now, this isn't going to
  22715. 15:01:58be 100% correct. As I mentioned, even
  22716. 15:02:00with templates, you're going to have to
  22717. 15:02:02customize it to your own liking. Some
  22718. 15:02:05nodes might have incorrect settings. So,
  22719. 15:02:07you're going to have to go in here and
  22720. 15:02:08test it out. But, it does a lot of the
  22721. 15:02:11framework and already a lot of the
  22722. 15:02:12building. So, there probably is ways
  22723. 15:02:14that you could architecture things
  22724. 15:02:15better and uh make it a little bit more
  22725. 15:02:17efficient. But, out of the box, it's
  22726. 15:02:19probably not too bad over there. Just
  22727. 15:02:21remember, you have 50 by default. So,
  22728. 15:02:24we're going to just say this is like
  22729. 15:02:26part two,
  22730. 15:02:29part one. It doesn't really matter. I
  22731. 15:02:31don't know. I'm I'm obviously going to
  22732. 15:02:32be uploading these files to our school
  22733. 15:02:34group on the side things. So, this is
  22734. 15:02:36saved. The next thing I want to talk
  22735. 15:02:38about is just asking a large language
  22736. 15:02:40model and I'll just create a new
  22737. 15:02:42workflow for that. So, we're going to
  22738. 15:02:44create new workflow. I'll create it in
  22739. 15:02:46personal and uh yeah, we'll just call
  22740. 15:02:48this building workflows faster part two.
  22741. 15:02:51And what I would recommend is use alert
  22742. 15:02:54tech is pretty good at code building. I
  22743. 15:02:57like using claude and I actually have a
  22744. 15:02:59paid claude account at $20 a month just
  22745. 15:03:02because I find if you don't you run out
  22746. 15:03:04of messages pretty fast. So I find this
  22747. 15:03:07is a pretty good investment if it just
  22748. 15:03:08saves me an extra hour to three hours a
  22749. 15:03:11week. So what we're going to do on here
  22750. 15:03:14is ask it to build a nan workflow. And
  22751. 15:03:17what's really cool is you can actually
  22752. 15:03:19get JSON back based around it. So, I'm
  22753. 15:03:22going to say, can you build me can you
  22754. 15:03:24build me a NE workflow based on N v2
  22755. 15:03:31docs that takes a YouTube video
  22756. 15:03:38and uh
  22757. 15:03:40populates
  22758. 15:03:42a uh let's say LinkedIn message
  22759. 15:03:46message. Obviously, this isn't really a
  22760. 15:03:48thorough prompt, but imagine just taking
  22761. 15:03:50YouTube video and then we want to
  22762. 15:03:52LinkedIn message on social media. So,
  22763. 15:03:54maybe I'll instead of populates a
  22764. 15:03:56LinkedIn post about it on social media
  22765. 15:04:00and I wouldn't recommend you do this as
  22766. 15:04:02well, please. There's a lot of nuances
  22767. 15:04:03in like what makes a good post and
  22768. 15:04:04things like that, things that I'm still
  22769. 15:04:06learning about, but I'm just going to
  22770. 15:04:08say over here, please
  22771. 15:04:11provide me the JSON.
  22772. 15:04:16All right. So, we'll see what happens on
  22773. 15:04:18the side of things, but
  22774. 15:04:21you will see what happens. All right.
  22775. 15:04:23So, we have all of our JSON that is
  22776. 15:04:25getting populated right now. We have all
  22777. 15:04:27this information, manual trigger,
  22778. 15:04:29YouTube details, LinkedIn format over
  22779. 15:04:32here, setup requirements. So, it gives
  22780. 15:04:33you setup requirements as well. Very
  22781. 15:04:35similar to what happened with um our
  22782. 15:04:38templates and what happened directly
  22783. 15:04:40when we were asking the workflow to be
  22784. 15:04:41built out. It says import this JSON and
  22785. 15:04:43nan add your credentials test with the
  22786. 15:04:46manual trigger by pasting YouTube URL
  22787. 15:04:48like this. So this is one approach on
  22788. 15:04:51how you could do that. And just to go
  22789. 15:04:53back over here we'll save this into VS
  22790. 15:04:55Code first. So I'm just going to say
  22791. 15:04:58this is still 3D image. It doesn't
  22792. 15:05:00really matter. This is just whatever
  22793. 15:05:02else it is. So we'll go over here and
  22794. 15:05:04then we'll import from file. We'll grab
  22795. 15:05:073D image. And yeah, this didn't work
  22796. 15:05:10correctly. So, we're going to have to
  22797. 15:05:12reprompt it and uh we'll test that out.
  22798. 15:05:15All right. So, obviously this did not
  22799. 15:05:17work. So, what I'm going to do is I'm
  22800. 15:05:19going to take a screenshot of this and
  22801. 15:05:20I'm going to reprompt it back over here.
  22802. 15:05:22So, I'm going to say I imported in this
  22803. 15:05:26JSON
  22804. 15:05:28in this JSON. However,
  22805. 15:05:33it didn't work.
  22806. 15:05:35Are you using
  22807. 15:05:38the ND2
  22808. 15:05:40docs with a question mark? And I'll put
  22809. 15:05:43this over here
  22810. 15:05:45and uh paste that in. [snorts]
  22811. 15:05:56Okay. So, you're right. I need to check
  22812. 15:05:57the actual NV2 docs and then it's going
  22813. 15:06:00to search the web
  22814. 15:06:02and it's going to start going through
  22815. 15:06:04this as well. So a lot of people if they
  22816. 15:06:07see a mistake they'll just give up at
  22817. 15:06:10first and you know oh well this doesn't
  22818. 15:06:13work it but you need to reprompt things
  22819. 15:06:16if you see errors. So I'm actually
  22820. 15:06:17curious as well when jumping into this
  22821. 15:06:20workflow. We have a manual trigger this
  22822. 15:06:23generate. We actually have a prompt
  22823. 15:06:25that's in over here. And then um we have
  22824. 15:06:29the format post data no path pack to
  22825. 15:06:33node. Yikes. Whatever this is over here
  22826. 15:06:37that's weird. Install this node to use
  22827. 15:06:39it. This node is currently not
  22828. 15:06:40installed. It either is from newer
  22829. 15:06:41version and a custom node or is it
  22830. 15:06:43invalid structure. It's probably just
  22831. 15:06:44invalid structure. I'm going to
  22832. 15:06:46control-z all this because I don't want
  22833. 15:06:47this in here over here. And uh yeah,
  22834. 15:06:50we'll see what the new JSON is. Looking
  22835. 15:06:53at your screenshot. I see the issue. The
  22836. 15:06:54link to node andv2 has a simpler
  22837. 15:06:56structure when initially provided may
  22838. 15:06:58create a workflow based around it. So
  22839. 15:07:00now it's building this out and uh yeah
  22840. 15:07:02we have this over here. So let's see if
  22841. 15:07:05this works or not. We're going to go
  22842. 15:07:06over here and paste that in and we can
  22843. 15:07:11go back. So we'll say import from file.
  22844. 15:07:15We'll import in this 3D image again.
  22845. 15:07:18Obviously it did not work. So this use
  22846. 15:07:20case does not work and it's unfortunate.
  22847. 15:07:23So, I'm going to go over here and say
  22848. 15:07:25this does not work.
  22849. 15:07:28This didn't work.
  22850. 15:07:32Can you please
  22851. 15:07:35give me an outline
  22852. 15:07:38of what nodes
  22853. 15:07:40to use and when? So, this is another
  22854. 15:07:43thing that you could utilize LLMs for.
  22855. 15:07:45Obviously, like I don't like relying on
  22856. 15:07:49a large language model or the a workflow
  22857. 15:07:52builder to build out my workflows from
  22858. 15:07:53scratch. However, I think using LM to
  22859. 15:07:56give you ideas on like what nodes to use
  22860. 15:07:58and when is okay. So, I'm just going to
  22861. 15:08:01say this didn't work. Can you please
  22862. 15:08:02give me an outline of what nodes to use
  22863. 15:08:05and where at?
  22864. 15:08:09And what it'll do is think about this
  22865. 15:08:12and it'll give me some ideas. So, let's
  22866. 15:08:14see what the ideas are like on the side
  22867. 15:08:17of it. It says, "Absolutely. Let me give
  22868. 15:08:19you a clear step-by-step outline.
  22869. 15:08:21Workflow outline YouTube LinkedIn.
  22870. 15:08:22Number one is a manual trigger. Start
  22871. 15:08:24the workflow. Add a field." So, I don't
  22872. 15:08:26love the manual trigger. I think there's
  22873. 15:08:28probably easier ways, but that's fine.
  22874. 15:08:30Then we have a code node. Extract video
  22875. 15:08:32ID from YouTube URL and it takes the
  22876. 15:08:34video ID. Yep, I've I've done that
  22877. 15:08:36before, so that's good. HTTP request get
  22878. 15:08:39YouTube video details from YouTube data
  22879. 15:08:40API. Okay, that's good there. Again, I
  22880. 15:08:43don't know if this is actually working
  22881. 15:08:45or not and maybe we want to test this
  22882. 15:08:46out. Uh code node format the date or
  22883. 15:08:49data from OpenAI extracts title,
  22884. 15:08:51description, views, likes from YouTube
  22885. 15:08:53response. So we have that over there.
  22886. 15:08:56This obviously has an issue over here.
  22887. 15:08:59So it says five open AAI
  22888. 15:09:02and then it says create a LinkedIn post
  22889. 15:09:04make it engaging. So just an issue with
  22890. 15:09:06Claude. Step six is LinkedIn. So I don't
  22891. 15:09:09think LinkedIn has a note. I'm not too
  22892. 15:09:11sure. Let's go over here and say
  22893. 15:09:12LinkedIn. It does have a node. I just
  22894. 15:09:15haven't used it. And there's a create a
  22895. 15:09:16post which is cool. And it says manual
  22896. 15:09:19over here. Start line makes sense. Which
  22897. 15:09:21nodes are you getting stuck on? So
  22898. 15:09:23obviously as you're building this out,
  22899. 15:09:24you can keep sending questions back and
  22900. 15:09:26forth. I think I showed you guys this in
  22901. 15:09:28the debugging section where you have an
  22902. 15:09:30issue, you can paste it over here and it
  22903. 15:09:32can help you solve it. Um, but yeah, I
  22904. 15:09:34kind of like using the outlines just to
  22905. 15:09:35get into a new chat as well. You can
  22906. 15:09:37also add in connectors and stuff like
  22907. 15:09:39that.
  22908. 15:09:40We can say add connectors and I believe
  22909. 15:09:42N also is in over here. So uh we have N
  22910. 15:09:46access and run your workflows and we'll
  22911. 15:09:48cover that here in a second for MCP. I
  22912. 15:09:50want to say there was like a I thought
  22913. 15:09:52there was documentation in over here. I
  22914. 15:09:54could be wrong though. Um either way
  22915. 15:09:56that is one option over here just to
  22916. 15:10:00kind of show you like yeah you can use
  22917. 15:10:02large language models. They're probably
  22918. 15:10:04not going to be the most accurate to
  22919. 15:10:05build out a workflow as solve those
  22920. 15:10:07errors. I would just recommend them to
  22921. 15:10:09say, "Hey, what nodes do you
  22922. 15:10:11specifically want to use?" And I think
  22923. 15:10:13it's helpful over there. The last thing
  22924. 15:10:15I want to do is finding and vetting
  22925. 15:10:17community nodes because as I showed you,
  22926. 15:10:20like not everything is on here and
  22927. 15:10:21really for the community node section,
  22928. 15:10:23this is going to be more for self-hosted
  22929. 15:10:25rather than cloud. Obviously, cloud is
  22930. 15:10:27getting more community nodes in. Um, but
  22931. 15:10:29this part of the tutorial is kind of
  22932. 15:10:30just focused on uh self-hosted. So the
  22933. 15:10:33benefit of self-hosted is you have
  22934. 15:10:35options for the community nodes. So I'm
  22935. 15:10:38just going to search over here n
  22936. 15:10:40community node list
  22937. 15:10:43and I believe there's different things
  22938. 15:10:44over here. So like 100 community nodes
  22939. 15:10:46sorted. I don't know if this is up to
  22940. 15:10:49date or not and I don't know how many of
  22941. 15:10:51these are directly in cloud versus else.
  22942. 15:10:55So these are crawled when was this last
  22943. 15:10:57crawled? 2025. So you can see total
  22944. 15:10:59nodes found like over essentially a year
  22945. 15:11:025xed new nodes total this is pretty cool
  22946. 15:11:0618 nodes per day and you can see there's
  22947. 15:11:08different things around over here
  22948. 15:11:10provides a hub focused on WhatsApp
  22949. 15:11:12provides a channel hub WhatsApp so you
  22950. 15:11:15have all these different nodes over here
  22951. 15:11:16GitHub awesome nan and you can just go
  22952. 15:11:20through each of these see when they're
  22953. 15:11:22last updated what the description is and
  22954. 15:11:24there might be things over here that
  22955. 15:11:26just save you a lot of time. And
  22956. 15:11:29obviously, just keep checking these out.
  22957. 15:11:31Data processing, validation, utilities
  22958. 15:11:34because some of these you're not going
  22959. 15:11:36to have to specifically build a HTTP
  22960. 15:11:38request. Again, this focuses on the
  22961. 15:11:40self-hosted side of things. I would
  22962. 15:11:42highly recommend you take a look at the
  22963. 15:11:43community notes, see if what you need is
  22964. 15:11:45in over here, and uh save yourself some
  22965. 15:11:48time. All right, so just to kind of
  22966. 15:11:51recap what we covered today, I showed
  22967. 15:11:53you essentially templates where you go
  22968. 15:11:55to the template library. uh you can grab
  22969. 15:11:58the JSON or add it directly into your
  22970. 15:12:00workflow. We also talked about the
  22971. 15:12:02specific builder. There is ways that you
  22972. 15:12:04could use your large language model to
  22973. 15:12:06get more accurate builds. Obviously,
  22974. 15:12:08this one I showed you today completely
  22975. 15:12:11failed, but that's okay. Um you can go
  22976. 15:12:13in over here as well. I I closed it and
  22977. 15:12:15just ask for, hey, what nodes should I
  22978. 15:12:18use for this workflow? I think that
  22979. 15:12:19works a little bit better. I've used
  22980. 15:12:21that in the past for just some idea
  22981. 15:12:23planning and I think LLMs are really
  22982. 15:12:26good also at helping you debug as well
  22983. 15:12:28as like taking a look at some settings
  22984. 15:12:30that you might want to utilize. But
  22985. 15:12:32building out a work workflow from
  22986. 15:12:34scratch probably use the workflow
  22987. 15:12:35builder here in N. Again, not to
  22988. 15:12:37discredit the LMS. I think there is
  22989. 15:12:39other ways and I've seen some other
  22990. 15:12:41YouTube videos. I haven't watched them
  22991. 15:12:42full in depth, but uh that's kind of my
  22992. 15:12:44approach on there. So that's awesome.
  22993. 15:12:47The next section we're going to be
  22994. 15:12:48covering security and compliance. So,
  22995. 15:12:51this one's a little bit more of a fun
  22996. 15:12:52one. The next one's going to be a little
  22997. 15:12:54bit more technical and we'll catch you
  22998. 15:12:57in that video. So, I know security and
  22999. 15:13:00compliance can be a boring side of
  23000. 15:13:03either coding or AI automations, but in
  23001. 15:13:06the real world, this is something that a
  23002. 15:13:09lot of companies will require you to do,
  23003. 15:13:11especially if you're going to be dealing
  23004. 15:13:13with some sort of sensitive information.
  23005. 15:13:16So, in this section, we're going to be
  23006. 15:13:17covering that. Um, some of the stuff
  23007. 15:13:19we're going to be talking about has been
  23008. 15:13:21repeated a little bit earlier on in the
  23009. 15:13:23course. There's also going to be some
  23010. 15:13:24new material as well. So, with that out
  23011. 15:13:27of the way, let's take a look at the
  23012. 15:13:29section. All right. So, the first part
  23013. 15:13:32of this, we're going to do a uh brand
  23014. 15:13:35new node, which we haven't really
  23015. 15:13:36covered yet, minus a small mention of
  23016. 15:13:39it, and this is guardrails. So
  23017. 15:13:42guardrails are amazing because we have
  23018. 15:13:45different options. We can check text for
  23019. 15:13:47any sort of violation and then we can
  23020. 15:13:50also sanitize the text. So I'm going to
  23021. 15:13:53grab both of these nodes and we're going
  23022. 15:13:55to explain what the differences are. So
  23023. 15:13:58we're going to go back to guardrails
  23024. 15:14:00and sanitize text. Okay. So let me
  23025. 15:14:03explain what goes on for these. So the
  23026. 15:14:06first part of it, it says check text for
  23027. 15:14:09violations. And you'll see that there is
  23028. 15:14:11two paths. So essentially, if your text
  23029. 15:14:14has something that you do not want to be
  23030. 15:14:17sent into an AI agent, you would want to
  23031. 15:14:20use something like this. If it passes,
  23032. 15:14:22it goes straight into your AI agent. So
  23033. 15:14:24you could say you have an AI agent over
  23034. 15:14:26here. And uh ideally, we pass that in.
  23035. 15:14:30However, if it fails, right, and some
  23036. 15:14:34will fail, you might want to do
  23037. 15:14:35something like Slack and then send a
  23038. 15:14:38message to a specific person in it. Uh,
  23039. 15:14:42so we can go over here and send a
  23040. 15:14:44message or you can send an email and you
  23041. 15:14:47can log it as well. So, you would want
  23042. 15:14:49to put like Google Sheets and log this
  23043. 15:14:52or um you can use a data table here in
  23044. 15:14:54ending N. And I'll go over here and
  23045. 15:14:57append row and sheet. So ideally,
  23046. 15:15:01if there's no issues with your text, it
  23047. 15:15:03goes straight in your agent. Otherwise,
  23048. 15:15:06you alert someone again. It could be
  23049. 15:15:08Gmail, it could be Slack, it could be
  23050. 15:15:10Discord, whatever it is, and you log
  23051. 15:15:13that information. And what are those
  23052. 15:15:15violations? Well, let's take a look at
  23053. 15:15:16the node. So, what you have over here is
  23054. 15:15:19check text for violations. You put in
  23055. 15:15:21some text and then you add in a guard
  23056. 15:15:24room. So, first is keywords. So if
  23057. 15:15:27there's a specific keyword that you do
  23058. 15:15:29not want mentioned in your text, that
  23059. 15:15:32could be a guardrail.
  23060. 15:15:34Have jailbreak. So essentially what a
  23061. 15:15:36jailbreak is are people trying to go
  23062. 15:15:40around violations and you can customize
  23063. 15:15:43prompts over here. So this is like
  23064. 15:15:44jailbreaking a prompt and you hear about
  23065. 15:15:47jailbreaking prompts on the news
  23066. 15:15:49occasionally. So jailbreak is any
  23067. 15:15:51attempt to deliberately attempt to
  23068. 15:15:52circumvent, deceive or manipulate the AI
  23069. 15:15:54safety, ethical or policy constraints.
  23070. 15:15:56So that is jailbreaking. And you can
  23071. 15:15:59change the threshold. You can increase
  23072. 15:16:01this higher or you can decrease this.
  23073. 15:16:03And it says input scoring less than this
  23074. 15:16:04will be treated as violations. So that
  23075. 15:16:07is jailbreak. Let me close those out.
  23076. 15:16:09Next you have NSFW. Uh and you can
  23077. 15:16:12obviously change that threshold as well.
  23078. 15:16:15No need to talk about that. Not safe for
  23079. 15:16:17work. Then you have something that's
  23080. 15:16:19PII. So this is personal data for people
  23081. 15:16:24and you can choose selected entities. So
  23082. 15:16:26you can see if there's like a credit
  23083. 15:16:27card, crypto, uh, email address, IBIN
  23084. 15:16:30code, IP address, location and like
  23085. 15:16:33working from the fintech space, PII like
  23086. 15:16:36you we we get in trouble if we send PII
  23087. 15:16:39information into a large language model.
  23088. 15:16:41In fact, it's part of our AI policy. So
  23089. 15:16:43we have to be very careful on what data
  23090. 15:16:46that you send in. And something like
  23091. 15:16:47this would be great to use at least at
  23092. 15:16:50my personal workspace. All right. So
  23093. 15:16:53after PII you have secret keys. So this
  23094. 15:16:55is like if you send an API key like you
  23095. 15:16:58don't want to leak your keys. So another
  23096. 15:17:00thing that and in the corporate world
  23097. 15:17:02super important not to leak your keys
  23098. 15:17:04because you'll have your CTO or your IT
  23099. 15:17:07department really mad at you. Uh topical
  23100. 15:17:09alignment. So, this essentially lets you
  23101. 15:17:11know like, hey, we're only expecting uh
  23102. 15:17:14prompts that have this information. If
  23103. 15:17:16it's um something way out of left field,
  23104. 15:17:19we should not send this forward. And
  23105. 15:17:20again, there's a threshold over here
  23106. 15:17:22that we can start tweaking with. And I
  23107. 15:17:24would test this out. And you know, the
  23108. 15:17:27clear example, and I've talked about
  23109. 15:17:28this also in the guards video, is if you
  23110. 15:17:31go to a Gentic Arena, and I think it was
  23111. 15:17:33like tacos, tacos, tacos. Uh this would
  23112. 15:17:35have stopped that from happening. Uh
  23113. 15:17:38going to other things as well. Over here
  23114. 15:17:41we have URLs. So you could block all
  23115. 15:17:43URLs except. So imagine you're having
  23116. 15:17:45issues with the website and you just
  23117. 15:17:47want people to post like specific page
  23118. 15:17:49on the site or something like that. So
  23119. 15:17:51you would want to block all URLs except
  23120. 15:17:54uh then we have custom side and regx. So
  23121. 15:17:57you can set up custom rules as
  23122. 15:17:58necessary. So again, if it fails a rule,
  23123. 15:18:01it goes down over here. You should log
  23124. 15:18:02why it failed. you should send a message
  23125. 15:18:04to someone and then you have the AI
  23126. 15:18:06agent if it specifically passes. The
  23127. 15:18:08other side of it is sanitizing. So this
  23128. 15:18:11will actually remove specific text. So
  23129. 15:18:14you can see we can remove PII data. So
  23130. 15:18:16going back over here like this could be
  23131. 15:18:18either a guardrail check for violations
  23132. 15:18:21or we just remove that information. So
  23133. 15:18:23imagine if someone's just having issues
  23134. 15:18:26with their credit card. Uh if you're a
  23135. 15:18:28company like Visa, if someone uh sends
  23136. 15:18:31in their credit card number, which they
  23137. 15:18:33shouldn't just paste their credit card
  23138. 15:18:34number, but um regardless if they paste
  23139. 15:18:37their credit card number into a form, we
  23140. 15:18:38sanitize that text so that way it
  23141. 15:18:40doesn't get sent into our large language
  23142. 15:18:42model. Same with an API key. Imagine you
  23143. 15:18:44have some type of SAS product and you
  23144. 15:18:46offer an API and someone just paste in
  23145. 15:18:48their API key and say, "Hey, I'm having
  23146. 15:18:49an issue." Maybe you want to uh sanitize
  23147. 15:18:51a text and remove it. So you can see
  23148. 15:18:53that is an option over there. You have
  23149. 15:18:55other URLs and custom regx so you can
  23150. 15:18:57change things as necessary. So that is
  23151. 15:19:02guardrails. Super important note. I'm
  23152. 15:19:03really glad that N added that in and uh
  23153. 15:19:06that is one of the first parts of
  23154. 15:19:08security and compliance. Another one
  23155. 15:19:10that we've already talked about are
  23156. 15:19:12different user roles. So specifically in
  23157. 15:19:15chat hub and we can go back to chat hub
  23158. 15:19:17settings over here and go into chat as
  23159. 15:19:21well as users. So if you don't need a
  23160. 15:19:24user to have access to everything, you
  23161. 15:19:26could just go over here and invite a
  23162. 15:19:28user and you give them a role of a
  23163. 15:19:30specific chat user. Not everyone needs
  23164. 15:19:32to be a member or a specific admin.
  23165. 15:19:35Admin has permissions to everything.
  23166. 15:19:36Member has permissions to things that
  23167. 15:19:38you share. Chat user only has access to
  23168. 15:19:40ChatHub. So if you don't want them if
  23169. 15:19:42you don't want a user to have access to
  23170. 15:19:44your workflows, but still to be able to
  23171. 15:19:46use them, you can use a chat user. And
  23172. 15:19:49think about this real world scenario.
  23173. 15:19:51When you're working with databases, you
  23174. 15:19:52have people that have write access and
  23175. 15:19:54you have people that have read access.
  23176. 15:19:56Obviously, there are certain people like
  23177. 15:19:57the data engineers that should have
  23178. 15:19:58write access. Some data scientists
  23179. 15:20:00should have right access. They're
  23180. 15:20:02building out some sort of table. But
  23181. 15:20:04someone that just needs to query the
  23182. 15:20:05data and should not be manipulating the
  23183. 15:20:07data should only have read access. So
  23184. 15:20:09this is one way that we could control
  23185. 15:20:10that. In addition with chat, you can
  23186. 15:20:13specify what models are available. So
  23187. 15:20:15you can go in over here and this is
  23188. 15:20:17another form of security. Um you might
  23189. 15:20:20say, for example, hey, I only want
  23190. 15:20:22US-based models for this company. It
  23191. 15:20:24might be a rule that your security team
  23192. 15:20:26set up. So you inside of chat, you just
  23193. 15:20:28only available the US-based companies.
  23194. 15:20:31So you can't use something like a
  23195. 15:20:32deepseek. So that is chat. Next, we're
  23196. 15:20:36going to talk about web hooks. And we've
  23197. 15:20:38already covered web hook security, but
  23198. 15:20:40inside web hooks, if you have a live web
  23199. 15:20:43hook, you need to set up some sort of
  23200. 15:20:44authentication. So this way, someone has
  23201. 15:20:47some sort of API key or username and
  23202. 15:20:50password to access your web hook. It is
  23203. 15:20:52super important because you wear web
  23204. 15:20:54hooks when they go into a production URL
  23205. 15:20:56and you make your workflow live, anyone
  23206. 15:20:59can access those. So again on the
  23207. 15:21:01security side we've already covered this
  23208. 15:21:02but make sure you either set up basic
  23209. 15:21:04off header off or JWT O and build out
  23210. 15:21:07those credentials over here. Uh again
  23211. 15:21:10very important and you can also build
  23212. 15:21:11out other ways to block people after
  23213. 15:21:14they get in through this web hook. So
  23214. 15:21:17that is web hook side of things.
  23215. 15:21:18Credential management and going back
  23216. 15:21:21into NE and we can go back in over here
  23217. 15:21:24and go to our homepage. You can see
  23218. 15:21:26there's credentials over here. So on the
  23219. 15:21:29credential management side of things,
  23220. 15:21:30what you should do is first be clear
  23221. 15:21:33with what the credentials are. I did not
  23222. 15:21:36do this initially, but let's say for
  23223. 15:21:38example, you have multiple credentials
  23224. 15:21:40for a company, you have credentials for
  23225. 15:21:43a marketing department, you have
  23226. 15:21:44credentials for engineering department
  23227. 15:21:46and IT department. World scenario,
  23228. 15:21:48people are on different billing. Uh a
  23229. 15:21:50company when it gets larger isn't going
  23230. 15:21:52to just have one credit card for
  23231. 15:21:53everything. Departments have their
  23232. 15:21:55budgets. So if you're working with
  23233. 15:21:56multiple departments, make sure you
  23234. 15:21:58label these clearly. For example, uh
  23235. 15:22:00what you might have is a Google Drive
  23236. 15:22:02account for marketing. So you might say
  23237. 15:22:04Google Drive marketing or Google Drive
  23238. 15:22:06engineering and be super explicit. You
  23239. 15:22:09can also share these. So you can go over
  23240. 15:22:11here and it says change owner and you
  23241. 15:22:14can change the owner specifically on
  23242. 15:22:15here. You can go over here and give
  23243. 15:22:18access to people as well. So uh that is
  23244. 15:22:21the credential side of things. Uh next
  23245. 15:22:24we're going to talk about version
  23246. 15:22:26controls. So in nan when we publish so
  23247. 15:22:29we'll save and we publish and obviously
  23248. 15:22:31like these need no these have some
  23249. 15:22:33issues. So maybe I don't want to set
  23250. 15:22:36that up specifically right now. Let me
  23251. 15:22:39uh turn these off
  23252. 15:22:42so that way I don't have any issues. I'm
  23253. 15:22:45just going to add in a chat model over
  23254. 15:22:46here. Doesn't really matter too much. I
  23255. 15:22:49just want to be able to publish this.
  23256. 15:22:51All right. Save. Is this going to let me
  23257. 15:22:54publish it? Oh, I need a trigger.
  23258. 15:22:59All right, let's imagine this is our
  23259. 15:23:00workflow
  23260. 15:23:02has no trigger nodes that require
  23261. 15:23:04publishing. Oh, you know what I need?
  23262. 15:23:06Let's put this web hook over here and
  23263. 15:23:08activate it.
  23264. 15:23:11Well, let's not use a web hook. We're
  23265. 15:23:12going to use a schedule trigger.
  23266. 15:23:16This should be fine. [snorts] Once I go
  23267. 15:23:19to the schedule trigger and push this
  23268. 15:23:21over here, we're going to be able to
  23269. 15:23:22publish this. So, another thing that you
  23270. 15:23:24can have is version control. So, you
  23271. 15:23:26want to specify your version of
  23272. 15:23:29something. So, let's say I'm going to
  23273. 15:23:31publish this. I'm going to say section
  23274. 15:23:3225
  23275. 15:23:34version one or like you can put like V1
  23276. 15:23:37and I say added schedule trigger. Like
  23277. 15:23:40you need to be explicit on what is
  23278. 15:23:42changing in your workflow. You need to
  23279. 15:23:44put your notes over here as well. This
  23280. 15:23:46is very similar to how GitHub works. So,
  23281. 15:23:49ideally what happens is someone's going
  23282. 15:23:52to take a look at the different versions
  23283. 15:23:53and see if things are changing or not.
  23284. 15:23:56Um, in terms of like compliance and
  23285. 15:23:58things like that, it is super important
  23286. 15:23:59to have your different versioning and
  23287. 15:24:01what is changing as well because
  23288. 15:24:02regulators are going to ask for that.
  23289. 15:24:05So, one way we can do versioning is
  23290. 15:24:07directly here in any now with publish.
  23291. 15:24:10So, this is pretty awesome on this side
  23292. 15:24:11of things and you can see there's a
  23293. 15:24:13whole production checklist. I'm not
  23294. 15:24:15going to go through that. However, um
  23295. 15:24:18you can go through that as well if you
  23296. 15:24:19want to. And you can see section 25V1
  23297. 15:24:22published just now. And I believe you
  23298. 15:24:24can also see the version history as
  23299. 15:24:26well. So if I go to settings,
  23300. 15:24:29I want to say there's an option for that
  23301. 15:24:31too to see a version history. Either
  23302. 15:24:33way, it is super important to have that
  23303. 15:24:35as a a backup as well, just in case like
  23304. 15:24:38there's something wrong with your NAN
  23305. 15:24:39account. I would probably recommend that
  23306. 15:24:42you set up GitHub as well and do the
  23307. 15:24:45same exact thing. I would just download
  23308. 15:24:46your workflow as JSON. So, if you go
  23309. 15:24:48over here to the three dots, you can go
  23310. 15:24:50and just download this and you'll see it
  23311. 15:24:52security and compliance over here. And I
  23312. 15:24:54would just upload these into your GitHub
  23313. 15:24:56account. Do the same exact thing. Keep
  23314. 15:24:57your versions uh update your change log
  23315. 15:25:00within GitHub. Just really, really
  23316. 15:25:02critical that you have your versioning
  23317. 15:25:04history. especially if something just
  23318. 15:25:06completely breaks in your workflow. You
  23319. 15:25:07can go back to a previous version and
  23320. 15:25:09then work on that specific or particular
  23321. 15:25:12bug. So that is versioning. It's
  23322. 15:25:14obviously built in directly into nan. I
  23323. 15:25:16would highly highly suggest that you
  23324. 15:25:18also back up your very important
  23325. 15:25:21workflows within GitHub. All right. Next
  23326. 15:25:25concept I wanted to cover really fast I
  23327. 15:25:28want to say is logging. And I actually
  23328. 15:25:30have some nodes associated with that. So
  23329. 15:25:33we're going to jump into that here in a
  23330. 15:25:35second. All right, I am back. So another
  23331. 15:25:37thing to mention is just like logging
  23332. 15:25:39what is going on. I already showed you
  23333. 15:25:41how we could do this in evaluations, but
  23334. 15:25:43you can also build out a JavaScript node
  23335. 15:25:46over here and get other additional
  23336. 15:25:48information that you might find helpful
  23337. 15:25:50for just logging what is going on.
  23338. 15:25:52Logging is a concept that comes from
  23339. 15:25:54software engineering and it's important
  23340. 15:25:56to do. So what I have over here is the
  23341. 15:25:58time stamp, the workflow ID, workflow
  23342. 15:26:00name, execution ID, execution mode, uh
  23343. 15:26:02the user that's going through this, the
  23344. 15:26:04instance ID, and other pieces of
  23345. 15:26:06information that might be helpful. So if
  23346. 15:26:08I execute this step, you'll see that we
  23347. 15:26:11essentially create a table. So it says
  23348. 15:26:13timestamp, I'm recording this here on
  23349. 15:26:15the first, the workflow ID associated
  23350. 15:26:17with it, the name, execution, execution
  23351. 15:26:19mode. I'm obviously in test mode right
  23352. 15:26:21now, so you can log whether you're in
  23353. 15:26:22test mode or you're in production. How
  23354. 15:26:24many items are in getting inputed?
  23355. 15:26:26Obviously, I have no items, so that's
  23356. 15:26:27why we have one over here. The workflow
  23357. 15:26:29is not active, so it's on false. The
  23358. 15:26:31time zone over here, which I'm not sure
  23359. 15:26:32why we're in UTC, but that's okay. And
  23360. 15:26:34then we have a log ID. So, highly
  23361. 15:26:37recommend that you set up logging.
  23362. 15:26:38Obviously, you can just copy what I have
  23363. 15:26:40over here and just paste this into your
  23364. 15:26:42workflow. And then what you can do is
  23365. 15:26:44have this added to Sheets after. We've
  23366. 15:26:46already covered Google Sheets so many
  23367. 15:26:48times, so I'm not going to spend the
  23368. 15:26:49time and actually add it in, but just go
  23369. 15:26:51over here, append. I wouldn't say append
  23370. 15:26:54or update to just append it when this
  23371. 15:26:55runs. Okay, cool. We've logged it and
  23372. 15:26:58this is populated in Google Sheets. Uh
  23373. 15:27:00you can also log it in other locations
  23374. 15:27:02instead of sheets. I just mentioned
  23375. 15:27:04this. The proper way would probably be
  23376. 15:27:05to log it within a database. So I would
  23377. 15:27:08recommend that you have logging tables
  23378. 15:27:10for again critical workflows. Log that
  23379. 15:27:13in your database. If you don't have a
  23380. 15:27:14database set up, you can use sheets, you
  23381. 15:27:16could use air table, you could use the
  23382. 15:27:18native data tables here in N. Logging is
  23383. 15:27:21a really important thing when it comes
  23384. 15:27:22to security and compliance because
  23385. 15:27:25people need to see what is particularly
  23386. 15:27:27going on. Um, okay. So, we've talked
  23387. 15:27:29about users, we've talked about PII
  23388. 15:27:32handling, we've talked about web hook
  23389. 15:27:33security,
  23390. 15:27:35uh, version control. Obviously, you have
  23391. 15:27:37this over here directly for um, and the
  23392. 15:27:41versioning as well as um, in GitHub.
  23393. 15:27:44Again, you can just go over here and say
  23394. 15:27:46like
  23395. 15:27:48section 25
  23396. 15:27:50So I've version two
  23397. 15:27:53added logging code node. So it's another
  23398. 15:27:57option over there and boom. So now you
  23399. 15:28:00can see section 25 just published now.
  23400. 15:28:02Oh, you can go here to workflow history
  23401. 15:28:04and you can take a look at different
  23402. 15:28:06versions too. So you can see I have
  23403. 15:28:08section 25 version one. I knew I I was
  23404. 15:28:10going to show it to you guys and I
  23405. 15:28:11apologize for going the wrong area, but
  23406. 15:28:13you can see this is prior to me saving
  23407. 15:28:15this. Then you have version one and then
  23408. 15:28:17over here version two. It says version
  23409. 15:28:19history is limited to one days. Upgrade
  23410. 15:28:21plan to activate full history, which is
  23411. 15:28:23kind of sucky. So, make sure to put this
  23412. 15:28:25up in GitHub since it's only one day,
  23413. 15:28:28but you can see we have this published
  23414. 15:28:29on here for version two. Uh, so my
  23415. 15:28:32GitHub thing, definitely do that,
  23416. 15:28:34especially if you're on a lower tier
  23417. 15:28:35account like I am. All right, naming
  23418. 15:28:37conventions. It's also important to just
  23419. 15:28:39name your nodes on that side. We've
  23420. 15:28:42talked about naming nodes. Just be
  23421. 15:28:43explicit.
  23422. 15:28:45um not really security and compliance
  23423. 15:28:46side of things but obviously if you
  23424. 15:28:49can't read what's going on in a workflow
  23425. 15:28:51uh that's important it's more this
  23426. 15:28:53naming convention is more focused on the
  23427. 15:28:55credentials itself building out
  23428. 15:28:57documentation is another part of
  23429. 15:28:59security and compliance so on the
  23430. 15:29:01documentation side what do you need for
  23431. 15:29:03documentation well what I would
  23432. 15:29:05recommend documentation is onementation
  23433. 15:29:08one add in add in sticky notes
  23434. 15:29:13like this like this. I would also
  23435. 15:29:16mention that you need to have like a
  23436. 15:29:17Google doc, notion
  23437. 15:29:20or whatever type of document you need to
  23438. 15:29:23explain what is going on in the
  23439. 15:29:24workflow. Regulators sometimes will ask
  23440. 15:29:27for that type of stuff. Again, depends
  23441. 15:29:28on your industry if you have regulation
  23442. 15:29:30or not. Um, in addition, I think it's
  23443. 15:29:33super easy just to add in a Loom video,
  23444. 15:29:35Loom or YouTube video, just walking
  23445. 15:29:37through what is going on. Uh, assuming
  23446. 15:29:40they have like 80 90% of it done.
  23447. 15:29:42Obviously you can update it if you have
  23448. 15:29:43some major changes but that's the type
  23449. 15:29:45of documentation I would recommend and
  23450. 15:29:48uh really sticky notes is directly in
  23451. 15:29:50any end the Google doc kind of just
  23452. 15:29:52explains at a high level you have
  23453. 15:29:53screenshots and kind of explains some of
  23454. 15:29:55the additional logic outside of here and
  23455. 15:29:58then you have aloom or YouTube so that's
  23456. 15:29:59external documentation and I should just
  23457. 15:30:02say um well you have the internal with
  23458. 15:30:04the sticky notes and then you have
  23459. 15:30:06external for these last two all right
  23460. 15:30:10can also let's take a look at anything
  23461. 15:30:12else.
  23462. 15:30:14I think we're pretty good over here on
  23463. 15:30:16that side of things. One other thing to
  23464. 15:30:18mention, I I did talk about GitHub, but
  23465. 15:30:20you could also store these
  23466. 15:30:23workflows in Google Drive. So, you could
  23467. 15:30:25just save the JSON automatically and
  23468. 15:30:27populate this to Google Drive and you
  23469. 15:30:29can do like a daily backup. So, maybe
  23470. 15:30:31you want to have a daily backup on
  23471. 15:30:33Google Drive. So like daily backup
  23472. 15:30:37Google Drive or just a oneoff or one off
  23473. 15:30:41for this. So again you can use Google
  23474. 15:30:44Drive or GitHub. And I think that is
  23475. 15:30:46essentially it for security and
  23476. 15:30:49compliance. Obviously like I don't know
  23477. 15:30:52everything about security and and
  23478. 15:30:53compliance but because obviously I don't
  23479. 15:30:57do it for a living but just coming from
  23480. 15:31:00the payments industry this is some of
  23481. 15:31:02the things that we personally require to
  23482. 15:31:04build out workflows. So guardrails super
  23483. 15:31:07super important. Make sure naming
  23484. 15:31:08conventions correct. Make sure user
  23485. 15:31:10management is correct. If you want to
  23486. 15:31:12log your workflows like essentially just
  23487. 15:31:13copy what I have in this code node. make
  23488. 15:31:16sure that you have backups either in
  23489. 15:31:17Google Drive, GitHub, and then
  23490. 15:31:19versioning is important. Obviously on
  23491. 15:31:21here with my plan, versioning is only
  23492. 15:31:22limited to one day, which is really a
  23493. 15:31:24bummer. So I would recommend you just do
  23494. 15:31:26versioning on GitHub right now. I would
  23495. 15:31:28hope that at some point in the future,
  23496. 15:31:30and I don't know if any team will do it,
  23497. 15:31:32when you publish these and set up
  23498. 15:31:33versions, you could also just
  23499. 15:31:34automatically send this to GitHub. I
  23500. 15:31:36think that'd be a really, really cool
  23501. 15:31:37feature, but I just don't see them doing
  23502. 15:31:39that. And then lastly, documentation.
  23503. 15:31:41Put documentation internally into the
  23504. 15:31:43workflow. add documentation to like a
  23505. 15:31:45Google doc or notion page and add in a
  23506. 15:31:48loom or YouTube video just kind of
  23507. 15:31:50walking through things and that is going
  23508. 15:31:52to be our section on security and
  23509. 15:31:55compliance. All right, so next I believe
  23510. 15:31:57we are jumping into uh MCP and I will
  23511. 15:32:00see you there. So for section 26 we're
  23512. 15:32:03going to make this into a two-part
  23513. 15:32:06video. The first part is going to be
  23514. 15:32:07focusing on the instance level MCP. So
  23515. 15:32:10what this allows us to do is connect our
  23516. 15:32:13NAN workflows directly to third parties
  23517. 15:32:16that support the NAN MCP connection. So
  23518. 15:32:20recently Lovable has added this in as
  23519. 15:32:23well as Claude. So I'm going to be
  23520. 15:32:25showing you how we could do this in
  23521. 15:32:26cloud. We'll do Lovable a little bit
  23522. 15:32:28later when we talk about building out
  23523. 15:32:30interfaces. Uh the second part is just
  23524. 15:32:32going to be talking about MCP as a
  23525. 15:32:33technology in general and we'll also uh
  23526. 15:32:36go through a workflow and some of the
  23527. 15:32:37nodes associated with that. uh when we
  23528. 15:32:40jump into there. But the first part,
  23529. 15:32:41let's focus on the instance level and
  23530. 15:32:43get this connected directly into cloud
  23531. 15:32:46and we'll start there. Okay. So, I'm
  23532. 15:32:48going to show you a few things before we
  23533. 15:32:50actually uh build out a workflow. So,
  23534. 15:32:52the first thing is we need to add a
  23535. 15:32:54first step and there's only a few
  23536. 15:32:56different triggers that you can use
  23537. 15:32:58currently with MCP. So, the first one is
  23538. 15:33:01our chat trigger. So, that is one
  23539. 15:33:03option. The next is going to be a web
  23540. 15:33:06hook. So, we go to web hook like this.
  23541. 15:33:08That is another option we could use. We
  23542. 15:33:10could use a schedule, a schedule trigger
  23543. 15:33:14as well as a form trigger. So before
  23544. 15:33:17even deciding if you want to go NCP or
  23545. 15:33:20not with your workflow, you have to make
  23546. 15:33:22sure that your workflow starts with one
  23547. 15:33:24of these four triggers. Now, I'm just
  23548. 15:33:26going to use this chat trigger right now
  23549. 15:33:29just for some testing purposes. I don't
  23550. 15:33:30know if this will be the actual workflow
  23551. 15:33:32we utilize in this example, but let's
  23552. 15:33:35just assume we're having that. Okay,
  23553. 15:33:37next step. What we're going to do, I'm
  23554. 15:33:38just going to add in a very basic AI
  23555. 15:33:40agent because it's so common to have a
  23556. 15:33:42chat into an AI agent. And what we're
  23557. 15:33:44going to do is just add a chat model.
  23558. 15:33:45I'm going to add in Anthropic since it's
  23559. 15:33:47all the way here at the top. Very simple
  23560. 15:33:49workflow. So, I'm going to save this
  23561. 15:33:50workflow. The next step is you have to
  23562. 15:33:53have your workflow published to enable
  23563. 15:33:55MCP. So, I'm going to click publish over
  23564. 15:33:57here and we'll have our different
  23565. 15:34:00version name, whatever the case may be.
  23566. 15:34:02So, that's fine. We're going to publish
  23567. 15:34:04it. Got it. Okay, next. These two are
  23568. 15:34:07going to be in parallel. So, the first
  23569. 15:34:08thing what we want to do is make sure we
  23570. 15:34:10have our MCP settings correct. So, if
  23571. 15:34:13you go to this gear icon to the bottom
  23572. 15:34:15left and you choose instance level MCP,
  23573. 15:34:18make sure that your MCP is enabled. So,
  23574. 15:34:21I have two workflows right now that are
  23575. 15:34:23MCP. I'm just going to remove access
  23576. 15:34:25right now just for testing purposes and
  23577. 15:34:28we'll disable it. So, yours probably
  23578. 15:34:29looks like this and it says connect AI
  23579. 15:34:31assistance to your workflow. Enable MCP
  23580. 15:34:33access. So you can click that or just
  23581. 15:34:35turn this on over here. So now that this
  23582. 15:34:38is particularly enabled. So you should
  23583. 15:34:40be fine there. So your next step is to
  23584. 15:34:43go into these three dots over here and
  23585. 15:34:46then click into settings. And you'll see
  23586. 15:34:48I already have this available in MCP by
  23587. 15:34:51default. You'll have it turned off. Then
  23588. 15:34:52you turn this back on over here. So I'm
  23589. 15:34:54going to click save. And maybe lost
  23590. 15:34:58because someone else just updated this
  23591. 15:34:59workflow. All right. So, I'm just going
  23592. 15:35:01to refresh this really quick because I
  23593. 15:35:03accidentally updated it elsewhere. Not a
  23594. 15:35:06big deal. All right. So, three dots
  23595. 15:35:10settings and we're going to say this is
  23596. 15:35:12available in MCP. Cool. Now, the
  23597. 15:35:14workflow is saved and we are good to go.
  23598. 15:35:17If we go back to this instance level MCP
  23599. 15:35:19and I refresh it because I deleted these
  23600. 15:35:21other ones, you'll see we just have this
  23601. 15:35:24initial one out of the gate and this was
  23602. 15:35:26initial kind of description I was
  23603. 15:35:28thinking about for this workflow. You
  23604. 15:35:29might change it out, but by default,
  23605. 15:35:31you'll probably have an empty
  23606. 15:35:32description. Just go over here and click
  23607. 15:35:34edit description. Write your description
  23608. 15:35:36for the workflow because essentially
  23609. 15:35:38what you're going to be doing is
  23610. 15:35:39prompting uh and saying what workflow
  23611. 15:35:42you want to use for a specific use case.
  23612. 15:35:44And your description is really
  23613. 15:35:45important. You can think of this as like
  23614. 15:35:46a tool call when you're working with an
  23615. 15:35:48AI agent. I mentioned how the
  23616. 15:35:50descriptions are important. So, build
  23617. 15:35:51this out. Obviously, this is pretty
  23618. 15:35:53vague, but it'll be fine for our demo
  23619. 15:35:55example. If you want to remove access,
  23620. 15:35:58uh there's two different routes you
  23621. 15:35:59could go. You could remove access over
  23622. 15:36:01here or you could go back over here and
  23623. 15:36:03then uh remove access. So you just go
  23624. 15:36:06into the settings and available in MCP
  23625. 15:36:09that is turned off. Okay, pretty basic
  23626. 15:36:12on that side of things. And then now
  23627. 15:36:14what I'm going to do is show you really
  23628. 15:36:16quick how to set up everything on Claude
  23629. 15:36:19and uh then we'll build out our
  23630. 15:36:21workflow. To set this up directly in
  23631. 15:36:23Claude, what we're going to do first is
  23632. 15:36:25click this plus icon and then you'll see
  23633. 15:36:26over here it says add connectors. Then
  23634. 15:36:29what we're going to do is search
  23635. 15:36:30directly for N. Now it's a pretty
  23636. 15:36:32popular one. So I would assume it's
  23637. 15:36:34towards the top. If you don't see that
  23638. 15:36:36though, you can just go over here and
  23639. 15:36:38search and type in N. And you'll see INA
  23640. 15:36:42over here. It says access and run your
  23641. 15:36:44NEN workflows. So click plus and it says
  23642. 15:36:47get a URL from N. So you can click on
  23643. 15:36:50that right over here.
  23644. 15:36:53This will load up over here. My
  23645. 15:36:55internet's a little slow right now. It
  23646. 15:36:56might take a second. All right. So that
  23647. 15:36:58link over here goes accessing N MCP
  23648. 15:37:01server. There's a little bit more about
  23649. 15:37:03it. Over here it says instance level
  23650. 15:37:05MCP. Enable it which we already have
  23651. 15:37:07that enabled. So I showed you that a
  23652. 15:37:09little bit earlier. And then it says
  23653. 15:37:11list of workflows etc. on that side of
  23654. 15:37:13things. And uh over here a little bit
  23655. 15:37:17more information settings instance level
  23656. 15:37:19MCPS uh to get actual stuff over here it
  23657. 15:37:22says connected clients no ooth collected
  23658. 15:37:24clients that connect via oath will show
  23659. 15:37:26up here see connection instructions. So
  23660. 15:37:28this actually will give us our URL that
  23661. 15:37:30we need. I kind of wish it actually
  23662. 15:37:32brought us over here but that's okay.
  23663. 15:37:34We'll click copy and we will go back
  23664. 15:37:37into claude over here. We'll say paste
  23665. 15:37:40the server URL. So that is that URL. So
  23666. 15:37:43again to get to there I just went to
  23667. 15:37:44settings bottom right instance level MCP
  23668. 15:37:47and then you go to connected clients see
  23669. 15:37:49connection instructions and I'll give
  23670. 15:37:50you this over here. Then I just go back
  23671. 15:37:54over here. I click continue and it says
  23672. 15:37:56grant access to any complete the signin
  23673. 15:37:58steps and it brought me to this screen.
  23674. 15:38:01Cloud wants to access your nan instance.
  23675. 15:38:03Get a list of your workflows. Get
  23676. 15:38:04details for specific workflows. Execute
  23677. 15:38:06workflows on your behalf. We're going to
  23678. 15:38:08click allow. It says success. you will
  23679. 15:38:10be soon redirected back to the client.
  23680. 15:38:12And then we get brought back in over
  23681. 15:38:14here and then we have this icon over
  23682. 15:38:16here that says connected to an AI. All
  23683. 15:38:19right, so I'm testing this now. First, I
  23684. 15:38:22made one minor change. So in my
  23685. 15:38:23workflow, I deleted the other triggers.
  23686. 15:38:25I went to OpenAI chat model. I used GPT5
  23687. 15:38:28Mini and I'm using web search. We're
  23688. 15:38:30going to go the college football playoff
  23689. 15:38:31route. And you'll see I said use N
  23690. 15:38:34workflow section 26 to get University of
  23691. 15:38:36Miami college football score. It says
  23692. 15:38:38cloud wants you to search workflows from
  23693. 15:38:39any end query section 26. I'm going to
  23694. 15:38:41say allow once. Now it's going to search
  23695. 15:38:43for my workflows.
  23696. 15:38:46And uh we'll see. I found the workflow.
  23697. 15:38:48Let me get details to execute it.
  23698. 15:38:51Again, we'll just say
  23699. 15:38:53allow once. We should probably allow
  23700. 15:38:55always, but I'm just putting this allow
  23701. 15:38:57once just to show you what it looks like
  23702. 15:38:58on my screen. Next, I'll execute the
  23703. 15:39:01workflow to get University of Miami
  23704. 15:39:02college football scores.
  23705. 15:39:04And uh we're doing chat chat input. was
  23706. 15:39:07University of Miami College football
  23707. 15:39:09score and allow once and it's executing
  23708. 15:39:12my workflow right now. We'll take a look
  23709. 15:39:14at the executions here in a second.
  23710. 15:39:17Workflow is asking for clarification.
  23711. 15:39:18Let me specify that we want the
  23712. 15:39:19University Football and Hurricanes over
  23713. 15:39:22here. Yep, that's fine. One of the
  23714. 15:39:26things I noticed too when you use Open
  23715. 15:39:29AI with chat is it will always ask you
  23716. 15:39:32more clarifying questions. So, you can
  23717. 15:39:34prompt it and say not to ask so many
  23718. 15:39:36clarifying questions. I bet you it comes
  23719. 15:39:38back.
  23720. 15:39:41Yep, it's going to keep asking it. It's
  23721. 15:39:43because I wrote a bad prompt, but that's
  23722. 15:39:44okay. We'll say that's fine.
  23723. 15:39:48And I didn't even put memory on here, so
  23724. 15:39:50it's probably going to have some issues.
  23725. 15:39:53But you see, it's going back and forth
  23726. 15:39:54now with our MCP.
  23727. 15:39:57And uh
  23728. 15:40:00I swear if it comes back with another
  23729. 15:40:01question, I'm just going to stop it.
  23730. 15:40:03We're going to rerun it and I'm going to
  23731. 15:40:04be more specific.
  23732. 15:40:07All right, here we go. Look at that.
  23733. 15:40:09Great news. Here's the score.
  23734. 15:40:13And uh that was yesterday.
  23735. 15:40:22Check this out. So, great news. Here's
  23736. 15:40:23the University of Miami Cultural Ball
  23737. 15:40:25score from the N workflow. Miami
  23738. 15:40:26Hurricanes 24, Ohio State 14. Most
  23739. 15:40:29recent game, the workflow used web
  23740. 15:40:30search. And literally all I did is I
  23741. 15:40:32used a chat trigger over here. I used an
  23742. 15:40:35AI agent. I'd even add in additional
  23743. 15:40:37prompts which I would recommend if
  23744. 15:40:39you're building out something crazy that
  23745. 15:40:41you do that something crazy something
  23746. 15:40:43you push forward. And then you have open
  23747. 15:40:45AI use GPT5 mini and covered responses
  23748. 15:40:47that we did earlier. And all I did on
  23749. 15:40:49this side of things is use this workflow
  23750. 15:40:51to get upate information about cultural
  23751. 15:40:52publics. Again, I could prompt this,
  23752. 15:40:54write a wig better system message that I
  23753. 15:40:57put in a college and essentially I want
  23754. 15:40:59to get the latest college football score
  23755. 15:41:02based around it with this workflow and
  23756. 15:41:04have this do this correctly in Claude.
  23757. 15:41:07And I also changed the model for two
  23758. 15:41:09reasons. Number one, to show you I'm
  23759. 15:41:10running an OpenAI chat model in Claude
  23760. 15:41:13and also to use responses to get the
  23761. 15:41:16latest score. Obviously, you can add in
  23762. 15:41:18way more complicated things in over here
  23763. 15:41:20as well, but yeah, it's going to be
  23764. 15:41:22quite easy. We're actually going to
  23765. 15:41:24expand on this into the next section as
  23766. 15:41:26well when we cover into front ends. I
  23767. 15:41:29just quickly also wanted to show you um
  23768. 15:41:32there is an MCP tool available in any.
  23769. 15:41:35So, kind of MCPS are going the route of
  23770. 15:41:38like APIs for AI and we can go over here
  23771. 15:41:42and search for MCP. So MCP client tool
  23772. 15:41:45and you see what we have over here is a
  23773. 15:41:48specific endpoint and you only have HTTP
  23774. 15:41:51streamable right now. Unfortunately this
  23775. 15:41:53is quite limited on the cloud side of
  23776. 15:41:56things. When you go into self-hosted you
  23777. 15:41:58have a lot more options rather than HTTP
  23778. 15:42:02streamable but it'll give you a specific
  23779. 15:42:04endpoint and when you work with MCP
  23780. 15:42:07it'll give you a specific endpoint to
  23781. 15:42:09call to. It'll tell you the server
  23782. 15:42:11transport over here if there's any
  23783. 15:42:13authentication that is needed and then
  23784. 15:42:15you can specify every single tool that's
  23785. 15:42:18available in the MCP server selected
  23786. 15:42:20ones all or accept. So essentially what
  23787. 15:42:23MCP looks like on the NEN side of
  23788. 15:42:25things. Let me just show you. There's
  23789. 15:42:26like an MCP trigger and this is your MCP
  23790. 15:42:30client.
  23791. 15:42:32There's the MCP trigger.
  23792. 15:42:43And you'll notice over here we have
  23793. 15:42:45different tools. So when you're
  23794. 15:42:47connecting to a company's MCP server,
  23795. 15:42:50typically they'll have different tools
  23796. 15:42:51that you could use. In a case, let's
  23797. 15:42:53say, for example, we want to build one
  23798. 15:42:55directly in an AN. We can set up an MCP
  23799. 15:42:58server trigger to have multiple Gmail
  23800. 15:43:00tools.
  23801. 15:43:02So, Gmail has quite a bit of tools as we
  23802. 15:43:06saw and you can see if I go to my Gmail
  23803. 15:43:08account one can set tool descriptions
  23804. 15:43:12and then resource like let's say message
  23805. 15:43:14like we have all these over here label
  23806. 15:43:17we have all these over here draft so
  23807. 15:43:19each tool is like one specific action
  23808. 15:43:21that you could perform in Gmail and in
  23809. 15:43:24the real world let's say for example
  23810. 15:43:27fireall they have an MCP server so if I
  23811. 15:43:30go to fireall
  23812. 15:43:32All these tools are most likely
  23813. 15:43:34available in the MCP of Firecol. And
  23814. 15:43:37just to show you, I'm going to load this
  23815. 15:43:38up on another tab. Firecrawl
  23816. 15:43:41MCP.
  23817. 15:43:43All right.
  23818. 15:43:44So,
  23819. 15:43:46take a look at this. This is
  23820. 15:43:47documentation again. Firewall MCP
  23821. 15:43:49server. Use Firewall's API through MCP.
  23822. 15:43:52So, MCP server inte implements
  23823. 15:43:54integrates firewall for web scraping
  23824. 15:43:56capabilities. RCP server is open source.
  23825. 15:43:58So installation you can either use a
  23826. 15:44:01remote hosted URL server will look like
  23827. 15:44:03or you get your API key from over here
  23828. 15:44:06remote hosted URL. So they have a URL on
  23829. 15:44:08this side of it as well that you would
  23830. 15:44:10want to set up. And essentially what you
  23831. 15:44:14could do and I'm going to cover this
  23832. 15:44:15actually in another video for Firewall
  23833. 15:44:18MCP
  23834. 15:44:19but um going into this MCP client this
  23835. 15:44:22works best on um self-hosted but you
  23836. 15:44:25would set this up and go through it.
  23837. 15:44:27Actually, I think I did fire call MCP
  23838. 15:44:29when we were talking about it in our
  23839. 15:44:31self-hosted video here on YouTube for
  23840. 15:44:33MCP, but a little bit outside the scope
  23841. 15:44:35on this one. Just wanted to show you MCP
  23842. 15:44:37instance level. You can use these
  23843. 15:44:39workflows and connect to it outside of
  23844. 15:44:43NAN. Inside NAN as well, you can create
  23845. 15:44:45your own MCP server. Uh you would have
  23846. 15:44:47your MCP server trigger and you can see
  23847. 15:44:49we have a URL over here and you can
  23848. 15:44:51actually connect that over here as well.
  23849. 15:44:53So, like imagine you have one workflow
  23850. 15:44:56that just has like 10 tools that you
  23851. 15:44:58think, okay, these are the only tools
  23852. 15:44:59I'm going to use in Gmail. Instead of
  23853. 15:45:01having 10 tools over here, which again,
  23854. 15:45:03I don't recommend having a ton of tools,
  23855. 15:45:04but if instead of having 10 tools, you
  23856. 15:45:06can just use the 10 tools um from this
  23857. 15:45:09MCP server. So, you can just click this.
  23858. 15:45:13See, we can just set that up in over
  23859. 15:45:15here. And then you can define what tools
  23860. 15:45:17you specifically want because by default
  23861. 15:45:19it's all. You could choose selected um
  23862. 15:45:22and or you can go over all accept.
  23863. 15:45:24Obviously I didn't set this up in
  23864. 15:45:26another workflow so we're going to have
  23865. 15:45:27some issues over there but yeah that is
  23866. 15:45:30kind of MCP. So instance level use NAN
  23867. 15:45:35workflow outside of NAN, right? And then
  23868. 15:45:39you also inside NAN you have MCP server
  23869. 15:45:42trigger which could have multiple tools
  23870. 15:45:44that you attach to your AI agent. Cover
  23871. 15:45:46this in way greater detail inside our
  23872. 15:45:49MCP video. Uh so I would check that out.
  23873. 15:45:52And uh yeah, next video what we're going
  23874. 15:45:54to do is cover specifically rag. Now,
  23875. 15:45:58rag could be a five to 10 hour video if
  23876. 15:46:01we talked about all the nuances. So,
  23877. 15:46:02I'll get you going with the basics on
  23878. 15:46:05that side of things. What I'd recommend
  23879. 15:46:06for you guys to do kind of like as a
  23880. 15:46:08homework assignment over here, build a
  23881. 15:46:10workflow like test these out with the
  23882. 15:46:12different triggers and uh test it out
  23883. 15:46:15specifically with Claude. So, this next
  23884. 15:46:18section is going to be talk about adding
  23885. 15:46:19a front end to a N workflow. There's
  23886. 15:46:22pretty much three quick ways that you
  23887. 15:46:24could utilize this. The first one is
  23888. 15:46:27going to use chatub. And we've already
  23889. 15:46:29covered chat hub a lot. So I'm not going
  23890. 15:46:30to rehash our chatub section, but
  23891. 15:46:33ideally if you want to have something
  23892. 15:46:34natively in any ad and people can't see
  23893. 15:46:36your workflows, chat hub is going to be
  23894. 15:46:38one of the best approaches. Now if you
  23895. 15:46:40want to add bit more to the complexity
  23896. 15:46:43side of things, one of the things that I
  23897. 15:46:44use at my full-time job is going to be
  23898. 15:46:46Streamllet. So essentially what you can
  23899. 15:46:48have is a web interface that is hosted
  23900. 15:46:51on Streamllet's website for free. And
  23901. 15:46:54you build this out with Python code. And
  23902. 15:46:56if you don't know Python, don't worry.
  23903. 15:46:57You can vibe code a lot of this with a
  23904. 15:47:00large language model and just do some
  23905. 15:47:02minor tweaking with the Python code.
  23906. 15:47:04Although I do recommend that you learn
  23907. 15:47:05Python. But essentially what this allows
  23908. 15:47:08you to do is build a quick interface.
  23909. 15:47:10And I've done this quite a bit with
  23910. 15:47:12internal Python applications as well as
  23911. 15:47:14Streamlit apps. So you have the
  23912. 15:47:16interface and you send a web hook over
  23913. 15:47:18into the N and then you perform specific
  23914. 15:47:22actions. But what was really cool also
  23915. 15:47:23about Streamlit is you can filter your
  23916. 15:47:26data before it even goes into NAN and
  23917. 15:47:28then you can send a response back if you
  23918. 15:47:31would like. Um a little bit more
  23919. 15:47:33complicated on that side of things, but
  23920. 15:47:34you have to understand the web hook
  23921. 15:47:36component of it. You're going to have to
  23922. 15:47:37understand um any type of data cleanup
  23923. 15:47:39that you specifically need, but that is
  23924. 15:47:41available. And then lastly, we can use
  23925. 15:47:43MCP and use a builder such as Lovable to
  23926. 15:47:46create a front end for us. Now, there's
  23927. 15:47:48going to be an additional cost
  23928. 15:47:49associated with it because um they
  23929. 15:47:52aren't always free, but that is a third
  23930. 15:47:54approach that we could specifically
  23931. 15:47:56take. So, I'm not going to do ChatHub,
  23932. 15:47:58but I want to show you Streamlit right
  23933. 15:48:00now. So, I'm just going into Streamlit
  23934. 15:48:03over here. And this is a Python library,
  23935. 15:48:06and they have constant updates. You can
  23936. 15:48:08see date and time widget over here. And
  23937. 15:48:10just to show you what this looks like,
  23938. 15:48:12literally just a few lines of Python
  23939. 15:48:13code. You have something like this, my
  23940. 15:48:15first app, hello world. And uh it says
  23941. 15:48:18right over here, trust by 90% of
  23942. 15:48:20Fortune50 companies.
  23943. 15:48:23And you can see like it's very easy
  23944. 15:48:25code. And you build these interfaces
  23945. 15:48:27like this. And it's and I'm just
  23946. 15:48:29dragging and dropping this over here.
  23947. 15:48:31You can browse files and upload the
  23948. 15:48:33files. But this is just like a a really
  23949. 15:48:35enhanced form that you could utilize um
  23950. 15:48:38outside of any and obviously just you
  23951. 15:48:41need a web hook call to populate this.
  23952. 15:48:43So you can see what's going on over
  23953. 15:48:45there and deploy instantly. So it says
  23954. 15:48:47deploy streamllet community cloud which
  23955. 15:48:49I've used go snowflake for
  23956. 15:48:50enterprisegrade deployment or something
  23957. 15:48:52else. And you can employ uh streamlit
  23958. 15:48:54apps within AWS. You could do digital
  23959. 15:48:57ocean and these are examples of apps
  23960. 15:48:59that people have made. These are just
  23961. 15:49:01data apps. And again, you could have a
  23962. 15:49:03section that uh sends it directly into
  23963. 15:49:07any end. I actually have a full video on
  23964. 15:49:08my YouTube channel covering how to build
  23965. 15:49:10out Streamlit within any end, but it's
  23966. 15:49:12like an hour long, hour and a half. I
  23967. 15:49:14know we don't have an hour and a half to
  23968. 15:49:15talk about that today. And I don't know
  23969. 15:49:16how many people are going to be
  23970. 15:49:17interested in it, but let's take a look
  23971. 15:49:19at a few other things. So, this would be
  23972. 15:49:21like a Seattle weather dashboard. Let's
  23973. 15:49:23take a look at this road map or a to-do
  23974. 15:49:25list. And these are demos that people
  23975. 15:49:27have created or demos that any has. So
  23976. 15:49:29you can essentially build a dashboard
  23977. 15:49:31and maybe you have a button over here
  23978. 15:49:32that says send to Nan and you send it to
  23979. 15:49:34N and it performs some sort of action.
  23980. 15:49:37Uh here is a road map. Okay, I think
  23981. 15:49:39this might actually be the N road map.
  23982. 15:49:42So here's a to-do list. So you could
  23983. 15:49:43have even a to-do list like as soon as
  23984. 15:49:45someone checks something off then it
  23985. 15:49:47goes and performs an action with a hand
  23986. 15:49:49workflow. You can add things in over
  23987. 15:49:50here. Um let's say record 15hour video
  23988. 15:49:56and uh that has been added over here.
  23989. 15:49:58delete all that are checked. So, you can
  23990. 15:50:00delete this. So, pretty cool on the web
  23991. 15:50:02app side of things. You don't always
  23992. 15:50:04need to essentially use a lovable if you
  23993. 15:50:07just want to have a basic interface. Uh
  23994. 15:50:09let's take a look at some other stuff. I
  23995. 15:50:11actually watch this YouTuber for
  23996. 15:50:12streamlight content. Um let's add a few
  23997. 15:50:15others.
  23998. 15:50:17I think I read I think he has a book. I
  23999. 15:50:19can't remember that was his stream book
  24000. 15:50:21or not.
  24001. 15:50:22Yeah. So, you can see you have a sidebar
  24002. 15:50:24over here with different actions. you
  24003. 15:50:26have notes like there's just so many
  24004. 15:50:28different components and I'll just go to
  24005. 15:50:30the component store so you guys can see
  24006. 15:50:32over here as well you can add in plots
  24007. 15:50:34grids
  24008. 15:50:36there is a ton going on um yeah so that
  24009. 15:50:40is streamlin essentially you can build
  24010. 15:50:42out an interface with python code and uh
  24011. 15:50:45essentially all you have to do is set it
  24012. 15:50:46up a web hook web hook goes into nan and
  24013. 15:50:50starts the specific workflow and
  24014. 15:50:52obviously you can track things you can
  24015. 15:50:53add a database here's a source code you
  24016. 15:50:56can see some of the different options.
  24017. 15:50:57So you can put in charts directly in
  24018. 15:50:58over here. Like there's just so much
  24019. 15:51:00that you could do with it. And uh yeah,
  24020. 15:51:03so that's our first option. I just
  24021. 15:51:07downloaded a remove background from
  24022. 15:51:08image. Interesting. All right. So first
  24023. 15:51:12side of it. The other I just wanted to
  24024. 15:51:13quickly show you is Lovable. Now I have
  24025. 15:51:15never used Lovable. This is going to be
  24026. 15:51:17my first time. So we will uh we'll see
  24027. 15:51:20how it goes. And I'm just going to click
  24028. 15:51:22over here and
  24029. 15:51:24let's see. We'll get log in
  24030. 15:51:28with Google.
  24031. 15:51:31We'll test this out.
  24032. 15:51:37If it's free, I will uh test this out.
  24033. 15:51:40We'll use dark mode. And uh all right.
  24034. 15:51:43So, let's see if we can attach this into
  24035. 15:51:45any end. We have
  24036. 15:51:48I don't know how many credits we have,
  24037. 15:51:50but we are going to try this.
  24038. 15:51:53We're going to go to connectors, manage
  24039. 15:51:54connectors,
  24040. 15:51:56and we're going to look for N. So, we
  24041. 15:51:58see N over here, and I'm going to say
  24042. 15:52:00connect. Now, I need to get this N link
  24043. 15:52:03again. So, I'm going to go over here and
  24044. 15:52:05say connect. Grab this URL. Go back in
  24045. 15:52:09over here, add an authorize.
  24046. 15:52:12It's going to load this up for OOTH.
  24047. 15:52:15Allow.
  24048. 15:52:16And you can see MCP is super easy to set
  24049. 15:52:18up. So, we have that over here. Great.
  24050. 15:52:22And I'm going to say
  24051. 15:52:27go over here. Is it still section 26?
  24052. 15:52:30Okay, cool. For section
  24053. 15:52:35for section 26, build a user interface
  24054. 15:52:41where someone
  24055. 15:52:43can ask
  24056. 15:52:46about a football score.
  24057. 15:52:50end workflow
  24058. 15:52:52will then find the score and send it
  24059. 15:52:57back. And I should say about a college
  24060. 15:52:59football score.
  24061. 15:53:02All right, let's give it a shot. I have
  24062. 15:53:04no idea how long this will take. I don't
  24063. 15:53:05know if I have enough credits, but uh we
  24064. 15:53:07will see what happens.
  24065. 15:53:11So, it is now thinking I assume this is
  24066. 15:53:14going to take a few minutes. It says
  24067. 15:53:16I'll build a slate college football over
  24068. 15:53:17here. search workflows. Um, we're going
  24069. 15:53:20to ask each time. We're just going to
  24070. 15:53:22say allow. Obviously, you can automate
  24071. 15:53:24this as well. I just want to show you
  24072. 15:53:25the questions it's going to ask me. So,
  24073. 15:53:27it's going to search for these.
  24074. 15:53:30Get workflow details. I'm going to click
  24075. 15:53:31allow. Cool. So, it's saying what it's
  24076. 15:53:33going to do. Dark theme with vibrant
  24077. 15:53:35orange and gold accent. Football energy.
  24078. 15:53:37Bold condensed typography. Card based
  24079. 15:53:39results with subtle animations. Load
  24080. 15:53:41states with pulse effects. So, hopefully
  24081. 15:53:44this works correctly. This is pretty
  24082. 15:53:46cool to see. Obviously, I really haven't
  24083. 15:53:48dove in on this side of things as of
  24084. 15:53:51yet, but we'll see how it goes. All
  24085. 15:53:54right, so now we have this interface
  24086. 15:53:56over here. College football scorefinder
  24087. 15:53:58powered by AI, real time scores, and
  24088. 15:54:00playoff updates. All right, so we
  24089. 15:54:03already have what is the score of the
  24090. 15:54:04Ohio State who won Texas versus Georgia.
  24091. 15:54:08Ohio State won was last night. We put
  24092. 15:54:11that over here. Oh, that's Ohio State
  24093. 15:54:12Notre Dame. This is still a little bit
  24094. 15:54:14behind. What was the score of the Ohio
  24095. 15:54:16State versus Miami game? Miami game.
  24096. 15:54:20We're going to search it over here and
  24097. 15:54:22let's see what happens. Now, this I will
  24098. 15:54:24say looks amazing right out of the gate
  24099. 15:54:30and it says query what was the score of
  24100. 15:54:32Miami game to get real scores. Then
  24101. 15:54:34workflow will be executed with your
  24102. 15:54:36information. The AI agent will search
  24103. 15:54:37update playoff information results
  24104. 15:54:39workflow. So, it's interesting. Oh, I
  24105. 15:54:43have to click allow. I'm like, where are
  24106. 15:54:45we going to get the results back? But
  24107. 15:54:46we're going to click allow over here and
  24108. 15:54:49we'll see it coming back. But this is
  24109. 15:54:52really cool. Obviously, I don't know if
  24110. 15:54:55all the code in the back end is correct.
  24111. 15:54:57I'm not a front-end engineer, but it's
  24112. 15:55:00asking a clarifying question. Let me
  24113. 15:55:01provide a little bit more. Let's say
  24114. 15:55:03allow.
  24115. 15:55:05What is the question we're going to get
  24116. 15:55:06back?
  24117. 15:55:11I did update the prompt a little bit. I
  24118. 15:55:13didn't go um full detail, but just to
  24119. 15:55:16show you really quick.
  24120. 15:55:21This is the new uh system message I put.
  24121. 15:55:23Obviously, I would change this up
  24122. 15:55:25completely for another one. Workflow
  24123. 15:55:28works and return Ohio State defeated
  24124. 15:55:31Notre Dame. Now, I need to enable
  24125. 15:55:33lovable cloud so we can create an edge
  24126. 15:55:34function that will call the workflow
  24127. 15:55:36from the front end. Let's click allow.
  24128. 15:55:38But why didn't it present the results
  24129. 15:55:41over here? I wonder if it's just because
  24130. 15:55:42of some settings.
  24131. 15:55:45Um, I mean, again, this design looks
  24132. 15:55:48nice, but I want to see like if I type
  24133. 15:55:52this in, I want the results to be right
  24134. 15:55:53here because it says score results over
  24135. 15:55:55here. It just gives me this.
  24136. 15:56:01Okay. So, I think this is going through
  24137. 15:56:03and editing this now. I never added any
  24138. 15:56:07credit card information or anything like
  24139. 15:56:08that. So, I don't even know the pricing.
  24140. 15:56:11We can take a look at pricing here in a
  24141. 15:56:12second. And it looks like it's going
  24142. 15:56:14through again.
  24143. 15:56:16And uh we'll check it one more time once
  24144. 15:56:19this goes through. I think there's some
  24145. 15:56:21games going on now as well. Let me just
  24146. 15:56:22double check. There's three games going
  24147. 15:56:24on today. I want to say football scores.
  24148. 15:56:27I haven't even seen them because I've
  24149. 15:56:29been busy recording. All right. Oregon's
  24150. 15:56:31winning 23 nothing
  24151. 15:56:34right now. Let's see what's else going
  24152. 15:56:36on.
  24153. 15:56:38Alabama Indiana starts in 30 minutes and
  24154. 15:56:41then misses later versus Georgia. So,
  24155. 15:56:44we'll test uh
  24156. 15:56:46the Oregon Texas Tech. Oh, it's over
  24157. 15:56:48Oregon one.
  24158. 15:56:50All right, this is editing right now.
  24159. 15:56:53I'll tech. We'll test this one for next
  24160. 15:56:56one.
  24161. 15:57:00It is still going. It's taking a
  24162. 15:57:03screenshot, it says. All right, it says
  24163. 15:57:05it is ready.
  24164. 15:57:07Cool.
  24165. 15:57:10So,
  24166. 15:57:13I think we're ready to test it. Okay.
  24167. 15:57:15So, what is
  24168. 15:57:19the Oregon
  24169. 15:57:21Texas
  24170. 15:57:24Tech score? Let's see what happens this
  24171. 15:57:26time. So, I'm going to search it. Score
  24172. 15:57:29result. Your query would be processed by
  24173. 15:57:31the Nan workflow. I guess I have to
  24174. 15:57:33allow this again.
  24175. 15:57:36I don't know. I feel like I'm missing
  24176. 15:57:37something.
  24177. 15:57:40Feel like I'm missing something. Unless
  24178. 15:57:42I have to preview it out over here.
  24179. 15:57:53Says search information retrieved. Let's
  24180. 15:57:55see executions.
  24181. 15:58:00So this is our execution
  24182. 15:58:03and this came directly from over there.
  24183. 15:58:05I don't see the execution of the one
  24184. 15:58:06that I just tested. You can see the
  24185. 15:58:09other execution.
  24186. 15:58:13Which do you mean football or
  24187. 15:58:14basketball? You have a date or season in
  24188. 15:58:16mind. Most recent. I should say latest
  24189. 15:58:19as a prompt.
  24190. 15:58:23And I say that over here. I guess I need
  24191. 15:58:24to say do not ask for flying questions.
  24192. 15:58:26Do not ask
  24193. 15:58:30questions. This happens all the time
  24194. 15:58:31with GPT
  24195. 15:58:33five. We'll save this over here. You
  24196. 15:58:35know what the other thing is? I didn't
  24197. 15:58:36publish the latest version. That's
  24198. 15:58:38probably why. Easy mistake. Either way,
  24199. 15:58:42this was building out a front end.
  24200. 15:58:44Obviously, you can still constantly mess
  24201. 15:58:46with it and test it out. But just wanted
  24202. 15:58:50to show you a few different approaches.
  24203. 15:58:52Chatub, you could use Streamlit or you
  24204. 15:58:54could use a tool like Lovable to build
  24205. 15:58:56this out. Obviously, if you're using
  24206. 15:58:57Lovable, check your work, make sure it
  24207. 15:58:59is correct. I I think this is a really
  24208. 15:59:01cool design that it built out right
  24209. 15:59:03away. All right, so next one we're going
  24210. 15:59:05to jump into is Rag. Keep up the great
  24211. 15:59:08work. We're almost done with this course
  24212. 15:59:09and I will see you in the next video. So
  24213. 15:59:11for this section, we're going to be
  24214. 15:59:12covering something called retrieval
  24215. 15:59:13augmented generation. Everyone calls it
  24216. 15:59:16rag because that is a wordful and I'm
  24217. 15:59:19just going to continue to call it rag
  24218. 15:59:20from here on out. So, if I was going to
  24219. 15:59:23make a full section covered about Rag
  24220. 15:59:26and all the different types of vector
  24221. 15:59:27databases and all the technical
  24222. 15:59:29components about it and where the future
  24223. 15:59:30of Rag is heading towards, that video
  24224. 15:59:33will easily be three, four, five plus
  24225. 15:59:35hours, if not longer. And because this
  24226. 15:59:39course is really focused on teaching you
  24227. 15:59:40the basics of NE, I am not going to do
  24228. 15:59:43that in this section. In fact, this is
  24229. 15:59:45probably going to be a follow-up course
  24230. 15:59:47here on the channel if there's enough
  24231. 15:59:49interest about it. Again, there's just
  24232. 15:59:51so many different types of techniques.
  24233. 15:59:52There's so many types of vector
  24234. 15:59:53databases and it would be very tough to
  24235. 15:59:55cram all that into one specific video
  24236. 15:59:58over here when we're covering the basics
  24237. 15:59:59of all these different types of
  24238. 16:00:01sections. So, if you do want to learn a
  24239. 16:00:03little bit more about Rag and you're
  24240. 16:00:05interested in that course, just let me
  24241. 16:00:06know down below in the comment section.
  24242. 16:00:08I'm really inclined to make it. I think
  24243. 16:00:11it would be a really fun and interesting
  24244. 16:00:12video as well. But over here, what we're
  24245. 16:00:15going to do is a very basic rag
  24246. 16:00:17tutorial. First, what we're going to
  24247. 16:00:19cover is how you can use your own data
  24248. 16:00:22simply with Open AI. And that's going to
  24249. 16:00:25be probably the easiest way for you to
  24250. 16:00:26get started with Rag. And then we're
  24251. 16:00:28going to cover a more advanced rag
  24252. 16:00:31pipeline as well as uh uploading data,
  24253. 16:00:34embedding it, and and different things
  24254. 16:00:35like that. Now, what is the real purpose
  24255. 16:00:38of rag? I haven't even really talked
  24256. 16:00:40about that. So, our AI agents, we
  24257. 16:00:42already know that there's a limitation
  24258. 16:00:44sometimes on uh the knowledge based off
  24259. 16:00:46of the knowledge cut off date. So if
  24260. 16:00:48you're working with AI agents, sometimes
  24261. 16:00:49they only have knowledge up through 2024
  24262. 16:00:51or specific time in 2025. However, one
  24263. 16:00:55big glaring issue with AI agents and
  24264. 16:00:58other AI nodes, they just don't have
  24265. 16:01:00access to personal data. Every single
  24266. 16:01:02company has SOPs, or at least I'd hope
  24267. 16:01:05that they do, and data that is not
  24268. 16:01:07public online. And because of that,
  24269. 16:01:11these AI agents are not trained on it.
  24270. 16:01:13These AI agents essentially are trained
  24271. 16:01:15on scraped data online. And because
  24272. 16:01:17companies have their own internal
  24273. 16:01:19policies or internal procedures, they
  24274. 16:01:21just don't have that specific knowledge.
  24275. 16:01:24So, Rag essentially helps AI agents with
  24276. 16:01:28personal information for a company,
  24277. 16:01:30which really empowers them a lot because
  24278. 16:01:33why you want to have an AI agent? You
  24279. 16:01:34want to have them take action based off
  24280. 16:01:37of your own specific policies in most
  24281. 16:01:39cases. So essentially by building out
  24282. 16:01:42something pretty thorough with rag,
  24283. 16:01:44you're going to give specific context to
  24284. 16:01:46an AI agent based off information that
  24285. 16:01:49is held within a vector database. Now
  24286. 16:01:52what a vector database is, you can store
  24287. 16:01:55different types of files directly in
  24288. 16:01:58there. And uh you'll be doing this
  24289. 16:02:00through something called a pipeline. And
  24290. 16:02:03essentially what happens over there is
  24291. 16:02:05someone will upload a file. We're going
  24292. 16:02:07to embed the specific file. Don't worry,
  24293. 16:02:09we're going to go over all the details
  24294. 16:02:11about embedding and how a pipeline
  24295. 16:02:13works. But regardless, someone uploads a
  24296. 16:02:15file, we're going to embed the file, and
  24297. 16:02:17then we're going to populate it within a
  24298. 16:02:19vector store. And this is going to be
  24299. 16:02:22really fun to cover. I am going to give
  24300. 16:02:24you a little bit of warning. This is
  24301. 16:02:25probably one of the more technical
  24302. 16:02:27components of this video. And don't
  24303. 16:02:29worry if Rag doesn't click right away.
  24304. 16:02:32All you need to know is that Rag
  24305. 16:02:34essentially improves our agents with
  24306. 16:02:37private data. So let's jump into a very
  24307. 16:02:40basic example with OpenAI. Then let's
  24308. 16:02:42take a look at building out a pipeline
  24309. 16:02:45and uh utilizing it in practice. So I'm
  24310. 16:02:48in Nan now. I want to show you guys
  24311. 16:02:50first the most basic form of ARG and
  24312. 16:02:54we're going to be using Open AI for
  24313. 16:02:55this. So essentially OpenAI has a super
  24314. 16:02:58easy way where all we have to do is
  24315. 16:02:59upload a file and it does all of the
  24316. 16:03:02work for us. Now it is a little bit
  24317. 16:03:04pricey. Uh, so you get charged 10 cents
  24318. 16:03:06per day once you have over a gigabyte
  24319. 16:03:09worth of files over here. And I believe
  24320. 16:03:11it's 10 cents per gigabyte as well. So
  24321. 16:03:14let me show you first where you could
  24322. 16:03:15access this. So go to
  24323. 16:03:16platform.openai.com/hat.
  24324. 16:03:19And then we go over here on that side of
  24325. 16:03:21things. And what we're going to want to
  24326. 16:03:23do is go specifically into storage. So
  24327. 16:03:27now we have storage on here. And then
  24328. 16:03:29we're going to want to go to our vector
  24329. 16:03:31stores. So we have our vector stores
  24330. 16:03:33like this. The first thing that we need
  24331. 16:03:35to do is create a vector store. So we're
  24332. 16:03:38going to create this over here. And
  24333. 16:03:40let's set a name for this. Now I'm going
  24334. 16:03:42to call this old judge. And I'll explain
  24335. 16:03:44why in a second. So we have old judge
  24336. 16:03:46over here. And then I'm going to click
  24337. 16:03:48this icon. So it says vector storevs has
  24338. 16:03:52been updated. Now we don't have any
  24339. 16:03:54particular files in here. So let me show
  24340. 16:03:56you the file which we're going to be
  24341. 16:03:57using for this particular video. So, I
  24342. 16:04:00found this article over here talking
  24343. 16:04:02about old judge baseball cards from the
  24344. 16:04:041880s and specifically the Union
  24345. 16:04:07Association. So, the Union Association
  24346. 16:04:09was like a very early baseball league
  24347. 16:04:12and there's not a lot of players in
  24348. 16:04:14there that actually have cards. And this
  24349. 16:04:16article talks about like there's no
  24350. 16:04:17Union Association baseball cards, but
  24351. 16:04:20some of the players that played in the
  24352. 16:04:21Union Association and moved on to
  24353. 16:04:23different baseball leagues have old
  24354. 16:04:25judge cards. And it talks about I
  24355. 16:04:27believe five different players. So, this
  24356. 16:04:28is like super niche because first off,
  24357. 16:04:30whole judge cards. Not even a lot of
  24358. 16:04:32baseball card collectors know about it.
  24359. 16:04:34I'd probably say like anywhere from 1 to
  24360. 16:04:365% of baseball card collectors know
  24361. 16:04:38about that. And then you're talking
  24362. 16:04:39about a forgotten essentially baseball
  24363. 16:04:42league. Uh most people know American
  24364. 16:04:44League and National League, but um there
  24365. 16:04:46has been other leagues as well
  24366. 16:04:47throughout baseball's history. This is
  24367. 16:04:49the Union Association, which I would
  24368. 16:04:51probably say like 0.1% of baseball fans
  24369. 16:04:54know, maybe 0.01%. So compile that with
  24370. 16:04:57judge of baseball cards. Very few people
  24371. 16:04:59know this. And I doubt this is something
  24372. 16:05:01that
  24373. 16:05:02our chat models would know right away.
  24374. 16:05:04So either way, what we're going to do
  24375. 16:05:05now is upload this over here. I just put
  24376. 16:05:08this into a Google Doc. Obviously, you
  24377. 16:05:10guys will have access to this article
  24378. 16:05:12and you can do the same. So all we're
  24379. 16:05:14going to do now is go to the bottom
  24380. 16:05:15where it says add files and we're going
  24381. 16:05:17to upload a file over here and upload
  24382. 16:05:19that document. Then we're going to click
  24383. 16:05:21attach and it's going to be uploaded
  24384. 16:05:23into this particular vector store. Might
  24385. 16:05:26have to wait a second just for this to
  24386. 16:05:27upload. I notice sometimes I have to
  24387. 16:05:29refresh. So I'm just going to refresh
  24388. 16:05:31really fast and hopefully it is in over
  24389. 16:05:33here. And you can see once I refreshed
  24390. 16:05:35it, it is particularly in here. So we're
  24391. 16:05:37good to go. All right. So next thing
  24392. 16:05:38we're going to do is add a chat model or
  24393. 16:05:40not chat. Yeah, we're going to add in an
  24394. 16:05:42agent, but we're going to use a chat
  24395. 16:05:44trigger. So chat trigger and then we're
  24396. 16:05:46going to go and add in AI agent. So AI
  24397. 16:05:50agent like that. Also, I apologize if
  24398. 16:05:52you hear the dog barking in the
  24399. 16:05:54background. Um, so we have our AI agent
  24400. 16:05:56over here. We need to make sure we use
  24401. 16:05:58Open AI. So we're going to go into Open
  24402. 16:06:00AI like this. And make sure you choose
  24403. 16:06:02your correct account model. You're going
  24404. 16:06:05to have to use a GPT5 model. So I'm
  24405. 16:06:07going over here using mini. So we're
  24406. 16:06:09going to say mini like this.
  24407. 16:06:12And uh, we have that in here. Great. The
  24408. 16:06:14next thing we're going to do is use the
  24409. 16:06:16responses API which is already turned
  24410. 16:06:17on. We're going to use a built-in tool.
  24411. 16:06:19So, click add built-in tool and we're
  24412. 16:06:21going to use file search. Now, there's
  24413. 16:06:22two things that we're going to have to
  24414. 16:06:23do. We're going to have to use our
  24415. 16:06:25vector store ID as well as filters. So,
  24416. 16:06:27first let me show you how we can set
  24417. 16:06:29this up. So, first thing you're going to
  24418. 16:06:32do is go over here and you see how this
  24419. 16:06:33says ID. So, make sure to copy that. And
  24420. 16:06:36this is in our vector store side. So,
  24421. 16:06:38copy that over here. And then what we're
  24422. 16:06:41going to do is put in double quotes. So,
  24423. 16:06:43make sure double quotes in this bracket
  24424. 16:06:45that specific ID. Make sure it's 100%
  24425. 16:06:47matched to what you have. So, just copy
  24426. 16:06:49and paste it. Next, we're going to have
  24427. 16:06:50some filters. So, I already have this
  24428. 16:06:53saved off to the side. Uh, if you don't
  24429. 16:06:54have these filters, it sometimes is a
  24430. 16:06:56little bit wonky. So, add in filters
  24431. 16:06:58like this and then type and. So, I just
  24432. 16:07:00copy and paste this every time I'm using
  24433. 16:07:02that specific vector store in AI agent.
  24434. 16:07:06So, now we have both of these over here
  24435. 16:07:08and we should be pretty good. I'm just
  24436. 16:07:09going to save this. Just going to double
  24437. 16:07:11check that our file is correct. Over
  24438. 16:07:13here we see our file and yeah, we're
  24439. 16:07:15good to go. So what we're going to do
  24440. 16:07:17now is open our chat and we're going to
  24441. 16:07:20ask a question. So based off this
  24442. 16:07:22document, I'm going to ask over here,
  24443. 16:07:24what is the best union player with a old
  24444. 16:07:28judge card? So very basic question. What
  24445. 16:07:31is the best union association
  24446. 16:07:36player with an old judge card?
  24447. 16:07:40So type that in and we will see what
  24448. 16:07:42happens. And again, you can think about
  24449. 16:07:43this like this is an internal document,
  24450. 16:07:45something that hasn't seen the web.
  24451. 16:07:46Obviously, I'm not going to build out an
  24452. 16:07:47internal document right now. I'm just
  24453. 16:07:49going to go and grab something I thought
  24454. 16:07:51was particularly niche. But, uh, we'll
  24455. 16:07:53see what happens on this side of it. And
  24456. 16:07:56I'm sure at some point Open AI scraped
  24457. 16:07:58this site, but regardless, I want to
  24458. 16:08:01show you that it's literally just
  24459. 16:08:02searching through the file. And it says,
  24460. 16:08:03"The best Union associate player who
  24461. 16:08:04appears in the old judge set is
  24462. 16:08:05generally judged to be Fred Shershot
  24463. 16:08:08Dunlap. He was a crown jewel of the 1884
  24464. 16:08:10St. Louis Maroons. led the UA virtually
  24465. 16:08:13in every offensive category. Like that
  24466. 16:08:15is insane. 256 OPS plus and the author
  24467. 16:08:18calls Hall of Fame worthy as a peak.
  24468. 16:08:20Number one provided old judge UA right
  24469. 16:08:22up. Other strong candidates old judge
  24470. 16:08:24includes fetcher Jim McCormack who I
  24471. 16:08:26don't believe is in the Hall of Fame. Um
  24472. 16:08:28should be and short stop Jack Glasslock
  24473. 16:08:30also not in the Hall of Fame. Tommy
  24474. 16:08:31McCarthy also notable as the only UA
  24475. 16:08:33player elected to the Hall of Fame. Bam.
  24476. 16:08:35I knew that. Um would you like to see
  24477. 16:08:37any evaluations for any specific old
  24478. 16:08:39judge card? So, we essentially went
  24479. 16:08:42through this document. We grabbed the
  24480. 16:08:44most popular players over here and uh
  24481. 16:08:47yeah, so I'm going to say tell me about
  24482. 16:08:49Jack Clemens next. So, her Clemens
  24483. 16:08:54tell me about again this is going to
  24484. 16:08:57look specifically at our document and
  24485. 16:09:00hopefully it tells us the particular
  24486. 16:09:02answer. And again, it might take a
  24487. 16:09:04little bit to search all this and get
  24488. 16:09:07the actual answer. And it says,
  24489. 16:09:09"According to the old judge union notes
  24490. 16:09:10that you provided, Jack Clemens was a
  24491. 16:09:12leading 19th century MLB catcher known
  24492. 16:09:14as several distinctions." And it tells
  24493. 16:09:15you a little bit more over here. I can
  24494. 16:09:17pull together a full career timeline
  24495. 16:09:18season by season stats, photos from the
  24496. 16:09:20document, or check modern databases for
  24497. 16:09:21additional context. And I'm going to say
  24498. 16:09:23check
  24499. 16:09:25databases for additional
  24500. 16:09:29context on Jack Clemens. Now, I don't
  24501. 16:09:32have even any memory set up over here,
  24502. 16:09:34which I should have put on because we're
  24503. 16:09:36having a conversation. Um, but anyways,
  24504. 16:09:39we're going back and forth. Now, while
  24505. 16:09:41that answer is going over there, I do
  24506. 16:09:42want to show you that there is a few
  24507. 16:09:45special options you can choose with your
  24508. 16:09:47files when you upload. So, I'm just
  24509. 16:09:48going to upload the same file again. And
  24510. 16:09:51what you'll notice, and we have advanced
  24511. 16:09:53options over here. So, we're going to
  24512. 16:09:54actually be talking about chunk size as
  24513. 16:09:57well as chunk overlap here in this next
  24514. 16:10:00section. But by default, you didn't even
  24515. 16:10:01have to worry about it. You can see
  24516. 16:10:03OpenAI used 800 and then 400. So, let's
  24517. 16:10:06actually use those same settings when
  24518. 16:10:08we're going to build out a custom
  24519. 16:10:10pipeline. It seems very intimidating,
  24520. 16:10:12but it's honestly not that bad. And here
  24521. 16:10:16we go. I searched upload files and found
  24522. 16:10:17material about this. It just searched
  24523. 16:10:19over here in the files, but obviously
  24524. 16:10:21you can add in other tools and things
  24525. 16:10:23like that as well uh to search the web
  24526. 16:10:25and etc. But uh regardless, I I also, by
  24527. 16:10:28the way, I didn't even put in anything
  24528. 16:10:29else over here. I literally just kept
  24529. 16:10:31this as by default. So I wouldn't
  24530. 16:10:33recommend you do that in production, but
  24531. 16:10:35for a YouTube video just to show you,
  24532. 16:10:37hey, we can search our files directly
  24533. 16:10:39with something that we upload into
  24534. 16:10:40OpenAI. It takes less than 5 minutes to
  24535. 16:10:43do so. I think it's pretty cool. So that
  24536. 16:10:45is our example of Rag Basics with
  24537. 16:10:48OpenAI. You don't even have to worry
  24538. 16:10:50about anything technical. All we had to
  24539. 16:10:52do is upload a file. But this next
  24540. 16:10:54section, I'm going to be showing you how
  24541. 16:10:55to build out a custom pipeline where
  24542. 16:10:57we're going to talk about embedding and
  24543. 16:10:59then we're going to actually ask
  24544. 16:11:00questions with it. We're going to be
  24545. 16:11:02using a vector database called Pine
  24546. 16:11:04Cone. It is free to use out of the box.
  24547. 16:11:06So, you don't have to worry about
  24548. 16:11:07anything like that. Obviously, you're
  24549. 16:11:08going to have to set up an API key and
  24550. 16:11:10stuff like that, which I will show you
  24551. 16:11:11how to do and we're going to jump into
  24552. 16:11:13that right now. All right, let's uh
  24553. 16:11:16cover more advanced rag this time. What
  24554. 16:11:18we're going to do is instead of just
  24555. 16:11:20uploading a file, we're going to go
  24556. 16:11:22through and actually build a pipeline
  24557. 16:11:25and then ask questions based around it.
  24558. 16:11:26I'm going to teach you all the different
  24559. 16:11:28components as well as we build through
  24560. 16:11:30it. So, the first thing we're going to
  24561. 16:11:32do is we're going to grab a file and
  24562. 16:11:33upload it. So, you should be very
  24563. 16:11:36familiar with this, but we're going to
  24564. 16:11:38do a form. And I don't know why I
  24565. 16:11:40searching form submission, but it's just
  24566. 16:11:42an AN form. And uh what we're going to
  24567. 16:11:45do is a trigger on new NAM form event.
  24568. 16:11:47So, you'll see on new form submission
  24569. 16:11:48over here. Um we're going to label this
  24570. 16:11:51over here file uploader.
  24571. 16:11:55And we're just going to add a file. So,
  24572. 16:11:57we're going to say file.
  24573. 16:12:00And what is the file?
  24574. 16:12:04We'll just do file. Cool. And I'm only
  24575. 16:12:06going to do one upload file at a time.
  24576. 16:12:08Now, here's the deal. When you upload
  24577. 16:12:10files into a vector store, people have
  24578. 16:12:13pretty complicated pipelines just
  24579. 16:12:15depending what they are. For example,
  24580. 16:12:18let's say you have an if node over here
  24581. 16:12:21or a switch. So like we'll write an if
  24582. 16:12:23or switch
  24583. 16:12:26based on file type.
  24584. 16:12:28See this through like a PDF. So imagine
  24585. 16:12:31if something was a PDF and you have an
  24586. 16:12:34if. So if it's a PDF, you might want to
  24587. 16:12:37go over here and use OCR
  24588. 16:12:40and we'll say OCR
  24589. 16:12:44to put Mistral not OCR but you'll use
  24590. 16:12:46like a Mistl and extract text from that
  24591. 16:12:49PDF document. Otherwise, you know, your
  24592. 16:12:53file should be fine and you can load
  24593. 16:12:55this into the vector store. I'm just
  24594. 16:12:57going to be building out the most basic
  24595. 16:12:59pipeline for you guys. These can get
  24596. 16:13:02very complicated and um outside the
  24597. 16:13:05scope of today's video. So, what I'm
  24598. 16:13:06going to do is use a a vector database.
  24599. 16:13:09Now, what I'm going to use specifically
  24600. 16:13:11is Pine Cone. So, if you go to Pine Cone
  24601. 16:13:14vector store over here, this is what I
  24602. 16:13:16want to do. And I'm going to say add
  24603. 16:13:18documents to a vector store. So you saw
  24604. 16:13:20how we added documents to OpenAI. We're
  24605. 16:13:24just adding documents in this Pine Cone
  24606. 16:13:26vector sort. There's a ton of different
  24607. 16:13:27vector databases and out there, but
  24608. 16:13:30we're going to use Pyone because it's
  24609. 16:13:32pretty easy to set up and it's easy. So
  24610. 16:13:35this brings me to the first section,
  24611. 16:13:38which is going to be our embeddings. So
  24612. 16:13:41if you click on this over here, you'll
  24613. 16:13:43see there's a bunch of different
  24614. 16:13:44embeddings over here. I would just start
  24615. 16:13:46with OpenAI embeddings. and you'll see
  24616. 16:13:49that you already have your OpenAI
  24617. 16:13:51account and you'll be fine. And then
  24618. 16:13:53there's different options. So small is
  24619. 16:13:56cheaper. It's a little bit less accurate
  24620. 16:13:58than large. So I would just recommend
  24621. 16:14:00using large text embeddings. Um it's a
  24622. 16:14:03little bit pricier, but I would
  24623. 16:14:05recommend using that. And you'll see
  24624. 16:14:06that we have embeddings. And you might
  24625. 16:14:08be like, well, what does embeddings do?
  24626. 16:14:11Well, essentially what embeddings does
  24627. 16:14:14is it takes your text. So you can
  24628. 16:14:16imagine you have a text like this.
  24629. 16:14:19And what we're going to do is just have
  24630. 16:14:20a text called nan. And this is getting
  24631. 16:14:23it to set to be some sort of vector. And
  24632. 16:14:26this sounds very confusing, but a vector
  24633. 16:14:28is essentially like this. It's a bunch
  24634. 16:14:30of numbers over here. And we'll say
  24635. 16:14:32like.32
  24636. 16:14:34or.34. We're just going to use this over
  24637. 16:14:37here.11.
  24638. 16:14:38And you get the point. These go on for
  24639. 16:14:40quite a while. The size over here tells
  24640. 16:14:44you how many embeddings that you
  24641. 16:14:46specifically have. A large embedding or
  24642. 16:14:48a small embedding. So, we're going to
  24643. 16:14:51want to build this out because
  24644. 16:14:53essentially words are going to have
  24645. 16:14:55different meanings and I should say like
  24646. 16:14:57chunks, but we're going to use a word
  24647. 16:14:59example. So, imagine any n has something
  24648. 16:15:01like this.
  24649. 16:15:02Then you might want to use a tool like
  24650. 16:15:04make and uh we're going to have very
  24651. 16:15:08similar embeddings. We'll say like 0.12,
  24652. 16:15:110.3 and 0.1 like this. And you can see
  24653. 16:15:15that these are close together because
  24654. 16:15:17any and make are both automation
  24655. 16:15:19software. Then if you have something
  24656. 16:15:21like Photoshop,
  24657. 16:15:22well it is a software, it's going to be
  24658. 16:15:24different. You might have something like
  24659. 16:15:262.7
  24660. 16:15:30and then
  24661. 16:15:3118. So these are farther apart. And
  24662. 16:15:35essentially what this does again um you
  24663. 16:15:38take your text and you represent them in
  24664. 16:15:40numbers. That's what our embeddings
  24665. 16:15:42allows us to do. And um things that are
  24666. 16:15:45closer together are going to have
  24667. 16:15:47similar numbers whereas things that are
  24668. 16:15:49different are going to be way off. So
  24669. 16:15:50you can see Photoshop is farther from
  24670. 16:15:51any make. Let's say I go over here and I
  24671. 16:15:54add in a metal band in Metallica. And
  24672. 16:15:57Metallica is going to just have
  24673. 16:15:59completely different things. It's going
  24674. 16:16:00to be like 08.8.
  24675. 16:16:03let's say 08, right? It doesn't matter.
  24676. 16:16:06And there's a lot more numbers
  24677. 16:16:07associated with it. But you can see this
  24678. 16:16:09is way farther away than Photoshop,
  24679. 16:16:11which is a software, which is still far
  24680. 16:16:13away from both NAN and make since
  24681. 16:16:15they're very similar software providers.
  24682. 16:16:17So essentially, that's what embedding
  24683. 16:16:19is. It's changing our data into specific
  24684. 16:16:22vectors. And that is our first part.
  24685. 16:16:26Large uses 3072
  24686. 16:16:28and small I want to say uses what is it
  24687. 16:16:311536.
  24688. 16:16:33And it's important that you keep this
  24689. 16:16:35consistent across the board. So large
  24690. 16:16:383072, small 1536.
  24691. 16:16:41So next thing what we're going to do is
  24692. 16:16:43add in a a document loader.
  24693. 16:16:47So you'll see the document there's a
  24694. 16:16:48star over here. So we need to add that.
  24695. 16:16:50There's an option and it says default
  24696. 16:16:52document loader. So choose that option.
  24697. 16:16:56And you'll see over here we have our
  24698. 16:16:58type of data. So since we're passing in
  24699. 16:17:01a binary file over here, we need to make
  24700. 16:17:04sure that our document loader uses a
  24701. 16:17:06binary file. So you can see binary,
  24702. 16:17:08we're going to say load specific data.
  24703. 16:17:11And then what I'm going to say is data
  24704. 16:17:13format. I'm going to choose a document
  24705. 16:17:16over here. And uh you'll see load docx
  24706. 16:17:20over here. So that's what I want to
  24707. 16:17:21choose. And then we're going to say
  24708. 16:17:23data. And then you have something called
  24709. 16:17:25text splitting. So, this will tell you
  24710. 16:17:27how you split up text in a document. By
  24711. 16:17:31default, it's simple. What you see it
  24712. 16:17:32says every 1,000 characters with a 200
  24713. 16:17:34character overlap. Open AAI, if I
  24714. 16:17:37remember correctly, was 800 and 400. I
  24715. 16:17:39apologize for not knowing this right
  24716. 16:17:40away, but um I recorded this a little
  24717. 16:17:42bit earlier, although you'll see it
  24718. 16:17:43right after. But you can specify text
  24719. 16:17:46splitting. Keep it default if you want,
  24720. 16:17:48but you can choose a custom option. Now,
  24721. 16:17:50when you choose a custom option, you'll
  24722. 16:17:52see that there is something called a
  24723. 16:17:53text splitter down below.
  24724. 16:17:58Our default data loader, let's add in a
  24725. 16:18:00text splitter. And there's three
  24726. 16:18:01options. You have the character text
  24727. 16:18:03splitter, which is split text into
  24728. 16:18:05chunks by characters. If you click over
  24729. 16:18:06this, you choose [snorts] a separator.
  24730. 16:18:08So, you can choose like a period or a
  24731. 16:18:10new line or however you specifically
  24732. 16:18:12want it on your characters. I don't
  24733. 16:18:15recommend that approach. The other one
  24734. 16:18:17over here is a token splitter. So this
  24735. 16:18:19splits literally by a number of tokens.
  24736. 16:18:22And if you remember a little bit earlier
  24737. 16:18:23when we were talking about large
  24738. 16:18:24language models, one of the ways that
  24739. 16:18:26they um specifically count how much
  24740. 16:18:29usage is by tokens. So tokens isn't
  24741. 16:18:31exactly by characters. There's a little
  24742. 16:18:34bit of difference between them. One I
  24743. 16:18:36would recommend that you use is the
  24744. 16:18:38recursive character text splitter. This
  24745. 16:18:40takes kind of the bo best of both sides.
  24746. 16:18:42So it splits text into chunks by
  24747. 16:18:44characters recursively. Recommended for
  24748. 16:18:45most use cases. So, for example, in this
  24749. 16:18:47one, it'll recursively grab like
  24750. 16:18:49paragraphs or specific breaks within
  24751. 16:18:52your text. So, this is what I would
  24752. 16:18:54recommend that you utilize and any end
  24753. 16:18:56does as well. Then you'll see something
  24754. 16:18:58that says chunk size and then chunk
  24755. 16:19:00overlap. So, what chunk size essentially
  24756. 16:19:02allows you to see is how many tokens of
  24757. 16:19:05text are we going to keep together. And
  24758. 16:19:07then overlap is going to be how much of
  24759. 16:19:10the previous chunk is used. So, to show
  24760. 16:19:12you a very basic example,
  24761. 16:19:14let's create two chunks. We're going to
  24762. 16:19:16start off with a chunk one and then
  24763. 16:19:18we'll have like a chunk two just to
  24764. 16:19:20explain the overlap. So imagine chunk
  24765. 16:19:22one we say Bill lily strings
  24766. 16:19:26is a jam
  24767. 16:19:28band bluegrass
  24768. 16:19:30guitarist.
  24769. 16:19:32And then chunk two is going to use a
  24770. 16:19:34little bit of overlap from chunk one and
  24771. 16:19:36say um jam band bluegrass guitarist.
  24772. 16:19:40He has played with
  24773. 16:19:46fish
  24774. 16:19:47and Tommy made three completely
  24775. 16:19:50different styles
  24776. 16:19:52and yeah that's fine over here. So
  24777. 16:19:55you'll see with an overlap we keep some
  24778. 16:19:57of the context of the earlier chunk so
  24779. 16:19:59that way we have this here in the
  24780. 16:20:01beginning and then we have our specific
  24781. 16:20:03chunk underneath it. So that is a
  24782. 16:20:05strategy a lot of people use. Obviously
  24783. 16:20:06there's other strategies um fused with
  24784. 16:20:08the data loader outside of Nen but
  24785. 16:20:11really out of the three options use a
  24786. 16:20:13recursive character text splitter. So
  24787. 16:20:16that is our first part of it and this is
  24788. 16:20:18like a very basic pipeline. We have to
  24789. 16:20:22obviously set up everything in pine cone
  24790. 16:20:24still because we have not done that as
  24791. 16:20:26of yet. So we're going to have to choose
  24792. 16:20:28our specific things in here. You can see
  24793. 16:20:30we have pine cone API account. I'll have
  24794. 16:20:32to show you how to set this up. We're
  24795. 16:20:34going to insert documents for operation.
  24796. 16:20:36Obviously, there's other things as well
  24797. 16:20:37that you could utilize in over here. I
  24798. 16:20:39haven't showed you the pine cone index
  24799. 16:20:40and I haven't shown you the embedding
  24800. 16:20:42batch size. So, a few other things that
  24801. 16:20:44we're going to have to do, but this is
  24802. 16:20:46the basics, right? We go over here, we
  24803. 16:20:48submit through a form submission. We go
  24804. 16:20:52and set up a pine cone vector store,
  24805. 16:20:54which I haven't shown you yet. We're
  24806. 16:20:55going to use an embeddings model. I just
  24807. 16:20:57recommend using embeddings large. A
  24808. 16:20:59little bit pricier, but a little better.
  24809. 16:21:00You're going to have some sort of data
  24810. 16:21:02loader and then you're going to have a
  24811. 16:21:03recursive character text splitter.
  24812. 16:21:06Easiest rag pipeline that you could set
  24813. 16:21:09up on the other side of it. And I'll
  24814. 16:21:12show you this here in a second. How do
  24815. 16:21:14you utilize what has been built over
  24816. 16:21:16here? Well, the first thing that you
  24817. 16:21:17would want to do is have a chat trigger
  24818. 16:21:19or however else you want to utilize
  24819. 16:21:21this. I'm just going to use a chat
  24820. 16:21:22trigger because we're going to ask
  24821. 16:21:23questions about a document. And then
  24822. 16:21:25what we can hop over here, there's a few
  24823. 16:21:27different options. You can use an AI
  24824. 16:21:29agent as one option. I see this used a
  24825. 16:21:32lot. Or you can go over here and search
  24826. 16:21:34for question. So you can see question
  24827. 16:21:36and answer chain and you can go over
  24828. 16:21:39here and ask about this as well. And
  24829. 16:21:41this one over here as a model and a
  24830. 16:21:43retriever. I'm just going to use an AI
  24831. 16:21:45agent for this example, but this is
  24832. 16:21:47another note I would highly recommend
  24833. 16:21:49because you can go over here and use
  24834. 16:21:51vector databases as well with this, but
  24835. 16:21:55we're going to just focus on our H agent
  24836. 16:21:56for this one. So, I'm going to close out
  24837. 16:21:58of this. Inside our AI agent, what we're
  24838. 16:22:01going to set up first is our OpenAI chat
  24839. 16:22:04or OpenAI model. It could really be
  24840. 16:22:06whatever model you want. Let's say we
  24841. 16:22:08use Enthropic this side. So, this
  24842. 16:22:10doesn't matter for the model. However,
  24843. 16:22:12when we go to our Pine Cone vector
  24844. 16:22:14store, which you'll see over here as a
  24845. 16:22:16tool. So, if I go over here and search
  24846. 16:22:17Pine Cone, you'll see pine cone matches.
  24847. 16:22:21So, this is our vector store, right?
  24848. 16:22:22We're using a pine cone vector store
  24849. 16:22:24here.
  24850. 16:22:25vector store over here. And what we have
  24851. 16:22:28to still do is create our index and
  24852. 16:22:30match all this. And that's fine. We'll
  24853. 16:22:32cover this a little bit later
  24854. 16:22:34and uh to set a description. And then
  24855. 16:22:37after this, you want to use an
  24856. 16:22:38embeddings model. And it should be the
  24857. 16:22:41same exact model that you have over
  24858. 16:22:42here. So sometimes I'll see people that
  24859. 16:22:44try to have like both of these are the
  24860. 16:22:46same over here. I just recommend you
  24861. 16:22:48copy this over. And it's super important
  24862. 16:22:50because if you don't have the correct
  24863. 16:22:52embedding model, you are going to have
  24864. 16:22:55issues. So make sure that these are the
  24865. 16:22:57same. Whatever you have on your
  24866. 16:22:58retrieval component as well as whatever
  24867. 16:23:01you have when you're embedding your
  24868. 16:23:03specific documents, you need to use the
  24869. 16:23:05same exact embeddings model. You're
  24870. 16:23:06going to have issues if you do not. So
  24871. 16:23:11obviously like this is a very simplistic
  24872. 16:23:13example over here. All we're doing is
  24873. 16:23:14chat message into an AI agent. Um we can
  24874. 16:23:17use whatever model we want over here.
  24875. 16:23:18However, your open AI needs to be the
  24876. 16:23:20same. There's a lot more complexity that
  24877. 16:23:24we can do and I'll show you a little bit
  24878. 16:23:25more, but I want to go into Pineco now.
  24879. 16:23:28All right. So, we're going to build this
  24880. 16:23:30out in Pine Cone now. So, go to pine
  24881. 16:23:32cone.io. You'll get brought to this page
  24882. 16:23:35right over here. Make sure you click the
  24883. 16:23:37sign up and it's going to essentially
  24884. 16:23:39have you go through that process. I've
  24885. 16:23:41already signed up, so I'm not going to
  24886. 16:23:42go through that. Really quick, I wanted
  24887. 16:23:44to show you where you can find your API
  24888. 16:23:46key. So I'm back over here. Let's
  24889. 16:23:48imagine I go back here and you'll see I
  24890. 16:23:51have two indexes and we'll create an
  24891. 16:23:53index over here. But the first thing you
  24892. 16:23:54have to do is go to your API keys. So
  24893. 16:23:56you'll see I have API keys over here.
  24894. 16:23:58Just click plus to make an API key.
  24895. 16:24:01Going back into any you'll see it says
  24896. 16:24:03credentials to connect with with our
  24897. 16:24:04Pine Cone API. So all you got to do is
  24898. 16:24:07paste in your API key over here. Again,
  24899. 16:24:10I've already set my API key up so I'm
  24900. 16:24:13not going to do that. But it's literally
  24901. 16:24:15two seconds. just go API key once you
  24902. 16:24:17have your specific account. All right,
  24903. 16:24:19so next thing we're going to do is click
  24904. 16:24:21create index. And what we'll do is
  24905. 16:24:25choose an index name. I'm just going to
  24906. 16:24:26call this old judge since that's what
  24907. 16:24:28we're going to be taking a look at. And
  24908. 16:24:31the next thing is you choosing your
  24909. 16:24:33embedding model. So as I mentioned, it's
  24910. 16:24:35important that you set this one to one.
  24911. 16:24:37We already defined our embedding model
  24912. 16:24:39over here. And if you remember, it's uh
  24913. 16:24:41three large. So just go over here and
  24914. 16:24:44search for three large. And this is
  24915. 16:24:46three small. This is three large. The
  24916. 16:24:49next thing that's really important is to
  24917. 16:24:51change your dimensions. So three large
  24918. 16:24:53uses 3072 dimensions. You'll see by
  24919. 16:24:56default over here we have 1,024.
  24920. 16:24:59So make sure you choose 3,72.
  24921. 16:25:02Nothing else changes over here. Uh we're
  24922. 16:25:04going to use AWS. And then I'm just
  24923. 16:25:06using this US East1. It's the closest
  24924. 16:25:08region uh over here. and uh deletion
  24925. 16:25:12protected. I just have this off because
  24926. 16:25:14this is just a testing account. So I'm
  24927. 16:25:16clicking free index
  24928. 16:25:19and it might take a second and it says
  24929. 16:25:22index is initializing. It says no
  24930. 16:25:24records yet. A record is an object you
  24931. 16:25:26can add an index for creating a vector
  24932. 16:25:27and metadata. So what we're going to do
  24933. 16:25:30is just click over here and go back into
  24934. 16:25:32part two. I'm going to just close out
  24935. 16:25:34part one because we don't need this here
  24936. 16:25:35anymore. And what we're going to do is
  24937. 16:25:38now configure this. So go into our pine
  24938. 16:25:41cone index. We need to look for the one
  24939. 16:25:43that we just created. And you'll see I
  24940. 16:25:45have old judge over here. So that's the
  24941. 16:25:47only thing I had to change. And then
  24942. 16:25:49over here as well, we're going to choose
  24943. 16:25:51old judge. So we'll actually set up this
  24944. 16:25:54prompt here in a second. But I just want
  24945. 16:25:57to set these both up from that side of.
  24946. 16:26:00So now what I'm going to do is
  24947. 16:26:02specifically add in our document.
  24948. 16:26:04Remember our we have a large document.
  24949. 16:26:05We're going to chunk it into smaller
  24950. 16:26:07sizes based off of what we have over
  24951. 16:26:10here. So, we have a document loader and
  24952. 16:26:12then we have our text splitter. Um, I
  24953. 16:26:14didn't actually set this overlap. So,
  24954. 16:26:17I'm going to do 800 and 400. Good thing
  24955. 16:26:19I double checked. So, we have a chunk
  24956. 16:26:21size 800. We overlap for 400.
  24957. 16:26:24And we're going to execute our workflow.
  24958. 16:26:26So, I'm going to upload a file and I'm
  24959. 16:26:28going to just find that same exact file
  24960. 16:26:30we already used. So, I'm just going to
  24961. 16:26:32go to downloads and we're going to use
  24962. 16:26:33this document over here. So, choose this
  24963. 16:26:36file, old judge. Click submit. And uh
  24964. 16:26:41now what it's going to do is go through
  24965. 16:26:42our vector store and go through there. I
  24966. 16:26:45don't know why it didn't think I
  24967. 16:26:46submitted the documents. So, I'm
  24968. 16:26:48actually going to save this and refresh
  24969. 16:26:51it. I'm just going to double check. I
  24970. 16:26:55don't know why it's
  24971. 16:26:57saying I didn't submit it. Going to
  24972. 16:26:58refresh this. Maybe it's already in over
  24973. 16:27:00here. If not, I'll just resubmit it
  24974. 16:27:02again. All right. It looks like it's not
  24975. 16:27:04in here. So, I'm just going to execute
  24976. 16:27:06this workflow. I'm going to choose a
  24977. 16:27:08document.
  24978. 16:27:09I'm going to click submit.
  24979. 16:27:11All right. And I have a problem over
  24980. 16:27:13here. So, let's take a look at our
  24981. 16:27:15issue. So, it says
  24982. 16:27:19we have our file. Oh, I know the issue.
  24983. 16:27:21We're looking for data, but our binary
  24984. 16:27:24file is called just file. So, make sure
  24985. 16:27:27that the top of your binary file is the
  24986. 16:27:29same.
  24987. 16:27:30You can see over here it's called file.
  24988. 16:27:33over here. It was looking at um data
  24989. 16:27:36initially. So, I just made this file.
  24990. 16:27:37I'm going to rerun this. So, execute.
  24991. 16:27:40I'm going to grab my old judge and I'm
  24992. 16:27:42going to submit it. Okay. Now, you'll
  24993. 16:27:45see it is loading and it says 17 items.
  24994. 16:27:48So, it took our document, the old judge
  24995. 16:27:50document I showed you a little bit
  24996. 16:27:50earlier. I turned it into 17 different
  24997. 16:27:53chunks. And just to make sure it works,
  24998. 16:27:55you can go over here and you'll see this
  24999. 16:27:57has been changed up. So you'll see that
  25000. 16:28:00we have the text over here and this is
  25001. 16:28:03our first one and it says there are no
  25002. 16:28:05Union Association baseball cards. It
  25003. 16:28:07ends off saying I I will do a team
  25004. 16:28:09breakdown all judge cards versus US UA
  25005. 16:28:12alumps and I can't speak today but
  25006. 16:28:14that's okay. The next one over here
  25007. 16:28:16Tommy McCarthy is only using association
  25008. 16:28:19over here talks a little bit about that.
  25009. 16:28:21Next one we have is league union
  25010. 16:28:23association talks a little bit about
  25011. 16:28:24that. And then we can see our overlaps
  25012. 16:28:26over here as well. So, recursive text
  25013. 16:28:28splitter and I'm going to just control F
  25014. 16:28:30just to show you guys. We have this in
  25015. 16:28:32the paragraph above or the chunk above.
  25016. 16:28:35There are no Union association baseball
  25017. 16:28:36cards. It says over here there are no
  25018. 16:28:38Union baseball cards like that. So, same
  25019. 16:28:40exact text and uh then we have that over
  25020. 16:28:44here on that side of things. And you can
  25021. 16:28:46see it's getting split a little bit
  25022. 16:28:47weird because of new lines, but that's
  25023. 16:28:49okay. So, we have those chunks. We can
  25024. 16:28:52take a look at them directly in this
  25025. 16:28:53output or we can take a look at it on
  25026. 16:28:56this side of things. So now what I want
  25027. 16:28:58to do is just go over here and uh go
  25028. 16:29:02into our AI agent and test this out. So
  25029. 16:29:04I need to write a description over here
  25030. 16:29:06really quick and we'll jump through that
  25031. 16:29:09here in a second. So, all I'm going to
  25032. 16:29:11say is a description, and I should be a
  25033. 16:29:13lot more granular, but I'm going to say
  25034. 16:29:15work with the Pine Cone data
  25035. 16:29:19data for questions
  25036. 16:29:22about Union Association,
  25037. 16:29:26Old Judge Baseball. Great.
  25038. 16:29:31Awesome. We have that. I'm going to save
  25039. 16:29:33and then let's go and ask a question
  25040. 16:29:36with the chat. So, I'm gonna open up our
  25041. 16:29:38chat and we're going to ask a question.
  25042. 16:29:41I'm gonna say, "What are the most famous
  25043. 16:29:46Union Association
  25044. 16:29:49players with old judge baseball cards?"
  25045. 16:29:54So, this AI agent should populate our
  25046. 16:29:56pine cone vector store. Obviously, I'd
  25047. 16:29:58want to fill out our system prompt as
  25048. 16:30:00well. I'm just going to say you you are
  25049. 16:30:04a baseball
  25050. 16:30:06hard researcher
  25051. 16:30:10for any questions
  25052. 16:30:13about unionization.
  25053. 16:30:19Um, old judge cards
  25054. 16:30:23the pine cone vector store. Again, not
  25055. 16:30:26the best prompt. I'll do something a
  25056. 16:30:29little better, but that's fine. All
  25057. 16:30:30right, ready? Let's save this and let's
  25058. 16:30:32send this out. So now it'll go in our AI
  25059. 16:30:35agent. It's going to anthropic first.
  25060. 16:30:37Then it should go into our pine cone
  25061. 16:30:38vector store. You can see it went over
  25062. 16:30:40here. It used our embeddings. Came back
  25063. 16:30:43over here. It goes back to our anthropic
  25064. 16:30:45chat model. Right now chat model is
  25065. 16:30:46thinking because it has the context of
  25066. 16:30:48what was searched in this particular
  25067. 16:30:50vector store. So it searches the vector
  25068. 16:30:52store. It finds the chunks that are
  25069. 16:30:54relevant and it's going to keep sending
  25070. 16:30:56it back over here until we get our
  25071. 16:30:57specific answer. So let's see what ends
  25072. 16:31:00up happening.
  25073. 16:31:01And uh yeah, so you can see based on the
  25074. 16:31:04research data here, the most famous
  25075. 16:31:05Union Association players with Oldage
  25076. 16:31:07baseball cards, top five and I believe
  25077. 16:31:09this is just everything from our article
  25078. 16:31:11with points across the board. You can
  25079. 16:31:14see all of them over here and this is
  25080. 16:31:16correct. Um Tommy McCarthy, Jack
  25081. 16:31:18Clemens, Jim McCormack, Glascock, and
  25082. 16:31:21Fred Shershot Dunlap. We have all of our
  25083. 16:31:24different data points over here just
  25084. 16:31:26based off of what was in that particular
  25085. 16:31:28article. So most simple version of rag
  25086. 16:31:32over here um outside of the open AI
  25087. 16:31:34where all we had to do is upload a file.
  25088. 16:31:36You can see it's a little bit of work
  25089. 16:31:37doing this and you can really start
  25090. 16:31:38thinking about all the nuances like hey
  25091. 16:31:40what's going to happen when we need to
  25092. 16:31:43update a file like you have to build out
  25093. 16:31:45things for that. Hey what happens if we
  25094. 16:31:47don't have a document like we have to
  25095. 16:31:49extract out text. Um and there's other
  25096. 16:31:52things as well that I'm going to show
  25097. 16:31:53you really quick. So one of the things I
  25098. 16:31:55want to show you is a reranker. So this
  25099. 16:31:58is pretty easy to set up and essentially
  25100. 16:32:01what happens in rag is it tries to find
  25101. 16:32:04the most relevant chunks for you. But
  25102. 16:32:06what if we want to grab more and rerank
  25103. 16:32:08them and get better results? Well,
  25104. 16:32:10reranker can allow us to do it really
  25105. 16:32:12really fast. So
  25106. 16:32:15over here we can see we only bring four
  25107. 16:32:18relevant chunks. So you can see chunk
  25108. 16:32:20one, chunk two, chunk three, and chunk
  25109. 16:32:23four. Well, our reancher allows us to
  25110. 16:32:25grab a lot more. And all we have to do
  25111. 16:32:28is go over here and say rerank results.
  25112. 16:32:31And I'm going to add in the cohhere
  25113. 16:32:33reranker. So I just go over here and
  25114. 16:32:36that's the only one currently available.
  25115. 16:32:37I believe there is other rerankers out
  25116. 16:32:39there, but it says use co ranker to
  25117. 16:32:41reorder documents after retrieval from a
  25118. 16:32:43vector store for relevance. So I'm going
  25119. 16:32:44to click on that. And there's a few
  25120. 16:32:47different models. I'm just going to keep
  25121. 16:32:48rerank 35. And you can choose a top end.
  25122. 16:32:51I'm going to choose a top end of five so
  25123. 16:32:54we get more chunks available. And um we
  25124. 16:32:58can just go over there on that side of
  25125. 16:33:00things. And uh yeah, we'll put over here
  25126. 16:33:03limit of 20. So this will get well
  25127. 16:33:06actually since we don't have 20 doesn't
  25128. 16:33:07make sense. We'll say it grabs 10
  25129. 16:33:09chunks. So this side will grab now 10
  25130. 16:33:12chunks instead of four. And then this
  25131. 16:33:14will grab the top five most relevant
  25132. 16:33:16ones based off of the user query. So a
  25133. 16:33:18little bit different. Uh the last one we
  25134. 16:33:20did, we only grabbed the four relevant
  25135. 16:33:22chunks. This one over here is going to
  25136. 16:33:25grab 10 relevant chunks here and then
  25137. 16:33:28the ranker is going to rank them based
  25138. 16:33:29off of relevancy and give us five since
  25139. 16:33:32we defined top end over there. So that
  25140. 16:33:35is a reranker. Honestly, it's so easy to
  25141. 16:33:37throw in over here. I just wanted to
  25142. 16:33:39show you that really fast as kind of
  25143. 16:33:41like a little bit more intermediate.
  25144. 16:33:43We're going to save that and I can run
  25145. 16:33:45this question again. So if I open up
  25146. 16:33:47chat,
  25147. 16:33:49I'll ask the same thing. It's a very
  25148. 16:33:51short article. So, um, we can do that.
  25149. 16:33:53I'm just going to reset this and then
  25150. 16:33:55paste this in. And I'll show you the
  25151. 16:33:57difference on what happens over here.
  25152. 16:33:58So, we already saw on this side of
  25153. 16:34:00things. Well, it's gone now. We only had
  25154. 16:34:02four. Um, but this time it's going to
  25155. 16:34:03expand to 10. And then this one over
  25156. 16:34:05here will show five. So, I'm going to
  25157. 16:34:06ask the same question. It's going to go
  25158. 16:34:09in over here and grab this specific
  25159. 16:34:12data.
  25160. 16:34:17Okay. So,
  25161. 16:34:19we have our results over here. And you
  25162. 16:34:21can see we get the same five players and
  25163. 16:34:23it also gives us an important note on
  25164. 16:34:25this side of things. So our ranking code
  25165. 16:34:27here we have our results
  25166. 16:34:30that side of things and uh we get the
  25167. 16:34:32top five one two three and four and here
  25168. 16:34:36we have the page content and we have all
  25169. 16:34:38that built in. So I would recommend that
  25170. 16:34:41you add a reanker over here. It's
  25171. 16:34:43probably a little bit additional cost
  25172. 16:34:45but it's going to improve your accuracy.
  25173. 16:34:47And you can see there's 15 items total
  25174. 16:34:48that were uh sent back over that side of
  25175. 16:34:51things. Okay. So, one other thing I just
  25176. 16:34:53want to quickly bring up on this rag
  25177. 16:34:56section is you can add in additional
  25178. 16:34:59metadata. So, why this is important is
  25179. 16:35:01like in a vector database you could have
  25180. 16:35:03multiple departments possibly using this
  25181. 16:35:06and there's different types of documents
  25182. 16:35:08and metadata allows us to really filter
  25183. 16:35:10down things really easy. So imagine in
  25184. 16:35:12my vector database I add articles about
  25185. 16:35:14baseball cards, football cards, um let's
  25186. 16:35:17say soccer cards, cricket cards, it
  25187. 16:35:20doesn't matter. I can add in metadata
  25188. 16:35:22over here. So if you go to metadata, I'm
  25189. 16:35:25going to add a name. So I can say over
  25190. 16:35:27here sport and for this document I can
  25191. 16:35:30say baseball. Now obviously this is
  25192. 16:35:32hardcoded in over here and you can make
  25193. 16:35:34it a lot more dynamic. Um, but I just
  25194. 16:35:36want to show you that you can label a
  25195. 16:35:38specific document and say, "Hey, this
  25196. 16:35:39document is just focused around
  25197. 16:35:41baseball. We can also say like era and
  25198. 16:35:44well, this is really focused around
  25199. 16:35:461800s." So, it's just adding an
  25200. 16:35:48additional context to the specific
  25201. 16:35:51information that you're adding to your
  25202. 16:35:53vector database. So, that's what
  25203. 16:35:54metadata allows you to utilize. In my
  25204. 16:35:57metadata video, [snorts] we talk about
  25205. 16:35:59how we can do this dynamically. Um, just
  25206. 16:36:01for use of time, we're not going to do
  25207. 16:36:02that in over here. All right. So to kind
  25208. 16:36:05of just recap everything first, why do
  25209. 16:36:07we care about rag? Well, rag allows us
  25210. 16:36:10to utilize our own custom data with our
  25211. 16:36:13AI agents and other nodes. Essentially,
  25212. 16:36:16when you use large language models,
  25213. 16:36:18they're not trained on two things.
  25214. 16:36:20They're not trained on newer data and
  25215. 16:36:22they're not trained on your own personal
  25216. 16:36:23data. Rag solves the answer for the
  25217. 16:36:26personal data side of things. Now,
  25218. 16:36:29there's some simple ways that you could
  25219. 16:36:30use rag like what I showed you with
  25220. 16:36:31OpenAI or you can build out advanced
  25221. 16:36:34pipelines. This is a very basic
  25222. 16:36:36pipeline. Like I'm not even saying this
  25223. 16:36:38is great by any means and I would not
  25224. 16:36:40recommend that you use this HIPPA
  25225. 16:36:42pipeline in production because there's a
  25226. 16:36:43lot more that you should utilize. This
  25227. 16:36:45makes assumption we're only using doc x
  25228. 16:36:47files and we have clean data and like
  25229. 16:36:50we're not updating our data. In the real
  25230. 16:36:52world, you're going to have scenarios
  25231. 16:36:53where there's different data types that
  25232. 16:36:54people want to upload. there's going to
  25233. 16:36:56be new versions of data that you're
  25234. 16:36:58going to have to upload and you have to
  25235. 16:36:59really control all this pieces of
  25236. 16:37:01information. A few other key points. So,
  25237. 16:37:03when we embed our text, we're taking our
  25238. 16:37:06text like this and turning it into a
  25239. 16:37:08vector representation of numbers. When
  25240. 16:37:10things are closely related, they're
  25241. 16:37:12going to have closer vectors. When
  25242. 16:37:13things are far apart from each other,
  25243. 16:37:15for example, software and Metallica,
  25244. 16:37:17their vectors are going to be farther
  25245. 16:37:19away within a vector database. You have
  25246. 16:37:22a lot of different embeddings models out
  25247. 16:37:23there. The easiest one to probably use
  25248. 16:37:25out of the box is going to be OpenAI
  25249. 16:37:27small or large. Large is going to cost
  25250. 16:37:29you a little bit more money, but I would
  25251. 16:37:30recommend that you utilize that. Um,
  25252. 16:37:33text splitting wise, I would recommend
  25253. 16:37:35that you use the recursive text
  25254. 16:37:37character text splitter. So,
  25255. 16:37:39essentially, it recursively breaks apart
  25256. 16:37:41your document and this is the best one
  25257. 16:37:43out in the market, at least in any end.
  25258. 16:37:45I can see this changing here in the
  25259. 16:37:47future, but I would recommend using
  25260. 16:37:48that. And then you can define the chunk
  25261. 16:37:51size as well as the overlap. Remember
  25262. 16:37:53overlap is from the previous section.
  25263. 16:37:55When you're going to go and actually
  25264. 16:37:57query the vector store, uh first thing
  25265. 16:37:59you need to make sure that when you set
  25266. 16:38:02this up, you're using the same embedding
  25267. 16:38:03model as over here. So make sure those
  25268. 16:38:06are one to one. Uh you can also return a
  25269. 16:38:09different amount of results each time.
  25270. 16:38:11This is based off of this limit over
  25271. 16:38:12here. So number of top results to fetch
  25272. 16:38:15from the vector store. You can also
  25273. 16:38:17increase this based off of a reranker.
  25274. 16:38:19And a reranker will essentially allow us
  25275. 16:38:21to grab more results, rank them, and
  25276. 16:38:23only send the relevant ones associated
  25277. 16:38:25with it. This is static right now. And
  25278. 16:38:27you can see it says top end, but I can
  25279. 16:38:29see them making this a little bit more
  25280. 16:38:30dynamic here in the future. So, since
  25281. 16:38:34you're with an AI agent, if you add in a
  25282. 16:38:35vector store, that allows us to grab the
  25283. 16:38:37information that we populated a little
  25284. 16:38:39bit earlier over here. Lastly, when
  25285. 16:38:40you're uploading in documents and text,
  25286. 16:38:43you can add in additional metadata just
  25287. 16:38:45to give a little bit more context on
  25288. 16:38:47what is going on. And you can filter by
  25289. 16:38:48that metadata as well. So this is again
  25290. 16:38:51surface level of rag. I'm actually going
  25291. 16:38:53to be making a lot more rag videos here
  25292. 16:38:55on the YouTube channel as well as
  25293. 16:38:56probably like a rag any end course
  25294. 16:38:58that's going to be like four or five
  25295. 16:39:00hours. It's going to be a lot better
  25296. 16:39:02presentation than just this rag section.
  25297. 16:39:04I'll I'll really dive you through a lot
  25298. 16:39:05of different examples and things like
  25299. 16:39:07this. This is just a small part of our
  25300. 16:39:09nan course and there's so much that we
  25301. 16:39:11have to cover. But just know that this
  25302. 16:39:12tool is available for you and I think it
  25303. 16:39:15will really help out your workflows when
  25304. 16:39:17it necessarily is needed. I'm actually
  25305. 16:39:19going to give you guys a rag challenge.
  25306. 16:39:21I'm not going to build it out, but I
  25307. 16:39:23want you to build out a solution for it
  25308. 16:39:25and I'll talk about it right now. All
  25309. 16:39:27right. So, here is the project I want
  25310. 16:39:29you guys to try with the knowledge I
  25311. 16:39:30just covered. I want you to build out a
  25312. 16:39:33rag workflow that will help answer
  25313. 16:39:35support tickets. What I want you to do
  25314. 16:39:37is generate some examples of questions
  25315. 16:39:39that people have and the specific
  25316. 16:39:41results that would be asked for those
  25317. 16:39:44particular questions. Obviously, it's
  25318. 16:39:45going to take some time building out a
  25319. 16:39:47document and how you want to
  25320. 16:39:49specifically respond back. But this is
  25321. 16:39:52just one of the most common use cases
  25322. 16:39:53for rag out there. And I want to give
  25323. 16:39:55you guys a little bit of challenge. This
  25324. 16:39:56is kind of towards the end of the
  25325. 16:39:57course. You have learned a lot about the
  25326. 16:39:59different nodes. You learned a little
  25327. 16:40:01bit about Rag. Let's see if you could
  25328. 16:40:03build this one out. And if you want some
  25329. 16:40:05feedback as well, feel free to post it
  25330. 16:40:07in the school community. We've done a
  25331. 16:40:09lot of walkthroughs together on smaller
  25332. 16:40:11projects and workflows, but this is one
  25333. 16:40:13I want to see you build that out. So,
  25334. 16:40:15build it out for a specific domain, post
  25335. 16:40:17it in our school group, and you'll get
  25336. 16:40:19some feedback from some of our members.
  25337. 16:40:22Anyways, the next section is going to be
  25338. 16:40:24a little bit different. We're going to
  25339. 16:40:25be talking about how you can land
  25340. 16:40:27customers. This was the last technical
  25341. 16:40:29NAN video and obviously one of the
  25342. 16:40:31hardest parts to understand here in the
  25343. 16:40:34beginning. I'm losing my voice because
  25344. 16:40:35we've talked so much throughout this
  25345. 16:40:37course and I'm a bit tired but we're
  25346. 16:40:39going to jump into Upwork right now for
  25347. 16:40:41freelancing and I will see you right
  25348. 16:40:43there. All right. So, we've covered most
  25349. 16:40:45of the N material. There might be like
  25350. 16:40:47one or two lectures after this but I
  25351. 16:40:49wanted to show you guys how you can land
  25352. 16:40:51customers. I'm going to be using a
  25353. 16:40:53platform called Upwork. I think this is
  25354. 16:40:55probably the easiest way for you to get
  25355. 16:40:57a customer. It's not easy by any means.
  25356. 16:41:00It will take some work. However, uh
  25357. 16:41:02everyone on Upwork that's posting a job
  25358. 16:41:04wants to hire someone uh for a specific
  25359. 16:41:07task. So, you're getting a very warm
  25360. 16:41:10lead. Uh I'm going to share my screen
  25361. 16:41:11and we're going to walk through probably
  25362. 16:41:12a live proposal or two. And yeah, so
  25363. 16:41:17here we are on the website. First,
  25364. 16:41:19you're gonna have to set up your account
  25365. 16:41:21and get that going. You know, honestly,
  25366. 16:41:23it might take you hour or two hours to
  25367. 16:41:25set up account. My profile is not even
  25368. 16:41:27that great. I go over to my profile.
  25369. 16:41:30You'll take a look at this. And I'm
  25370. 16:41:31going to roast my profile on here as we
  25371. 16:41:35load this up. So, I have data YouTuber
  25372. 16:41:38specializing in Nan, Python, and SQL.
  25373. 16:41:42That's an okay title.
  25374. 16:41:44I should put like data and AI.
  25375. 16:41:48And we're going to say Oh, my Arley's
  25376. 16:41:50fine. I needed to change that.
  25377. 16:41:52data
  25378. 16:41:55and AI.
  25379. 16:41:58Yeah, I like that. It's fine.
  25380. 16:42:01That looks a little bit better because
  25381. 16:42:04these are projects I've taken any
  25382. 16:42:05projects, Python as well as SQL. You
  25383. 16:42:08know, my picture over here does not look
  25384. 16:42:10that great. I should change that up.
  25385. 16:42:13It's honestly not that good. Uh, okay.
  25386. 16:42:17Then I have essentially a bio data
  25387. 16:42:20scientist fintech industry.
  25388. 16:42:23I probably don't even talk about N.
  25389. 16:42:26Look at this. I I have 25,000
  25390. 16:42:28subscribers.
  25391. 16:42:30I talk about AI automations. Oh, there
  25392. 16:42:32we go.
  25393. 16:42:34N all caps. When I first learned about
  25394. 16:42:37an uh portfolio is pretty garbage. You
  25395. 16:42:40can see I have this project over here. I
  25396. 16:42:43have a
  25397. 16:42:45YouTube channel and a looker dashboard.
  25398. 16:42:48That's it. Now, I wouldn't recommend
  25399. 16:42:51that. In fact, I'm probably going to go
  25400. 16:42:52in here and beef up my portfolio
  25401. 16:42:56because I I don't think it's that great,
  25402. 16:42:59but it shows you like if you apply to
  25403. 16:43:02jobs and you get experience and things
  25404. 16:43:04like that, you can get jobs. Like my
  25405. 16:43:06portfolio on here is terrible. This bio
  25406. 16:43:09is terrible. Like, this is okay. A lot
  25407. 16:43:12of my jobs literally just come from me
  25408. 16:43:15writing great proposals and uh just
  25409. 16:43:19showing value. Also, obviously, this is
  25410. 16:43:21not that great either as a profile
  25411. 16:43:23picture. So, a lot of stuff I can
  25412. 16:43:25improve on. I have a video over here
  25413. 16:43:27that looks okay. And uh yeah, so let's
  25414. 16:43:32jump into it on there. So, I'm going to
  25415. 16:43:34go to find work.
  25416. 16:43:36And the first thing I'm going to take a
  25417. 16:43:37look at is N jobs. So I'm just going to
  25418. 16:43:41search N. Now people might search for
  25419. 16:43:44other jobs out there outside of N. Like
  25420. 16:43:47it might say a automations or make or
  25421. 16:43:50Zapier. So you're going to want to look
  25422. 16:43:52at stuff like that. And this is a senior
  25423. 16:43:54NAN automation engineer web hooks
  25424. 16:43:56payments air table and production
  25425. 16:43:59systems. So this is interesting.
  25426. 16:44:02We're going to probably look at this
  25427. 16:44:04here in a second.
  25428. 16:44:06It's one possible. We're going to go
  25429. 16:44:09over here and say most recent because
  25430. 16:44:11you want to apply to new jobs as well.
  25431. 16:44:14Here is a automation out of Canada. So
  25432. 16:44:16I'll load that up over here. Data and
  25433. 16:44:18technology analyst support development
  25434. 16:44:20of make.com and an workflows in
  25435. 16:44:23monday.com. Now here's the deal. I
  25436. 16:44:25actually have a monday.com
  25437. 16:44:28video. So this actually might be a good
  25438. 16:44:30one to apply to. Aa automation
  25439. 16:44:33specialist and chat GPT. This Columbia I
  25440. 16:44:36typically only focus jobs that are like
  25441. 16:44:38US, UK, and Canada based. There's a few
  25442. 16:44:41other countries as well. Um, senior N.
  25443. 16:44:44We already looked at that one. Quick fix
  25444. 16:44:46needed. $10 budget. That's pretty bad.
  25445. 16:44:52Experience N dev traditional development
  25446. 16:44:56experience.
  25447. 16:45:01Don't like this one at all.
  25448. 16:45:07Let's see. Email management. These are a
  25449. 16:45:10little bit older, but I'd still maybe
  25450. 16:45:11take a look at this. Automation
  25451. 16:45:13developer to build YouTube video and
  25452. 16:45:14food blog generation recipes. That's
  25453. 16:45:18interesting. Might actually apply to
  25454. 16:45:20that one.
  25455. 16:45:22I do like
  25456. 16:45:24some cooking
  25457. 16:45:26workflow air. It's 20 bucks. It's not
  25458. 16:45:28worth it. And here's the deal. like
  25459. 16:45:32you might want to take on some of these
  25460. 16:45:34$20 jobs just to get some experience on
  25461. 16:45:36your profile. It's not always about
  25462. 16:45:39getting $100 jobs, $80 jobs, $50 jobs,
  25463. 16:45:4220 like start small, get some reviews,
  25464. 16:45:46and slowly increase your reach. All
  25465. 16:45:50right, so we have a few other ones over
  25466. 16:45:52here.
  25467. 16:45:54Estimated budget $30. Yeah, no, thank
  25468. 16:45:56you.
  25469. 16:45:58New we vibe coded a
  25470. 16:46:01need to implement our vibe code. I don't
  25471. 16:46:04want to do that.
  25472. 16:46:06Text image and video process. This is
  25473. 16:46:09interesting.
  25474. 16:46:16Oh, you know what?
  25475. 16:46:19I literally built this out essentially.
  25476. 16:46:21Let's take a look. We're looking for any
  25477. 16:46:23especially create the following process
  25478. 16:46:24for us to have a list of short video
  25479. 16:46:26ideas on a spreadsheet. Then use an open
  25480. 16:46:28source LM model like deepseeker llama. I
  25481. 16:46:30will create the following. The prompt
  25482. 16:46:32for the three images a 15-second script
  25483. 16:46:36video
  25484. 16:46:38back into this.
  25485. 16:46:40So creates the three videos from the
  25486. 16:46:42three images. The workflow needs to turn
  25487. 16:46:44the 15-second script into audio.
  25488. 16:46:49So like this is a fine project,
  25489. 16:46:53but I'm not going to apply to it. So, a
  25490. 16:46:56few things over here. Like the budget's
  25491. 16:46:58$200.
  25492. 16:47:00This is going to take a lot longer than
  25493. 16:47:02a few hours. Like my normal rates like
  25494. 16:47:05$80, $90 an hour.
  25495. 16:47:07And uh yeah, I I think this is way
  25496. 16:47:10longer than a two-hour job. So, I could
  25497. 16:47:13increase the rate if I really wanted to.
  25498. 16:47:16But you can see like this person kind of
  25499. 16:47:19wants cheaper customers or sorry,
  25500. 16:47:21cheaper freelancers. mentions over here
  25501. 16:47:24like $5 for this job. $5 for this job.
  25502. 16:47:27Has a four-st star review here.
  25503. 16:47:32I'm just I'm not going to go after this
  25504. 16:47:34job on that side of things. I just don't
  25505. 16:47:37think it'd be a great fit. Next, we see
  25506. 16:47:40AI automation developer to build YouTube
  25507. 16:47:42video and food blog generation system
  25508. 16:47:45cooking recipe. So, let's take a look at
  25509. 16:47:47this. This is might be up more my alley.
  25510. 16:47:50Looking for experience. AI automation to
  25511. 16:47:52divine develop an end to end automated
  25512. 16:47:54system that generates YouTube videos for
  25513. 16:47:56a channel focused on creating recipes
  25514. 16:47:58for an active YouTube channel with its
  25515. 16:48:00associated website and social accounts.
  25516. 16:48:02It's expected to have one long form
  25517. 16:48:04YouTube video that produces a recipe
  25518. 16:48:06post on the website and several short
  25519. 16:48:08reals to be posted multiple things.
  25520. 16:48:11So, is this like
  25521. 16:48:14an AI video? I was thinking like we're
  25522. 16:48:17going to do some type of scripts for a a
  25523. 16:48:19cooking YouTube channel.
  25524. 16:48:27This person doesn't know what they're
  25525. 16:48:28talking about. They want YouTube
  25526. 16:48:30monetization
  25527. 16:48:31or AI workflow. Like that doesn't
  25528. 16:48:35No,
  25529. 16:48:40I'm not doing this job. Like we're
  25530. 16:48:42asking five questions over here.
  25531. 16:48:47gave a freelancer four stars and they're
  25532. 16:48:50all kind of over the place on this. Like
  25533. 16:48:53it's it's not a great fit. So I'm not
  25534. 16:48:55going to apply to that job. All right.
  25535. 16:48:57Data and technology analyst to support
  25536. 16:48:59development of make and workflows and
  25537. 16:49:01monday.com. So let's see what he says.
  25538. 16:49:03Current a consulting firm and need a
  25539. 16:49:04junior technology analyst that is
  25540. 16:49:06wellversed in make and I monday.com to
  25541. 16:49:09help deliver a project. Ideally, you
  25542. 16:49:10have a computer science or computer
  25543. 16:49:13engineering background. So, you can
  25544. 16:49:14quickly learn the project requirements
  25545. 16:49:16delivered. For this particular role,
  25546. 16:49:17you'll be reporting to an existing
  25547. 16:49:19manager on my team and will support the
  25548. 16:49:20manager in day-to-day operations.
  25549. 16:49:24I think this guy wants like a full-time
  25550. 16:49:26person for 500 bucks.
  25551. 16:49:29Again, like this doesn't seem like it's
  25552. 16:49:33going to be a great fit.
  25553. 16:49:36Now I have a background in electrical
  25554. 16:49:37engineering. So um that's almost
  25555. 16:49:40computer engineering. We took a lot of
  25556. 16:49:41those courses. I took a lot of computer
  25557. 16:49:43science courses
  25558. 16:49:45obviously have any experience. I built a
  25559. 16:49:47mundday.com workflow but this one
  25560. 16:49:51probably not one to apply to. All right.
  25561. 16:49:53AI automation expert. We're seeking AI
  25562. 16:49:56automation specialist to design,
  25563. 16:49:58implement and manage scalable systems
  25564. 16:50:00that improve operational efficiency. The
  25565. 16:50:02roles are responsible end development
  25566. 16:50:04AIdriven workflows. So this is fine so
  25567. 16:50:07far.
  25568. 16:50:10Deploy complex workflows
  25569. 16:50:13audit manual department processes. This
  25570. 16:50:16is pretty good so far.
  25571. 16:50:20Done all that. Internal tooling and this
  25572. 16:50:23AI implementation.
  25573. 16:50:26Yep.
  25574. 16:50:28Super easy on here.
  25575. 16:50:35However, it's only $600.
  25576. 16:50:38Now, the thing is it's $45 an hour
  25577. 16:50:41average rate. So, this isn't too bad.
  25578. 16:50:44You can see there's 20 to 50
  25579. 16:50:45applications.
  25580. 16:50:48So, I need someone to upgrade features.
  25581. 16:50:53What else do we have over here?
  25582. 16:50:56Google Ads specialist 10 hours at 50 an
  25583. 16:50:59hour, 12 hours at 100 an hour. So this
  25584. 16:51:02guy will pay
  25585. 16:51:05and you can see that was the Martin
  25586. 16:51:06Shopify audit $300.
  25587. 16:51:13So pretty good reviews back and forth.
  25588. 16:51:15Like we see some eight hours at there
  25589. 16:51:2050. So we're going to apply to this job.
  25590. 16:51:22I like this job over here. Um, let's see
  25591. 16:51:24if there's any other ones I want to
  25592. 16:51:26apply to. I have the other one or two
  25593. 16:51:29up.
  25594. 16:51:31See, looking. That's5 to $15 an hour.
  25595. 16:51:34Probably not going to be the case. I'm
  25596. 16:51:35still going to look at his salary he's
  25597. 16:51:37paid other people.
  25598. 16:51:41I I really like that one so far. I
  25599. 16:51:44haven't done Voice Agents yet, but I
  25600. 16:51:46want to cover that in the future.
  25601. 16:51:49I like Mistral. However, it's in
  25602. 16:51:52Lithuania. I don't know if I'm gonna
  25603. 16:51:53apply for that one.
  25604. 16:51:58Good budget, though. Well, let's not
  25605. 16:52:01discriminate. Well, let's take a look
  25606. 16:52:02what's over there.
  25607. 16:52:11All right. I think we're going to be in
  25608. 16:52:13a good spot.
  25609. 16:52:23All right. So, we're just going to take
  25610. 16:52:25a look at these other ones.
  25611. 16:52:28Web hooks, payments, networking
  25612. 16:52:29payments. So,
  25613. 16:52:3230 to 40 workflows. Look at that.
  25614. 16:52:51Look at how many questions you have to
  25615. 16:52:53answer.
  25616. 16:52:55All will be ignored. One 2 3 4 5 6 7 8
  25617. 16:53:039 10 11 12.
  25618. 16:53:07There's literally like 20 questions on
  25619. 16:53:09here.
  25620. 16:53:12that. Oh, well, he already hired
  25621. 16:53:14someone. It says hires one. So, not even
  25622. 16:53:16worth me going through this.
  25623. 16:53:19I'm not going to say that. I've I've
  25624. 16:53:22never seen a job with like 20 questions
  25625. 16:53:24for an application.
  25626. 16:53:27I mean, I've had like I feel like a lot
  25627. 16:53:29of this could be asked on a call. Like,
  25628. 16:53:31you don't need to have all 20 here. Not
  25629. 16:53:33the not the wrist jobs, but All right.
  25630. 16:53:36So, we like the $600 one. We're gonna
  25631. 16:53:39get clarity on that budget.
  25632. 16:53:43What's this one over here?
  25633. 16:53:45Although I have a few N automations that
  25634. 16:53:47I need help fixing, maintain or
  25635. 16:53:48optimizing, make sure they work. One,
  25636. 16:53:51YouTube automation, other social media
  25637. 16:53:53postings. It's5 to $15 an hour.
  25638. 16:53:57So, we have 31 hours at 25 2025.
  25639. 16:54:04This doesn't seem horrible. However,
  25640. 16:54:07look at this.
  25641. 16:54:10I mean, a lot of people have great
  25642. 16:54:12reviews on this guy,
  25643. 16:54:14but that one person did not
  25644. 16:54:27kind of scare me a little bit.
  25645. 16:54:32And this guy is a a pretty good
  25646. 16:54:34freelancer, too,
  25647. 16:54:37and has good reviews.
  25648. 16:54:40The fact that this is 5 to$15 an hour
  25649. 16:54:42and there's like no description, I'm
  25650. 16:54:44probably not going to answer that.
  25651. 16:54:46Again, you can take risks. Um, oh, look
  25652. 16:54:49at this one over here. This guy only has
  25653. 16:54:50seven hours at $20 an hour.
  25654. 16:54:53Mistrol,
  25655. 16:55:00it's fine. But there's already 50 plus
  25656. 16:55:02proposals.
  25657. 16:55:04Let's just go with this one over here.
  25658. 16:55:07And obviously the $600, we can start a
  25659. 16:55:09conversation with it, but I'm going to
  25660. 16:55:12go and answer this one. And I know I've
  25661. 16:55:14spent a lot of time just talking this
  25662. 16:55:16through, but I think it's kind of
  25663. 16:55:19important to see kind of my mindset on
  25664. 16:55:21applying to jobs. So, we're going to
  25665. 16:55:22apply now.
  25666. 16:55:25And uh
  25667. 16:55:27we're just going to say by milestone.
  25668. 16:55:30I'm going to say milestone one.
  25669. 16:55:33We're going to say budget 600.
  25670. 16:55:35Obviously, this is a conversation we're
  25671. 16:55:36going to have with the with the person
  25672. 16:55:40itself. We just put this as January
  25673. 16:55:4231st.
  25674. 16:55:43They can change the payments,
  25675. 16:55:47etc. So, let's grab his
  25676. 16:55:52thing over here. We'll bring that in
  25677. 16:55:54first. Let's find this guy's first name.
  25678. 16:55:57So, clear direction. Awesome client.
  25679. 16:56:00Great client.
  25680. 16:56:03That might be the name.
  25681. 16:56:08Yeah. So, Farzanna and our client
  25682. 16:56:12Farana. Hopefully, that's how I
  25683. 16:56:14pronounce it. But we're going to start
  25684. 16:56:17this off because we did that research by
  25685. 16:56:20Farzanza.
  25686. 16:56:22So, we're seeking AI implement implement
  25687. 16:56:24manage scalable systems improve
  25688. 16:56:26operational efficiency. This role offers
  25689. 16:56:28end to end development AI workflows in
  25690. 16:56:31the seamless integration record business
  25691. 16:56:33platforms.
  25692. 16:56:35So I'm going to say I build
  25693. 16:56:38a ton of AI automations
  25694. 16:56:43at
  25695. 16:56:45AI automations.
  25696. 16:56:47Well, let's think about this here in a
  25697. 16:56:49second. my full-time job
  25698. 16:56:54and I run a N
  25699. 16:56:58YouTube tube channel over 75 videos
  25700. 16:57:04and
  25701. 16:57:08100K I'm just brainstorming right now.
  25702. 16:57:11100K views.
  25703. 16:57:15Next, what we want to put in here as
  25704. 16:57:16well. Um, so first why I put this over
  25705. 16:57:19here. It's some sort of proof. Like I'm
  25706. 16:57:23gonna talk about my full-time job being
  25707. 16:57:24a data scientist and doing automations.
  25708. 16:57:27I'm gonna talk about the YouTube channel
  25709. 16:57:28that has 75 videos and and gets over
  25710. 16:57:31100k views a month. Gets over I'm going
  25711. 16:57:34to write this better obviously, but I'm
  25712. 16:57:36just trying to think of different
  25713. 16:57:37things. So design, implement, manage
  25714. 16:57:40scalable systems that improve
  25715. 16:57:41operational efficiency.
  25716. 16:57:44So that's what they're really caring
  25717. 16:57:45about. and u
  25718. 16:57:50rest APIs. Perfect. Look at that. So,
  25719. 16:57:56REST API
  25720. 16:58:00video.
  25721. 16:58:02And what I'm going to do is just go to
  25722. 16:58:03my YouTube channel and grab those data
  25723. 16:58:06points. So,
  25724. 16:58:09this could be a portfolio project for
  25725. 16:58:10you. I am just going to grab my REST API
  25726. 16:58:14video
  25727. 16:58:15that is this one over here. Share copy
  25728. 16:58:19link rest API I'm going to say any N
  25729. 16:58:22rest API video. So I'm just trying to
  25730. 16:58:26think of like every part what I can give
  25731. 16:58:28social proof. So she says REST API.
  25732. 16:58:33What else can we put over here? design
  25733. 16:58:35and develop complex AI driven workflows
  25734. 16:58:38like we'll
  25735. 16:58:41maybe I'll use some of this language
  25736. 16:58:43over there. So what I'll do is like
  25737. 16:58:47split this out
  25738. 16:58:50process audit manual department. I need
  25739. 16:58:52to talk about this. I'll put a note like
  25740. 16:58:55talk about this full-time job. Talk
  25741. 16:58:58about this full-time job because I do
  25742. 16:59:00this at my full-time job uh for
  25743. 16:59:02automations connect maintain data flow
  25744. 16:59:05between CRM. So
  25745. 16:59:08perfect
  25746. 16:59:13project management and communication.
  25747. 16:59:16So system integration.
  25748. 16:59:19So I'll put in like a monday.com video
  25749. 16:59:22which I have. And then I'll also put in
  25750. 16:59:25a HubSpot video. And like I said, you
  25751. 16:59:27could have workflows that you just link
  25752. 16:59:29to this type of stuff. I'm just going to
  25753. 16:59:31use what I already have. So I'm going to
  25754. 16:59:33go to monday.com
  25755. 16:59:35since it's fine. and where Monday is.
  25756. 16:59:42So, I'm going to share that
  25757. 16:59:50project management
  25758. 16:59:53project.
  25759. 16:59:56And then we're going to get HubSpot. I'm
  25760. 16:59:59just going to label this as CRM.
  25761. 17:00:05It's going to be a little bit later.
  25762. 17:00:06Let's find HubSpot.
  25763. 17:00:17Oh, there's my spot.
  25764. 17:00:20Get share.
  25765. 17:00:22Cool. Hubspot video CRM. Great. So we
  25766. 17:00:27have that internal tooling. So build and
  25767. 17:00:31manage internal dashboards and custom
  25768. 17:00:33tools to provide real time that's
  25769. 17:00:34outside of NE. So like
  25770. 17:00:38mentioned this is outside outside of N
  25771. 17:00:42again stuff I've done my full-time job
  25772. 17:00:46prompt engineering new AI use cases
  25773. 17:00:49again I can talk about full-time job
  25774. 17:00:52there
  25775. 17:00:54and uh documentation
  25776. 17:00:58I'll mention to like
  25777. 17:01:00bring up looms
  25778. 17:01:03bring up looms etc.
  25779. 17:01:06Um and Google doc
  25780. 17:01:10and notes.
  25781. 17:01:13All right. Analytics,
  25782. 17:01:16automate systems. It's fine there.
  25783. 17:01:21Anything else I'm missing? Process
  25784. 17:01:24deploy. How much is the boost on this
  25785. 17:01:26one? Oh, boost is cheap. That's 10
  25786. 17:01:28minutes ago. Great. So, let's build this
  25787. 17:01:31out. All right. So,
  25788. 17:01:36build a ton of automations
  25789. 17:01:40at my full-time job as a data scientist.
  25790. 17:01:45Let's see. Data
  25791. 17:01:48scientist
  25792. 17:01:50and I run a YouTube.
  25793. 17:01:53So, I'll just say that. And I run a nan
  25794. 17:01:55YouTube channel. Obviously, I should say
  25795. 17:01:58data
  25796. 17:02:01AI slash because this person's really
  25797. 17:02:03focused on AI, although it's really
  25798. 17:02:05data. So, you can say AI automation. So,
  25799. 17:02:08I'm just going to say AI and YouTube
  25800. 17:02:10channel. Really, it's data, but that's
  25801. 17:02:11fine. Build a tunnel automation is my
  25802. 17:02:13full-time job as a data scientist and I
  25803. 17:02:15run
  25804. 17:02:17a an AI nan YouTube channel with over 75
  25805. 17:02:22videos and 100k views a month. I might
  25806. 17:02:25change this out a little bit. And I run
  25807. 17:02:27a
  25808. 17:02:29IN YouTube channel with over 30,000
  25809. 17:02:32subscribers. Yeah, let's use that.
  25810. 17:02:36Over 30,000
  25811. 17:02:38subscribers. People like subscribers.
  25812. 17:02:41Not 30, but
  25813. 17:02:43thousand subscribers.
  25814. 17:02:45And what do I have? Like 300 videos.
  25815. 17:02:48Almost have 400 videos, I want to say.
  25816. 17:02:51and almost
  25817. 17:02:53400 videos.
  25818. 17:02:56So, we're starting this off
  25819. 17:03:00based on your technical based on
  25820. 17:03:05your requirements.
  25821. 17:03:08Here are a few videos that I posted.
  25822. 17:03:16I'm obviously going to reword that a
  25823. 17:03:17little bit. So, build a ton of
  25824. 17:03:19automations. is my full-time job as a
  25825. 17:03:20data scientist and I run a a YouTube
  25826. 17:03:23channel with over 3,000 subs and almost
  25827. 17:03:25400 videos. Based on your requirements,
  25828. 17:03:27here are a few videos that I posted.
  25829. 17:03:31I don't like how that sounds, but I'm
  25830. 17:03:32saying based on your requirements, here
  25831. 17:03:34are a few videos that I posted that fit
  25832. 17:03:36the criteria it
  25833. 17:03:39the criteria of this job,
  25834. 17:03:43this
  25835. 17:03:45job. So, nan rest API.
  25836. 17:03:51I'm going to remove that out over here.
  25837. 17:03:53Monday monday.com project management
  25838. 17:03:55HubSpot. I'm going to say CRM. Cool.
  25839. 17:04:00Cool. Let's put this over here. In terms
  25840. 17:04:04of process, in terms of process
  25841. 17:04:08optimizations,
  25842. 17:04:11I use N as well as Python and
  25843. 17:04:16Streamllet.
  25844. 17:04:18Python, SQL, and Streamlet.
  25845. 17:04:23I'm just going to put Streamlit because
  25846. 17:04:24that's the technology I'll probably use
  25847. 17:04:26um for some internal apps.
  25848. 17:04:32Yeah.
  25849. 17:04:34to look for
  25850. 17:04:37quick wins.
  25851. 17:04:40I'm not going to say quick wins, but
  25852. 17:04:44where is
  25853. 17:04:46and I didn't mean to do this full
  25854. 17:04:47screen. Where is this at? All right. In
  25855. 17:04:50terms of process optimizations, I use N
  25856. 17:04:52as well as Python in Streamllet to look
  25857. 17:04:54for ways
  25858. 17:04:56save hours each week
  25859. 17:05:02and eliminate
  25860. 17:05:04eliminate
  25861. 17:05:07manual tasks
  25862. 17:05:09when necessary.
  25863. 17:05:13All right. In terms of process
  25864. 17:05:14optimizations, I use N.
  25865. 17:05:17My internal
  25866. 17:05:20Company's internal
  25867. 17:05:22risk and underwriting team
  25868. 17:05:25has over 10 plus tools and workflows
  25869. 17:05:30that they use
  25870. 17:05:32on a daily basis
  25871. 17:05:36to save
  25872. 17:05:39over $100 a month.
  25873. 17:05:43A little more than 10 tools, but that's
  25874. 17:05:44fine. Okay, that's fine there.
  25875. 17:05:50I talked about internal tools, right?
  25876. 17:05:55As I said in process, I use N as well as
  25877. 17:05:57Python, SQL, and JA to look for ways to
  25878. 17:05:59save hours. My company's internal my
  25879. 17:06:02company's risk and underwriting team has
  25880. 17:06:04over 10 plus internal tools,
  25881. 17:06:09workflows, so that's fine there.
  25882. 17:06:17I'm always researching. I apologize for
  25883. 17:06:19the dog barking. always researching
  25884. 17:06:23researching
  25885. 17:06:25the latest
  25886. 17:06:27AI news and can help support
  25887. 17:06:32your internal teams
  25888. 17:06:35with new use cases
  25889. 17:06:39and prompt engineering
  25890. 17:06:42techniques.
  25891. 17:06:45Then let's talk about the documentation.
  25892. 17:06:48So we're going to say in terms of
  25893. 17:06:50documentation in terms of documentation
  25894. 17:06:56I always provide looms
  25895. 17:07:00sticky notes
  25896. 17:07:03on nan workflows
  25897. 17:07:07close
  25898. 17:07:09and Google docs
  25899. 17:07:13explaining
  25900. 17:07:15what everything
  25901. 17:07:18us.
  25902. 17:07:22And I'm just going to say I put the $600
  25903. 17:07:24as a milestone.
  25904. 17:07:26I put the $600 as as a milestone
  25905. 17:07:32as I would need
  25906. 17:07:35more information
  25907. 17:07:37to project
  25908. 17:07:39hours on a project.
  25909. 17:07:44and um
  25910. 17:07:46the long-term
  25911. 17:07:50I'm trying to think of the word the
  25912. 17:07:51long-term um partnership
  25913. 17:07:55to make this a success.
  25914. 17:07:59Obviously, there's things I think I
  25915. 17:08:01could improve on here, but you kind of
  25916. 17:08:03get the gist. So, I literally just go
  25917. 17:08:06through. I first find the name of the
  25918. 17:08:08person. I give a ton of social proof
  25919. 17:08:11like, "Hey, I've done this before.
  25920. 17:08:13Here's all this information done. I also
  25921. 17:08:16have the social proof of the YouTube
  25922. 17:08:18channel for the videos like I need to
  25923. 17:08:20build out other platforms as well. Like
  25924. 17:08:22if I had a bigger link or a bigger
  25925. 17:08:24Twitter profile, I'd mention that over
  25926. 17:08:25here as well. If you have any um
  25927. 17:08:29articles, I'd mention this here. Oh, you
  25928. 17:08:31know what I need to bring up? And I
  25929. 17:08:32forgot to say this. I built a ton of
  25930. 17:08:34automations running. There's my
  25931. 17:08:36workflows. I also
  25932. 17:08:40have a workflow
  25933. 17:08:44You know what I need to do is say n
  25934. 17:08:48workflow
  25935. 17:08:50published on the official website.
  25936. 17:08:55Link my workflow over there
  25937. 17:09:04that over
  25938. 17:09:08cool. So I built a ton of automations
  25939. 17:09:10full-time job as data scientist. I run
  25940. 17:09:12an AI YouTube channel, 30,000 subs, 400
  25941. 17:09:14videos based on your requirements. There
  25942. 17:09:16are a few videos that I post that fit
  25943. 17:09:17the criteria of this job, right? REST
  25944. 17:09:19API Monday HubSpot CRM and workflow
  25945. 17:09:23published on the official website. Well,
  25946. 17:09:26terms of process optimization
  25947. 17:09:28talked about that also bring up I know
  25948. 17:09:30other skills outside of Vinn. I'm always
  25949. 17:09:32researching latest AI news and help
  25950. 17:09:34support your internal teams with new use
  25951. 17:09:35cases prompt engineering. Um, I'll say I
  25952. 17:09:39have taught
  25953. 17:09:42taught one-on-one calls
  25954. 17:09:45with subscribers on my YouTube channel,
  25955. 17:09:49YouTube channel,
  25956. 17:09:54and have hosted
  25957. 17:09:56hackathons,
  25958. 17:09:58other companies,
  25959. 17:10:00my full-time job
  25960. 17:10:05AI Just true. Did a two-day hackathon
  25961. 17:10:08last year or not last year but this year
  25962. 17:10:10I guess depends when you watch this
  25963. 17:10:11video documentation always provide looms
  25964. 17:10:14taking notes and cool the 600 milestone.
  25965. 17:10:18Great. So next thing what we need to do
  25966. 17:10:19is we need to set our rank. I'm going to
  25967. 17:10:22set these 42 connects so that way I am
  25968. 17:10:23in first place and I'm going to send it
  25969. 17:10:26over here. Um
  25970. 17:10:28all this project will take I'm just
  25971. 17:10:30going to match what they said which is
  25972. 17:10:31one to three months. Obviously, I think
  25973. 17:10:34this has a pretty good potential to be
  25974. 17:10:36longer than that. And uh we'll see where
  25975. 17:10:39it goes.
  25976. 17:10:42That is essentially
  25977. 17:10:46there. You know, I should have talked
  25978. 17:10:48about I was just in Canada on vacation.
  25979. 17:10:50That's okay. We
  25980. 17:10:53have this information on there. So
  25981. 17:10:57hopefully that kind of makes sense
  25982. 17:11:00why or kind of my approach on how to
  25983. 17:11:03apply. Obviously now we're at like 30
  25984. 17:11:06minutes in and I'd have been away faster
  25985. 17:11:07if I didn't talk through it. But you can
  25986. 17:11:10also look at stuff like go over here to
  25987. 17:11:12find work. I save all this so I can just
  25988. 17:11:14see things that are populating over
  25989. 17:11:16here. But a automation is another great.
  25990. 17:11:22So then I can go over here and say a
  25991. 17:11:23automation
  25992. 17:11:25and just search for that.
  25993. 17:11:28That'll be another one. So if I go to a
  25994. 17:11:30automation,
  25995. 17:11:32see NN chat GPT electronic invoice
  25996. 17:11:35Columbia. We already saw that one. Uh
  25997. 17:11:37we'll do most recent. Go high level
  25998. 17:11:40enablement notion expert second brain.
  25999. 17:11:44Like there's tons of stuff out here. You
  26000. 17:11:47don't always have to search for any end.
  26001. 17:11:50And I find sometimes if you just search
  26002. 17:11:52for AI, they pay a little bit higher
  26003. 17:11:53than NAN at times. So just go through
  26004. 17:11:56and see what you want. I just showed you
  26005. 17:11:58that specific NAN1. And hopefully that
  26006. 17:12:01was helpful. Hey, you made it to the end
  26007. 17:12:05of this video and I got to say you're
  26008. 17:12:06probably less than 1% of the people or
  26009. 17:12:08even.1% that start this video. So I just
  26010. 17:12:11have to give you a major props because
  26011. 17:12:14uh you probably watched this video over
  26012. 17:12:16multiple days. You've hopefully learned
  26013. 17:12:19a little bit new about any. You took
  26014. 17:12:20action and kind of followed this
  26015. 17:12:23tutorial step by step and you should be
  26016. 17:12:26really proud of yourself because this
  26017. 17:12:28thing was a marathon I'm sure just to
  26018. 17:12:30watch. It was a marathon in itself
  26019. 17:12:31building this out or maybe an
  26020. 17:12:33ultramarathon because it took hours
  26021. 17:12:35every single day of recording. I lost my
  26022. 17:12:37voice a few times. I got really tired in
  26023. 17:12:39some of these videos as I'm sure you can
  26024. 17:12:40probably tell. Um, a few other things,
  26025. 17:12:43right? This course was very beginner
  26026. 17:12:45level focused. If you want to learn more
  26027. 17:12:47about the nuances and things like that
  26028. 17:12:48with NAN or some of the different nodes,
  26029. 17:12:51I have a lot of individual videos here
  26030. 17:12:52on the channel based around them. I try
  26031. 17:12:54my best to do different examples between
  26032. 17:12:57what was covered here and in those other
  26033. 17:12:59videos. For example, I I think when with
  26034. 17:13:02my merge video, I did like 40 or 50
  26035. 17:13:04minutes just talking about merges,
  26036. 17:13:06whereas here I had to limit it to only
  26037. 17:13:08like 10 or 20 minutes. So, if you want
  26038. 17:13:10to learn a lot more about a specific
  26039. 17:13:12node or a topic, I probably have a video
  26040. 17:13:14on the channel for you. If not, feel
  26041. 17:13:17free to request it in our school group
  26042. 17:13:18or shoot me a message because I do want
  26043. 17:13:21to continue to expand out this NE
  26044. 17:13:22playlist. My goal initially was to have
  26045. 17:13:25100 NE videos. I know they keep rolling
  26046. 17:13:27out new features, but I do have a
  26047. 17:13:28backlog of other topics I really want to
  26048. 17:13:31explore and dive deep into. And I just
  26049. 17:13:34obviously couldn't spend two, three
  26050. 17:13:35hours on a topic uh in this video when
  26051. 17:13:37there's just so much to cover all
  26052. 17:13:39together. I want to end this video as
  26053. 17:13:42well and give you a few ideas of
  26054. 17:13:44workflows that I want to see you try on
  26055. 17:13:47your own. Feel free to share them in our
  26056. 17:13:49score group and to get some feedback.
  26057. 17:13:51So, I have them over here on the side.
  26058. 17:13:53The first one I want you to try is to
  26059. 17:13:55build out some sort of daily learning
  26060. 17:13:56system. So maybe you're getting some
  26061. 17:13:58YouTube videos in from your favorite
  26062. 17:14:00creators or maybe you're pulling an RSS
  26063. 17:14:02feed or you're scraping a website and
  26064. 17:14:04the goal is to have a summary of like
  26065. 17:14:06new things that are coming out every
  26066. 17:14:08single day or every single week where
  26067. 17:14:10you can just read through it and you
  26068. 17:14:11have an understanding. The same
  26069. 17:14:12principle a lot of different newsletters
  26070. 17:14:14use. They'll go after different sources
  26071. 17:14:16and then turn it into a newsletter at
  26072. 17:14:18the very end. But I want you to build
  26073. 17:14:20out your own personal version of this.
  26074. 17:14:22Uh the second one is a content
  26075. 17:14:24repurposing system. So a lot of
  26076. 17:14:26creators, they build out content in one
  26077. 17:14:28platform and they don't repurpose it in
  26078. 17:14:30other areas. Same with businesses and I
  26079. 17:14:32think that's a very underutilized
  26080. 17:14:34industry. And I think there's a lot of
  26081. 17:14:36potential for you to do that. So maybe
  26082. 17:14:38start with a YouTube video and try to
  26083. 17:14:39repurpose a YouTube video into a
  26084. 17:14:41LinkedIn post or take a LinkedIn post
  26085. 17:14:43and try to build out an image based
  26086. 17:14:45around it. I don't know. Feel free to
  26087. 17:14:47test multiple different ways or multiple
  26088. 17:14:49opportunities at least on repurposing
  26089. 17:14:51content. I think it'll be a fun project.
  26090. 17:14:54Another one is a competitor monitoring
  26091. 17:14:56system. So competitors are going to
  26092. 17:14:58change their prices. They're going to
  26093. 17:14:59have new updates on their website. So
  26094. 17:15:01maybe build out a system where you alert
  26095. 17:15:03someone like, "Hey, this competitor made
  26096. 17:15:05a change. You should know about this." I
  26097. 17:15:08think that's another thing companies are
  26098. 17:15:09willing to pay for and also track. I
  26099. 17:15:12know and coming from the fintex risk
  26100. 17:15:14space, we have to monitor our specific
  26101. 17:15:17portfolio because if a specific merchant
  26102. 17:15:20has a product on their website, we could
  26103. 17:15:22get fined by the government because
  26104. 17:15:25there's certain products companies
  26105. 17:15:27cannot sell. But and also same with the
  26106. 17:15:29card brands and sponsor banks. And I
  26107. 17:15:31don't want to go too much into details,
  26108. 17:15:32but in different industries, you're
  26109. 17:15:34gonna have to monitor specific people or
  26110. 17:15:37specific companies. And I think that's a
  26111. 17:15:39really great use case for any and lastly
  26112. 17:15:42I want you to get familiar with Rag. I
  26113. 17:15:45could have probably made a five plus
  26114. 17:15:47hour video on Rag. And honestly, I'm
  26115. 17:15:49thinking about it because there's just
  26116. 17:15:50so much to cover here. And uh yeah, so
  26117. 17:15:54what I want you to do is at least build
  26118. 17:15:55out one workflow, maybe two or three
  26119. 17:15:57based around it because it is confusing
  26120. 17:15:59at first. You know, everyone wants to
  26121. 17:16:01have chat bots of some sort. So build
  26122. 17:16:04out a chatbot, test it out, tweak your
  26123. 17:16:07prompts, try a few different vector
  26124. 17:16:09databases, and kind of get familiar with
  26125. 17:16:12the process. So learn about, okay, this
  26126. 17:16:14is the different chunking strategies.
  26127. 17:16:16This is why this works versus this. Have
  26128. 17:16:19fun with it. Anyways, that's the end of
  26129. 17:16:21this course. I am personally exhausted.
  26130. 17:16:23I'm sure you're tired of hearing my
  26131. 17:16:25voice. I'm still losing it. And thank
  26132. 17:16:27you much once again for watching all of
  26133. 17:16:30this. I'm open to feedback as well. So,
  26134. 17:16:32if you think this sucked, make me let me
  26135. 17:16:35know down below in the description or
  26136. 17:16:37comment section. Man, I can't even say
  26137. 17:16:38it right. You know what? We're going to
  26138. 17:16:39end it right there before I start
  26139. 17:16:41rambling on. See you guys in another
  26140. 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.