A powerful AI-powered solution for automated bill processing and energy consumption tracking in Salesforce Net Zero Cloud
- Smart Bill Processing: Leverages Einstein AI to automatically extract key information from utility bills
- Multi-Format Support: Processes various file formats including images and PDFs
- Intelligent Data Extraction: Automatically identifies account names, consumption data, and billing periods
- Net Zero Cloud Compatible: Seamlessly integrates with Salesforce Net Zero Cloud for sustainability tracking
- Lightning Web Components: Modern, responsive UI built with Lightning Web Components
- Flow Integration: Includes pre-built flows for automated record processing
- Energy Use Record Creation: Automatically creates
StnryAssetEnrgyUserecords from analyzed data
- Consumption Tracking: Monitors electricity usage across multiple sites
- Historical Data: Maintains comprehensive records of energy consumption patterns
- Multi-Site Support: Handles bills containing data for multiple locations
Before you begin, ensure you have the following:
- β Salesforce Net Zero Cloud licensed and configured
- β Git installed on your local machine
- β Salesforce CLI (latest version recommended)
- β Salesforce user with deployment permissions
- β Active Salesforce org (Sandbox or Developer Edition)
- β Einstein AI features enabled in your org
Choose your preferred deployment method:
Click the "Deploy to Salesforce" button above for instant deployment to your org.
For environments where GitHub access is restricted:
- Download the pre-built deployment package: NZC-LLM-Bill-Ingestor-Deploy.zip
- Navigate to Salesforce Workbench
- Login to your target org
- Go to Migration β Deploy
- Upload the zip file and deploy
For developers who prefer command-line tools:
git clone https://github.com/jvillalpando_sfemu/NZC-LLM-Bill-Ingestor.git
cd NZC-LLM-Bill-Ingestor# For sandbox/production orgs
sfdx auth:web:login --setalias MyOrg --instanceurl https://test.salesforce.com
# For developer orgs
sfdx auth:web:login --setalias MyOrg# Deploy all components
sfdx force:source:deploy -p force-app -u MyOrg
# Or use CumulusCI (if configured)
cci flow run dev_org --org devAfter deploying with any method above, ensure your org has:
- β Einstein AI Platform enabled
- β Prompt Template Builder access
- β Required Einstein credits available
- β Net Zero Cloud licensed and configured
- Navigate to your target Lightning Page (Home, Account, etc.)
- Edit the page using the Lightning App Builder
- Find the
Image Analyzercomponent in the Custom Components section - Drag the component to your desired location
- Configure component properties as needed
- Save and Activate the page
- Upload a bill file using the Image Analyzer component
- Click "Analyze with AI" to process the document
- Review the extracted data in the results panel
- Click "Create Energy Records" to automatically create
StnryAssetEnrgyUserecords - Monitor the progress and view created record links
- Energy records are automatically linked to your parent record
- View created records by clicking the provided links
- Track consumption patterns in Net Zero Cloud dashboards
graph TB
A[Lightning Web Component] --> B[AIFileAnalysisController]
B --> C[Einstein AI Prompt Templates]
B --> D[MultipleJSONParser]
B --> E[StnryAssetEnrgyUse Records]
C --> F[AI Analysis Results]
F --> G[JSON Parser]
G --> E
E --> H[Net Zero Cloud]
| Component | Description |
|---|---|
imageAnalyzer |
Lightning Web Component for file upload and AI analysis |
AIFileAnalysisController |
Apex controller handling AI processing and record creation |
MultipleJSONParser |
Utility class for parsing complex JSON structures |
Process_AI_Analysis_Result |
Flow for additional processing workflows |
We welcome contributions to improve the NZC LLM Bill Ingestor! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow Salesforce coding standards
- Include comprehensive test coverage (>75%)
- Update documentation for new features
- Test thoroughly in multiple org types
This project is licensed under the MIT License - see the LICENSE.md file for details.
- π Documentation: Check our Wiki for detailed guides
- π Issues: Report bugs via GitHub Issues
- π¬ Discussions: Join the conversation in GitHub Discussions
- π§ Contact: Reach out to the maintainers for enterprise support
Made with β€οΈ for the Salesforce Community
β Star this repo if you find it helpful!