-
Notifications
You must be signed in to change notification settings - Fork 34
thread summary #597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
thread summary #597
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
84a65ac
resolve rebase conflicts
gdkrmr 050a3fd
Add MZTA summary page
gdkrmr 4ab6da2
change all "summary" -> "summarize"
gdkrmr 02787e2
Fix context menu ID typos
gdkrmr 8abb7e3
Add summarize prompt to specialPrompts
gdkrmr 2c07aa6
Remove unused imports from mzta-summarize.js
gdkrmr 7eb9a2c
fixes saving of summarize prompt
gdkrmr fe427c2
Add Email Template Editor to Summarize Panel
gdkrmr f29d833
WIP: Add Summarize context menu action and handler
gdkrmr 7595c70
Implement summarization internals
gdkrmr c3e27f0
Fix malformed label closing tag in options page
gdkrmr 3d2c2b9
add customizable model options for summarize
gdkrmr 66cc357
move email separators to extra prompt field
gdkrmr 24edcc0
make some variables const
gdkrmr c6bf2ed
allow placeholders in other summarize prompts
gdkrmr c261c1d
fix bug
gdkrmr 30a7de3
better explanation
gdkrmr d601121
better descriptions for prompts
gdkrmr 51c8141
handle disabling summarize options button
gdkrmr 8679e1c
remove checking for non-optional permission
gdkrmr 90dcf84
remove stray console logging
gdkrmr f147a04
remove summarize_context_menu option in favor of summarize option
gdkrmr cb6c936
correct prompt naming
gdkrmr 7202b5a
fix prompt names
gdkrmr b247dad
adapt code copied from add_tags
gdkrmr f6fcaac
update prompts
gdkrmr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1003,6 +1003,34 @@ | |
| "message": "Extract all relevant details required to generate a calendar event from the following text. The extracted information should include:\n- Event Title\n- Start Date and Time (including timezone, if specified)\n- End Date and Time (including timezone, if specified)\n- Full day (if mentioned)\n- Attendees\nEnsure the data is formatted clearly and consistently so that it can be directly used for creating a calendar event.\nIf there are relative time references, consider that the date and time of the email are \"{%mail_datetime%}\". Calculate the start date and time based on this reference. If the calculated start date and time are earlier than \"{%current_datetime%}\", recalculate the start date and time using \"{%current_datetime%}\" as the base.\nIf the duration is not specified, set it to one hour.\nThese are the attendees: {%author%}, {%recipients%}, {%cc_list%}. If present, exclude my address: {%account_email_address%}.\nIf you're not able to get one or more of the required information, please respond with an empty string.\nGenerate a response in JSON format only. Do not include any additional text or explanations; provide only the JSON. Here is the format to be used:\n{\n\"startDate\": \"YYYYMMDDTHHMMSS\",\n\"endDate\": \"YYYYMMDDTHHMMSS\",\n\"summary\": \"Calendar event summary here\",\n\"forceAllDay\": false,\n\"attendees\": [[email protected],[email protected],[email protected]]\n}\nHere's the text:\"{%selected_text%}\"", | ||
| "description": "" | ||
| }, | ||
| "Summarize_prompt_prefs_title": { | ||
| "message": "Add Summarization Options", | ||
| "description": "" | ||
| }, | ||
| "prompt_summarize": { | ||
| "message": "Summarize this email or these emails", | ||
| "description": "" | ||
| }, | ||
| "prompt_summarize_full_text": { | ||
| "message": "You are an assistant that summarizes email conversations.\n\nGiven an email thread, produce a concise, accurate summary that captures:\n\n- The main topic or purpose of the conversation\n- Key decisions, conclusions, or agreements\n- Important questions, requests, or action items\n- Who is responsible for each action item (if stated)\n\nOmit greetings, signatures, quoted text, and redundant back-and-forth.\nDo not add assumptions or information not present in the emails.\n\nWrite the summary in clear, neutral language suitable for a busy professional.", | ||
| "description": "" | ||
| }, | ||
| "prompt_summarize_email_template": { | ||
| "message": "Summarize email template", | ||
| "description": "" | ||
| }, | ||
| "prompt_summarize_email_template_full_text": { | ||
| "message": "From: {%author%}\nTo: {%recipients%}\nCC: {%cc_list%}\nSubject: {%mail_subject%}\nDate: {%mail_datetime%}\nAttachments:\n{%mail_attachments_info%}\n\nBody:\n{%mail_text_body%}", | ||
| "description": "" | ||
| }, | ||
| "prompt_summarize_email_separator": { | ||
| "message": "Email separator", | ||
| "description": "" | ||
| }, | ||
| "prompt_summarize_email_separator_full_text": { | ||
| "message": "\n\n---------- NEXT EMAIL ----------\n\n", | ||
| "description": "" | ||
| }, | ||
| "prompt_get_task": { | ||
| "message": "Add a new task", | ||
| "description": "" | ||
|
|
@@ -1067,6 +1095,22 @@ | |
| "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. Emails will be separated by the separator specified in the third field.", | ||
| "description": "" | ||
| }, | ||
| "prefs_OptionText_Summarize_main_prompt": { | ||
| "message": "The main prompt describing the task to be performed on all selected emails:", | ||
| "description": "" | ||
| }, | ||
| "prefs_OptionText_Summarize_email_template": { | ||
| "message": "The template for a single email:", | ||
| "description": "" | ||
| }, | ||
| "prefs_OptionText_Summarize_email_separator": { | ||
| "message": "The separator between emails:", | ||
| "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": "" | ||
|
|
@@ -1195,6 +1239,22 @@ | |
| "message": "Manage spam filter settings", | ||
| "description": "" | ||
| }, | ||
| "prefs_OptionText_summarize": { | ||
| "message": "Summarize mail", | ||
| "description": "" | ||
| }, | ||
| "prefs_OptionText_summarize_use_specific_integration_Info": { | ||
| "message": "If checked, the Model and API specified below will be used for summarizing email(s), regardless the one choosen in the ThunderAI options page.", | ||
| "description": "" | ||
| }, | ||
| "prefs_OptionText_summarize_Info": { | ||
| "message": "If checked, adds an option to context menu to summarize mail.", | ||
| "description": "" | ||
| }, | ||
| "prefs_OptionText_btnManageSummarizeInfo": { | ||
| "message": "Manage summarize settings", | ||
| "description": "" | ||
| }, | ||
| "SpamFilter_PageTitle": { | ||
| "message": "Manage Spam Filter Settings", | ||
| "description": "" | ||
|
|
@@ -1219,6 +1279,18 @@ | |
| "message": "Spam Filter Options", | ||
| "description": "" | ||
| }, | ||
| "Summarize_PageTitle": { | ||
| "message": "Manage Summarize Settings", | ||
| "description": "" | ||
| }, | ||
| "Summarize_info_default": { | ||
| "message": "In this page you can modify the default prompt used to summarize emails.", | ||
| "description": "" | ||
| }, | ||
| "Summarize_prompt_text_title": { | ||
| "message": "Current prompt text", | ||
| "description": "" | ||
| }, | ||
| "prefs_OptionText_use_specific_integration": { | ||
| "message": "Use specific Model and API", | ||
| "description": "" | ||
|
|
@@ -1295,6 +1367,10 @@ | |
| "message": "Analyze for spam", | ||
| "description": "" | ||
| }, | ||
| "context_menu_mzta-summarize": { | ||
| "message": "Summarize", | ||
| "description": "" | ||
| }, | ||
| "prefs_OptionText_add_tags_context_menu": { | ||
| "message": "Show the \"Add tags\" context menu item", | ||
| "description": "" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no icon yet. If you have a good idea, go ahead and add one.