# Studio Update #04: Google Gemini Flash 2.0 in n8n, Code node overhaul, Live Agent Studio sneak peek

## Метаданные

- **Канал:** n8n
- **YouTube:** https://www.youtube.com/watch?v=De1E58MPaMQ
- **Дата:** 20.12.2024
- **Длительность:** 20:42
- **Просмотры:** 9,303
- **Источник:** https://ekstraktznaniy.ru/video/15509

## Описание

Ready for a final blast of inspiration before the holidays?

Here’s what’s inside:
🚀 Google Gemini 2.0: Max shows how to set up Gemini 2.0 Flash in n8n and gives his hottake.
💻 Code Node Overhaul: Elias shares a sneak peek on a massive overhaul of n8n's Code node. tl;dr: it's going to feel a lot more like VSCode. 
🌐 Live Agent Studio by @ColeMedin: Explore a community-driven platform of open-source AI agents that you can try, tweak, and deploy.

Chapters
00:00 - Intro 
00:28 - Studio Project Updates
03:56 - How to use Google Gemini Flash 2.0 in n8n
06:39 - Berlin meetup recap
07:53 - Interview with Ronald 
09:31 - n8n Code node improvements
17:54 - Cole Medin shares Live Agent Studio
19:02 - Wrap up
19:31 - Sentimental bit 🥲

🔗 Links and Resources:
Sign up at https://n8n.io and get 50% off for 12 months with coupon code MAX50 (apply after your free trial!)
https://community.n8n.io for help, inspiration, and connecting with fellow builders

#aiagents

## Транскрипт

### Intro []

what's good all it's your favorite flow grandama Max this week we've been pushing it like salt and pepper but I can't play the track cuz we don't have the budget for that but let's kick it off with some studio project updates

### Studio Project Updates [0:28]

so for the building AI agents tutorial series I'm getting some great feedback thanks a lot guys I plan to do a video on prompt engineering best practices in the context of AI agents and on that one I'm going to be doing some research over the Christmas break because you hear some contradictory things and I'm not going to put out anything that I haven't battle tested myself also got some folks asking about structured outputs in netn so this is how you can have your AI agent not output just human text but structured output like adjacent object or something like that so that's critical when you have your AI agent interacting with traditional systems when you want that response to be an API call or in form logic very often you might want to take a bunch of fuzzy data and turn it into a true or false not a yes sure I can do that for you Max because then that true or false can be used in conditional logic etc and then again once that tutorial series is over I'm going to stick my teeth into some like crazy wild use cases cuz as useful as it is making this introductory 101 stuff I got my eye out for our power users for the guys that know all that stuff now and are trying to get their teeth stuck in so we'll do an advanced use case buildout once that series is wrapped up and since it's cold and miserable in Billing right now let's head over to sunniest Arizona and check in with Professor Menendez for any lawyers watching this do not construe that as Angel having a PhD what does that even stand for I just call him the professor cuz he's super knowledgeable all right check this out hey Max first of all thank you for the well wishes I'm feeling a lot better I just wanted to take a few moments and give you a few updates one of the things I completed this week was sending out a swag package to one of our big YouTube promoters super excited to see that part of the video can't wait to see what they think so a big part of my job here is to help our sales team use our own tools internally essentially dog fooding one of the things that I've been working on is building an automated tool with our sales team to essentially go into their calendar and prep them each morning for all of their upcoming sales meetings so that means checking things like our CRM tools pulling all those details getting everything organized on the back end so that everything is ready to be updated and then provide a summary for our team to be able to quickly jump into the notes for each of the customers they're meeting with these notes are centralized so it allows the team to work together to collaborate on their notes and see where everyone's at so any of the account executives are able to see what has happened across all communication with a given customer that's been a really fun project and it's helped the team collaborate even more closely together the other thing I've been working on is a big project that I've completed internally called call Forge so this project essentially uses local AI to analyze our sales calls and essentially create structured outputs that the team can use to see what all the other sales team members have been up to this allows for our team to know what's going on as far as not just individual customers but across the bigger picture things like objections competitors integration that we have sentiment analysis all these things working together using notion and relational databases to provide a bird's eye view of what the entire sales team is doing so that's essentially it it's been a busy week I hope to get back to my project soon otherwise I'm going to give it back to you Max and looking forward to watching this video as always thanks for that update Angel appreciate it gentleman and a scholar or not since he's not a PhD so for this next bit

