From dbefdb80c6dc456c27aa2e1bd10d783b19be2f05 Mon Sep 17 00:00:00 2001 From: hart_s3 Date: Thu, 12 Feb 2026 11:52:26 +0100 Subject: [PATCH] Modify SystemPrompt and Description --- .../Assistants/I18N/allTexts.lua | 6 ++-- .../SlideBuilder/SlideAssistant.razor.cs | 32 +++++++++++++------ app/MindWork AI Studio/Routes.razor.cs | 2 +- 3 files changed, 26 insertions(+), 14 deletions(-) diff --git a/app/MindWork AI Studio/Assistants/I18N/allTexts.lua b/app/MindWork AI Studio/Assistants/I18N/allTexts.lua index ad373db5..10f69c88 100644 --- a/app/MindWork AI Studio/Assistants/I18N/allTexts.lua +++ b/app/MindWork AI Studio/Assistants/I18N/allTexts.lua @@ -1336,6 +1336,9 @@ UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::REWRITEIMPROVE::WRITINGSTYLESEXTENSIONS:: -- Marketing (advertisements, sales texts) UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::REWRITEIMPROVE::WRITINGSTYLESEXTENSIONS::T945714286"] = "Marketing (advertisements, sales texts)" +-- This assistant helps you create clear, structured slide components from long texts or documents. Enter a presentation title and supplement the content, either as text you write yourself or as an uploaded document. Set the number of slides either by direct specification or based on your desired presentation duration. The output can be flexibly generated in various languages and with adjustable complexity. +UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::SLIDEBUILDER::SLIDEASSISTANT::T1062229406"] = "This assistant helps you create clear, structured slide components from long texts or documents. Enter a presentation title and supplement the content, either as text you write yourself or as an uploaded document. Set the number of slides either by direct specification or based on your desired presentation duration. The output can be flexibly generated in various languages and with adjustable complexity." + -- Your title UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::SLIDEBUILDER::SLIDEASSISTANT::T1790167032"] = "Your title" @@ -1351,9 +1354,6 @@ UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::SLIDEBUILDER::SLIDEASSISTANT::T2709966651 -- Create Slides UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::SLIDEBUILDER::SLIDEASSISTANT::T3079776593"] = "Create Slides" --- Develop slide content based on a given topic and content. -UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::SLIDEBUILDER::SLIDEASSISTANT::T311912219"] = "Develop slide content based on a given topic and content." - -- Please a title UI_TEXT_CONTENT["AISTUDIO::ASSISTANTS::SLIDEBUILDER::SLIDEASSISTANT::T3359269886"] = "Please a title" diff --git a/app/MindWork AI Studio/Assistants/SlideBuilder/SlideAssistant.razor.cs b/app/MindWork AI Studio/Assistants/SlideBuilder/SlideAssistant.razor.cs index 315d4183..c5389db7 100644 --- a/app/MindWork AI Studio/Assistants/SlideBuilder/SlideAssistant.razor.cs +++ b/app/MindWork AI Studio/Assistants/SlideBuilder/SlideAssistant.razor.cs @@ -9,22 +9,26 @@ public partial class SlideAssistant : AssistantBaseCore T("Slide Assistant"); - protected override string Description => T("Develop slide content based on a given topic and content."); + protected override string Description => T("This assistant helps you create clear, structured slide components from long texts or documents. Enter a presentation title and supplement the content, either as text you write yourself or as an uploaded document. Set the number of slides either by direct specification or based on your desired presentation duration. The output can be flexibly generated in various languages and with adjustable complexity. "); protected override string SystemPrompt => - $$""" + $$$""" You are a professional presentation editor and writer. Create a clear, single-slide outline from the user's inputs. + # Presentation title: + - IGNORE the language of the PRESENTATION_TITLE. + - Translate PRESENTATION_TITLE in: {{{this.selectedTargetLanguage.PromptGeneralPurpose(this.customTargetLanguage)}}} + # Content - You get the following inputs: PRESENTATION_TITLE and PRESENTATION_CONTENT. + - You get the following inputs: PRESENTATION_TITLE and PRESENTATION_CONTENT. # Subheadings - Rule for creating the individual subheadings: - - If {{this.numberOfSheets}} is NOT 0 - - Generate exactly {{this.numberOfSheets}} precise subheadings, each heading represents one slide in a presentation. - - If {{this.timeSpecification}} is NOT 0 - - Generate exactly {{this.calculatedNumberOfSlides}} precise subheadings, each heading represents one slide in a presentation. + - If {{{this.numberOfSheets}}} is NOT 0 + - Generate exactly {{{this.numberOfSheets}}} precise subheadings, each heading represents one slide in a presentation. + - If {{{this.timeSpecification}}} is NOT 0 + - Generate exactly {{{this.calculatedNumberOfSlides}}} precise subheadings, each heading represents one slide in a presentation. - If either parameter is 0, ignore that rules. - Each subheadings must have: @@ -41,11 +45,19 @@ public partial class SlideAssistant : AssistantBaseCore false; diff --git a/app/MindWork AI Studio/Routes.razor.cs b/app/MindWork AI Studio/Routes.razor.cs index a4a633d6..92ff3067 100644 --- a/app/MindWork AI Studio/Routes.razor.cs +++ b/app/MindWork AI Studio/Routes.razor.cs @@ -22,7 +22,7 @@ public sealed partial class Routes public const string ASSISTANT_EMAIL = "/assistant/email"; public const string ASSISTANT_LEGAL_CHECK = "/assistant/legal-check"; public const string ASSISTANT_SYNONYMS = "/assistant/synonyms"; - public const string ASSISTANT_POWERPOINT = "/assistant/powerpoint"; + public const string ASSISTANT_SLIDE_BUILDER = "/assistant/slide-builder"; public const string ASSISTANT_MY_TASKS = "/assistant/my-tasks"; public const string ASSISTANT_JOB_POSTING = "/assistant/job-posting"; public const string ASSISTANT_BIAS = "/assistant/bias-of-the-day";