A powerful AI-powered solution for automated bill processing and energy consumption tracking in Salesforce Net Zero Cloud
One-click deployment to your Salesforce org
Note: If you encounter authentication issues, you may need to authorize the GitHub Salesforce Deploy Tool to access the
salesforce-miscorganization. Alternatively, use the Salesforce CLI deployment method below.
- 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
- 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 (Setup > Einstein Setup > Enable Turn on Einstein, if it's not already turned on)
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:
- Direct download: NZC-LLM-Bill-Ingestor-Deploy.zip
- Or download from the GitHub Releases tab
- Navigate to Salesforce Workbench
- Login to your target org
- Go to Migration β Deploy
- Upload the zip file and deploy
Alternative Tools: You can also deploy using Salesforce Inspector or the Ant Migration Tool.
For developers who prefer command-line tools:
git clone https://github.com/salesforce-misc/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 (Salesforce CLI v2)
sf project deploy start --source-dir force-app --target-org MyOrg
# Or using legacy sfdx command
sfdx force:source:deploy -p force-app -u MyOrg
# Or use CumulusCI (if configured)
cci flow run dev_org --org devNote: This accelerator is compatible with CI/CD tools like Gearset, Copado, and Flosum.
After deploying with any method above, complete these manual steps:
-
Enable Einstein AI Platform
- Navigate to Setup β Einstein Setup
- Toggle on Turn on Einstein if not already enabled
-
Access Prompt Template Builder
- Ensure you have access to Prompt Template Builder (Setup > Einstein Generative AI > Prompt Builder)
- Verify the
Analyze_Filesprompt template is active
-
Verify Einstein Credits
- Check that you have sufficient Einstein credits available (check Digital Wallet App, see here for required permissions)
- Credits are consumed per AI analysis request
-
Configure Net Zero Cloud
- Ensure Net Zero Cloud is licensed and configured
- Verify
StnryAssetEnrgyUseobject is available
-
Add Component to Lightning Pages
- Follow the Usage instructions below to add the component to your pages
- Navigate to the Stationary Asset Environmental Source Object Lightning Page
- Edit the page using the Lightning App Builder
- Find the
Image Analyzercomponent in the Custom Components section - Drag the component to your desired location
- 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
This accelerator contains the following metadata:
- 2 Lightning Web Components (
imageAnalyzer,energyRecordDetail) - 2 Apex Classes (
AIFileAnalysisController,MultipleJSONParser) - 1 Einstein AI Prompt Template (
Analyze_Files)
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 |
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.
Found a bug or have a feature request? Please report it via GitHub Issues.
When reporting bugs, please include:
- Steps to reproduce the issue
- Expected vs. actual behavior
- Salesforce org version and edition
- Screenshots or error messages (if applicable)
- π 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
This accelerator is open-source, not an official Salesforce product, and is community-supported. Salesforce does not provide official support for this accelerator. Use at your own risk and test thoroughly in a sandbox environment before deploying to production.
Made with β€οΈ for the Salesforce Community
β Star this repo if you find it helpful!