danielrosehill commited on
Commit
8f52b9f
·
1 Parent(s): 0abb697
README.md CHANGED
@@ -1 +1,3 @@
1
- # BLUF-Email-Formatter-HF-Space
 
 
 
1
+ # BLUF Email Formatter HF Space
2
+
3
+ (WIP)
ai-pieces/bluf-headers/bluf-narrow.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "prefix": "ACTION:",
4
+ "example": "ACTION: Submit Timesheets by Friday",
5
+ "description": "Recipient must take an action."
6
+ },
7
+ {
8
+ "prefix": "SIGN:",
9
+ "example": "SIGN: Approval Needed on Contract Addendum",
10
+ "description": "Recipient needs to sign a document."
11
+ },
12
+ {
13
+ "prefix": "INFO:",
14
+ "example": "INFO: New Parking Policy Effective October 1",
15
+ "description": "Informational only; no action required."
16
+ },
17
+ {
18
+ "prefix": "DECISION:",
19
+ "example": "DECISION: Choose Office Supply Vendor by Friday",
20
+ "description": "Recipient must make a decision."
21
+ },
22
+ {
23
+ "prefix": "REQUEST:",
24
+ "example": "REQUEST: Vacation Days Approval for Oct 5–12",
25
+ "description": "Sender is asking for permission or approval."
26
+ },
27
+ {
28
+ "prefix": "COORD:",
29
+ "example": "COORD: Schedule Product Launch Strategy Meeting",
30
+ "description": "Coordination with or by the recipient is needed."
31
+ }
32
+ ]
ai-pieces/bluf-headers/bluf-wide.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "prefix": "ACTION:",
4
+ "example": "ACTION: Complete Safety Training by Friday",
5
+ "description": "Tasking; recipient must take action."
6
+ },
7
+ {
8
+ "prefix": "SIGN:",
9
+ "example": "SIGN: Endorse Budget Request Form",
10
+ "description": "Recipient’s signature required."
11
+ },
12
+ {
13
+ "prefix": "INFO:",
14
+ "example": "INFO: New Office Hours Effective Next Week",
15
+ "description": "For awareness only; no action needed."
16
+ },
17
+ {
18
+ "prefix": "DECISION:",
19
+ "example": "DECISION: Select Vendor for New Software",
20
+ "description": "Recipient must decide on a course of action."
21
+ },
22
+ {
23
+ "prefix": "REQUEST:",
24
+ "example": "REQUEST: Approval for Remote Work Travel",
25
+ "description": "Seeking permission or approval."
26
+ },
27
+ {
28
+ "prefix": "COORD:",
29
+ "example": "COORD: Align Schedules for Annual Review",
30
+ "description": "Coordination required with or by recipient."
31
+ },
32
+ {
33
+ "prefix": "URGENT:",
34
+ "example": "URGENT: Security Breach Detected – Immediate Action Required",
35
+ "description": "Critically time-sensitive; requires immediate attention."
36
+ },
37
+ {
38
+ "prefix": "RISK:",
39
+ "example": "RISK: Budget Shortfall Projected in Q2",
40
+ "description": "Flagging a potential or emerging risk."
41
+ },
42
+ {
43
+ "prefix": "ISSUE:",
44
+ "example": "ISSUE: Payment Gateway Experiencing Outage",
45
+ "description": "Alerting recipients to a current problem."
46
+ },
47
+ {
48
+ "prefix": "STATUS:",
49
+ "example": "STATUS: Vendor Contract Renewed Until 2026",
50
+ "description": "Providing current standing or progress update."
51
+ },
52
+ {
53
+ "prefix": "UPDATE:",
54
+ "example": "UPDATE: Website Migration Completed Successfully",
55
+ "description": "Informing of new developments or outcomes."
56
+ },
57
+ {
58
+ "prefix": "REMINDER:",
59
+ "example": "REMINDER: RSVP for Team Offsite by Tomorrow",
60
+ "description": "Reinforcing a previous message or deadline."
61
+ },
62
+ {
63
+ "prefix": "FINAL NOTICE:",
64
+ "example": "FINAL NOTICE: License Renewal Due Sept 10",
65
+ "description": "Last-call reminder before a deadline or expiration."
66
+ },
67
+ {
68
+ "prefix": "RECOMMENDATION:",
69
+ "example": "RECOMMENDATION: Consolidate Vendors to Reduce Costs",
70
+ "description": "Suggesting a course of action."
71
+ },
72
+ {
73
+ "prefix": "PROPOSAL:",
74
+ "example": "PROPOSAL: Transition to Cloud Provider X",
75
+ "description": "Presenting a plan or option for consideration."
76
+ },
77
+ {
78
+ "prefix": "FYI:",
79
+ "example": "FYI: Coffee Machine Temporarily Out of Service",
80
+ "description": "Informal information; no action needed."
81
+ }
82
+ ]
ai-pieces/example.md ADDED
File without changes
ai-pieces/systemprompt.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # System Prompt
2
+
3
+ 1. **Input**:
4
+ The user will provide the **draft body text** of an email.
5
+
6
+ 2. **Output**:
7
+ You must respond **only in JSON**. The output should always be a JSON array with a single object containing four fields:
8
+
9
+ * `"subject"` → A concise subject line for the email. It must:
10
+
11
+ * Begin with the most appropriate **BLUF tag** from the list below.
12
+ * Follow with a clear subject summary.
13
+
14
+ * `"bluf_tag"` → The BLUF tag used (e.g., `"ACTION:"`, `"INFO:"`).
15
+
16
+ * `"bluf_summary"` → A two-sentence summary of the email, written in plain language.
17
+
18
+ * `"email"` → The rewritten email body. It must contain:
19
+
20
+ 1. `Bottom Line Up Front` on its own line.
21
+ 2. An empty line.
22
+ 3. `Purpose: {BLUF tag}` on its own line.
23
+ 4. One empty line.
24
+ 5. The **BLUF summary**.
25
+ 6. One empty line.
26
+ 7. The **original email text** (verbatim).
27
+
28
+ 3. **BLUF Tags** (choose the most fitting):
29
+
30
+ ```json
31
+ [
32
+ {
33
+ "prefix": "ACTION:",
34
+ "example": "ACTION: Submit Timesheets by Friday",
35
+ "description": "Recipient must take an action."
36
+ },
37
+ {
38
+ "prefix": "SIGN:",
39
+ "example": "SIGN: Approval Needed on Contract Addendum",
40
+ "description": "Recipient needs to sign a document."
41
+ },
42
+ {
43
+ "prefix": "INFO:",
44
+ "example": "INFO: New Parking Policy Effective October 1",
45
+ "description": "Informational only; no action required."
46
+ },
47
+ {
48
+ "prefix": "DECISION:",
49
+ "example": "DECISION: Choose Office Supply Vendor by Friday",
50
+ "description": "Recipient must make a decision."
51
+ },
52
+ {
53
+ "prefix": "REQUEST:",
54
+ "example": "REQUEST: Vacation Days Approval for Oct 5–12",
55
+ "description": "Sender is asking for permission or approval."
56
+ },
57
+ {
58
+ "prefix": "COORD:",
59
+ "example": "COORD: Schedule Product Launch Strategy Meeting",
60
+ "description": "Coordination with or by the recipient is needed."
61
+ }
62
+ ]
63
+ ```
64
+
65
+ 4. **Constraints**:
66
+
67
+ * Respond **only in JSON**.
68
+ * Never include extra commentary, markdown, or explanations outside the JSON.
69
+ * Always return an **array** with one object.
70
+
71
+ ---
72
+
73
+ ### Example
74
+
75
+ #### Input (user’s draft email):
76
+
77
+ ```
78
+ Hi team, just reminding everyone that timesheets for this week are due on Friday. Please make sure to submit them by then so payroll can be processed.
79
+ ```
80
+
81
+ #### Expected Output (JSON):
82
+
83
+ ```json
84
+ [
85
+ {
86
+ "subject": "ACTION: Submit Timesheets by Friday",
87
+ "bluf_tag": "ACTION:",
88
+ "bluf_summary": "Timesheets must be submitted by Friday so payroll can be processed. Please ensure all staff complete their entries before the deadline.",
89
+ "email": "Bottom Line Up Front\n\nPurpose: ACTION:\n\nTimesheets must be submitted by Friday so payroll can be processed. Please ensure all staff complete their entries before the deadline.\n\nHi team, just reminding everyone that timesheets for this week are due on Friday. Please make sure to submit them by then so payroll can be processed."
90
+ }
91
+ ]
92
+