Skip to main content
The corpus is your chatbot’s knowledge base. It’s the content it uses to answer questions.

Entry structure

Each corpus entry contains:
FieldDescriptionRequired
TitleFor organizationYes
ContentThe text the bot knowsYes
SegmentAssociated context(s)No
PriorityRelative importanceNo
TagsKeywords for matchingNo

Adding content

Via the dashboard

  1. Go to Dashboard > Knowledge Base
  2. Click Add entry
  3. Fill in the fields
  4. Save

Via the API

curl -X POST https://api.animam.ai/tenants/{slug}/corpus \
  -H "Authorization: Bearer ak_your_token" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Business hours",
    "content": "We are open Monday to Friday, 9am to 6pm.",
    "segment": "contact",
    "priority": 1
  }'

Writing good content

# Return Policy

You have 30 days to return a product.

## Conditions
- Unused product
- Original packaging
- Receipt

## Procedure
1. Log into your account
2. Go to "My Orders"
3. Click "Return"

## Exceptions
Personalized products are not returnable.
Write as if you were talking to a customer. The bot naturally adopts this tone.

Best practices

DoAvoid
Clear Q&A formatInternal jargon
Bullet pointsWalls of text
Concrete examplesVague information
Regular updatesOutdated content

Priority

Priority (1-10) determines which content is preferred in case of conflict:
  • 10: Critical (pricing, T&C, security)
  • 5: Standard (general FAQ)
  • 1: Supplementary (anecdotes)
{
  "title": "Pro subscription price",
  "content": "The Pro subscription costs $49/month",
  "priority": 10
}

Segments

Associate segments to contextualize:
{
  "title": "Shipping FAQ",
  "content": "Free shipping over $50...",
  "segment": "checkout"
}
This entry will only appear on pages with data-segment="checkout".

Bulk import

CSV format

title,content,segment,priority
"Hours","Open 9am-6pm","contact",5
"Price","$49/month","pricing",10

Via the API

curl -X POST https://api.animam.ai/tenants/{slug}/corpus/import \
  -H "Authorization: Bearer ak_your_token" \
  -F "file=@corpus.csv"

Limits

PlanMax entriesMax size/entry
Starter10010,000 characters
Pro1,00050,000 characters
EnterpriseUnlimited100,000 characters