ServiceNow with OpenAI's DALL·E 2
[Music] hey everyone it's Justin thank you for watching and welcome to my house that's Justin's house in this video I've got something fun for you what I've done is I've connected open ai's Dolly too to my servicenow personal developer instance for the purposes of generating images yes that's right everybody I chose the service catalog as kind of the starting point you can see it there above my head that's the open ai's Logo and what I have is you can barely see it it's kind of uh squeezed in there on the right hand side is to request an image from doll E I think it's Dolly too technically and here you can see I've copied and pasted some of the stuff from open AIS um agreement about what to do when you're creating an image and all that stuff but essentially I've got a short description potentially the option to grab more than one image right now I have that disabled because of some size limitations as that's coming over the API and an image size so we could go 1024 by 1024 or 512 or 256 those are preset parameters for the open API Dolly to generator so essentially I basically just ask it to create a picture in this case I'm going to do a rafter of turkeys walking across the moon um next to a squirrel I don't know I'm just making something up and uh the idea here is this artificial intelligence is going to take what I said there and actually create an image and I did all of this in flow designer so flow designer was my vehicle and I have a custom action for actually making the rest call to Dolly I'll probably cover that in a future video and after that rest call I use a script step to parse the Json binary and create an actual image file and attach it to this requested item so you can see there now it has started the process of request to retrieving that image from open ai's Dolly and when it gets that image back it's going to attach it to this requested item and then go ahead and close the requested item so there's our attachment image01.png if we scroll up here we're going to see that this is probably yep it just moved to close complete so that request is now closed if I scroll back down there's my image so my my turkeys look like uh really funny and my squirrels at all are those squirrels uh look like maybe chupacabras I don't know what those are um and I have a forest and a moon okay so that that was essentially the entire integration working and I think this is really neat I I think there's some business cases here for hey you need some artwork for a PowerPoint you're doing or for a presentation or a document or a website or something and if you wanted to offer this something to your company you could do something like this create a catalog item so that people could request it automatically handle that attach it to the ticket and now the person can come in here and actually Let me refresh my page they can go manage their attachments and download this particular attachment and put it wherever they want and now they'd have that image available to them to do whatever they want with so like you can see I can open up a bigger version of that picture just by clicking on it and there is that picture so um that's it for this one stay tuned for a future video where I'm going to actually connect gpt3 as part of this process I hope you found this video helpful or at least fun if you did please like Please Subscribe or share with somebody who you think might be interested in integrating artificial intelligence with servicenow until next time don't forget to always be learning [Music]
https://www.youtube.com/watch?v=fr0HxZWmWEE