Setting Up Your OpenAI API Key

Last updated May 14, 2026

RevWorks uses external LLM providers for its AI features. This article walks through connecting OpenAI as your LLM engine by configuring a Named Credential in Salesforce.

Prerequisites

Install the Akoonu LLM Extension package before starting. When prompted, install for admins only.

You’ll also need an API key from your OpenAI account.

Configuring the Named Credential

  1. In Salesforce Setup, search for Named Credentials.
  2. The LLM Extension package adds two external credentials — one for Anthropic and one for OpenAI. Click the OpenAI API link in the External Credentials column.
  3. Under Principals, find the OpenAI principal row and select Edit from the actions menu.
  4. Click the Add button to add an authentication parameter.
  5. Set the Name to API_Key (capital A, capital K, with an underscore).
  6. Paste your OpenAI API key into the Value field.
  7. Click Save.

Verifying the connection

  1. Open the Akoonu app in Salesforce.
  2. Navigate to the AI Chat tab.
  3. If the tab loads without an error message, the connection is working. Try a quick test message to confirm.

TIP

If you see a connection error, double-check that the parameter name is exactly API_Key — the casing and underscore matter.