### How to use Google Gemini Flash 2.0 in n8n [3:56]

unless you've been living under a master of rock you'll heard that Google came out with a Gemini 2. 0 flash model it's in experimental mode right now but the headlines are that it's multimodal massive context window fast cheap yada y yada I was getting some questions on whether you can set it up in nadn the answer is yes I also wanted to get a quick first opinion on it now I've only had a brief look at it now it's definitely really fast but I see some caveats that could be good or bad actually depending on your use case so check this one out let's try the new Google Gemini flash model in an so the first thing that we need to do is get our API key fastest way to do that is just search get Gemini API key it's going to be the first link at ai. gooogle dodev and then from here you're going to want to click the get a Gemini API key button and here you can create an API key you're going to have to add it to a project and you can do this on any Google account so if you have a free Google account you should be able to do this you're going to copy this API key I will delete this by the time you see this video so feel free to try it but again they're free so you be pretty crazy use my key and then pop over into na with that in your pasteboard and let's just add an AI agent and then let's click to add a chat model we're going to pick the Google Gemini chat model and then in here you would create a new credential we're going to pop that in this URL is correct the default one we save that great and now you can access all the different models here if you scroll down you've got the last version of Flash and then if we keep scrolling there's Gemini 2. 0 flash experimental this is going to be the latest one this is a proxy here you could pick specific ones if you pick this bad boy here we could click the chat for example just to test it which model are you okay it doesn't know exactly which model it is but that is how you use Gemini 2. 0 now from my quick testing it seemed a little naive in using multiple tools like I really had to instruct it to use multiple tools I had a case where I was telling it to come up with relevant articles and it said I can't do the task because I don't know how to infer relevancy so it seems like it's very sort of law-abiding which could be a good thing right I don't mind being prescriptive in my prompt if I have a real business use case I'd rather spend half an hour and have a much more predictable experience it was fast for when I was using it but again with the multiple tool usage I was having some issues having it invoke those multiple tools again lots of use cases where single tool is useful so I will be looking more into this model but I wanted everyone to get unblocked on how to experiment it with yourself and if you learn something about it if you form an opinion on it please send me message Mage on LinkedIn or drop a comment because I'm very curious about really all these new models coming out as I'm sure many of us are nice one there Max I think you knocked that out the park baby

### Berlin meetup recap [6:39]

this week in Berlin we had a nice intimate NN Meetup hosted and organized by our awesome NN Ambassador in Berlin myself there was some awesome talks on building cool with building stuff AI um and then everyone had The Misfortune of hearing me speak for half an hour also bad AI I shied my coupon code to people quite a bit Max 50 and we ate some pizza but on a real note I'm truly humbled each time I go to NN Meetup I recommend to all of my colleagues to go check them out because I've never seen such a community people are walking up to you they're excited about n they're telling you how you know it changed your life in some way I'm not kidding change your life I see a lot of people like I was in this role this industry picked up NN helped with my career or I'm doing fun things now I'm building I didn't think I could build before I wasn't a developer and now you know I learned a little bit of code it's energizing and I'm so grateful to have the most awesome Community ever so thanks to all of you guys and I highly recommend you check if there's a community event in your area because we got a growing number of ambassadors around the wizard organizing those for you and all you got to do is attend listen and eat and drink for free so to do that head to our Luma page should be somewhere here I think it's lu. ma/ users nadn if that's correct go meet and

### Interview with Ronald [7:53]

then last week in Barcelona we popped into an edn user Meetup there again same amazing energy and so I tried something new and shoved the camera in someone's face and asked him a few questions now when I was looking at the footage later it honestly looks like we paid the guy did not this happens all the time andn users are truly nuts about it but makes sense I'm literally walking in the park in the middle of the day talking about it so I guess I am too all right anyways blah blah check this out well hi my name is Ronald and I went to automations and Technologies 7 years ago I found NN on the pandemic on groups of no codes and the way you can use canvas dry cam drops tools to get automations without knowledge of anything of code it's amazing I come from the hotels and tourism sector when you have to deal with a lot of automations like reservations informations all this kind of data and the way you can transform extract separat combine information with n Ann is amazing works that used to have to take you 31 hours to do that less than 5 minutes with the all process information and if you look back cuz you've been using n in for 2 years right yes what's like the work for you're most proud of definitely AI agents yeah yes because combining AI agents with automations and giving them the information what to decide to do where to send in recommends filter in is incredible I mean you could take a long time to do that manually for sure thank you so much appreciate it you're welcome

