Communicating Effectively – Crafting Prompts

Far from lines of code and beyond the keywords of search engines, communication with generative AI occurs through a conversational agent, to which a clearly articulated request (i.e., a prompt) must be submitted. The prompt experience is designed to be simple and intuitive. Prompts are intended to establish a clear relationship between the user and the AI.

A computer engineer is no more capable than a novice of generating high-quality content if they cannot clearly convey their expectations to the AI. It is comparable to describing a scene to a visually impaired person: everything depends on how it is formulated. What is not explicitly stated is not considered, and common sense alone is insufficient to bridge the gap between expectations and available information.

The technique of prompting (i.e., prompt engineering) is therefore a skill like any other, involving a number of technical and/or creative considerations. Most importantly, it requires having a clear idea of what one wants to achieve. There are tools available to assist with prompt writing.

Just as it is not necessary to be a mechanic to drive a car, one can use a generative AI tool without mastering all of its technical underpinnings. Nevertheless, to be a professional driver, it is useful to know what is under the hood. The first part of this guide explains the structure of a query.

In the second part, we provide a series of steps and instructions to keep in mind, including specific acronyms as mnemonic aids, to help apply prompting techniques effectively.

 

Creating a prompt is similar to baking a cake. With butter, flour, milk, and eggs, almost anything can be made. The rest depends on quantities, additional ingredients, and the recipe. In the context of AI, the “ingredients” are examples, parameters, and context. They are essential for constructing effective instructions and critically evaluating the results.

The key is to address the questions: Who? What? Where? Why? How?

WHO?
When creating content, it is generally intended for a specific audience. Understanding the audience and specifying this information is important to provide relevant context. Even more importantly, it is helpful to indicate who is submitting the request.

Audience: To whom is it addressed?
Creation: Who is addressing it?

Example: I am a project manager in communication and I am writing an email to university students.

 

WHAT?
This involves guiding the tool to understand our intention. As mentioned, one should imagine speaking to a visually impaired person and be explicit about what they want to achieve.

Format: What type of content?
Subject: About what?
Parameters: What length? Tone?

Example: Make a list of five ideas of titles for a conference on the impact of screens on child development.

 

WHERE?
What is the intended medium or channel for dissemination? Specifying where the output will be used provides context for the tool. When possible, it is also helpful to indicate the source of information to be used, whether online or within the query itself.

Channel: Where will it be read?
Source: From what is it formulated?

Example: In the following text, identify three keywords that will be used to find this text in a search engine: “[insert text]”

 

WHY?
Generative AI can capture intentionality by identifying patterns across numerous documents with a similar purpose. It is therefore important to specify why the content is expected to take the desired form.

Objective: What is the final action? What is the ideal result?

Example: Write a paragraph on digital technology and the environment to express economic, social, and environmental issues while maintaining a neutral viewpoint.

 

HOW?
Generative AI tools can produce and replicate any type of content in any style. They are particularly skilled at capturing emotional, social, or hierarchical nuances. It is therefore advisable to specify which of these is expected.

Emotion: What note to take?
Style: How to dress the content?

Example: Respond positively by highlighting the originality of the project while maintaining a enthusiastic but authoritative and administrative tone.

S – SPIRIT

Adopt the mindset of a “beginner” or “non-native speaker.” Avoid overly regional or personal expressions, and do not rely on tacit rules or habits.

For example, if you ask a colleague to bring you a “cup of joe,” they would need to understand the slang for “coffee,” locate the coffee maker, know how to use it, and be aware of your preferences (e.g., black with three sugars). If any of this information is missing, they will improvise based on their best guess, which may lead to an unsatisfactory outcome.

croix.png  Ex.: Explain the CODIR decision regarding the PAT.

vue.png  Ex.: Explain Decision X of the Executive Committee regarding administrative and technical staff.

 

T – TRACK

The true strength of these tools lies in their ability to generate thoughtful responses. Ask creative and critical questions to obtain meaningful results and avoid obvious or simplistic answers (e.g., yes/no). To stay on course, it is helpful to have a clear sense of the desired framework and refine it using precise and concise instructions.

croix.png  Ex.: Is the University Act good?

vue.png  Ex.: In the context of the 2008 reform of the University Act, have higher education and research been harmonized at the national level?

 

E – EXECUTION

It is essential to specify the expected action. This can be achieved by using a verb or referring to a specific activity—for example, directive verbs such as “discuss,” “compare,” “design,” or “evaluate.” The choice of verb can significantly influence the outcome.

