Knowledge Base Documents
Documents are how you train your Hay assistant. Every piece of information you upload becomes knowledge your assistant can use to answer customer questions accurately.
What Are Documents?#
Documents are your assistant's knowledge base - everything from FAQs to policy manuals. When a customer asks a question, Hay searches through your documents to find relevant information and generates accurate responses.
Think of it like training a new employee by giving them all your company documentation.
Why Documents Matter#
With good documentation:
- ✅ The assistant answers accurately
- ✅ Customers get consistent information
- ✅ Resolution rate increases
- ✅ Fewer escalations to humans
Without enough documentation:
- ❌ The assistant guesses or says "I don't know"
- ❌ Inconsistent answers
- ❌ More escalations
- ❌ Frustrated customers
Uploading Documents#
Step 1: Go to Documents#
- Click Documents in the left sidebar (under Knowledge)
- Click Import Document (or Write Document to compose one in Hay, or Connected sources to manage synced sources)
Step 2: Choose Your Method#
Upload Files
- Drag and drop files
- Click to browse and select
- Upload multiple files at once
Supported formats:
- PDF documents
- Word documents (.doc, .docx)
- Text files (.txt)
- Markdown files (.md)
- CSV files (.csv) — processed as plain text
- HTML files (.html)
- PowerPoint presentations (.ppt, .pptx)
- JSON files (.json) — processed as plain text
File size limit: The maximum upload size is 10 MB per file (configurable via the
UPLOAD_MAX_SIZE_MBenvironment variable).
Write a document from scratch: To compose a document directly in Hay without uploading a file, go to /documents/new and use the Write Document editor.
Import from Website
- Choose Import from Website, enter the Documentation URL and click Discover Pages. Hay checks for a sitemap first and otherwise follows internal links; only pages from the same domain are found (this typically takes 1-3 minutes)
- Select the pages you want. Filters such as URL contains and Path starts with help you narrow the list
- Click Next: Add Metadata, choose the Document Type, Status and Visibility, then Start Import. Each page becomes a separate document, converted to markdown
- The website is connected as a synced source and kept up to date. Manage it under Connected sources; a document from a source can be refreshed with Update from Source
- Useful for importing an existing help center or documentation site
Integrations
- Some integrations (for example Notion or Confluence through Atlassian) can import pages into your knowledge base; choose Integration as the source
Step 3: Processing#
Hay processes your documents:
- Extracts text and content
- Breaks into searchable chunks
- Generates vector embeddings for AI-powered search
- Makes it instantly available
Usually takes: 5-30 seconds depending on size
Step 4: Review and Organize#
After upload:
-
Give document a clear title
-
Add a description (what information does it contain?)
-
Select a category from the dropdown: product, api, faq, legal, training, technical, or other
Note: Category isn't a separate field stored alongside Type — it maps directly to the document's Type (see Viewing Documents). "API" and "Technical" both map to the Reference type.
-
Set the document status: Draft, Published, or Archived. Hay also sets a document to Processing while it's being ingested, or Error if ingestion fails — these two are system-managed and not chosen manually. A document can also briefly be in an internal Under Review state, which isn't user-selectable.
-
Click Save
Types of Documents to Upload#
1. FAQs (Most Important!)#
Your frequently asked questions are gold.
Example:
Q: How long does shipping take?
A: Standard shipping takes 5-7 business days.
Express shipping takes 2-3 business days.
Q: What's your return policy?
A: We accept returns within 30 days of purchase.
Items must be unused and in original packaging.
Q: Do you ship internationally?
A: Yes, we ship to over 50 countries.
International shipping takes 10-14 business days.
2. Policies#
Upload your official policies:
- Return and refund policy
- Privacy policy
- Shipping policy
- Terms of service
- Warranty information
3. Product Information#
Help customers learn about your products:
- Product descriptions
- Feature lists
- Specifications
- User manuals
- Setup guides
4. Troubleshooting Guides#
Common issues and solutions:
- Step-by-step fixes
- Error messages and meanings
- "How to" guides
- Video transcripts
5. Process Documentation#
Internal processes that help answer questions:
- How orders are processed
- How refunds work
- Account creation steps
- Subscription management
6. Company Information#
Basic facts about your business:
- Business hours
- Contact information
- Location/address
- About us
- Team information
Document Best Practices#
Writing for AI#
Your assistant understands documents better when they're clear and structured.
✅ Do:
- Use clear headings
- Write complete sentences
- Include context (who, what, when, where, why)
- Use bullet points for lists
- Define acronyms
❌ Don't:
- Use vague references ("this", "that" without context)
- Assume prior knowledge
- Use internal codes without explanation
- Leave information incomplete
Good Example:#
# Refund Policy
We offer full refunds within 30 days of purchase.
Eligibility:
- Item must be unused and in original condition
- Original packaging must be included
- Proof of purchase required (order number)
Process:
1. Customer requests refund
2. We provide return shipping label
3. Customer ships item back
4. Refund processed within 5-7 business days
5. Money returned to original payment method
Exceptions:
- Sale items: Store credit only
- Custom orders: No refunds
- Digital products: No refunds after download
Bad Example:#
Refunds: 30 days. See mgr for exceptions.
(Too vague, uses abbreviations, no helpful details)
Organizing Documents#
Use the Category dropdown when importing a document to keep your knowledge base organized. The category you select determines the document type shown in the documents list:
| Category | Document type |
|---|---|
| product | Guide |
| api | Reference |
| faq | FAQ |
| legal | Policy |
| training | Tutorial |
| technical | Reference |
| other | Article |
Note: Category isn't a persisted field of its own — it's just how the upload form sets the document's Type. Each category maps directly to a Type value, and both api and technical map to Reference.
Keep Documents Updated#
Set reminders to review:
Monthly:
- Check for outdated information
- Add new FAQs from recent conversations
- Update policies if changed
After Changes:
- New products launched → Upload specs
- Policy updated → Replace old version
- New issues discovered → Add solutions
Managing Your Documents#
Viewing Documents#
Go to Documents to see all uploaded content.
What you'll see:
- Name - Document title
- Type - The document's content type (Article, Guide, FAQ, Tutorial, Reference, Policy)
- Source - Where the document came from (upload, URL crawl, etc.)
- Status - Draft, Published, Archived, Processing, or Error (documents can also briefly hold an internal Under Review status, which isn't user-selectable)
- Last Modified - When the document was last updated
Editing Documents#
To update existing document:
- Click on the document
- Click Edit
- Update content
- Click Save
Changes are reflected immediately.
Visibility#
Every document has a visibility, shown on its page. Anyone who can edit documents can change it there.
- Private: the assistant can use it, and it is never published.
- Internal: the assistant can use it, but never shows a link to it to a customer, even for pages imported from a website.
- Public: the assistant may show customers a link to it when it has one, and it can appear on your help center once it is published and placed in a collection. Making a document public asks you to confirm.
Searching Documents#
Use the search bar to find specific documents:
- Type in the search bar ("Search documents by keyword or natural language...") and press Enter or click Search. Natural-language questions work, not just keywords
- Filter by Type and Status, or use Clear Filters
Archiving Documents#
You can mark a document as Archived from the documents list without deleting it, using the archive action on each row or in bulk.
⚠️ Note: Archiving from the documents list is not yet fully functional — the action currently only updates what you see on screen and does not persist to the backend. Don't rely on it yet to keep a document out of use.
Improving a document with AI#
From a conversation, Improve knowledge analyzes what the AI got wrong and proposes either an edit to a document it used (Edit document) or a New Q&A. Saving an edit updates the document right away and the AI uses it in its next replies. Adding creates a published Q&A document. Fill in any bracketed placeholder such as "[to confirm: ...]" before saving. From a document you can also describe what is wrong or missing and the AI proposes a revised version.
Deleting Documents#
To remove a document:
- Click on the document
- Click Delete
- Confirm
⚠️ Warning: Deleting is permanent. The assistant will no longer have access to this information.
Advanced Features#
Document Sources#
Hay remembers where information comes from:
When the assistant uses a document to answer a question, the conversation shows a document icon with "Agent is using a document to provide the answer" (as the conversation shows it) and a link to the source document's title, for example "Shipping Policy" or "Product Manual - Setup Guide". There are no page numbers — the citation points to the document itself.
This helps with:
- Verifying accuracy
- Finding outdated info
- Tracking down errors
Common Scenarios#
"The assistant gives wrong answers"#
Solutions:
- Check if information exists in documents
- If missing → Add the correct information
- If exists but wrong → Update the document
- If document is confusing → Rewrite more clearly
"The assistant says 'I don't know' too often"#
Solutions:
- Identify what questions cause this
- Add documents covering those topics
- Make sure FAQs are comprehensive
- Include more context in documents
"Information is inconsistent"#
Solutions:
- Search for conflicting information
- Remove outdated documents
- Consolidate similar documents
- Keep one "source of truth" per topic
"Too many documents, hard to manage"#
Solutions:
- Consolidate similar documents
- Use clear naming convention
- Archive old/unused documents
- Filter the list by Type and Status
Document Checklist#
Before going live, make sure you have:
Essential Documents:
- ☐ Top 20 FAQs
- ☐ Shipping/delivery information
- ☐ Return policy
- ☐ Contact information
- ☐ Business hours
Recommended Documents:
- ☐ Product information
- ☐ Troubleshooting guides
- ☐ Account management help
- ☐ Pricing information
- ☐ Special promotions/policies
Nice to Have:
- ☐ Company background
- ☐ Detailed product specs
- ☐ Advanced troubleshooting
- ☐ Industry-specific information
Tips for Success#
Start Small#
Don't try to upload everything at once:
- Start with 10-20 most important FAQs
- Test your assistant
- See what questions it struggles with
- Add more documentation to fill gaps
Quality Over Quantity#
Better to have 20 well-written, accurate documents than 200 poorly organized ones.
Use Customer Language#
Write documents in terms customers use:
- ❌ "SKU lookup procedure"
- ✅ "How to find your product number"
Include Examples#
When explaining processes, show examples:
To find your order number:
1. Check your confirmation email
2. Look for "Order #12345" near the top
3. It's always 5 digits starting with #
Test Your Documentation#
After uploading:
- Use the Test your assistant chat on the Set up board, or the Conversation Playground
- Ask questions as a customer would
- See if answers are accurate
- Adjust documents as needed
Common Questions#
How many documents should I have?#
Start with 15-25 core documents. Add more as you discover gaps. Most successful setups have 50-150 documents.
Can documents be in different languages?#
Yes! Upload documents in the languages you support. Hay can understand and respond in multiple languages.
How long does it take for documents to be available?#
Usually 5-30 seconds after upload. Large documents may take up to a minute.
Can I upload confidential documents?#
Hay keeps all documents secure and private to your organization. However, only upload information you're comfortable your AI assistant sharing with customers.
What if my document contains errors?#
Simply edit or re-upload the correct version. The assistant will use the updated information immediately.
Next Steps#
- Set up your AI assistant to use your documents
- Set up Playbooks for structured workflows
- Review Conversations to see documents in action
- Use Insights to find topics where knowledge is missing