Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.03 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.03 KB

Azure OpenAI Salesforce

Library for connecting with Azure's OpenAI API from Salesforce Apex or Flow

Setup

Setup your Azure

  • Register an Azure account and request access to OpenAI api (requires a form at time of publishing).
  • Create a new Azure OpenAI instance
  • Create a new Deployment for GPT-4 or other "Chat" model
  • Grab API keys

Setup Salesforce

  1. Install sf metadata sf project deploy start --source-dir force-app/main/default -o <username>
  2. (Optional) Deploy the examples:
  3. Assign user to Permission Set: sf org assign permset --name AzureOAI
  4. Setup Named Credential
  • Update the Named Credential URL to match your deployment endpoint
  • Update the External Credential Principal with your API Key
Named_Credentials___Salesforce

Note: For Usage, deploy example flow (sf project deploy start --source-dir force-app/main/examples -o <username>) or see apex code in scripts