Snippets
Snippets are manually created pieces of knowledge that you can add directly to your AI’s knowledge base. Unlike automated data providers that crawl external sources, snippets give you complete control over the content your AI uses to answer questions.Why Use Snippets?
Snippets are valuable when you need to:- Fill knowledge gaps - Add information that doesn’t exist in your documentation
- Curate critical information - Highlight important policies, procedures, or answers
- Provide quick answers - Add FAQ-style content for common questions
- Control messaging - Ensure your AI uses specific, approved language
- Update knowledge instantly - Make changes that take effect immediately
- Capture conversation insights - Save verified answers from customer conversations
How Snippets Work
Snippets are stored in human data providers, which act as knowledge collections. Each snippet:- Has a name that helps identify the content
- Contains rich text content with formatting support
- Gets automatically indexed for semantic search
- Can be edited, updated, or deleted at any time
- Appears alongside other knowledge sources when your AI retrieves relevant information
Creating Snippets
From the Data Provider
- Navigate to Data Providers in the sidebar
- Select a human data provider (or create one if needed)
- Click New Snippet
- Enter a descriptive name for the snippet
- Write or paste your content in the rich text editor
- Click Save
From a Conversation
You can save knowledge directly from customer conversations:- Open a conversation where your AI provided a good answer
- Click the Knowledge icon to open the knowledge sidebar
- The sidebar shows sources used to answer the question
- Click Add to Knowledge
- Edit the content if needed using the rich text editor
- Select which knowledge collection (data provider) to save to
- Click Save
Verified Knowledge: Saving snippets from conversations helps you capture answers that have been validated through real customer interactions. This creates a feedback loop that continuously improves your knowledge base.
Editing Snippets
You can edit any snippet at any time:- Go to the data provider containing the snippet
- Find the snippet in the sources list
- Click the Edit icon
- Make your changes in the editor
- Click Save
Supported Formatting
The snippet editor supports rich text formatting:- Text formatting: Bold, italic, underline, code
- Headings: Multiple heading levels
- Lists: Bulleted and numbered lists
- Links: Add hyperlinks to external resources
- Code blocks: Include formatted code examples
- Tables: Structure data in tables (future)
- Images: Embed images (future)
Converting from Markdown
If you have existing content in Markdown format:- Upload it as a Markdown file (.md) to your data provider
- Edit the source - it will be automatically converted to HTML
- Save the snippet with your edits
Organizing Snippets
Use Descriptive Names
Give snippets clear, searchable names:- Good: “Refund policy for canceled subscriptions”
- Better: “How to request a refund after canceling a subscription”
- Avoid: “Policy #3” or “FAQ item”
Group by Collection
Create multiple human data providers to organize snippets by category:- Product Knowledge - Features, specifications, how-tos
- Policies - Company policies, terms of service, legal info
- Support FAQs - Common questions and answers
- Internal Procedures - Agent guidelines, escalation processes
Best Practices
Keep Snippets Focused
Each snippet should cover one topic or answer one question:- Focus on a single concept or procedure
- Keep content concise (200-500 words ideal)
- Break complex topics into multiple snippets
- Include enough context for the AI to understand when to use it
Write for Your AI
Structure content to help your AI provide good answers:- Start with the most important information
- Use clear, direct language
- Include examples when relevant
- Avoid ambiguous phrasing
- Specify conditions or limitations
Include Complete Information
Make snippets self-contained:- Don’t assume the AI will have context from other sources
- Include relevant definitions or background
- Provide complete instructions for procedures
- Add important caveats or exceptions
Update Regularly
Keep snippets current:- Review snippets quarterly or when policies change
- Archive outdated snippets instead of deleting them
- Add version dates to time-sensitive content
- Monitor conversations to identify knowledge gaps
Test After Creation
After creating a snippet:- Open a test conversation
- Ask questions the snippet should answer
- Verify the AI uses the snippet correctly
- Refine the content if needed
Managing Snippets
Viewing Snippets
To see all snippets in a data provider:- Go to Data Providers
- Select the human data provider
- View the sources list - each row is a snippet or uploaded file
- Snippet name
- File type (text/html for snippets)
- Last update date
- File size
Deleting Snippets
To remove a snippet:- Find the snippet in the sources list
- Click the delete icon
- Confirm the deletion
Downloading Snippets
You can download any snippet to save a local copy:- Click on the snippet to open the preview
- Click the Download button
- The snippet downloads as an HTML file
Troubleshooting
Snippet Not Being Used
If your AI isn’t using a snippet when expected:- Check the snippet name is relevant to the question
- Verify the content includes key terms customers use
- Make the content more specific and detailed
- Test with exact phrases from the snippet
Conflicting Information
If a snippet contradicts other knowledge sources:- Review all sources on the topic
- Delete or update outdated sources
- Make the authoritative snippet more comprehensive
- Use more specific language to clarify context
Formatting Issues
If formatting looks wrong after saving:- Use the rich text editor toolbar instead of pasting formatted text
- Paste as plain text first, then apply formatting
- Check for unsupported HTML tags
- Simplify complex formatting
Common Use Cases
Company Policies
Create snippets for policies that need exact wording:Product FAQs
Turn frequently asked questions into snippets:Troubleshooting Steps
Document common troubleshooting procedures:Next Steps
Now that you understand snippets:- Set up Data Providers - Create collections to organize your snippets
- Improve Answers - Learn how to optimize AI responses using snippets
- Test Conversations - Verify your AI uses snippets correctly