---
title: "Perfect Prompting"
video_id: GMe8C0uu75s
url: https://www.youtube.com/watch?v=GMe8C0uu75s
workflow_page: https://workflows-of-ai.com/workflow/perfect-prompting
language: en
captions: generated
---

0:00 hey there everyone um so today we're
0:03 going to do
0:04 a workflow that basically showcases
0:07 something uh that is a service that's
0:10 called prompt
0:11 perfect uh and the idea behind it is
0:14 that you might want to generate articles
0:18 or um yeah long text content on your
0:22 website or you might want to generate
0:24 images on your website and to do this
0:28 very well you either need to have some
0:30 prompting skills uh so go to one of the
0:34 prompting databases that
0:36 exists uh and try to learn that
0:38 basically and get so well educated that
0:41 you can do this yourself or there is
0:44 this service then called prompt perfect
0:46 where you it basically takes a small
0:48 prompt and based on machine learning it
0:52 figures out what what is the things that
0:55 we need to add to this prom to make it
0:56 more expressive uh in today's uh
1:00 workflow I'm going to show it on
1:01 generating
1:03 images uh as always this is druple open
1:06 source completely free content
1:07 management framework there is the AI
1:10 interpolator modules on top of this
1:13 um there's going to be a video in the
1:16 description sooner or later where you
1:18 can see how to set up this from scratch
1:22 but there's a lot of documentation on
1:23 that uh on the internet
1:25 anyway um also as always this is open
1:30 source completely free so after you
1:32 looked at this tutorial you can download
1:34 it set it up yourself and have it
1:36 running
1:37 yourself um so what I'm going to do I'm
1:40 going to start by logging in as the
1:43 administrator so I can create content
1:45 types as always you don't have to use
1:47 content types you can use custom
1:48 entities blocks whatever but it's always
1:51 easier to show on uh uh custom content
1:54 types so um I'm going to make a recipe
1:58 database in this case um I'm only though
2:02 uh goingon to create the image in this
2:04 case based on the
2:06 title uh so we're just going to remove
2:10 this body because we don't need
2:12 it so I'm not going to create a whole
2:15 recipe website right I'm just going to
2:16 create so it autog generates the header
2:19 image is the idea but I don't have to
2:22 actually give a image prompt is then
2:24 what I what I want to do so what I'm
2:26 going to do is take a text plane long or
2:28 I can do formatted as well but
2:30 it's just going to create a prompt in
2:31 this case uh we call it expressive
2:35 prompt so that's the expressive prompt
2:37 that we're going to get back from um PR
2:40 perfect we just need
2:43 one uh we enable the AI interpolator as
2:46 always and then there is this rule
2:48 called prompt perfect prompt so we're
2:51 going to base this in base mode on the
2:56 title and the Target Model that that we
3:00 want is stable diffusion because we're
3:01 going to use dream Studio then to
3:03 generate an image so we need a prompt
3:05 that's optimized for stable
3:07 diffusion in iterations you can
3:09 basically show how uh set how many
3:11 iterations it should go through to
3:13 create the perfect prompt we set two
3:15 here the higher the better the higher
3:18 the more it cost and the longer it takes
3:20 then since we're going to do chaining
3:22 I'm going to have some weight and I'm
3:24 going to use batch mode so we can see
3:26 progress and I save this then I'm going
3:30 to create an image field that is called
3:33 the header image then and that's where
3:36 the actual image will be
3:38 generated uh we just need one right uh
3:43 and yeah there's a lot of Drupal Fields
3:45 where you want to store it stuff like
3:47 that but we're just going to create it
3:50 right now right so we're going to use
3:52 the dream Studio image
3:55 generator and we're just going to
3:56 generate one image and we're going to
3:58 base it on the express I prompt and in
4:01 this case we don't really need to add
4:03 anything so that's why prompting exists
4:06 here if you want to add specific
4:08 keywords that's useful within uh stable
4:11 diffusion in this case you can do that
4:14 but I'm not going to do that in this
4:16 case uh we have to set a weight that's
4:18 higher than the previous prompt because
4:21 we need to have the prompt before we can
4:23 generate the image of course otherwise
4:24 it's just going to be empty set it to
4:26 batch so we see progress and then we
4:28 choose which St diffusion we want to do
4:32 uh let's do 2.0 we save this and that's
4:36 it so of course I would need to add a
4:39 lot more Fields here normally but in
4:41 this case we only want to showcase this
4:51 right so I'm going to go ahead and
4:55 create a bon I don't know how to spell
4:58 it almost but get the bolog
5:00 so the expressive prompt and the header
5:02 image is going to be filled in uh by
5:04 itself if I set up a recipe site in
5:06 Drupal of course I should not show the
5:08 expressive prompt then in the output
5:10 which will happen
5:11 now um but that's you know normal Drupal
5:16 stuff if you want to learn that go to
5:18 Drupal I do druple i. me that's a very
5:21 very good uh website to learn about drol
5:24 in general so we see we have a image
5:27 here that looks pretty
5:30 appetizing and here's the expressive
5:32 prompt then so we put in spaghetti ball
5:34 on AA and this is the prompt that it
5:37 generates for us to create this
5:40 image um and that's it basically the
5:43 next step now is going to be to upscale
5:45 this but this is going to come in
5:46 another video so this is the next video
5:49 um yeah thank
5:52 you
