SaralForce

SaralForce - AI Object Builder & Org Toolkit

Get SaralForce from the Microsoft Edge Add-ons store Chrome Web Store - coming soon

A Chrome browser extension that pairs an LLM (Large Language Models) object designer with a full Salesforce inspector — build custom objects from natural language, then run SOQL, execute Apex, manage users, read debug logs and inspect your org without leaving the page.

Session handling builds on ideas from Salesforce Inspector Reloaded (MIT licensed — see LICENSE and THIRD-PARTY-NOTICES.md). SaralForce is an independent project by Bhajan Mandali and is not affiliated with, sponsored, or endorsed by Salesforce, Inc.

Features

AI Object Builder

Describe what you want in plain English and the AI proposes the complete object — labels, API names, data types, required flags, picklist values, and Lookup/Master-Detail relationships. Keep chatting to refine it (“add a field for resolution notes”, “make Priority required”) and deploy when the visual preview looks right.

✨ Enhance Prompt turns a rough one-liner into a structured design brief before you send it: business purpose, key fields and their data types, expected record volume, relationships to standard objects, must-have vs. nice-to-have features, and security and sharing recommendations — with Accept / Discard controls.

Enhance Prompt — rough one-liner expanded into a structured design brief with Accept and Discard

After the proposal arrives, the Object Preview opens in Plan mode: edit the object label, API name, sharing model and every field inline, pick deployment-target profiles, then switch to Build to lock the plan and deploy.

Object Builder preview — Support Ticket plan with editable fields and deployment targets

Inspector Tools

Open the Inspector from the header (or the sidebar button) to reach every tool below. The last opened tab and scroll position are restored the next time you open the panel.

SOQL

A two-column workspace: LLM assistant chip, row limit, run button, query history and saved queries on the left; the syntax-highlighted editor, colour-coded field explorer (with category pills) and results table on the right — no horizontal scrolling. Tooling API and Recycle Bin toggles switch the backing API per query. Click any ID cell in the results to open Show All Data for that record.

When Salesforce rejects a query, the extension asks the LLM for a ✨ Suggested fix: a plain-English explanation of what went wrong plus the corrected query, with Apply & Run and Copy buttons.

SOQL two-column editor with field explorer and results

Run Apex

Execute anonymous Apex with a terminal-style editor: line numbers, syntax highlighting, Quick Templates, and saved/recent script chips. Choose the Log Level and Timeout, then Execute (or Ctrl+Enter) — or select a snippet and Execute Highlighted. Toggle Use AI to pre-check code before each run; compile errors get a suggested fix you can apply in one click. After a run, the Execution Results panel shows the debug log with event filters, a Debug-Only view, and the raw trace.

Run Apex editor with execution results and debug log

Debug Logs

Debug Logs with AI Quick Analysis panel

Users

Search and filter the org’s users by profile or role, then select one to inspect: full detail tabs (Details, Permission Sets, Groups, Profiles, Roles, Settings), recent Login IP addresses, and quick actions — Login As, Enable Logs (30-minute debug trace), Copy Id, and View in Salesforce. Community users get an Experience-site login picker when live sites exist.

Clone User walks through a two-step wizard — pick the source user and the components to copy (permission sets, groups, role), review the summary, then create the new user and its assignments. Reset Password sends the standard Salesforce password-reset email via the User password API.

Users tab with detail tabs, login IP and quick actions

Records, Export & Import

Records tab in Read-only mode with field summary and CSV export

Org Info, App Tabs & Code Coverage

Code Coverage tab with per-class percentages and test-class filter

Installation

Quick install (Microsoft Edge)

Install directly from the Edge Add-ons store: SaralForce on Microsoft Edge.

The Chrome Web Store version is coming soon.

Prerequisites

Setup

  1. Clone or download this repository

  2. Install dependencies (to get React):
    cd sf-object-creator
    npm install
    npm run copy-react
    
  3. Load the extension in Chrome:
    • Open chrome://extensions/
    • Enable Developer mode (toggle in top right)
    • Click Load unpacked
    • Select the addon subdirectory of this project
  4. Configure your LLM provider:
    • Click the extension icon on any Salesforce page
    • Click Options (or open options.html from the extension)
    • Select your LLM provider (OpenAI, Claude, Gemini, OpenRouter, or OpenAI-compatible)
    • Enter your API key
    • Select a model
    • Click Save Settings then Test Connection
  5. Start creating objects:
    • Navigate to your Salesforce org
    • Click the extension icon
    • Click SaralForce sidebar button
    • Describe the object you want to create!

Usage Examples

Example 1: Payment Transactions

I want an object that captures payment transaction data including amount, status, payment method, and reference numbers

AI Output: Creates a Payment_Transaction__c object with fields:

Example 2: Support Tickets with Relationships

Create a customer support ticket object that relates to Accounts and Contacts, with priority levels and assignment tracking

AI Output: Creates a Support_Ticket__c object with Lookup fields to Account and Contact, plus Priority picklist, Status picklist, and assignment fields.

Example 3: Refinement

After the initial proposal, you can say:

Add a field for the resolution notes and make the priority field required

The AI will update the proposal accordingly.

Supported Field Types

Type Description
Text Short text (up to 255 chars)
Text Area Multi-line text
Text Area (Long) Very long text content
Number Numeric values
Currency Monetary amounts
Percent Percentage values
Date Date only
Date/Time Date and time
Checkbox Boolean true/false
Picklist Single select from values
Picklist (Multi-Select) Multiple select from values
Email Email addresses
Phone Phone numbers
URL Web links
Lookup Relationship to another object
Master-Detail Required relationship to another object

LLM Provider Configuration

OpenAI, Anthropic Claude, Google Gemini, OpenRouter, and any OpenAI-compatible endpoint (OpenCodeZen, etc.) are supported. One configuration drives every AI feature — the object-builder chat, Enhance Prompt, SOQL query repair, Apex pre-check, and debug-log analysis.

What’s New

v1.4.21

v1.4.20

v1.4.19

v1.4.17

v1.4.15

Architecture

sf-object-creator/
├── addon/
│   ├── manifest.json          # Chrome Extension Manifest V3
│   ├── background.js          # Service worker (session + LLM proxy)
│   ├── inspector.js           # Salesforce API layer (REST/SOAP)
│   ├── inspector-tools.js     # Inspector tabs (Records, SOQL, Run-Apex, Users, Logs, …)
│   ├── object-creator.html/js # Main feature page (chat, preview, inspector shell)
│   ├── options.html/js        # LLM provider settings
│   ├── button.js/css          # Content script (injected into SF pages)
│   ├── sf-time.js             # Shared time-zone helpers
│   ├── llm/
│   │   ├── llm-service.js     # Provider abstraction + config
│   │   ├── openai.js          # OpenAI adapter
│   │   ├── claude.js          # Anthropic Claude adapter
│   │   ├── gemini.js          # Google Gemini adapter
│   │   └── openai-compatible.js
│   ├── prompts/
│   │   └── system-prompt.js   # AI prompt engineering
│   └── styles/slds/           # Salesforce Lightning Design System CSS
└── package.json

Security

Permissions

Development

# Install dependencies
npm install

# Copy React files to addon directory
npm run copy-react

# Load in Chrome
# 1. Open chrome://extensions/
# 2. Enable Developer mode
# 3. Click Load unpacked
# 4. Select the addon/ directory

License

MIT License — see LICENSE. Session/auth code derives in part from Salesforce-Inspector-reloaded (MIT © 2023 Thomas Prouvot); see THIRD-PARTY-NOTICES.md for full attribution.