diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index c98079bd..c7ceded5 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -1008,7 +1008,11 @@
"description": ""
},
"prompt_summarize_full_text": {
- "message": "Summarize the following email or emails into a bullet point list. If there are multiple emails, consider the entire thread for the summary.",
+ "message": "Summarize the following email or emails into a bullet point list. If there are multiple emails, consider the entire thread for the summary.\n------------------\n\n",
+ "description": ""
+ },
+ "prompt_summarize_email_template": {
+ "message": "From: {%author%}\nTo: {%recipients%}\nCC: {%cc_list%}\nSubject: {%mail_subject%}\nDate: {%mail_datetime%}\nAttachments:\n{%mail_attachments_info%}\nBody:\n{%mail_text_body%}\n---------------\n\n",
"description": ""
},
"prompt_get_task": {
@@ -1075,6 +1079,10 @@
"message": "You can change the prompt as you wish, but the response received from the AI must be in JSON format as specified in the default prompt!",
"description": ""
},
+ "prefs_OptionText_Summarize_infoline2": {
+ "message": "You can change the prompt as you wish, the first field is the main prompt, the second field is the template for a single mail. The list of emails will be appended to the main prompt.",
+ "description": ""
+ },
"prefs_OptionText_get_calendar_event_Sparks_not_present": {
"message": "To use the calendar event and task features, please install the ThunderAI Sparks addon.",
"description": ""
diff --git a/js/mzta-prompts.js b/js/mzta-prompts.js
index 4ea5d552..f68a3997 100644
--- a/js/mzta-prompts.js
+++ b/js/mzta-prompts.js
@@ -339,6 +339,22 @@ const specialPrompts = [
api_model: '',
is_default: "1",
is_special: "1",
+ },
+ {
+ id: 'prompt_summarize_email_template',
+ name: "__MSG_prompt_summarize_email_template__",
+ text: "prompt_summarize_email_template_full_text",
+ type: "1",
+ action: "0",
+ need_selected: "0",
+ need_signature: "0",
+ need_custom_text: "0",
+ define_response_lang: "0",
+ use_diff_viewer: "0",
+ api_type: '',
+ api_model: '',
+ is_default: "1",
+ is_special: "1",
}
];
diff --git a/pages/summarize/mzta-summarize.css b/pages/summarize/mzta-summarize.css
index 173353e7..f4bbc091 100644
--- a/pages/summarize/mzta-summarize.css
+++ b/pages/summarize/mzta-summarize.css
@@ -3,6 +3,10 @@
margin: 20px auto;
}
+#summarize_email_template_text {
+ width: 100%;
+}
+
#summarize_prompt_text {
width: 100%;
}
diff --git a/pages/summarize/mzta-summarize.html b/pages/summarize/mzta-summarize.html
index 7433ec82..54405840 100644
--- a/pages/summarize/mzta-summarize.html
+++ b/pages/summarize/mzta-summarize.html
@@ -12,17 +12,58 @@