AI Agent Studio

Build intelligent AI agents powered by Large Language Models that seamlessly integrate with your Salesforce environment.

GitHub Stars GitHub Forks Salesforce API License
πŸ“¦ Repository Notice

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?

βš™οΈ

Admins

Configure AI agents without code using point-and-click tools

πŸ“Š

Managers

Understand what AI agents can do for your team

πŸ’»

Developers

Extend the framework with custom actions and integrations


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.

⚑ Function Agents

Single-task specialists for one-shot operations like summarization or classification. Fast, stateless execution.

πŸ”„ Workflow Agents

Multi-step automation that orchestrates complex processes with multiple agents. Sequential execution with checkpoints.


Key Features

🧠 Smart Memory

Buffer window and summary-based conversation history management

πŸ”’ Built-in Security

Automatic CRUD, FLS, and sharing rule enforcement

πŸ€– Multiple AI Providers

OpenAI included, more in addons, extensible adapter pattern

πŸ› οΈ Standard Actions

Create/update records, Chatter, flows, and more

βš™οΈ Async Processing

Platform Events or Queueables for your needs

πŸ“Š Deep Observability

Full logging of inputs, outputs, and tool executions


Quick Start

TL;DR

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!

⏱️ Time to First Agent

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

Deploy the Framework

sf project deploy start -d force-app/main/default -o your-org-alias
2

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
3

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: βœ“
4

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.”
5

Add the Chat Component

  • Edit any Lightning page
  • Drag aiAssistantChat component to the page
  • Configure with your agent’s developer name
  • Save and activate
6

Start Chatting!

  • β€œFind contacts named John Smith”
  • β€œShow me all accounts in California”
  • β€œCreate a task to follow up with Acme Corp”
πŸ“– Need more details?

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.

View all actions β†’


Security

πŸ”’ Security First

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:

  1. User Context β€” Agents run as the requesting user
  2. CRUD Checks β€” Validates object-level permissions
  3. FLS Enforcement β€” Validates field-level permissions
  4. Sharing Rules β€” Respects record-level access
  5. Audit Trail β€” All actions logged in AgentDecisionStep__c

Learn more about security β†’



License

Licensed under the Mozilla Public License 2.0.

  • βœ… Commercial use allowed
  • βœ… Modification allowed
  • βœ… Distribution allowed
  • ⚠️ Must disclose source if distributing modifications