AI Features
AI Powered Summary
PinkDocs automatically generates an AI-powered summary for each document and displays it above the content. The same summary is also used by the Ask AI assistant to provide instant context before users ask questions.
Ensure you have either added OpenAI or Open Router api keys for the AI features to work.Please refer to these documentations.
– How to add Open AI key
– How to add OpenRouter AI key
– How to add Open AI key
– How to add OpenRouter AI key
How to Enable AI-Powered Summary

Location: PinkDocs → Plugin Settings → AI Features
- Make sure your OpenAI API Key is added
- Toggle AI-Powered Summary to ON
- Click Save Settings
Once enabled, summaries are generated automatically.
How It Works
- When a document is opened, PinkDocs checks if an AI summary already exists
- If a summary is found, it is displayed instantly
- If not, AI generates a new summary from the document content
- The summary is saved and reused for future visits
This ensures summaries are generated only once per document.
Ask AI Integration
- The generated summary is reused inside the AI Assistant as Document Summary
- Users get immediate context without reading the full page
- Clicking Ask AI continues the conversation using the summarized content
- This makes AI responses faster and more accurate
Smart Caching (Performance Optimized)
Cache Key
_pinkdocs_ai_summary
Storage
- Stored as post meta for each document
Persistence
- Permanent
- Remains cached until:
- The document is updated, or
- The post meta is manually deleted
Caching Behavior
- Cached summary exists → No OpenAI API call
- No cached summary → Generate once and cache
- Document updated → Summary regenerates automatically
Why Caching Matters
- Faster page loads
- Reduced OpenAI API usage and cost
- Same summary reused across UI and AI Assistant
- Scales efficiently for large documentation sites
Benefits for Users
- Instantly understand long documents
- Clear overview before diving deeper
- Seamless transition from reading to asking AI
Benefits for Site Owners
- No manual summary writing
- Predictable AI usage
- Better performance at scale
- Works automatically once enabled
The AI-Powered Summary in PinkDocs is designed to be fast, cached, and reusable, delivering clarity to users while keeping performance and costs under control.
Was this page helpful?
Great! What worked best for you?
Please provide
additional details about your experience.
✓ Thank you for your feedback! We appreciate your input.