Connect an AI provider
Hushdesk's AI features need an AI provider key on the server. Groq, Moonshot (Kimi), Gemini and Anthropic all work, and with two or more keys the next one answers when one fails.
Last updated 3 min read
Draft with AI, the AI agent, ticket summaries and Ask AI all need an AI provider. Hushdesk connects to the provider at server level, so one key serves every workspace on that server. This guide is for super admins who run a Hushdesk server.
Before you start
- Who can do this: platform super admins only. Store owners and admins do not need to do anything.
- Plan: all plans.
- What you need: at least one API key from Groq (console.groq.com, API Keys), Moonshot for Kimi (platform.moonshot.ai, API Keys), Gemini (aistudio.google.com, Get API key) or Anthropic (console.anthropic.com, API Keys), an authenticator app or passkey on your account, and the server's encryption key set.
- Time: about five minutes.
Step by step
- Open the account menu and choose Super admin, then API keys.
- Confirm it is you with your authenticator code or passkey if asked.
- Under AI, paste one or more keys: Groq API key, Moonshot (Kimi) API key, Gemini API key or Anthropic API key.
- For an Anthropic key that is not scoped to a workspace, also set Anthropic workspace ID (
wrkspc_…). - Save. Keys are checked for format and stored encrypted.
- Press Test next to each key. A working Groq, Moonshot or Gemini key answers "OK · N models, will use" followed by the model drafts will use.
- Optional: set AI provider order, for example
gemini, groq, to choose which provider is tried first. - Open AI Agent in any workspace and check AI provider shows "Connected: drafts and answers work".
What happens next
Every workspace on the server can now use AI features. Admins still decide whether to switch on the AI agent in their own workspace; it stays off until they do.
| Provider | Key format | Where to get it |
|---|---|---|
| Groq | gsk_… |
console.groq.com, API Keys |
| Moonshot (Kimi) | sk-… |
platform.moonshot.ai, API Keys |
| Gemini | AIza… |
aistudio.google.com, Get API key |
| Anthropic | sk-ant-… |
console.anthropic.com, API Keys |
With more than one key, requests go to the first provider in AI provider order (by default Groq, then Moonshot, Gemini and Anthropic) and move to the next one when a provider fails. Super admin, System and audit shows the order in use under AI provider. A provider left out of a custom order is not used, even with a key.
Hushdesk picks each provider's model for you from the models your key can use, so a retired model does not stop drafts. Groq model, Moonshot (Kimi) model and Gemini model are optional; leave them empty to auto-pick a current model.
Without any key, AI buttons show an honest "connect an AI provider" state, such as "Add a Groq, Moonshot (Kimi), Gemini or Anthropic key in Super admin → API keys", and never a fake answer.
Tips
- Add a second provider key so AI keeps working through one provider's outage or an empty balance.
- Keep keys in the console, not in shared documents. Hushdesk never shows a saved key again.
- Set a spending limit with each AI provider as a second safety net.
- After changing a key, press Test, then try Draft with AI on a demo ticket.
Troubleshooting
"Confirm it’s you again (authenticator code or passkey) to change keys."
Open the security check and use your authenticator code or passkey, then save again.
"Set APP_ENCRYPTION_KEY on the server first: keys are stored encrypted with it"
The server's encryption key is missing. Set it in the server environment first.
"That doesn’t look like a groq api key. …"
The key format is wrong. Copy it again from the provider's console. The same message names the Moonshot, Gemini or Anthropic key when that one is wrong.
"Paste the value on one line"
Remove line breaks from the pasted key.
"Rejected: the key is wrong or has no access …"
The provider refused the key when you pressed Test. Create a new key in the provider's console and paste it again.
"Could not reach the provider"
The server could not connect to the provider during Test. Check the server's internet access and try again in a minute.
Frequently asked questions
Do I need my own AI key to use Hushdesk AI?
Not as a store. The AI provider is set once on the Hushdesk server by its administrators, and every workspace on that server uses it. If you see that AI is not connected, the server does not have a key yet; contact whoever runs your Hushdesk server or support.
Which AI providers does Hushdesk support?
Groq, Moonshot (Kimi), Gemini and Anthropic. Any one key switches on AI drafts, the AI agent, summaries and Ask AI. With two or more keys, Hushdesk tries them in order and moves to the next one when a provider fails. Without any key it shows an honest not connected state.
Where does a super admin add the AI key?
In Super admin, API keys, under the AI group. Paste a Groq key (gsk_), a Moonshot key (sk-), a Gemini key (AIza) or an Anthropic key (sk-ant-). Keys are checked for the right format, stored encrypted and never shown again after saving. Press Test to check one works.
Can I use Kimi from Moonshot AI for drafts?
Yes. Create a key at platform.moonshot.ai under API Keys and paste it as the Moonshot (Kimi) API key in Super admin, API keys. Hushdesk picks a current Kimi model from the models your key can use, or the one you set in Moonshot (Kimi) model. Press Test to see which model it will use.
Can I use Google Gemini for AI drafts?
Yes. Create a key in Google AI Studio (aistudio.google.com, Get API key) and paste it as the Gemini API key in Super admin, API keys. Hushdesk talks to Gemini through Google's OpenAI-compatible endpoint and picks a current Gemini model unless you set one in Gemini model.
What happens if an AI provider is down or out of credit?
When more than one key is set, the request moves to the next provider in the order, so drafts keep working. This covers a wrong or expired key, no credit, a retired model, rate limits, outages and timeouts. The provider that answered is tried first for the next five minutes.
How does Hushdesk choose which AI model to use?
It reads the list of models your key can use and picks the first one from a short list of current, capable models for each provider. If a model is retired, Hushdesk re-reads the list and moves to the next one. To pin a model, set Groq model, Moonshot (Kimi) model or Gemini model.
How do I check that AI is connected?
Open AI Agent. The readiness list shows AI provider with Connected, drafts and answers work when a key is set. Draft with AI in the reply box and Ask AI also start working straight away. If it still says to add a key, the key was not saved.
Why does saving an API key ask me to confirm it is me?
Changing server keys is sensitive, so Hushdesk asks for a fresh check with your authenticator code or passkey, needed every 15 minutes for this kind of change. You need two-step sign-in or a passkey set up on your account first.
Was this helpful?
Related articles
- Turn on the AI agentSwitch on the Hushdesk AI agent in Copilot mode so it drafts a reply for every new customer message, then move to Autopilot for safe topics later.
- Draft replies with AIPress the sparkle or Ctrl+J to get a reply drafted from the whole conversation, the order and your macros, then make it shorter, warmer or more formal.
- Ask AI about your tickets, customers and teamAsk questions in plain words, such as which tickets waited longest or how the team did this week, and get answers with links from your own data.
- AI limits and monthly AI capsHow many AI answers each plan includes, what counts toward the cap, what happens at 80 % and at the limit, and the separate daily limit you set.
Still stuck?
Chat with the Hushdesk team. A person answers on every plan.