Bot Settings Reference
Complete reference for every Ragbee chatbot-level setting — where it lives in
the dashboard, what it does, its default, and its metadata_json form for
API/API-key automation.
Settings live in two places on a bot definition:
- Fields on the
ChatbotDefinitionmodel (prompts, model mode, workspace) metadata_json(voice, features, capabilities — the settings below)
Everything in this document round-trips through the dashboard bot editor (Advanced — templates & policies section) and the chat API.
Voice & identity
| Setting | Type | Default | Purpose |
|---|---|---|---|
persona_display_name |
string | integration name | Name shown to users |
persona_greeting |
string | — | Greeting used on first turn / welcome taps. Never prepended to regular answers. |
persona_prompt |
text field | — | Who the bot is (name, personality, greeting style). Kept warm but brief. |
system_prompt |
text field | — | Hard rules the bot must follow (scope, boundaries, escalation). |
brand_name / brand_logo_url |
string | — | Branding on the widget. |
powered_by |
bool | true | Shows "Powered by ragbee.ai". |
quick_replies |
list[string] | — | Tappable quick actions (e.g. "See menu", "Hours"). |
Grounding & behavior
| Setting | Type | Default | Purpose |
|---|---|---|---|
default_workspace |
FK | first tenant workspace | Where answers are grounded from. |
runtime_mode |
string | — | Runner behavior mode. |
response_temperature |
float | platform default | Creativity of the grounded answer. |
rewrite_temperature |
float | platform default | Variance allowed when the bot polishes wording. |
web_search_enabled |
bool | false | Premium (Pro/Business). Off-domain questions trigger a Tavily web search; answers cite [WEB n] + URLs. House tenants are exempt from the tier gate. |
search_max_results |
int (1–8) | 4 | How many web results to fetch per search. |
domain_floor |
float (0.15–0.45) | 0.30 | Minimum retrieval relevance score for the bot to answer from documents. Below it: decline, or web-search if enabled. Clamped server-side — values outside the range are ignored. |
transcript_turns |
int (2–12) | 6 | How many recent back-and-forths the bot considers for continuity (widget + Messenger). |
chat_model |
string | platform default | Model used to compose answers. Allowlist: openai/gpt-oss-20b (fast), openai/gpt-oss-120b (stronger). Anything else falls back to the default. |
quiet_hours_enabled |
bool | false | When structured hours say the business is closed, the bot knows and says so honestly. |
escalation_max_per_hour |
int (0–10) | 3 | Cap on "flagged for the team" promises per visitor per hour. 0 disables escalation entirely. Flood guard protects your team from keyword spam. |
Structured business hours (quiet hours + hours questions)
Set business_hours on the workspace (not the bot) to get deterministic
hours answers ("closed right now, opens Tuesday at 11:30") computed in Python —
no LLM judgment. Also powers quiet-hours awareness.
{
"mon": [],
"tue": ["11:30-21:00"],
"wed": ["11:30-21:00"],
"thu": ["11:30-21:00"],
"fri": ["11:30-22:30"],
"sat": ["11:30-22:30"],
"sun": ["12:00-20:00"],
"holidays": ["2027-01-01"]
}
- Ranges are
HH:MM-HH:MMin the workspace timezone; empty list = closed that day. - Midnight-spanning ranges are supported (
"17:00-01:00"). holidaysis a list ofYYYY-MM-DDdates treated as closed.- Values are set at ingest from document text when parsing succeeds; ambiguous hours are flagged for review rather than guessed.
Live weather (optional)
| Setting | Type | Purpose |
|---|---|---|
weather_enabled |
bool | Keyword-triggered NWS conditions/alerts, labeled live data, never cited as a document. |
weather_location |
string | City/state or ZIP (e.g. "Canisteo, NY"). |
metadata_json example (complete)
A typical support bot's full metadata as used by the API and runners:
{
"powered_by": true,
"show_sources": false,
"quick_replies": ["See menu", "Hours", "Book a table"],
"persona_greeting": "Buonasera! Gianni here - welcome to Bella Notte.",
"persona_display_name": "Gianni",
"brand_name": "Bella Notte Trattoria",
"menu_pdf_url": "https://ragbee.ai/media/menus/bella-notte-menu.pdf",
"weather_enabled": false,
"weather_location": "",
"web_search_enabled": true,
"search_max_results": 4,
"domain_floor": 0.30,
"transcript_turns": 6,
"chat_model": "openai/gpt-oss-20b",
"escalation_max_per_hour": 3,
"quiet_hours_enabled": true
}
Minimal metadata (all defaults):
{}
Chat API example
POST /api/v1/chat/ — bot-level settings travel with the request when a
runner/tenant automation drives the bot:
{
"tenant_id": 3,
"workspace_id": 10,
"question": "who do the buffalo bills play next",
"web_search_enabled": true,
"search_max_results": 4,
"domain_floor": 0.30,
"transcript_turns": 6,
"quiet_hours_enabled": true,
"chat_model": "openai/gpt-oss-20b"
}
Response:
{
"answer": "The Bills host the Dolphins Sunday at 1 PM ET. [WEB 1](https://...)",
"sources": [{"document": "Buffalo Bills Schedule 2026", "source_url": "https://..."}],
"web_search": true,
"out_of_domain": false,
"deterministic": false
}
Safety behavior (not configurable per bot — fleet policy)
- Domain floor: off-domain questions are declined in persona (or web-searched if enabled), never answered from model memory.
- Code suppression: fenced code blocks in assistant output are masked at the proxy (
SANITIZE_SUPPRESS_CODE). Support bots stay in their lane. - PII scrubbing: personal data is ticketed/scrubbed before reaching the model; output is redacted before delivery.
- Trust guard: credential-shaped or personal-data input is punted before the LLM.
- Escalation flood guard: "flagged for the team" promises are capped per visitor per hour (
escalation_max_per_hour); spam never pages a human. - No-answer honesty: if neither documents nor search produce a confident answer, the bot says so.
Tier gates (server-enforced)
| Feature | Free | Basic | Pro | Business |
|---|---|---|---|---|
| Web search | — | — | ✓ | ✓ |
House tenants (ragbee, norman) |
exempt from all billing gates |
Last updated: 2026-11-02. Settings are enforced server-side; the dashboard UI is convenience, not the security boundary.