Home/Help Center/Bring your own AI key

Automation

Bring Your Own OpenAI or Anthropic Key

Connect your own OpenAI or Anthropic API key so the AI features your plan includes run on your model at one fifth of the AI credits. On Starter and above.

By Chirag Darji · Updated 7 Nov 2026 · 9 min read

On this page
  1. Before you start
  2. Steps
  3. What you will see
  4. Settings and options
  5. Troubleshooting
  6. Related reading
Chat widget setup in VGraple CRM: appearance, welcome message, position and AI settings

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

  1. 1Get an API key from your chosen
  2. 2Go to Settings, then Automation & AI,
  3. 3Click Add and test
  4. 4If you now have more than one
  5. 5Check individual AI Reply nodes and the
The steps on this page, in order.

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

  1. 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.

AI and flows settings in VGraple CRM with provider keys and the Cron secret

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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 fieldWhat it doesDefault
Add connectionAdds one provider key as a named connection: Provider, Name, key and ModelNo connection; VGraple AI answers
ProviderOpenAI, Anthropic, Groq and other providers; an OpenAI connection is the only one that generates knowledge base embeddingsPick one
ModelThe model id the connection usesThe provider's suggested model
Make defaultWhich connection answers reply suggestions, summaries, and new AI nodes by defaultSet on the connection you choose
Make fallbackWhich connection answers if the default failsNot set
Per-node / per-widget providerOverrides the org default for one specific AI Reply node or chat widgetInherits org default at creation time
Provider fallbackAutomatically switches to another configured key if the chosen provider's key is missing or failsAlways on, not configurable

Troubleshooting

SymptomLikely causeFix
Add and test fails for a new connectionThe pasted key is malformed or was copied with extra whitespaceRe-copy the key directly from the provider's dashboard and paste it fresh
Knowledge base retrieval falls back to keyword searchNo embeddings are available: VGraple AI is not answering for this workspace and there is no OpenAI key of your ownAdd 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 AIThe workspace is on the Free plan, where own keys do not runUpgrade 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 forThe node's saved provider setting did not change on its own; it now falls back automatically to another configured key at runtimeThis 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 AIYour role does not have secret-viewing accessAsk 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 aboveThe workspace is on the Free plan, where own keys are not available, whatever your roleUpgrade 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 expectedEvery AI Reply node, reply suggestion, summary, and embedding call using that provider bills against the same keyReview 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

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.

Frequently asked questions

Do I need my own key to use the AI chatbot at all?
No. AI works without any key, on VGraple CRM's hosted model, paid for in AI credits. The AI Agent and AI Reply steps in WhatsApp flows are on every plan, including Free. AI reply suggestions, conversation summaries, the AI debugger, the chat widget's AI and classifying past chats with AI (the bot that answers website chat, Instagram and Messenger) are on Growth and above. Bringing your own OpenAI or Anthropic key is for organisations on Starter and above that want a different model or a lower credit cost, not a requirement to get AI features working.
Which model does each provider power?
Each connection names its own provider and model. The Provider list includes OpenAI (gpt-4o-mini suggested), Anthropic (claude-haiku-4-5 suggested), Groq and several others, and you can type a different model id. Every usable connection appears wherever an AI connection picker exists.
What happens if I add more than one key?
Each key is its own connection in the Connections list. Click Make default on the one that should power reply suggestions, conversation summaries, and new Flow Builder AI nodes, and Make fallback on the one to use if the default fails. Individual AI Reply nodes and the chat widget can still be set to a different connection, per node or per widget.
Does my own key change my bill for AI features?
Yes. With your own key every AI action costs one fifth of the usual AI credits (an AI reply costs 2 credits, not 10), and your provider bills you directly for usage at its own rates. Bringing your own key is available on Starter and above, not on Free.
Why does my knowledge base still use keyword search even though I added an Anthropic key?
Semantic vector search uses embeddings from OpenAI's text-embedding-3-small model, whichever provider answers the chat itself. VGraple AI provides those embeddings, so an Anthropic key does not change them. An OpenAI connection of your own, on Starter and above, moves the embeddings onto your key. Keyword search is used only when neither is available, and an Anthropic or Groq key never produces embeddings.
What happens to my key if my workspace moves to the Free plan?
It is paused, not deleted. The AI your plan includes runs on VGraple AI and uses AI credits at the usual price; if VGraple AI is unavailable for your workspace, AI does not answer until you upgrade. The AI Agent and AI Reply steps in WhatsApp flows are on every plan, including Free. AI reply suggestions, conversation summaries, the AI debugger, the chat widget's AI and classifying past chats with AI (the bot that answers website chat, Instagram and Messenger) are on Growth and above. Settings, then AI marks the key as Paused, where you can still delete it. Upgrade to Starter or above and the key works again with nothing to set up.
Who can add or change these keys?
Only Owner and Super Admin roles, since Settings, then AI is restricted to roles that can view organisation secrets. If you do not see the Add connection button, either your role does not have that access, or the workspace is on the Free plan, where own keys are not available and a notice with See plans takes the button's place.
What happens if I remove a key that a flow node is actively using?
The flow executor falls back automatically to any other configured provider's key the next time that node runs, rather than failing outright. It also falls back to VGraple AI. If nothing can answer at all, a customer waiting on the node reads a short line saying their message was passed to your team, and the chat goes to a person.

Run your WhatsApp on VGraple CRM

Free forever plan, official Meta WhatsApp Business API, set up in 15 minutes. No card needed.