Agent_Space / README.md
arout2026's picture
Upload 16 files
af3b3c9 verified

A newer version of the Gradio SDK is available: 6.12.0

Upgrade
metadata
title: Optimax-agent
emoji: πŸ›‘οΈ
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 6.3.0
app_file: app.py
pinned: false
license: apache-2.0

πŸ›‘οΈ Optimax Security Agent

AI-powered Salesforce security analysis API that receives metadata from Salesforce orgs and returns comprehensive security assessments.

Architecture

Salesforce Org β†’ Sends Metadata β†’ Optimax Agent API β†’ Returns Analysis

Key Feature: This API processes ONLY METADATA - no credentials are ever received or stored.

Features

  • πŸ€– AI-Powered Analysis using Salesforce CodeGen 350M
  • πŸ” Permission Vulnerability Detection
  • πŸ‘€ Identity & Access Management Analysis
  • πŸ” Sharing Model Security Assessment
  • πŸ“Š Risk Scoring & Prioritization
  • πŸ’‘ Actionable Recommendations

API Endpoints

POST /api/analyze

Main analysis endpoint for Salesforce integration.

Request:

{
  "org_id": "00Dxx0000001234",
  "org_name": "Your Organization",
  "users": [...],
  "profiles": [...],
  "permission_sets": [...],
  "login_history": [...],
  "sharing_settings": {...}
}

Response:

{
  "success": true,
  "overall_risk_score": 45,
  "risk_level": "MEDIUM",
  "critical_findings": [...],
  "high_findings": [...],
  "ai_executive_summary": "...",
  "ai_recommendations": [...]
}

Usage

From Salesforce Apex:

// 1. Collect metadata
Map<String, Object> metadata = MetadataExtractor.collectOrgMetadata();

// 2. Call Optimax Agent
HttpRequest req = new HttpRequest();
req.setEndpoint('callout:Optimax_Agent/api/analyze');
req.setMethod('POST');
req.setHeader('Content-Type', 'application/json');
req.setBody(JSON.serialize(metadata));

Http http = new Http();
HttpResponse res = http.send(req);

// 3. Parse response
Map<String, Object> analysis = (Map<String, Object>)JSON.deserializeUntyped(res.getBody());

Using cURL:

curl -X POST https://m8077anya-vishwakarma-optimax-agent.hf.space/api/analyze \
  -H "Content-Type: application/json" \
  -d @metadata.json

Testing

Visit the app in your browser to use the interactive testing interface.

Security

  • βœ… No credential processing
  • βœ… Metadata-only analysis
  • βœ… Stateless operation
  • βœ… Private space (access controlled)

Technical Details

  • Framework: Gradio + FastAPI
  • AI Model: Salesforce CodeGen 350M (350 million parameters)
  • Analysis: Hybrid (AI + rule-based)
  • Deployment: Hugging Face Spaces

Version: 2.0.0
Last Updated: January 2026