### n8n Code node improvements [9:31]

thanks so much Ronald next up I had a chance to talk with Ellas an engineer on nnn's node team he's putting the finishing touches on a massive revamp of iden's code node so for any of my syntax levels out there or if your default IDE is vs code you're going to want to check this out the audio is a little offs sync we like to keep things 8020 on N ends so if you have a good recommendation for recording podcast live let me know cuz dript I know you just acquired Squad cast but the integration is a little iffy and I think it needs a little lurve all right anyways check this out so I have it on good authority that you've been working on a pretty interesting feature at NN but before all that would you mind introducing yourself quickly yeah so I'm uh Alias I work on the in the noes team at naden I think for a year and a half now and recently I've been cooking up a new feature so excited to show it to you today and I'm very excited for this one cu the first time that we worked together we worked on the context menu on like a hack day right yeah exactly that was a really fun one and I'm happy with the way we it came out in the end absolutely I was truly Blown Away by your velocity and your details it's one thing when you work with an engineer when they follow exactly what you told them to do and it's like a whole another level when they have the confidence to be like yeah but what about we do it like this really excited to see what you've been cooking up could you just give everyone a little bit of context on what problem you were trying to solve the main problem we is that the auto complete in the current code note was not that great it wouldn't always work like if you had like loops or nested functions it wouldn't complete the correct things so we wanted to make that whole completion experience a bit smarter and better and I think overall the goal is to make it closer to a code editor that our users are used to like vs code or whatever you prefer that makes a lot of sense I see you got a diagram here in your workflow I'm guessing that's got something to do with it can you walk me through it yes so the new code note is using the typescript language server and because it's a smart very smart thing but it's also quite heavy so we run it in a web worker that way the n8n editor remains smooth even when you're editing the large amounts of code and we also don't have to load typescript and the whole completion thing unless you're opening the editor so that helps with performance very cool would you mind walking us through some of these new upgrades that everyone's going to be getting of course so I think the main thing is that the completion is a lot smarter so even now in a loop the editor now knows the type of things that are coming from the previous nodes so for example if I over here over Cuisine then it knows that it's a string like for example here it's Italian um and it knows that on a string certain methods are available I remember when it didn't have that before you know there would be all these different methods that you could apply to it but it didn't know about that right so was that the reason because it didn't know that it was a string yeah exactly so the previous autocomplete was basically completing based on patterns so it was trying to like this is already too complicated cuz here it's hard to find the pattern to know that you're completing an item I think it could complete in cases like this then it would work for me basically as soon as there was more than one period involved it would basically start falling apart right yeah this basically fixes that kind of at the root because you you're doing it with these workers in a completely different way is that right yeah that's correct because typescript is powering this completion and it's aware of the syntax data the types of the data so it's just way smarter very cool all right so what else do we getas so another thing that the new editor can do is show you unused variables so if I Define a new variable and I don't use it will tell me it will fade out the variable and it will tell me hey you declared this variable but you didn't use it same thing for if you define a function and you don't end up using it and so that's a useful little thing something else you can do now is autof formatting so if I mess up the formatting of this thing and then I press alt shift F this will automatically format the code yeah I feel like that's super useful for all of us who are using GPT Etc to write our code and paste it in one exactly I saw something interesting as well around drag and drop what's that all about right almost forgot about that one so I think a couple versions ago we introduced uh dragon dropping in the once for each item mode you can now drop any variable from the left it will drop in like this also works for nodes that are further back so if you do this that also works and then now in version what I Al also introduced is drag and drop for the other mode so now if I drag and drop this it will pick the first item by default but it also works selects the correct field and all that I'll admit it's something I've been doing for months and then it doesn't work because it wasn't you know I just assume to drag a drop cuz you're in the flow you're building a workflow so I think that's going to be a real nice yeah addition to I feel like the mental model that was already there so ell this is already like really fantastic stuff I'm sure users going to love it is there any other goodies that they getting as part of this update so I think there's almost too many to list but another one that I think is pretty cool is that you can actually type your function so we don't allow typing typescript yet so you can't do this for example doesn't work because it's not valid JavaScript but you can use JS doc to type your functions and then the autocomplete will become aware that this is a string and it knows the functions of a string and from there the autocomplete just works uh and your function will also be typed correctly so in this case I'm also I'm always returning a number so it knows that this function will return a number and complete based on that we also added search and replacing so now you can command F and the little search and replace UI will show up you can search something and replace it oh nice I see what you've got replace all what are some of these checkboxes there yes you can also use a regular expression if you want to so you can do like this ah very cool and that also works you can also do by words so then it will only select full words so now cook it doesn't select anything but if I were do cook time it would select it because it's a full word and then you can also choose to only match the case so only if it's exactly the same casing as you typed here it will match it's nice thing a lovely code node step closer to what one expects in a IDE I can imagine if you're used to things in ide or in any software you're in if you're used to something and you go somewhere another context and you don't have it it's frustrating right like you want to work as fast as can with all the shorts that you've learned over the years and what and soas when can we expect this to come out and what's on your list next I think this will come out early next year and I think what I would like to do next is add a little helper for functions so for example if you're here you want to use the parse time function there would be a little popup here helping you okay the parse time function has these arguments as you're typing that's one of the things I would like to add so we're trying to keep the code noes familiar to people who are used to other text editors and for that we based our keyboard shortcuts on vs code so most of them will translate one to one maybe some of my favorite ones I'll quickly show off like command shift K to delete a line Works command D to select multiple instances of the same string alt clicking to add cursors works so yeah there's just I think most of the vs code keymap is implemented in the code now very cool and I'm sure a lot of technical users going to appreciate that well Ellas thanks so much for spending a little bit of time to polish this off especially it's at the end of the year you got to get this past the finish line so thanks for spending a little time on that I hope you have a lovely holiday a well-earned I'm sure and can't wait to have you back on the show and see what you're cooking up next thanks yeah happy to show it off and enjoy your holidays thanks you too thanks a lot ellias appreciate that should be coming out right at the beginning of 2025 and part of that is Ned 's doing a code freeze over the holidays to make sure we don't introduce any nasty bugs when a lot of the team is off and to make sure that our support team doesn't have a hellish holiday and honestly I'm very proud of that so you're going to have to wait a little bit more for that feature but the reason is that nidn is not a employer so thanks Yan really appreciate that one and please repost this video cuz you have a much bigger following than I all right