Ex.: Returning to the University Act example, specifying instructions such as “present the main arguments” or “act as a representative of this political party” will clarify the response and give it a distinct perspective.

 

P – PARAMETERS

To prevent vague, unprofessional, or content-heavy responses, refine your request by specifying key parameters. For example, indicate a methodology, word count, structure (e.g., email, keywords, report), or format (Python, HTML, CSV, Excel).

Ex.: Write a 450-word paragraph on subject XY in Markdown format.

 

S – SETTING

Context establishes the environment for the tool. Use limiting terms (e.g., “in Switzerland”), provide familiar examples, or define the target audience. To further shape the response, specify the tone (e.g., formal, casual) or the expected role (e.g., “a quality assurance manager”).

Ex.: Develop a first-year workshop delivered online for adult students.
Ex.: Write a comprehensible response for an 8-year-old child.
Ex.: Write in a formal tone, in the third person, for a university audience.

A – ADD
There is no single correct answer; these are possibilities and ideas. It is important to test different variations of results, either using the same tool or comparing across multiple tools. This allows exploration of multiple perspectives or approaches to a problem.

Ex.: Propose an alternative answer from the perspective of a bachelor’s student.
Advice: Ask the same question on ChatGPT, Bard, and Llama.

F – FINE-TUNE
Prompting is an iterative process. It involves expanding the focus to related elements and then refining it with additional instructions (e.g., follow-up on a specific aspect of the previous answer). The goal is to guide the AI and identify useful elements for deeper exploration.

Ex.: Specify the third argument of the response with a concrete example.

T – TAILOR
Plans may need adjustment. A common pitfall is vague or imprecise instructions, which can confuse the algorithm. Simplify keywords or revisit action verbs and parameters to improve precision and establish the correct context.

Ex.: In the University Act example, instead of instructing “research,” specify interest in “scientific collaboration.”

E – EVALUATE
Information generated by AI can sometimes be confusing. Challenge the tool and ask it to explain its answers. Do not hesitate to express doubts or suggest alternative approaches.

Ex.:I believe the third argument is incorrect. Can you explain why you proposed this?”

R – REVIEW
This step involves identifying potential hallucinations and biases in the AI-generated content. Verification can include citing supporting sources or meticulously checking the facts mentioned. Of all the steps, this is crucial to maintaining both personal credibility and that of the institution.

Ex.: If the tool is not used as a search engine that provides a list of URLs, explicitly request the AI to provide references for the generated response.

CONSTRUCTION

There is no single way to communicate with generative AI when submitting queries. It is both normal and important to find your own style, or the one that best suits a given task.

 

  • Once and for all

une fois pour toutes 2.png The approach involves writing a single, precise query. It serves as a starting point to be refined later. This method aims to avoid repeated efforts or successive iterations. It can be applied in various contexts, such as problem-solving, decision-making, or project planning, in order to maximize efficiency and save time and resources.

 

  • Layered

par couches (2).pngThis approach involves submitting a minimal query, evaluating it, and then refining it by adding examples, context, and parameters (see STEPS) until a satisfactory result is achieved. This method also allows a complex problem to be broken down into simpler layers, with each layer responsible for a specific part of the problem. Finally, the tool can be asked to aggregate the results obtained.

 

  • Collage

en collage (2).pngThis approach requires formulating a query that is as complete as possible, rich in context, parameters, and examples, and then iterating through multiple versions of the results. Since the tool generates different outputs for each request, it is possible to take the best parts from each result and combine them to create something new.

 

It is imperative to adopt an engaged approach. Blindly accepting the results can lead to errors, especially when the task extends beyond the “jagged” boundary where AI capabilities become unpredictable. According to Dell’Acqua et al. (2023), two categories of human-machine collaboration practices have emerged. These distinct strategies were spontaneously adopted in professional settings integrating generative AI. The first delegates tasks either to the tool or to themselves, while the second fully integrates their workflow with the technology.

Centaur Behavior

Like the mythical creature, humans and machines are closely fused in a strategic division of labor. Centaurs discern which tasks are better suited for humans or generative AI based on the strengths and capabilities of each entity, assigning them alternately.

centaure2.png

 

Cyborg Behavior

Cyborgs integrate human and machine capabilities at the level of subtasks. It becomes unclear whether the result was produced by the human or the AI. With this approach, which focuses on complex integration, there is no clear division of labor. Efforts are interwoven up to the boundary of the generative AI’s capabilities.

cyborg2.png

Précédent
Suivant