diff --git a/_locales/en/messages.json b/_locales/en/messages.json index da85f92e..e99fed29 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -954,5 +954,13 @@ "placeholder_mail_typed_text": { "message": "Typed text before the quoted mail body", "description": "" + }, + "prompt_get_calitem": { + "message": "Add a new calendar event", + "description": "" + }, + "prompt_get_calitem_full_text": { + "message": "Extract all relevant details required to generate an iCalendar (iCal) file 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- Location (if available)\n- Description or Additional Notes (if available)\n- Organizer's Name and Contact Details (if available)\n- Recurrence Rules (if mentioned)\nEnsure the data is formatted clearly and consistently so that it can be directly used for creating an iCal file. Highlight any missing or ambiguous details that might require clarification. Here's the text:\"{%selected_text%}\"", + "description": "" } } \ No newline at end of file diff --git a/js/mzta-prompts.js b/js/mzta-prompts.js index 636efdf9..9481d964 100644 --- a/js/mzta-prompts.js +++ b/js/mzta-prompts.js @@ -182,6 +182,19 @@ const specialPrompts = [ is_default: "1", is_special: "1", }, + { + id: 'prompt_get_calitem', + name: "__MSG_prompt_get_calitem__", + text: "prompt_get_calitem_full_text", + type: "1", + action: "0", + need_selected: "1", + need_signature: "0", + need_custom_text: "0", + define_response_lang: "0", + is_default: "1", + is_special: "1", + }, ];