What’s supported today
- Provider: OpenAI only. The settings page accepts an OpenAI secret key and talks to OpenAI’s public API.
- Models: whichever models OpenAI returns for your account, filtered by the server-side
aimodel.modelsallow-list. Model choice is a dropdown that only appears after your key has been verified. - Not supported right now: Anthropic, Azure OpenAI, Google Gemini, Groq, Together AI, or any other OpenAI-compatible gateway. If you’ve seen older docs that said these were supported, those are out of date — the current Settings page only supports OpenAI’s own API.
Before you start
You’ll need:- An OpenAI account — sign up at platform.openai.com.
- Billing enabled on that account — OpenAI rejects requests from accounts without a payment method or remaining credit.
- An API secret key — create one at platform.openai.com/api-keys. Keep it visible in a password manager; OpenAI only shows the full key once.
Connect your OpenAI account
Go to Settings → AI Integration.Enable AI in chat
Paste your OpenAI secret key
sk-....Save
GET /v1/models endpoint with the key to verify it. If the call succeeds, your key is marked verified and the model dropdown populates.Pick a chat model
gpt-4o-mini (cheap, fast), gpt-4o (higher quality, pricier).Save again
Configuration fields
config('aimodel.models') allow-list — the dropdown only offers models that appear in both OpenAI’s response and that list.What happens when you save
On every save of the form, Xobito’sAiIntegrationSettings Livewire component runs listModel():
- Calls OpenAI
GET /v1/modelsusing the key you provided. - If the response is a
200 OKwith a model list:- Sets
is_open_ai_key_verify = trueon your workspace. - Refreshes the Chat Model dropdown with the intersection of (models OpenAI returned) and (models allowed by Xobito’s server config).
- Sets
- If the response is anything else (401, 403, 429, network error):
- Leaves
is_open_ai_key_verify = false. - Shows an error. The Chat Model dropdown stays empty.
- Leaves
If key verification fails
Where your key is used
The saved key is used in two places:- AI Prompts — each prompt you build calls
openai_secret_key+chat_modelwhen an agent runs it from the composer. - AI composer in chat — the inline “Draft with AI” control on a conversation uses the same key and model.
What is not configurable here
Unlike some AI platforms, Xobito’s AI Integration page has a deliberately small footprint. The following are not available on this settings page:- Temperature / creativity slider — Xobito does not expose a workspace-wide temperature setting. Each AI Prompt runs with the model’s defaults.
- System prompt / persona field — there’s no global “you are a helpful support agent” field. Persona is authored per prompt in AI Prompts.
- Fallback model — if your chosen model is unavailable, the request fails. There is no automatic failover to another model.
- Rate limits / cost guardrails — Xobito does not cap, count, or bill AI calls. Use OpenAI’s usage dashboard and monthly limits for guardrails.
- Provider choice — OpenAI only, as noted above.
Security considerations
Practical mitigations:Use a dedicated, project-scoped OpenAI key
Use a dedicated, project-scoped OpenAI key
- The key can’t touch your other OpenAI workloads.
- You can cap spend per project.
- If the key leaks, revoking it doesn’t break other integrations.
Set a monthly usage limit at OpenAI
Set a monthly usage limit at OpenAI
Rotate when database-privileged staff leave
Rotate when database-privileged staff leave
Restrict dashboard access
Restrict dashboard access
Audit OpenAI usage regularly
Audit OpenAI usage regularly
Rotating your key
Create a new key at OpenAI
Paste it into Xobito
Confirm verification
Revoke the old key at OpenAI
Disabling AI
You have two options, depending on how hard the shut-off needs to be:- Soft disable — toggle Enable OpenAI in chat off. The AI button disappears from the chat UI. The key is still stored; re-enabling restores AI immediately.
- Hard disable — clear the OpenAI Secret Key field and save. The key is removed from your workspace. Re-enabling AI means pasting a fresh key.
Troubleshooting
I saved a valid key but the model dropdown is empty
I saved a valid key but the model dropdown is empty
- In the OpenAI dashboard, confirm your project has at least one chat model enabled (e.g.
gpt-4o-mini). - Ask your Xobito administrator what’s in
config/aimodel.php— if it’s restrictive, they may need to add the model.
AI Prompts fail with 401 after working fine yesterday
AI Prompts fail with 401 after working fine yesterday
AI Prompts fail with 429
AI Prompts fail with 429
chat_model to a less-saturated model (e.g. from gpt-4o to gpt-4o-mini).My bill at OpenAI spiked
My bill at OpenAI spiked
I want to use a different provider (Anthropic, Azure, etc.)
I want to use a different provider (Anthropic, Azure, etc.)