On this page

VGraple CRM's AI features work out of the box on a hosted model, paid for in AI credits, but on Starter and above you can connect your own OpenAI or Anthropic key if you specifically want GPT-4o Mini or Claude Haiku to answer instead; with your own key every AI action costs one fifth of the credits. This article covers adding a key, what changes once you do, and how knowledge base embeddings work: they always use OpenAI's embedding model, from VGraple AI or from your own OpenAI key, no matter which provider answers chat.
Bring your own AI key: first 5 of 6 steps
- 1Get an API key from your chosen
- 2Go to Settings, then Automation & AI,
- 3Click Add and test
- 4If you now have more than one
- 5Check individual AI Reply nodes and the
Before you start
- Only Owner and Super Admin roles can view and edit these keys, since the settings page is restricted to roles with secret-viewing access.
- Bringing your own key is available on Starter and above, not on Free. No key is needed to use AI: every plan runs on the hosted model with 1,000 free AI credits each month.
- Your own OpenAI or Anthropic key is billed directly by that provider at its own published rates; with your own key each AI action costs one fifth of the usual AI credits.
- Knowledge base embeddings for semantic search come from VGraple AI, or from your own OpenAI key if you add one. An Anthropic or Groq key never produces them.
- If your workspace moves to the Free plan, your saved keys are paused, not deleted: the AI your plan includes runs on VGraple AI while it is available (if it is not, AI does not answer until you upgrade), and each key shows as Paused. Upgrade to Starter or above and they work again with nothing to set up.
Steps
- Get an API key from your chosen provider. Anthropic's console, OpenAI's platform dashboard, or Groq's console (free, no card) all issue keys directly; the Get a key link under the key field opens the chosen provider's key page.

- Go to Settings, then Automation & AI, then AI, and click Add connection under Connections. Pick the Provider, give the connection a Name, paste your key into the key field and check the Model. The key field is masked by default; click the eye icon to reveal what you typed before saving.
- Click Add and test. The key is stored encrypted, shown as its last four characters only, and takes effect immediately for new AI calls; nothing needs to be redeployed or restarted.
- If you now have more than one connection, click Make default on the one to use by default. The default controls reply suggestions, conversation summaries, and the connection a brand-new Flow Builder AI node starts with. Make fallback marks the one to use if the default fails.
- Check individual AI Reply nodes and the chat widget, if relevant. Each one can be set to a specific connection independently of your org default; adding a new key does not retroactively change an existing node's chosen provider unless you edit it.
- Add an OpenAI key too if you want your knowledge base embedded on your own key, even if OpenAI is not your chat model of choice. Without one, VGraple AI provides the embeddings. This is the one case where a second key changes behavior beyond just "which model answers."
An organisation standardized on Anthropic for its brand of writing, for example, would add only the Anthropic key for chat, and could stop there: its knowledge base is still embedded by VGraple AI. Adding an OpenAI key too moves the embeddings onto that key, without touching which model actually writes the replies.
What you will see
Once a connection is added, it shows in the Connections list with its provider, model and key ending, and becomes selectable everywhere an AI connection picker exists: individual AI Reply node settings, the chat widget, and the AI debugger's AI connection to test with buttons. A connection that is not usable is left off those pickers. Removing a key later does not break anything that was using it; every code path that calls an AI provider falls back automatically to any other configured key rather than failing outright.
The fallback order favors the cheapest usable option first: an AI Reply node whose saved provider now has no key checks Groq before OpenAI, and OpenAI before Anthropic, so a missing key degrades to the cheaper AI provider rather than a costlier one by default. This only matters as a background safety net; day to day, whichever provider you actually pick for a node or widget is the one that answers.
Settings and options
| Setting or field | What it does | Default |
|---|---|---|
| Add connection | Adds one provider key as a named connection: Provider, Name, key and Model | No connection; VGraple AI answers |
| Provider | OpenAI, Anthropic, Groq and other providers; an OpenAI connection is the only one that generates knowledge base embeddings | Pick one |
| Model | The model id the connection uses | The provider's suggested model |
| Make default | Which connection answers reply suggestions, summaries, and new AI nodes by default | Set on the connection you choose |
| Make fallback | Which connection answers if the default fails | Not set |
| Per-node / per-widget provider | Overrides the org default for one specific AI Reply node or chat widget | Inherits org default at creation time |
| Provider fallback | Automatically switches to another configured key if the chosen provider's key is missing or fails | Always on, not configurable |
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Add and test fails for a new connection | The pasted key is malformed or was copied with extra whitespace | Re-copy the key directly from the provider's dashboard and paste it fresh |
| Knowledge base retrieval falls back to keyword search | No embeddings are available: VGraple AI is not answering for this workspace and there is no OpenAI key of your own | Add an OpenAI key on Starter and above, even if Claude remains your chat model; an Anthropic or Groq key never produces embeddings |
| A key shows Paused on Settings, then AI | The workspace is on the Free plan, where own keys do not run | Upgrade to Starter or above and the key works again; until then the AI your plan includes runs on VGraple AI while it is available. You can still delete the key |
| A flow's AI Reply node still uses a provider you removed the key for | The node's saved provider setting did not change on its own; it now falls back automatically to another configured key at runtime | This is expected and not a problem; edit the node directly if you want its saved provider label updated too |
| Add connection does not appear on Settings, then AI | Your role does not have secret-viewing access | Ask an Owner or Super Admin to add the key, or to grant your role that access if appropriate |
| Add connection is replaced by a notice that own AI keys are on Starter and above | The workspace is on the Free plan, where own keys are not available, whatever your role | Upgrade to Starter or above from See plans in that notice; until then the AI your plan includes runs on VGraple AI while it is available |
| Costs on your OpenAI or Anthropic account are higher than expected | Every AI Reply node, reply suggestion, summary, and embedding call using that provider bills against the same key | Review which flows and widgets are set to that provider; switching high-volume, low-complexity nodes to a cheaper model, or back to VGraple AI, reduces what that provider bills |
Related reading
See setting up the AI chatbot for where these keys get used day to day, and knowledge base sources for how knowledge base embeddings work in more detail.