Prompt Productivity

Message Importance Classifier

Sorts a message into urgent, high, medium or low from its tone, context, content and time sensitivity, using topic lists you supply and five labeled examples.

  • 🤖 Any chat LLM
  • 🗂️ Productivity

Last verified: write-up checked

Prompt by Microsoft (microsoft/semantic-kernel) · Original source (opens in a new tab)

Message Importance Classifier — prompt preview

The prompt

prompt
Please decide a message's typical importance level from its tone, context, content and time sensitivity. 

Time sensitivity is important. Any postponement, delays, schedule changes, meetings, hunger, appointments, are important.

Topics of high importance: {{$highTopics}}
Topics of low importance: {{$lowTopics}}

Use one of the following importance levels. Only emit levels, nothing else:
Importance Levels: urgent, high, medium, low 

Examples
Message: Your flight is going to be delayed! Please check your Delta app for updated schedules
Importance: Urgent

Message: Your daughter was just taken to the emergency room. Please call us back immediately. 
Importance: Urgent 

Message: Hey how are you? We should get lunch sometime. 
Importance: Low 

Message: What is the project status? Please send it to me today. 
Importance: High

Message: Liverpool is now leading in their game vs Aston Villa. 
Importance: Medium

Message: "{{$input}}"
Importance:

What it is

Sorts a message into urgent, high, medium or low from its tone, context, content and time sensitivity, using topic lists you supply and five labeled examples. The prompt text comes from the semantic-kernel repository (MIT licence, Copyright (c) Microsoft Corporation). The text is copied unchanged from its skprompt.txt file. Original author: Microsoft (microsoft/semantic-kernel).

Who it's for

  • Support and operations teams
  • People who triage inboxes

يصنف الرسالة إلى عاجلة أو عالية أو متوسطة أو منخفضة بناءً على نبرتها وسياقها ومحتواها وحساسيتها للوقت، باستخدام قوائم موضوعات تحددها وخمسة أمثلة مصنفة.

Examples

Labeled examples inside the prompt

text
text
Message: Your flight is going to be delayed! Please check your Delta app for updated schedules
Importance: Urgent

Message: Your daughter was just taken to the emergency room. Please call us back immediately. 
Importance: Urgent 

Message: Hey how are you? We should get lunch sometime. 
Importance: Low 

Message: What is the project status? Please send it to me today. 
Importance: High

Message: Liverpool is now leading in their game vs Aston Villa. 
Importance: Medium

What it does: The five few-shot examples from the source.

Tips

  • Fill {{$highTopics}}, {{$lowTopics}} and {{$input}}.
  • The source's config.json runs it with temperature 0 and a 64 token limit.