Editing documents
Edit documents safely without affecting search results or Instruction Sets until you're ready to publish.
Draft vs Published
When you edit a document, your changes are saved as a draft:
| State | Description | Affects search? | Affects Instruction Sets? |
|---|---|---|---|
| Draft | Work-in-progress changes | No | No |
| Published | Live content | Yes | Yes |
This separation means you can:
- Experiment with changes without affecting AI responses
- Take your time editing without impacting users
- Discard changes if you change your mind
Opening the editor
- Navigate to your workspace
- Click on a document to view it
- Click Edit to enter edit mode
When you enter edit mode, an edit lock is acquired (15 minutes) to prevent conflicts with other users.
Editing workflow
Making changes
- Edit the title or content as needed
- Your changes are automatically backed up locally every 10 seconds
- Choose one of three actions:
| Button | Action | Result |
|---|---|---|
| Cancel | Discard changes | Returns to published version |
| Save Draft | Save to server | Draft saved, not yet published |
| Publish | Make changes live | Updates search and Instruction Sets |
Status indicators
| Badge | Meaning |
|---|---|
| Draft (yellow) | You have unpublished changes |
| Published (green) | All changes are live |
| Unsaved changes (orange) | Local changes not yet saved to server |
Keyboard shortcuts
| Shortcut | Action |
|---|---|
Ctrl+S / Cmd+S | Save draft |
Ctrl+Shift+P / Cmd+Shift+P | Publish (with confirmation) |
Escape | Cancel (with confirmation if unsaved) |
Real-world scenario: Updating company FAQ
Let's walk through a complete editing workflow with a real example.
Scenario
Your company updated its password reset process to include biometric authentication. You need to update the "IT Support FAQ" document that's used in your customer support Instruction Set.
Goal: Update the FAQ without disrupting live customer support until the changes are verified.
Step-by-step workflow
1. Open the document
- Navigate to Documents in your workspace
- Find "IT Support FAQ" document
- Current content: "To reset your password, click 'Forgot password' on the login page..."
- Click Edit
The system acquires a 15-minute edit lock. Your colleagues will see "Being edited by [Your Name]" if they try to edit.
2. Make changes
You update the document:
Before (published):
Q: How do I reset my password?
A: Click 'Forgot password' on the login page and follow the email instructions.
After (draft):
Q: How do I reset my password?
A: You have two options:
1. **Biometric Reset**: Use Face ID or Touch ID in the mobile app (fastest)
2. **Email Reset**: Click 'Forgot password' on the login page and follow the email link
Note: Biometric reset is only available if you've enabled it in Settings > Security.
Status indicator shows: Draft (yellow)
3. Save draft (optional)
- Click Save Draft or press
Ctrl+S - Success message: "Draft saved"
- Changes are on the server but NOT yet live
What happens:
- ✅ Your changes are saved to the server
- ✅ Available if you switch devices or your browser crashes
- ❌ Customer support chatbot still uses OLD version
- ❌ Search results still show OLD answer
4. Review with your team (while still in draft)
You share the draft link with your IT manager:
- She reviews the changes
- Suggests adding a troubleshooting tip
- You make the edit and save draft again
Multiple people can review the draft (if they're OWNER or ADMIN role). The document remains in draft state until someone publishes.
5. Publish when ready
- Click Publish
- Confirmation dialog: "Publish document? This will update search and Instruction Sets."
- Click Publish to confirm
What happens:
- ✅ Draft content replaces published content
- ✅ Document queued for processing (generating embeddings)
- ✅ Customer support Instruction Set immediately shows new FAQ
- ✅ Search will include new keywords (after ~30 seconds processing)
Status indicator shows: Published (green)
6. Verify changes
After 60 seconds:
- Test customer support chatbot: Ask "How do I reset my password?"
- Chatbot now mentions biometric option ✅
- Search for "biometric password" finds the updated FAQ ✅
What if you changed your mind?
Before publishing:
- Click Cancel
- Confirmation: "Discard draft?"
- Click Discard
- Document returns to original version (email-only instructions)
After publishing:
- You'd need to edit again and publish a new version
- Consider keeping drafts of major changes for easy rollback
Key takeaways
- Drafts protect production: Your customer support chatbot kept working with the old version while you edited
- Collaborate before publishing: Your team reviewed the draft before it went live
- Publish triggers processing: Search and Instruction Sets update automatically after publishing
- Processing is fast: Typical documents process in under 60 seconds
Common variations
Quick fix (no draft needed):
- Fix a typo → Publish immediately
- No need to save draft if you're confident
Long editing session:
- Save draft every few minutes (
Ctrl+S) - Take a break, come back later
- Continue where you left off
Emergency rollback:
- Document has critical error after publishing
- Edit → paste previous version → Publish
- Processing updates search in ~60 seconds
Auto-save and recovery
Local backup
Your changes are automatically saved to your browser every 10 seconds. This protects against:
- Browser crashes
- Accidental tab closure
- Network disconnections
Recovery
If you return to a document after an unexpected closure:
- System checks for local backup
- If found, you'll see a recovery banner
- Choose to restore local changes or use server version
If both server draft and local backup exist, server draft takes priority unless your local backup is newer.
Collaborative editing
Edit locks
- When you edit, a 15-minute lock is acquired
- The lock is automatically extended while you're active
- Other users see "Document being edited by [name]"
- Lock is released when you finish editing
Continuing someone else's draft
If another user saved a draft and their lock expired:
- You can acquire the lock
- You'll see their draft content
- You can continue editing or publish their changes
Publishing changes
When you click Publish:
- Confirmation dialog appears
- If confirmed:
- Draft content replaces published content
- Document is queued for processing (embeddings)
- Instruction Sets show new content
- Search results update after processing
Processing typically completes in under 60 seconds.
Discarding changes
If you decide not to keep your changes:
- Click Cancel
- Confirmation dialog appears (if unsaved changes exist)
- If confirmed, draft is discarded
- Document returns to last published version
Discarding a draft cannot be undone. Make sure you don't need the changes before confirming.
Best practices
Save frequently
- Use
Ctrl+Sto save drafts during long editing sessions - Server-saved drafts persist across devices
Review before publishing
- Publishing immediately affects:
- AI search responses
- Instruction Set content
- Any integrations using your documents
Coordinate with your team
- Check who last edited before making changes
- Communicate about document ownership
- Use comments or chat for coordination
Troubleshooting
"Document is being edited"
Another user has the edit lock. Wait for them to finish or contact them.
Changes not appearing in search
- Ensure you clicked Publish (not just Save Draft)
- Wait for processing to complete (up to 60 seconds)
- Check document status shows processing complete
Lost changes
- Check for recovery banner when re-opening
- Look for local backup in browser storage
- Contact admin if server draft was lost
Conflict detected
If you see "Document was modified by another user":
- Your version is based on outdated data
- Refresh to see latest changes
- Re-apply your changes to the new version