Overview.
Wendesk routes every AI call through one quota router. The router decides, call by call, whether to use the platform model (your AI credits) or your own provider key (BYOK).
Every AI call is recorded with its tokens in and out, model and cost, so usage and billing can be checked.
AI credits.
Wendesk includes AI credits for replies, drafting and summaries. Credits are bought up front, and once they run out the router moves on to the next step below.
BYOK fallback chain.
When your AI credits run out, the router applies this priority:
Check AI credits
If AI credits are left → use the platform model.
Check BYOK key
No credits left and your own key is added → use your key.
Block until you add credits
No BYOK key and no credits left → the call is blocked and you are asked to buy more AI credits or add your own key.
Configure a provider.
Pick the provider you want to bring keys for. OpenAI and Anthropic follow the same flow: get a key from the provider's console → paste into Wendesk Admin → optionally pick a model. Gemini and Bedrock are planned, and their tabs show how to get credentials ready. Keys are envelope-encrypted with AWS KMS Customer Managed Keys.
Get an API key.
Open the OpenAI dashboard
Go to platform.openai.com/api-keys and sign in.
Create a new secret key
Click "Create new secret key". Name it
wendesk-prod. Give it permission scopeAll(or fine-grained Models & Chat Completions only).Copy the key (sk-...)
It's shown once only. Copy immediately. Format:
sk-proj-XXXXXX...Paste into Wendesk Admin
In Wendesk: Settings → AI & Integrations → AI Keys → Add OpenAI. Paste the key, pick default model (
gpt-4o-minirecommended), save.Validate
Wendesk checks the key with a small test call. A green check means it is ready. Failure = check the key or your OpenAI billing status.
gpt-4o-mini for general drafts (fast, cheap). Larger models are slower and cost more, so choose them only for complex tasks.
# Quick test — list available models
curl https://api.openai.com/v1/models \
-H "Authorization: Bearer sk-proj-XXXX..." \
| jq '.data[] | .id' | head
# Or — fire a one-token test
curl https://api.openai.com/v1/chat/completions \
-H "Authorization: Bearer sk-proj-XXXX..." \
-H "Content-Type: application/json" \
-d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"hi"}],"max_tokens":1}'Get an API key.
Open the Anthropic console
Go to console.anthropic.com/settings/keys and sign in.
Create a new key
Click "Create Key". Name it
wendesk-prod. Choose your workspace.Copy the key (sk-ant-...)
Format:
sk-ant-api03-XXXX.... Shown once — copy now.Paste into Wendesk Admin
Settings → AI & Integrations → AI Keys → Add Anthropic. Pick a default model. A Haiku model suits cheap drafts and a Sonnet model suits heavier reasoning.
Haiku models are the fastest and cheapest, and suit tagging and classification. Sonnet models suit most reasoning. Larger models cost more per call.
curl https://api.anthropic.com/v1/messages \
-H "x-api-key: sk-ant-api03-XXXX..." \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-haiku-4-5-20251001",
"max_tokens": 50,
"messages": [{"role":"user","content":"Reply with just OK"}]
}'Get an API key.
Open Google AI Studio
Go to aistudio.google.com/apikey and sign in with your Google account.
Create API key
Click "Create API key". Pick a Google Cloud project (or let Google auto-create one).
Copy the key (AIza...)
Format:
AIzaSyXXXXXX...Paste into Wendesk Admin
Adding a Gemini key in Wendesk is planned. Today the AI Keys screen accepts OpenAI and Anthropic keys only, so keep this key for later.
Free Gemini API tier has rate limits (for example, a low requests-per-minute cap). For production traffic, enable billing on the Google Cloud project — it switches to pay-as-you-go automatically.
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=AIzaSyXXXX..." \
-H "Content-Type: application/json" \
-d '{ "contents": [{ "parts": [{ "text": "Reply with just OK" }] }] }'Configure IAM credentials.
Enable Bedrock in your AWS region
In AWS Console: Bedrock → Model access → Manage. Request access to the models you want (Anthropic Claude family is the most common).
Create an IAM user with Bedrock policy
IAM → Users → Add user. Attach the managed policy
AmazonBedrockFullAccess(or scoped custom policy withbedrock:InvokeModelonly).Generate access keys
For the new user, create programmatic access keys:
AKIA...+ secret. Regionap-south-1is the Wendesk default.Wendesk support is planned
Adding AWS Bedrock credentials in Wendesk is planned. Today the AI Keys screen accepts OpenAI and Anthropic keys only, so there is nothing to paste yet.
Stays inside your AWS account. Requests go to Bedrock using your own credentials. AWS also offers an India region (Mumbai, ap-south-1).
# Configure AWS CLI aws configure # Enter Access Key, Secret, region (ap-south-1) # Test Bedrock model access aws bedrock list-foundation-models \ --region ap-south-1 \ --query "modelSummaries[?contains(modelId,'claude')].modelId"
Security & logging.
Every BYOK key is encrypted at rest with AES-256-GCM envelope encryption using an AWS KMS-managed Customer Managed Key (CMK). Never logged. Never returned by any API endpoint. Decrypted only at request time inside our trust boundary.
Every AI call is logged with its tokens in and out, model and cost. The log is used for quota checks and billing.
What a provider keeps or uses for training is set by your own account with that provider. Check its data-usage settings before you add a key.
Troubleshooting.
- "Invalid API key" → key was revoked, expired, or you copy-pasted a typo. Re-copy from provider console.
- "Insufficient quota" on OpenAI → you have a key but no billing set up; add a card at platform.openai.com/account/billing.
- "Model not found" → model ID changed (provider-side); update the default model under Wendesk Settings.
- "Rate limit exceeded" → you hit your provider's per-minute/hour limit; upgrade your tier or use a different provider for the burst.
- Bedrock "AccessDeniedException" → IAM policy missing
bedrock:InvokeModel, or you didn't request model access in the AWS console.
Email support@wendesk.com with the trace ID from the error message and we will help you work out whether the problem is in Wendesk or with the provider.