logo

NJP

Dive into action with Now Assist for Creator Workflows

Import · Jul 17, 2024 · video

hello everyone uh thanks for joining today's dive into action with now assist for Creator workflows we're going to be going through some information and then a demo looks like quite a few people have joined so far so we'll go ah and get started as always safe harbor notice forward looking statements today's session is part of a live on Surface now created EV series to connect you with service now experts and peers to help you develop your products and Achieve value faster you hope you join us at another webinar Meetup and you can schedule uh you can see the schedule by scanning the QR code or the link in the chat quick housekeeping uh we'll save time at the end of the presentation for questions and answers this will be recorded and shared out on community and after the event there will be a survey so please help us out and fill that out my name is Max swin I'm a principal technical consultant in the Creator workflows customer outcomes team and I work for service now today we're going to go through what is now assist for Creator what's in it for you we're going to do a demo and then we'll do a Q&A first poll question how far along are you in your now assist for Creator Journey checking the results here [Music] and so it looks like most people have not started or they're just just getting their feet wet with now assist so that's great this demo will uh this presentation and demo will be good for you so first we're going to go through the install and configure and monitoring usage of now assist which is in the creater control panel so in in now assist you have um you have your control panel this is an example of what it looks like this is where you can manage all of your plugins you can install the plugins directly from here and you can also uh activate all the skills the skills are what we call the features of now assist once you obtain I'm not going to go through this in the demo um once you get the Gen controller installed then you'll be able to install all the related skills for Creator technology employee all the different um sections of now assist so after the plugins have been installed you'll get a screen where you'll be able to select which technology you're going to use so if you select Creator you'll see the skills that you have available in in Creator uh um setup is very easy you click view details activate skill or turn on is what it says you turn on the skill you'll be up and running in in minutes um it's really great U simple easy to use very intuitive and then you can come here and see which ones are active and which llms they use most of them are using the now llm which are trained on service now code so it's it knows service now terminology um some of them are using other llms and we'll go through that a little bit later uh important thing to know now assist for Creator you need to have the now. assist. Creator role it is not inherited so admins by default do not have the role you have to give that to them um it is I'm not going to go through licensing you can talk with your account team on that but you want to assign the Creator role to only the developers excuse me developers that are going to be using the skill and they also have to have access to whatever section they're trying to to use now assist in such as flow designer uh delegated developer Etc so now says for Creator one of the one of the top skills um one of my favorite things is text to code text to code feature enables you to write natural language and have it automatically translated into code to use all over the platform this capability allows developers to express their intent in plain natural language reducing uh coding time and saving development time it does have contextual awareness so it knows what type of script you're in so if you're in an email script versus script include it'll know the syntax that needs to be used in that script um some of the places that we do recommend you use it is in flow action designer fix scripts email scripts client scripts script includes an instance scan U we're not currently recommending it to be used in business rules and script uh schedule scripts because we recommend you use flows instead of doing scripts uh instead of doing business business rules where where necessary um another thing to point out is text to code is not trained on your instance data it's trained on service now data as a whole so if you have a custom script include it's not going to know that that exists um you can in your prompt which we'll go through some examples in your prompt you can put a placeholder and say I want to use you know my script include name and it'll it'll put a placeholder there it just won't know that that's actually a real script include uh another thing that's really helpful about text to code is using API calls so you can tell it to use a specific API and it knows the syntax and and context on how to generate that API and it'll give you all of the code right there for you to have like a template that you can start with and then you can modify as necessary it's a lot easier than going out to community or the developer site and then trying to find the the code you want to use copy it put it in your instance and modify it this will do a lot of that work for you saving a lot of time code completion is another part of the skill so code completion will suggest uh code as you're as you're writing so depending on the length of the code being generated um you might not need everything that it's that it's suggesting so if that occurs you can move your cursor to the end um to the end of the code that you're writing and hit the prompt so on MacBook The Prompt is command enter and I believe on Windows it's control enter so at the end of any wherever your cursor is at when you hit that prompt it'll start uh either generating code from a comment or suggesting code to follow up whatever you're writing uh code completion like I said does have context awareness so depending on what type of script you're in it will know what context to use and what syntax to use so you can see in this example on the left we have um that it's expecting a case is expecting each day of the week on the and on the right you can use a a slightly different prompt and it will generate different code u based on what input you're giving it the next skill is now uh now assist for Creator flow generation so flow generation saves Time by giving you a template to start a flow with instead of of having to build it from scratch so once you have this skill installed you'll go into create a flow just like you normally would and your default option will be this build with now assist um you can still go build from scratch if you want to so what you'll do is you'll give it a name you'll give a nice lengthy description of what you want it to do it'll understand all of this um and then it'll generate a template of what you need what it thinks that you want wanted to do so it'll understand the trigger so in this example they they said when they wanted it to start it created the trigger it understood some of the actions that it wants to do you may or may not need to go in and update the like lookup records they might not understand which table you wanted to use you might have to go configure some of these but it will give you that template and it's a nice starting point the other skill is flow recommendation so flow recommendation uses the current context of your flow and what it thinks are the recommended next actions that you might take these will change based on how many actions you already have in your flow where you're at in the flow it'll it'll update based on what it thinks maybe The Logical next step is uh these do not work with um custom spokes so if you've created a custom spoke those actions won't be recommended at this time at least okay so now what everyone probably wants to get into is the demo so we're going to go through some of the key features um I am going to go through application Generation Um code generation flow generation and flow recommendations stop this [Music] show okay so this is the now assist control panel you see you have overview it shows you your usage which plugins are installed not installed which skills have been used you also have active um you'll be able to see the usage and you can update the date range and then when you come over here to now assist features you'll be able to see all the different skills you have installed so when I select Creator see all these skills so I have flow generation flow recommendation text to code and app Generation all active if you want to go into view details you can see what the skill is which service it's using and when you installed it or last modified it settings here gives you available plugins so I don't have these plugins installed I can click these and go install them and add them to my instance it's um a little bit easier than going to the plugins list or the application manager and searching for them there these will let you know which ones you don't have this is an now assist panel you can U manage skills here so if you want to turn off chat summary you can turn that off right here so everything everything that you want to do to control your usage and uh skills enabled or disabled you can do that in the now assist control panel jump into flow designer and this is a live demo so there may be um slowness or bugs so just bear with me if something like that occurs so jump into a flow so now as I said um since I have the flow generation installed my default option is build with now assists I can still go through and build from scratch like I used to and we're we're going to give it a some directions and we'll see what we what we get generate here so now we will see what it comes up with for that prompt so it gave me some good some good things so let's see it does give you a prompt check for accuracy of course with all AI you always want to review it it's not it's not a replacement for human input you want to use it to save time and speed up things instead of using it for Pure creation so let's see the SLA task it did do good there it added a placeholder for get record details so I would have to add add there and did come up with a send email action and then I would have to fill in some of the details so it did save some time and depending on how much you put in your description it'll generate more more actions maybe if I would have specified a few more things um it might have prepopulated a little bit more for me so that is flow generation if I can go back into consistant flow that I have so now you can see it already has a recommended what it thinks I want to do um and this this will vary every single time when you add add another action it'll add it'll update the recommendations uh the more you go through the flow and then you can just click them and it adds them directly to Def pretty straightforward the next thing I want to go into is the text to code so we go to script include think I'm in a different scope okay so the first thing I want to point out once it loads love the live demo um okay so actually in in Washington it's different it's it's coded now assist down here um in earlier versions there would be a purple star this little star that's right here used to be right here um I did not notice that that changed so that lets you know that you can you can utilize now assist in in this script uh any anywhere you see that you'll be able to use it um typically anywhere in the platform that has this code gener or code editor you'll be able to use it um so we will go through some examples um this does know JavaScript and it also knows service now specific code so we'll go through a few different examples and now I have type my prompt I hit command enter seems to be working differently today now I can see the code and I can decide whether I want to accept it or reject it I'm going to accept it and take a look this looks pretty good to me um you might want to modify it but in general um it will give you a nice starting point depending on what you're asking it for you may or may not get um exactly what you need to do another thing is sometimes it repeat different lines and add in extra it is AI so this is not a replacement for coding skills you still need to know how to read code and write code but this will save time U especially with certain syntax P next e let's see so that would not be something I would expect so I would be like okay well maybe I didn't have my prompt uh set up correctly I would expect it to create a a Glide record or something like that I'd reject that and you can always do it again you may get different results or you can try to reward it and you can type correctly to so this looks more like what I would expect so it depends on how you word your your prompt if you give it more detail it has more information to work with so that it would know what it wants to look through um as always you need to review the code and make sure that uh everything is actually going to be functional don't just trust it you need to always review it see if I had any other examples I wanted to go through not not going to do it in a descript in cre that what I'm going to do here is see if it can generate a red red J for me that's a pretty good template to start with uh if you want to modify this you can um it's pretty close to something that you might want to use and it generated everything it new what field to get so it understood the service now get value since we're in a client script it knew to use G form um so that's part of the context awareness and and it replaced it all with stars which I think that's a pretty good it's a pretty good substitution so that saves a lot of time I didn't have to go look up the redj syntax and um gives you pretty usable code right from the get-go uh another thing to point out is on the left you'll see these lines these are lines that are generated service now uh now assist code if you go through and modify something so if we going to change this field then you see the line goes away so this has helped tracking so that you can have reporting on how many like lines of code and how much usage is getting done with now assist okay the next thing I want to go through is the app generation which is up here in your now assist panel and this will show you all the different skills you have access to on a given record so wherever you're at in the system this will be relevant so I'm going to go through create an app what application would I like to make I just turn an advent and select their e that's on that bage isn't like just beverages I'd like to create a record producer to allow users register Ser F event through service C yes that sounds good all right so now I have this summary social event registration application gives an overview and now I can hit generate app it's going to create two tables two rolls and one record producer you nice status as it's going oh live live demo so hopefully it continues let's see if it it finished or not get the application name social event registration so we'll see if that's actually created or not I see it it's doing something it may or may not work um at this time I'm not sure what happened um I haven't seen this issue pop up before but of course on a live demo it decides to do that to me um so that that is everything I had for the demo today turn to the presentation full question based on what you've heard today which feature would you like more sure if the p is generated or not I don't see it on my end there we go so far it looks like all of the above is is leading code generation following yeah I think the most helpful for me in my day-to-day job code generation the flow generation and application generation give you really good starting points on creating applications saving saving a lot of time code generation especially um if you're not a developer who remembers code syntax all the time and up a specific function uh or specific method then code generation really helps because if if you give a good description of what you want to do then it it will know all the service now different uh apis

View original source

https://www.youtube.com/watch?v=sHFb2zFLbcM