Generative AI models function by analyzing vast amounts of text data and learning the statistical relationships between words. This allows them to predict the most likely word to follow a given sequence of words.
When you provide a prompt, you're essentially feeding the AI a starting sequence. When you provide a detailed prompt, you narrow down the possibilities for word prediction significantly. |
ECOSTAR: a framework for prompting
This is a suggested framework. It is not THE way, but just A way. Also, all the components might not be needed all of the time.
The COSTAR framework is particularly useful for crafting prompts because it focuses on key elements that steer the AI towards generating outputs tailored for specific audiences and contexts
The COSTAR framework is particularly useful for crafting prompts because it focuses on key elements that steer the AI towards generating outputs tailored for specific audiences and contexts
COMPONENT |
DESCRIPTION |
EXPERTISE |
Specifying the domain of expertise to semantically access the LLMs focus |
CONTEXT |
Providing background information helps the LLM understand the specific scenario. |
OBJECTIVE |
Clearly defining the task directs the LLM’s focus. |
STYLE |
Specifying the desired writing style aligns the LLM response. |
TONE |
Setting the tone ensures the response resonates with the required sentiment. |
AUDIENCE |
Identifying the intended audience tailors the LLM’s response to be targeted to an audience. |
RESPONSE / REQUEST |
Providing the response format. For example as running text, bullet points or a table. |
Although ECOSTAR provides a strong foundation, you might need to iterate on your prompt a few times to achieve the exact level of output you desire. The initial attempts might be more open-ended than you envisioned. By understanding how generative AI models function as statistical predictors and how prompts act as stepping stones, you can unlock greater creative potential from these tools
Skriv ett tal |
Write a speech |
E - Expert
Du är expert på retorik, med specialisering på att skriva politiska tal som väcker känslor och kulturell igenkänning hos en svensk publik. Du är också en van fjällbesökare, som ibland campar och ibland bor på STF:s fjällstationer. Du förstår hur upplevelser i fjällen kan fungera som metaforer för uthållighet, planering och gemenskap. C – Kontext Magdalena Andersson, oppositionsledare i Sveriges riksdag, ska hålla ett kampanjtal under en sommarturné i Norrland. Det politiska klimatet är polariserat, och landsbygdsbor i Jämtland och Västerbotten känner sig alltmer distanserade från politiken i Stockholm. Många oroar sig för framtiden för välfärden, den lokala ekonomin och den sociala sammanhållningen. O – Mål (Objective) Skriv ett övertygande kampanjtal på 500 ord som Magdalena Andersson ska hålla på engelska. Syftet är att vinna förtroende och motivera invånare i landsbygdsområden att stödja Socialdemokraterna i nästa val. Talet ska betona välfärd, ekonomisk stabilitet och solidaritet, särskilt med fokus på mindre orter. S – Stil Använd ett språk rikt på metaforer och levande bildspråk. Hämta inspiration från fjällvärlden och skidturandet – särskilt väderomslag och orientering. Använd retoriska grepp som kontrast, parallellismer och personliga anekdoter. Strukturen ska vara tydlig: inledning med hook, huvuddel med två anekdoter, och avslutande uppmaning till handling. T – Ton Positiv, optimistisk och humoristisk – men samtidigt allvarlig och trovärdig. Undvik alarmism men erkänn verkliga problem. Talaren ska framstå som erfaren, empatisk och pragmatisk. A – Publik (Audience) Invånare på landsbygden i Jämtland och Västerbotten – många är samhällsengagerade, stolta över sin region och skeptiska till centraliserat beslutsfattande. De värdesätter rättvisa, tradition och sunt förnuft. R – Begäran (Request or Response) Skriv hela talet (ca 500 ord). Inkludera:
|
E - Expert
You are an expert in rhetoric, with a specialisation in writing political speeches that resonate emotionally and culturally with a Swedish audience. You are also a frequent visitor to the Swedish mountains, sometimes camping and sometimes staying at STF mountain lodges. You understand how outdoor experiences can serve as metaphors for resilience, planning, and community. C - Context Magdalena Andersson, leader of the opposition in the Swedish Parliament, is delivering a campaign speech during a summer tour through northern Sweden. The political climate is divided, and rural voters in Jämtland and Västerbotten feel increasingly disconnected from Stockholm politics. Many are concerned about the future of public services, the rural economy, and societal cohesion. O - Objective Write a persuasive 500-word campaign speech to be delivered in English. The goal is to win trust and motivate citizens in rural areas to support the Social Democratic Party in the next election. The speech should reaffirm commitment to welfare, economic stability, and solidarity, particularly for smaller communities. S - Style: Use metaphor-rich language and vivid imagery. Draw on outdoor and mountain metaphors—especially ski touring, weather changes, and navigation. Incorporate rhetorical devices such as contrast, parallelism, and personal anecdote. The structure should be clear: opening hook, body with two anecdotes, closing call to action. T - Tone: Positive, optimistic, humorous—but grounded in seriousness and credibility. Avoid alarmism but acknowledge real concerns. The speaker should come across as experienced, empathetic, and pragmatic. A - Audience Citizens living in rural Jämtland and Västerbotten—many of whom are community-oriented, proud of their region, and sceptical of centralised decision-making. They value fairness, tradition, and common sense. R - Request Write the full speech (about 500 words). Include:
|