Go to AI Chat → Settings → AI & costs.
Answer mode
- AI-assisted (default): free answers first, AI when it helps.
- No AI (free): never calls an AI service. Good for small sites with clear pages, or while you set things up.
Provider
- Claude (recommended). Get an API key at console.anthropic.com → API Keys, paste it in Anthropic API key, and keep Claude Haiku 5.5 as the model. Sonnet 5.5 and Opus 5.5 are smarter and cost about 20 and 40 times more. Thinking effort stays on Low for the fastest, cheapest answers.
- OpenAI. Paste an API key from platform.openai.com, enter the model ID (for example
gpt-4o-miniorgpt-5-nano), and enter that model's prices per million tokens so your budget is enforced correctly. - OpenAI-compatible. Any service with an OpenAI-style
/chat/completionsendpoint: OpenRouter, Groq, Together, DeepSeek, Mistral, a local Ollama or LM Studio server, and many more. Enter the API base URL (for examplehttps://openrouter.ai/api/v1), the key, the Model ID and its prices. Turn on Ask for JSON output if the service supportsresponse_format: json_object; leave it off if you get errors. - Your own agent. Send each question to your own webhook (n8n, Make, Zapier, a custom server, an agent you built). See section 16 for the format.
Click Test connection to check the key (it uses what is on the page, even before you save), then Save changes. You see "Connected to … in … ms", or the exact error from the provider. The most recent AI error is also shown under the button, so a wrong key or an expired card is easy to spot.
Keep keys out of the database. Keys are stored encrypted. You can instead put them in wp-config.php; the field then shows "Set in wp-config.php":
define( 'SGLC_ANTHROPIC_KEY', 'sk-ant-…' );
define( 'SGLC_OPENAI_KEY', 'sk-…' );
define( 'SGLC_COMPAT_KEY', '…' );
define( 'SGLC_AGENT_SECRET', '…' );
To remove a saved key, type a single - in the field and save.
Answer quality settings (same page):
- Only answer questions about this business (on by default). Off-topic requests are declined with your Off-topic reply, and the AI checks every other question too. See section 11.
- Keep the AI technology private (on by default). The assistant never says which AI model or company powers it. See section 11.
- Maximum answer length, Excerpts sent to the AI, Conversation memory: shorter means cheaper and faster.
- Minimum match for a free answer: how close a page section must be before it is shown without AI.
- Q&A match strictness: how closely a question must match one of your Q&A answers.
- Answer greetings and thanks for free, Understand "take me to…" requests, Open the page automatically.
Under Settings → General you set the Assistant name, Business name, About your business (one or two sentences), Welcome message, Suggested questions (one per line, shown as buttons), Tone, Reply language and the replies used when nothing is found. Extra instructions for the AI lets you add rules such as "Always mention our free consultation".
