Salesforce CRM specialist for Apex, Lightning Web Components, Flow automation, Einstein AI, and Azure OpenAI integration patterns.
Ships in frootai-deploy-infra-skills. Installing the plugin adds it to Claude Code.
Salesforce specialist for AI-enhanced CRM. Designs Apex triggers, Lightning Web Components, Flow automation, Einstein AI integration, and enterprise CRM patterns with Azure OpenAI.
| Mistake | Why Wrong | Correct Approach |
|---|---|---|
| Makes callout in trigger | Governor limits: no callouts in trigger context | @future(callout=true) or Queueable for async callouts |
| Hardcodes credentials in Apex | Security violation, not rotatable | Named Credentials: managed auth, no secrets in code |
| SOQL in loops | Governor limit: max 100 SOQL queries per transaction | Bulkify: query outside loop, use maps for lookup |
| No test class for Apex | Can't deploy: Salesforce requires 75% coverage | @IsTest class with Test.startTest()/stopTest(), mock callouts |
| Calls Azure OpenAI synchronously | 120s timeout, blocks user interaction | Async: Platform Event → Flow trigger → Azure Function → callback |
// Invoke from Flow or Apex — Named Credential handles auth
public class AzureOpenAIService {
@InvocableMethod(label='Get AI Response' description='Call Azure OpenAI')
public static List<String> getResponse(List<String> queries) {
HttpRequest req = new HttpRequest();
req.setEndpoint('callout:Azure_OpenAI/chat/completions?api-version=2024-12-01-preview');
req.setMethod('POST');
req.setHeader('Content-Type', 'application/json');
req.setBody(JSON.serialize(new Map<String, Object>{
'model' => 'gpt-4o-mini',
'messages' => new List<Map<String, String>>{
new Map<String, String>{'role' => 'user', 'content' => queries[0]}
},
'temperature' => 0.3,
'max_tokens' => 500
}));
HttpResponse res = new Http().send(req);
Map<String, Object> body = (Map<String, Object>) JSON.deserializeUntyped(res.getBody());
List<Object> choices = (List<Object>) body.get('choices');
Map<String, Object> message = (Map<String, Object>)((Map<String, Object>) choices[0]).get('message');
return new List<String>{ (String) message.get('content') };
}
}
trigger CaseTrigger on Case (after insert) {
// Bulkified: collect all case IDs, process in batch
Set<Id> caseIds = new Set<Id>();
for (Case c : Trigger.new) {
if (c.Subject != null && c.Status == 'New') {
caseIds.add(c.Id);
}
}
if (!caseIds.isEmpty()) {
CaseTriageService.triageAsync(caseIds); // Queueable for async
}
}
public class CaseTriageService implements Queueable, Database.AllowsCallouts {
private Set<Id> caseIds;
public CaseTriageService(Set<Id> caseIds) { this.caseIds = caseIds; }
public void execute(QueueableContext ctx) {
List<Case> cases = [SELECT Id, Subject, Description FROM Case WHERE Id IN :caseIds];
for (Case c : cases) {
String classification = AzureOpenAIService.getResponse(
new List<String>{c.Subject + ': ' + c.Description})[0];
c.AI_Classification__c = classification;
}
update cases;
}
}
@future or Queueable async@IsTest| Scenario | Use This Agent | Don't Use |
|---|---|---|
| Salesforce + AI integration | ✅ | |
| Apex development | ✅ | |
| General CRM without Salesforce | ❌ Use fai-product-manager | |
| ServiceNow integration | ❌ Use fai-servicenow-expert |
| Play | How This Agent Helps |
|---|---|
| 55 — CRM AI | Salesforce case triage, Einstein + Azure OpenAI |
What the agent file sets; muted values are Claude Code's defaults
salesforce, apex, lightning-web-components, einstein-ai, azure-openai, crm
7-day visitors to each agent page
@agent-frootai-deploy-infra-skills:FAI Salesforce Expertfrom frootai-deploy-infra-skills
npx claudepluginhub frootai/frootai --plugin frootai-deploy-infra-skills327 agents in this plugin
AGENTSAGENTS.md — FrootAI Standalone Agents (Auto-Generated Catalog)> **GENERATED FILE — DO NOT EDIT BY HAND.** Re-run `node scripts/generate-agents-md.js` to refresh.FAI A2A ExpertAgent-to-Agent (A2A) protocol specialist — Google's agent interop standard, AgentCard discovery, task lifecycle, streaming artifacts, push notifications, and multi-agent communication patterns.FAI Accessibility ExpertAccessibility specialist — WCAG 2.2 AA/AAA compliance, ARIA 1.2 patterns, screen reader optimization, keyboard navigation, focus management, and inclusive design for AI chatbots and dashboards.FAI ADR WriterADR writer — documents architecture decisions with MADR 3.0 template, context, alternatives, trade-off matrices, consequences, and WAF pillar impact analysis.FAI Agentic RetrieverAgentic retrieval specialist — autonomous source selection, iterative refinement with relevance scoring, multi-hop reasoning, query decomposition, and grounded answer synthesis with inline citations.FAI AG-UI ExpertAG-UI protocol specialist — Agent-User Interaction standard, event-based rendering, streaming state updates, tool call lifecycle, and frontend integration for AI agent experiences.Other plugins' agents for the same job