Prompt design

Getting started with prompt design

One key feature of many Generative AI systems is their ability to take natural language input (the same kind of language you would use in everyday conversation), understand this, and create an output. The initial text you enter is the ‘prompt’ and understanding how to write these is important when using Generative AI.

For instance, an area that has emerged quickly is the ability to generate an image based on a typed request. Here’s an example from the Adobe Firefly text-to-image generation tool:

firefly

Similarly, some systems will generate text based on a prompt. Here is an example from Anthropic’s Claude system:

claude

For the remainder of this article, we’ll focus on text-based content generation as this currently has more varied use cases in the business context, however you’ll find resources at the bottom of this article that deal with image-based Generative AI. It’s worth noting that these systems can also generate videos, computer code, and practically any form of data you can imagine.

We will start with a very simple case and build from there. We’ll be using Open AI’s ChatGPT for these examples.

Google search on steroids

One particular use of Generative AI is for getting to answers more efficiently than using search engines like Google. Need a recipe for fruit scones? Here’s an excerpt of a suggested recipe:

scones

If you’re tempted and want to see the full recipe, check it out!

Sure, you can find multiple recipes online via a search engine. Indeed, tools like ChatGPT are trained on a vast amount of internet data, just like Google (albeit up to a specific point in time). But one key difference with Generative AI is that in this case it is working like an aggregator: looking at all the recipes and all the comments and using this to construct a composite of the most popular recipes.

This is useful, but as you can probably guess, isn’t radically different from what has been available for some time now through web search. We’ll now explore areas where these tools really stand out.

Adding context and formatting results

The real ‘generative’ element of these tools comes in their ability to create formatted and stylized content. For instance, if you want help writing an email to your team at the end of a quarter, here’s an example prompt:

email

Check out the full email to see the different sections and formatting.

You may feel that the prose isn’t quite in your tone and so while these tools are very good for getting you started, you will generally get best results when you edit the generated text to reflect your own style.

It’s also worth experimenting with tweaking the prompt and seeing what result you get. For instance, one popular technique used to generate images is to reference a specific artist or design period. You can use the same approach with writing styles.

Threaded conversations

Many of the text-based systems allow you to continue the conversation and will ‘remember’ the context based on what was asked earlier. This allows for easy refinement and investigating follow-on ideas that you think of as the chat develops. Here’s an example:

recycling

As you can see, we didn’t need to reframe the context for the follow-on question. The system realizes that this question is in the same context as the first and took this into account in generating its response.

This kind of threaded conversations can also be useful for asking for the same content in different formats, such as text for a blog, email, website page, etc. Note that these conversations persist over time so you can go back and continue where you left off, whether that’s hours, days, or months ahead.

Tailoring the results to your own content

In the examples so far, we’ve been using information that is general or could be found on the internet. What if you want to use this form of prompting to generate information from your own documents?

Many of these tools allow you to upload your own content in formats like a pdf that can then be interrogated or summarized in the same way as we’ve described above. Check out this example on summarizing an interview transcript.

Going further with prompt design

We’ve only just touched the surface on what’s possible with prompt design for Generative AI systems, but hopefully you start to see how you can control these tools. Note we’ve chosen the term ‘prompt design’ over ‘prompt engineering’ (even though both terms are largely synonymous) to emphasize the creative aspects of this new paradigm. No coding or software engineering in the traditional sense is needed to use these systems.

As Generative AI has an increasingly important role across many areas of marketing, getting a good handle on prompt design is fundamental to unlocking the business value of this technology.

Here are some resources to explore prompt design further:

Short courses on prompt design

IBM Skillsbuild: Mastering the art of prompting
LI Learning: Introduction to prompt engineering

More resources and links

Prompts useful for different areas of marketing
Master these 8 ChatGPT prompting techniques
Ten need-to-know techniques for prompt design
Using ChatGPT to construct a founder’s story
Open AI documentation on prompt design
Midjourney documentation on prompt design