@postalsys/email-ai-tools 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/generate-summary.js +14 -4
- package/package.json +1 -1
package/lib/generate-summary.js
CHANGED
|
@@ -31,15 +31,25 @@ Instructions:
|
|
|
31
31
|
- Do not include message signatures in the extracted reply text
|
|
32
32
|
- If the email text mentions events, return these events as separate event objects in an "events" array
|
|
33
33
|
- In the event object include the following properties
|
|
34
|
-
- "description" property that describes the event
|
|
34
|
+
- "description" property that describes the event in English
|
|
35
35
|
- "location" property that defines the expected location of the event
|
|
36
36
|
- "startTime" property that includes a timestamp without a timezone for the start of the event
|
|
37
37
|
- "endTime" property that includes a timestamp without timezone for the expected end of the event if there is high confidence for the value
|
|
38
|
+
- "type" property that includes a keyword that describes the type of the event.
|
|
39
|
+
- "event" is a regular calendar event
|
|
40
|
+
- "meeting" is a scheduled meeting
|
|
41
|
+
- "appointment" is a scheduled appointment
|
|
42
|
+
- "task" if the event describes a task that needs to be completed by the due date
|
|
43
|
+
- "general" describes a generic event, like a fair or a competition
|
|
44
|
+
- If the email text mentions actions that the recipient must take, return these actions as separate action objects in an "actions" array
|
|
45
|
+
- In the action object, include the following properties
|
|
46
|
+
- "description" property that summarises the action in English
|
|
47
|
+
- "dueDate" property that includes a timestamp without a timezone for the due date of the action
|
|
38
48
|
- Do not include the event in the "events" array if the confidence for it being an event is low
|
|
39
49
|
- Generate a security analysis of the email and store the security analysis in "riskAssessment" property as an object value.
|
|
40
50
|
- The "riskAssessment" object should include the following properties
|
|
41
51
|
- "risk" property that contains a risk score for the email using the following scale: 1 - 5 (where 1 is low risk, and 5 is high risk), taking into account what may happen if a user acts by the instructions given in the email.
|
|
42
|
-
- "assessment" property, a single-sentence assessment text that includes details about issues that increase the risk score
|
|
52
|
+
- "assessment" property, a single-sentence assessment text that includes details about issues that increase the risk score. Do not disclose details that decrease the risk score or do not affect it.
|
|
43
53
|
- Your security analysis should contain (but is not limited to) the following risk factors:
|
|
44
54
|
- Does the email include links with domain names that contain typos or homoglyphs that might mislead the user about the actual target of the link
|
|
45
55
|
- Does the sender address of the email not seem to match the persona or organization the sender email claims to be
|
|
@@ -69,9 +79,9 @@ Facts:
|
|
|
69
79
|
- Throwaway email addresses might use a randomly generated or hex text string as the username of the email address
|
|
70
80
|
- Throwaway email addresses might use free email services like gmail.com, outlook.com, hotmail.com, yahoo.com, aol.com, etc
|
|
71
81
|
- An email is a reply to a previous email only if it includes an "in-reply-to" header
|
|
72
|
-
- An email is a forwarded email only if it includes the "references" header
|
|
82
|
+
- An email is a forwarded email only if it includes the "references" header but not the "in-reply-to" header
|
|
73
83
|
- The email structure includes a property "headers" that contains an array of header values.
|
|
74
|
-
- For timestamps without timezone, use the "YYYY-MM-DD hh:mm:ss" format
|
|
84
|
+
- For timestamps without a timezone, use the "YYYY-MM-DD hh:mm:ss" format
|
|
75
85
|
- For timestamps without known time, use the "YYYY-MM-DD" format
|
|
76
86
|
- If the email uses relative dates, then use the date from the "date" header as the base value to calculate actual dates
|
|
77
87
|
- Each header contains two properties, "key" as the header field key name and "value" as the header value without the key prefix
|