AI Agent Studio
Build intelligent AI agents powered by Large Language Models that seamlessly integrate with your Salesforce environment.
This repository contains the core AI Agent Framework only. The aiAgentStudioAddons folder contains proprietary extensions including additional orchestrators, LLM providers, actions, and UI components that are not part of the open-source repository.
Why AI Agent Studio?
- No Code Required β Configure AI agents with point-and-click tools
- Enterprise Security β Automatic CRUD, FLS, and sharing rule enforcement
- Multiple AI Providers β OpenAI included, extensible for Claude, Gemini, and more
- Full Observability β Every interaction logged for transparency and debugging
- Open Source β Free forever under MPL-2.0 license
Who is this for?
Three Types of AI Agents
π¬ Conversational Agents
Interactive chat assistants with multi-turn conversations and memory. Perfect for customer support, sales assistance, and help desks. Included in core framework.
Key Features
Quick Start
Deploy the framework β Configure Named Credentials with your AI API key β Create an LLM Configuration β Create an Agent β Add capabilities β Drop the chat component on a page β Start chatting!
You can have your first AI agent running in under 30 minutes!
Prerequisites
- Salesforce org (Sandbox recommended)
- System Administrator access
- API key from an AI provider (OpenAI, Claude, or Gemini)
Deploy the Framework
sf project deploy start -d force-app/main/default -o your-org-alias
Set Up AI Provider Authentication
Navigate to Setup β Named Credentials β New
- Label: OpenAI API
- URL:
https://api.openai.com - Add your API key as authentication
Create LLM Configuration
App Launcher β LLM Configurations β New
- Developer Name: OpenAI_GPT4o
- Named Credential: OpenAI_API
- Provider Adapter Class: OpenAIProviderAdapter
- Default Model: gpt-4o-mini
- Temperature: 0.7
- Is Active: β
Create Your First Agent
App Launcher β AI Agent Definitions β New
- Name: Sales Assistant
- Agent Type: Conversational
- LLM Configuration: OpenAI_GPT4o
- Memory Strategy: BufferWindow
- Identity Prompt: βYou are a helpful Salesforce assistant.β
Add the Chat Component
- Edit any Lightning page
- Drag aiAssistantChat component to the page
- Configure with your agentβs developer name
- Save and activate
Start Chatting!
- βFind contacts named John Smithβ
- βShow me all accounts in Californiaβ
- βCreate a task to follow up with Acme Corpβ
Check out the complete Getting Started guide for step-by-step instructions with screenshots.
Standard Actions
| Action | Description |
|---|---|
ActionGetRecordDetails | Retrieve and search Salesforce records |
ActionCreateRecord | Create any Salesforce record |
ActionUpdateRecord | Update existing records |
ActionPostChatter | Post to Chatter feeds |
ActionFlowHandler | Execute Salesforce Flows |
Additional actions are available in the addon package.
Security
Agents always run in the user's context. There is no privilege escalation β agents can only access what the user can access.
The framework enforces security at every level:
- User Context β Agents run as the requesting user
- CRUD Checks β Validates object-level permissions
- FLS Enforcement β Validates field-level permissions
- Sharing Rules β Respects record-level access
- Audit Trail β All actions logged in
AgentDecisionStep__c
π Support This Project
AI Agent Studio is free and open-source and will always remain so.
If you find it useful, consider supporting ongoing development.
License
Licensed under the Mozilla Public License 2.0.
- β Commercial use allowed
- β Modification allowed
- β Distribution allowed
- β οΈ Must disclose source if distributing modifications