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

feat: add deep link & media embedding instructions to all prompts

Louis Beaumont7c7a1f2523d6
diff --git a/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx b/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
index 315a017bd..9cd44937f 100644
--- a/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/obsidian-sync-card.tsx
@@ -680,7 +680,7 @@ export function ObsidianSyncCard() {
{/* Custom Prompt */}
<div className="space-y-1.5">
<Label htmlFor="custom-prompt" className="text-xs font-medium">Custom instructions</Label>
- <Textarea id="custom-prompt" value={settings.customPrompt} onChange={(e) => setSettings((s) => ({ ...s, customPrompt: e.target.value }))} placeholder="Optional: how to structure notes, what to focus on..." rows={2} className="text-xs" />
+ <Textarea id="custom-prompt" value={settings.customPrompt} onChange={(e) => setSettings((s) => ({ ...s, customPrompt: e.target.value }))} placeholder="e.g. include timeline deep links for key moments · embed video clips for meetings · focus on coding and meetings · use [[Project Name]] wiki-links" rows={2} className="text-xs" />
</div>
</div>
)}
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index 45f19fccb..c2674c440 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -128,13 +128,11 @@ graph TD
\`\`\`
Use flowcharts (graph TD/LR), sequence diagrams, pie charts, etc. as appropriate.
-TIMELINE DEEP LINKS:
-When referencing specific moments from search results, create clickable links so users can jump to that point in their timeline.
-Format: [readable time](screenpipe://timeline?timestamp=ISO8601_TIMESTAMP)
-Examples:
-- [10:30 AM](screenpipe://timeline?timestamp=2024-01-15T18:30:00Z)
-- [yesterday at 3pm](screenpipe://timeline?timestamp=2024-01-14T15:00:00Z)
-Always use the exact timestamp from search results. Users can click these to navigate directly to that moment.
+DEEP LINKS & MEDIA:
+- Timeline: [10:30 AM](screenpipe://timeline?timestamp=2024-01-15T18:30:00Z) — clickable jump to that moment
+- Frame: [screenshot](screenpipe://frame/FRAME_ID) — link to a specific captured frame (use frame_id from search results)
+- Video: show .mp4 paths in inline code: \`/path/to/video.mp4\`
+Always use exact timestamps/IDs from search results.
Current time: ${now.toISOString()}
User's timezone: ${timezone} (UTC${offsetStr})
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/obsidian_sync.rs b/apps/screenpipe-app-tauri/src-tauri/src/obsidian_sync.rs
index 3ea787556..f24b99c00 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/obsidian_sync.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/obsidian_sync.rs
@@ -150,6 +150,17 @@ Create/append to the daily log file using this markdown table format:
| 10:30-11:00 | Call with team about roadmap | Zoom, Notion | #meeting #planning |
```
+## Embedding Media & Deep Links
+
+In the markdown output you can reference screenpipe data directly:
+
+- **Timeline links**: `[10:30 AM](screenpipe://timeline?timestamp=2025-02-01T10:30:00Z)` — opens screenpipe timeline at that moment
+- **Frame links**: `[screenshot](screenpipe://frame/12345)` — opens a specific captured frame (use frame_id from search results)
+- **Video files**: embed with `![video](/path/to/file.mp4)` using the exact file_path from search results
+- **Audio files**: embed with `![audio](/path/to/file.mp4)` using the audio_file_path from search results
+
+These work when opening the note in Obsidian on the same machine running screenpipe.
+
## Best Practices
- Link people names with [[Name]] (Obsidian wiki-links)
@@ -158,6 +169,7 @@ Create/append to the daily log file using this markdown table format:
- Group related activities together
- Include apps used for context
- Add semantic tags for easy filtering
+- Include timeline deep links for key moments so user can click to review
- Skip idle periods or duplicates
- If no meaningful activity in a chunk, skip it or note "idle"