Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
feat: meeting-specific prompt with speaker context for notes generation
Gabriel Stein0b296802c651
diff --git a/src/components/notes/PersonalNotesView.tsx b/src/components/notes/PersonalNotesView.tsxindex fe718db0e..b73b085c4 100644--- a/src/components/notes/PersonalNotesView.tsx+++ b/src/components/notes/PersonalNotesView.tsx@@ -768,16 +768,45 @@ export default function PersonalNotesView({actionPicker={<ActionPickeronRunAction={(action) => {- const transcript = meetingTranscript || activeNote?.transcript;+ const rawTranscript = meetingTranscript || activeNote?.transcript;const hasNotes = !!localContent.trim();- if (!hasNotes && !transcript) return;+ if (!hasNotes && !rawTranscript) return;++ let formattedTranscript = "";+ let isMeetingNote = false;+ if (rawTranscript) {+ try {+ const segments = JSON.parse(rawTranscript) as Array<{+ text: string;+ source: string;+ }>;+ if (Array.isArray(segments) && segments.length > 0 && segments[0].source) {+ isMeetingNote = true;+ formattedTranscript = segments+ .map((s) => `${s.source === "mic" ? "You" : "Them"}: ${s.text}`)+ .join("\n");+ }+ } catch {+ // Not JSON segments — use raw transcript as-is+ }+ if (!formattedTranscript) {+ formattedTranscript = rawTranscript;+ }+ }+const parts = [hasNotes ? localContent : "",- transcript ? `## Meeting Transcript\n${transcript}` : "",+ formattedTranscript+ ? `## Meeting Transcript\n${formattedTranscript}`+ : "",].filter(Boolean).join("\n\n");- runAction(action, parts, { isCloudMode, modelId: effectiveModelId });+ runAction(action, parts, {+ isCloudMode,+ modelId: effectiveModelId,+ isMeetingNote,+ });}}onManageActions={() => setShowActionManager(true)}disabled={diff --git a/src/helpers/database.js b/src/helpers/database.jsindex 32284dfc1..0931f99f1 100644--- a/src/helpers/database.js+++ b/src/helpers/database.js@@ -239,7 +239,7 @@ class DatabaseManager {.run("Generate Notes","Clean up, structure, and enhance your notes",- "You are given the user's notes and/or a meeting transcript. If a meeting transcript is present, combine all inputs into clean, well-structured meeting notes in markdown — include key discussion points, decisions made, action items, and follow-ups. If only personal notes are provided, clean up grammar, improve structure, and format for readability. Preserve the user's intent and meaning. Do not include filler, small talk, or redundant information.",+ "Transform the provided content into clean, well-structured notes in markdown. Preserve the user's intent and all substantive information. Remove filler, small talk, false starts, and redundant content. For personal notes, improve grammar and structure for readability. For meeting transcripts, extract key discussion points, decisions, action items, and follow-ups.","sparkles","notes.actions.builtin.generateNotes");@@ -253,7 +253,7 @@ class DatabaseManager {.run("Generate Notes","Clean up, structure, and enhance your notes",- "You are given the user's notes and/or a meeting transcript. If a meeting transcript is present, combine all inputs into clean, well-structured meeting notes in markdown — include key discussion points, decisions made, action items, and follow-ups. If only personal notes are provided, clean up grammar, improve structure, and format for readability. Preserve the user's intent and meaning. Do not include filler, small talk, or redundant information.",+ "Transform the provided content into clean, well-structured notes in markdown. Preserve the user's intent and all substantive information. Remove filler, small talk, false starts, and redundant content. For personal notes, improve grammar and structure for readability. For meeting transcripts, extract key discussion points, decisions, action items, and follow-ups.","notes.actions.builtin.generateNotes","notes.actions.builtin.generateNotes");diff --git a/src/hooks/useActionProcessing.ts b/src/hooks/useActionProcessing.tsindex 5d68ed26a..9b2c89291 100644--- a/src/hooks/useActionProcessing.ts+++ b/src/hooks/useActionProcessing.ts@@ -9,6 +9,22 @@ export type ActionProcessingState = "idle" | "processing" | "success";const BASE_SYSTEM_PROMPT ="You are a note enhancement assistant. The user will provide raw notes — possibly voice-transcribed, rough, or unstructured. Your job is to clean them up according to the instructions below while preserving all original meaning and information. Output clean markdown.\n\nInstructions: ";+const MEETING_SYSTEM_PROMPT = `You are a professional meeting notes assistant. You will receive a dual-speaker transcript where "You:" marks the user's speech and "Them:" marks the other participant(s), along with any manual notes the user took.++Your job is to produce clean, actionable meeting notes in markdown. Follow these rules:++- Do NOT include a date, time, location, or attendee header — that metadata is handled separately.+- Start with a concise 1–2 sentence summary of what the meeting was about.+- Use clear section headings: ## Key Discussion Points, ## Decisions Made, ## Action Items, ## Follow-ups (omit any section that has no content).+- Under Action Items, use checkboxes (\`- [ ]\`) and attribute each item to "You" or "Them" where clear.+- Preserve important quotes or specific commitments verbatim when they carry meaning.+- Remove filler, small talk, false starts, and repeated/redundant content.+- Where speakers refer to the same topic across multiple turns, consolidate into a coherent point rather than listing every utterance.+- If the user included manual notes alongside the transcript, integrate them — they represent the user's emphasis on what matters most.+- Keep the tone professional and concise. Bias toward brevity.++Instructions: `;+interface UseActionProcessingOptions {onSuccess: (enhancedContent: string, prompt: string) => void;onError: (errorMessage: string) => void;@@ -32,7 +48,7 @@ export function useActionProcessing({ onSuccess, onError }: UseActionProcessingOasync (action: ActionItem,noteContent: string,- options: { isCloudMode: boolean; modelId: string }+ options: { isCloudMode: boolean; modelId: string; isMeetingNote?: boolean }) => {if (processingRef.current) return;@@ -49,7 +65,8 @@ export function useActionProcessing({ onSuccess, onError }: UseActionProcessingOsetState("processing");try {- const systemPrompt = BASE_SYSTEM_PROMPT + action.prompt;+ const basePrompt = options.isMeetingNote ? MEETING_SYSTEM_PROMPT : BASE_SYSTEM_PROMPT;+ const systemPrompt = basePrompt + action.prompt;const enhanced = await reasoningService.processText(noteContent, modelId, null, {systemPrompt,temperature: 0.3,