### Cole Medin shares Live Agent Studio [17:54]

hey what's going on Max I just wanted to send you a video really quick here because I recently launched a platform as a part of automator called the live agent studio and this thing uses n8n a ton behind the scenes essentially it's a directory of AI agents that people can go and try right now download The Source all these agents are completely open source and it is Community Driven because other people can submit agents onto this platform the best part is most of these agents right now are n8n agents under the hood I have just been loving NN what it does for me the things I can build with it and what it enables me to do for platforms like this and I've even been starting to collaborate with other YouTube creators that use NN a lot like Nate right here for this agent that helps with LinkedIn X and blog content creation and then zuar over at AI workshop for this business idea researcher and I'm going to keep working with other people and the entire Community to build up this platform and just be an amazing place for people to try out agents and learn how to implement it for themselves and their businesses a lot of times using

### Wrap up [19:02]

n8n so that's all for this week or rather this year unlike most of my American friends I'm taking the rest of the year off to recharge and eat far too many Ven and homemade Bor at the same time I'm a massive nerd and will probably be plotting what I should be doing in terms of projects and content for a 2025 so what do you want to see who do you want me to interview what kind of questions do you have what do you think I should build is impossible for me to build challenge accept it and then on like a

### Sentimental bit 🥲 [19:31]

Sentimental like we should probably queue up some really cheesy music thank you everyone so far for your support it's was a little scary to start this there were some people at nnn's team that were a little concerned on the ri and value of such initiative makes sense I respect any system with checks and balances unless they're telling me no of course but yeah people seems happy 2025 seems promising we're talking about some potential road trips my Christmas gift this year from all of you is knowing that my dream job the coolest thing I've done so far in my career is something I'm going to continue to be able to do with trust to get a bit more creative a bit more daring so seriously I when I really appreciate it ask my mom ask my girlfriend I get a big smile on my face these days and a big part of that is this so as always thanks everyone and happy flow gramming another above me through the CR yeah I'm feeling so Supreme on another feel Supreme
