AI Settings
#Overview
AI powers the assistant tools, AI Staff, the knowledge base search and the chat assistant on firm websites and
WhatsApp. Matterly works with any of the providers below, several of which are free, and it also works with no AI
at all:
| Without an AI provider |
What happens |
AI tools (/admin/ai) |
Each tool shows a sample of what it produces, marked as a sample |
| Chat widget and WhatsApp |
A rule-based assistant answers common questions (practice areas and fees, office hours, address, contact) from the firm's own details |
| AI Staff |
Stays paused and shows why; nothing fails in the inbox |
| Knowledge base |
Still indexes documents; search uses keywords |
| Smart Forms, website builder, translations |
The AI buttons explain that AI is not set up; everything can still be done by hand |
Super Admin → Settings → AI (/super/settings/ai)
| Field |
Purpose |
| Provider |
Grouped as free tier, paid, self-hosted and other (see the table below) |
| API key |
From the provider's console. Not needed for Ollama or LM Studio |
| Model |
Leave blank for the provider's default; suggestions appear as you type |
| Base URL |
Leave blank for the provider's default address. Required for Azure OpenAI and other compatible APIs |
| Embedding model |
Used for meaning-based knowledge base search. Blank uses the provider's default; providers without one search by keywords |
| Timeout |
Seconds to wait for a reply. Raise it for slow local models |
| Default credits |
AI credits a new firm starts with |
| Let firms use their own AI account |
See Firms on their own AI account |
Click Test Connection before saving. It sends one short message with the values on screen (the saved key is used
if the key field is blank) and tells you whether knowledge base search will use embeddings.
#Providers
| Provider |
Cost |
Embeddings |
Where to get a key |
| Google Gemini |
Free tier |
Yes |
aistudio.google.com |
| Groq |
Free tier |
No |
console.groq.com |
| OpenRouter |
Free models (names ending in :free) and paid |
No |
openrouter.ai |
| Mistral AI |
Free experiment plan |
Yes |
console.mistral.ai |
| OpenAI |
Paid |
Yes |
platform.openai.com |
| Anthropic Claude |
Paid |
No |
console.anthropic.com |
| DeepSeek |
Low cost |
No |
platform.deepseek.com |
| Azure OpenAI |
Paid |
Optional (enter your embedding deployment) |
Azure portal: base URL ending in /openai/v1, deployment name as the model |
| Ollama |
Free, on your server |
Yes (nomic-embed-text) |
Install Ollama, then ollama pull llama3.1 and ollama pull nomic-embed-text |
| LM Studio |
Free, on your server |
Optional |
Start the LM Studio server and enter the model name it shows |
| Other OpenAI-compatible API |
Varies |
Optional |
Together, Fireworks, vLLM, LocalAI and similar: enter the base URL and model |
#Firms on their own AI account
With Let firms use their own AI account on, each firm gets Settings → AI (/admin/settings/ai) where a Firm
Admin can connect their own provider, key and model (local providers excluded) and test it.
- A firm on its own account uses no platform AI credits. Usage is still logged with zero credits.
- The plan still decides whether the firm has AI tools at all.
- Turning the option off sends every firm back to the platform provider. Saved firm keys are kept but ignored, and
the AI settings page shows how many firms have one.
- A firm's base URL must be a public
https:// address; private and local addresses are refused.
- Error messages point at whoever owns the key: a firm's rejected key or empty balance tells the firm to check its
own Settings → AI, not the platform admin.
With the option off, Settings → AI shows the firm which AI it runs on and its credit balance.
#Firm credits
Super Admin → AI Credits
- View balances per firm
- Add Credits when a firm runs low
- Review usage charts
Credits apply to firms on the platform provider. The AI Assistant page shows the balance, or "Your own AI account"
for firms on their own.
| Tool |
Location |
| AI Assistant |
/admin/ai |
| AI Staff agents |
/admin/ai-staff |
| Knowledge Base |
/admin/knowledge-base |
| AI provider (own account) |
/admin/settings/ai |
#Troubleshooting
| Message |
Meaning |
| not set up yet |
No provider, or the key or model is missing. Check Settings → AI |
| rejected its API key |
Wrong or revoked key |
| run out of credit |
The provider account has no balance. Top it up with the provider |
| refused the request |
Usually a wrong model name for that provider |
| busy right now |
The provider's rate limit. Wait a minute; free tiers have lower limits |
#Best Practices
- Test the connection after every change, and re-index the knowledge base after switching provider.
- Top up credits before campaigns that use marketing generation.
- Review AI Staff drafts before approving client-facing messages.
- Keep knowledge base documents up to date for accurate chatbot answers.