Segments allow you to adapt the chatbot’s responses based on the page context.Documentation Index
Fetch the complete documentation index at: https://docs.animam.ai/llms.txt
Use this file to discover all available pages before exploring further.
Concept
A segment is a specific context. For example:- Home page → segment
landing - Pricing page → segment
pricing - Support page → segment
support
Usage
Via HTML
Via JavaScript
Dashboard configuration
- Go to Dashboard > Knowledge Base
- For each entry, assign one or more segments
- Entries without a segment are available everywhere
Concrete example
E-commerce scenario
| Segment | Corpus | Example question |
|---|---|---|
landing | Product presentation | ”What is your product?” |
pricing | Pricing, subscriptions | ”What’s the price?” |
checkout | Payment, shipping | ”What payment methods?” |
support | Technical FAQ | ”How do I reset my password?” |
Implementation
Default segment
If no segment is specified, the chatbot uses:- Entries from the
defaultsegment - Entries without an assigned segment
Best practices
- Limit the number of segments (5-10 max)
- Name them clearly (
pricingnotseg_01) - Test each segment individually