Custom Prompt
This page is part of a docs site that uses the default prompt configuration. In a real setup, you can customize the prompt sent to AI services.
Customizing the Prompt
Section titled “Customizing the Prompt”The prompt option accepts a string with a {url} placeholder:
starlightPageContextAction({ prompt: "Summarize {url} and list the key takeaways.",});When a user clicks an AI service link, {url} is replaced with the current page’s full URL and the resulting prompt is passed as a query parameter to the chosen service.
Supported AI Services
Section titled “Supported AI Services”ChatGPT
Section titled “ChatGPT”Opens https://chatgpt.com/?q=<prompt> in a new tab.
Claude
Section titled “Claude”Opens https://claude.ai/new?q=<prompt> in a new tab.
T3 Chat
Section titled “T3 Chat”Opens https://t3.chat/new?q=<prompt> in a new tab.
Prompt Ideas
Section titled “Prompt Ideas”Here are some useful prompt templates:
"Read {url}. I want to ask questions about it."— General Q&A (default)"Summarize {url} and list the key takeaways."— Quick summary"Read {url} and explain it to a beginner."— Simplified explanation"Read {url} and generate a code example based on it."— Code generation