---
url: 'http://workflows-of-ai.com/blog/perfect-prompting'
title: 'Perfect Prompting'
author:
  name: 'Marcus Johansson'
  url: 'http://workflows-of-ai.com/about/marcus-johansson'
date: '2023-10-29T18:02:20+01:00'
updated: '2026-10-10T12:14:04+02:00'
type: article
summary: 'Better AI images in Drupal: PromptPerfect expands a short title into a Stable Diffusion prompt and DreamStudio turns it into a header image.'
tags:
  - 'Marcus Johansson'
  - Workflows
  - 'Drupal AI'
image: 'http://workflows-of-ai.com/sites/default/files/previews/a1ec0462130a9571.jpg'
published: true
og:
  site_name: 'Workflows of AI'
  'image:width': '1280'
  'image:height': '720'
  'image:alt': 'Perfect Prompting'
---
Drupal AI

# Perfect Prompting

Turn a dish name like Spaghetti Bolognese into a detailed Stable Diffusion prompt with PromptPerfect, then into a header image.

  Marcus Johansson

October 29, 2023 · 2 min read

 ## About this video

In this workflow, the process commences with a basic input: the title of a dish, "Spaghetti Bolognese." The AI Interpolator PromptPerfect module takes this title and, leveraging its machine learning capabilities, transforms it into a much more vivid and expressive prompt. Rather than a mere dish name, it generated *"a mouthwatering plate of spaghetti Bolognese, highly detailed, gourmet, top quality ingredients, Italian cuisine, rich tomato sauce, al dente pasta, freshly grated Parmesan cheese, aromatic herbs and spices, stylish presentation, trending on Instagram, food photography, professional photograph, HD resolution*
*Negative prompt: low quality, overcooked pasta, soggy noodles, poor plating, unappetizing appearance"*

This enriched and detailed prompt is then provided to the AI Interpolator DreamStudio module. DreamStudio, utilizing its image generation capabilities, synthesizes this detailed description and generates a visual representation. The outcome is a stunning and appetizing image of Spaghetti Bolognese that not only captures the essence of the dish but also the ambiance and context provided by the PromptPerfect description.

*This video is from before the AI Interpolator module became AI Automators, part of the [AI module](https://www.drupal.org/project/ai). Module and menu names have changed since, and some steps look different today.*

## Watch the video

[Watch on YouTube: Perfect Prompting](https://www.youtube.com/watch?v=GMe8C0uu75s)

### Video chapters

- 0:00 What PromptPerfect does
- 1:37 A recipe content type
- 2:43 The PromptPerfect prompt rule
- 3:30 Generating the image with DreamStudio
- 4:51 Testing with Spaghetti Bolognese
- 5:43 Upscaling comes next

## Transcript

YouTube's automatic captions, lightly corrected. Click a line to jump to that moment in the video.

### Transcript

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

  Filed under [Workflows](/blog?category=6) [Drupal AI](/blog?category=2)

Parts of this content were produced by AI.

This site has not assessed whether a label is required for this content.

  How was AI used?The video and the introduction are Marcus's own, first published on workflows-of-ai.com. AI wrote the subtitle, the summary and the video chapters from the transcript, and corrected misheard names in YouTube's automatic captions.

   Marcus Johansson

Tinkers with AI and Drupal

 [About Marcus](/about/marcus-johansson)[Drupal.org profile](https://www.drupal.org/u/marcus_johansson)[Drupal AI](https://www.drupal.org/project/ai)

## The post in three sentences

PromptPerfect takes a short prompt and adds what is needed to make it more expressive. A recipe content type uses the PromptPerfect prompt rule on the title, tuned for Stable Diffusion with two iterations, and a DreamStudio image generator rule with a higher weight makes the header image from that prompt. Spaghetti Bolognese becomes a long food photography prompt and an appetizing image.