From 1e67e492c8665ab60d137447f879116fc65dd65a Mon Sep 17 00:00:00 2001 From: Wayne Sutton Date: Sun, 21 Dec 2025 14:55:15 -0800 Subject: [PATCH] fix: improve AI service prompts with load verification --- content/pages/changelog-page.md | 13 +++++++++++++ public/raw/changelog.md | 13 +++++++++++++ src/components/CopyPageDropdown.tsx | 18 ++++++++++++------ 3 files changed, 38 insertions(+), 6 deletions(-) diff --git a/content/pages/changelog-page.md b/content/pages/changelog-page.md index f8aa76d..73d45c2 100644 --- a/content/pages/changelog-page.md +++ b/content/pages/changelog-page.md @@ -7,6 +7,19 @@ order: 5 All notable changes to this project. +## v1.19.2 + +Released December 21, 2025 + +**Improved AI service prompts in CopyPageDropdown** + +- Updated ChatGPT, Claude, and Perplexity prompts with clearer instructions +- AI now attempts to load raw markdown URL and provides fallback behavior +- If content loads: provides concise summary and asks how to help +- If content fails: states page could not be loaded without guessing content + +Updated file: `src/components/CopyPageDropdown.tsx` + ## v1.19.1 Released December 21, 2025 diff --git a/public/raw/changelog.md b/public/raw/changelog.md index da0abe7..e8f44b2 100644 --- a/public/raw/changelog.md +++ b/public/raw/changelog.md @@ -7,6 +7,19 @@ Date: 2025-12-21 All notable changes to this project. +## v1.19.2 + +Released December 21, 2025 + +**Improved AI service prompts in CopyPageDropdown** + +- Updated ChatGPT, Claude, and Perplexity prompts with clearer instructions +- AI now attempts to load raw markdown URL and provides fallback behavior +- If content loads: provides concise summary and asks how to help +- If content fails: states page could not be loaded without guessing content + +Updated file: `src/components/CopyPageDropdown.tsx` + ## v1.19.1 Released December 21, 2025 diff --git a/src/components/CopyPageDropdown.tsx b/src/components/CopyPageDropdown.tsx index d56f2d3..c3efecc 100644 --- a/src/components/CopyPageDropdown.tsx +++ b/src/components/CopyPageDropdown.tsx @@ -39,8 +39,10 @@ const AI_SERVICES: AIService[] = [ // Uses raw markdown file URL for direct content access buildUrlFromRawMarkdown: (rawMarkdownUrl) => { const prompt = - `Summarize the page and then ask what the user needs help with. Be concise and to the point.\n\n` + - `Here is the raw markdown file URL:\n${rawMarkdownUrl}`; + `Attempt to load and read the raw markdown at the URL below.\n` + + `If successful provide a concise summary and then ask what the user needs help with.\n` + + `If not accessible do not guess the content. State that the page could not be loaded and ask the user how you can help.\n\n` + + `${rawMarkdownUrl}`; return `https://chatgpt.com/?q=${encodeURIComponent(prompt)}`; }, }, @@ -53,8 +55,10 @@ const AI_SERVICES: AIService[] = [ supportsUrlPrefill: true, buildUrlFromRawMarkdown: (rawMarkdownUrl) => { const prompt = - `Summarize the page and then ask what the user needs help with. Be concise and to the point.\n\n` + - `Here is the raw markdown file URL:\n${rawMarkdownUrl}`; + `Attempt to load and read the raw markdown at the URL below.\n` + + `If successful provide a concise summary and then ask what the user needs help with.\n` + + `If not accessible do not guess the content. State that the page could not be loaded and ask the user how you can help.\n\n` + + `${rawMarkdownUrl}`; return `https://claude.ai/new?q=${encodeURIComponent(prompt)}`; }, }, @@ -67,8 +71,10 @@ const AI_SERVICES: AIService[] = [ supportsUrlPrefill: true, buildUrlFromRawMarkdown: (rawMarkdownUrl) => { const prompt = - `Summarize the page and then ask what the user needs help with. Be concise and to the point.\n\n` + - `Here is the raw markdown file URL:\n${rawMarkdownUrl}`; + `Attempt to load and read the raw markdown at the URL below.\n` + + `If successful provide a concise summary and then ask what the user needs help with.\n` + + `If not accessible do not guess the content. State that the page could not be loaded and ask the user how you can help.\n\n` + + `${rawMarkdownUrl}`; return `https://www.perplexity.ai/search?q=${encodeURIComponent(prompt)}`; }, },