Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: simplify meeting summarize - just send prompt, let Pi search

Louis Beaumontcfd5cfa7fc7b
diff --git a/apps/screenpipe-app-tauri/components/settings/meetings-section.tsx b/apps/screenpipe-app-tauri/components/settings/meetings-section.tsx
index a479d492a..6483c4e42 100644
--- a/apps/screenpipe-app-tauri/components/settings/meetings-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/meetings-section.tsx
@@ -327,7 +327,7 @@ export function MeetingsSection() {
}
};
- const summarizeMeeting = async (meeting: MeetingRecord) => {
+ const summarizeMeeting = (meeting: MeetingRecord) => {
const start = new Date(meeting.meeting_start);
const end = meeting.meeting_end ? new Date(meeting.meeting_end) : null;
const duration = end
@@ -336,57 +336,16 @@ export function MeetingsSection() {
const parts: string[] = [
`app: ${meeting.meeting_app}`,
- `time: ${start.toLocaleString()}${end ? ` – ${end.toLocaleTimeString()}` : ""} (${duration})`,
+ `time: ${start.toISOString()}${end ? ` to ${end.toISOString()}` : ""} (${duration})`,
];
if (meeting.title) parts.push(`title: ${meeting.title}`);
if (meeting.attendees) parts.push(`attendees: ${meeting.attendees}`);
if (meeting.note) parts.push(`notes: ${meeting.note}`);
- const startTime = start.toISOString();
- const endTime = (end || new Date()).toISOString();
-
- // fetch what was on screen and said during the meeting
- let screenText = "";
- let audioText = "";
- try {
- const [screenRes, audioRes] = await Promise.all([
- fetch(`http://localhost:3030/search?content_type=vision&start_time=${startTime}&end_time=${endTime}&limit=30`),
- fetch(`http://localhost:3030/search?content_type=audio&start_time=${startTime}&end_time=${endTime}&limit=50`),
- ]);
- if (screenRes.ok) {
- const data = await screenRes.json();
- const texts = (data.data || [])
- .map((item: any) => item.content?.text || "")
- .filter(Boolean)
- .slice(0, 15);
- if (texts.length) screenText = texts.join("\n---\n");
- }
- if (audioRes.ok) {
- const data = await audioRes.json();
- const transcripts = (data.data || [])
- .map((item: any) => {
- const c = item.content;
- if (!c) return "";
- const speaker = c.speaker_name && c.speaker_name !== "unknown" ? `${c.speaker_name}: ` : "";
- return speaker + (c.transcription || "");
- })
- .filter(Boolean);
- if (transcripts.length) audioText = transcripts.join("\n");
- }
- } catch {}
-
- const context = [
- `meeting metadata:\n${parts.join("\n")}`,
- screenText ? `screen content during meeting:\n${screenText}` : "",
- audioText ? `audio transcript:\n${audioText}` : "",
- ]
- .filter(Boolean)
- .join("\n\n");
-
- const prompt = `summarize this meeting concisely: key topics discussed, decisions made, and action items. then suggest which of my connected integrations (e.g. slack, notion, linear, todoist, email) would be useful to share this summary with, and draft a short message for each.`;
+ const prompt = `search screenpipe for what happened during this meeting and summarize it: key topics, decisions, action items. then suggest which of my connected integrations would be useful to share this with and draft a message for each.\n\nmeeting:\n${parts.join("\n")}`;
showChatWithPrefill({
- context,
+ context: "",
prompt,
autoSend: true,
source: "meeting-summarize",