How sfdo-community-sprints/uk-housing-email2record works
AHA Email to Record is a Salesforce application that turns inbound email into an actionable record, then enriches it with structured fields through an Agentforce Prompt Template. The documented path runs from the Email Service and Apex parser through a record-triggered Flow to the prompt and back to the record; users access records through the E2R tab and Lightning page. The tree also contains Document AI Apex classes, but the available README excerpt does not describe their runtime relationships, so those are shown as an unconnected subsystem.
Main entry points: aha_E2R_Record_Populate_from_Email.flow-meta.xml Email enrichment Flow · aha_E2R_Record__c.object-meta.xml E2R record · aha_E2R_Emails.xml-meta.xml Email Service · aha_E2R_EmailParser.cls Email parser
Components 15
Email intake
- Email Service
force-app/main/default/emailservices/aha_E2R_Emails.xml-meta.xml - Email parser
force-app/main/default/classes/aha_E2R_EmailParser.cls
AI enrichment
- Email enrichment Flow
force-app/main/default/flows/aha_E2R_Record_Populate_from_Email.flow-meta.xml - Email prompt template
force-app/main/default/genAiPromptTemplates/aha_E2R_Record_Email.genAiPromptTemplate-meta.xml - Response type
force-app/main/default/lightningTypes/ahaE2RRecordOBLTv1/schema.json
Records and access
- E2R record
force-app/main/default/objects/aha_E2R_Record__c/aha_E2R_Record__c.object-meta.xml - Record fields
force-app/main/default/objects/aha_E2R_Record__c/fields - Records queue
force-app/main/default/queues/aha_E2R_Records.queue-meta.xml - Record panel Flow
force-app/main/default/flows/aha_E2R_Record_Panel.flow-meta.xml - Lightning record page
force-app/main/default/flexipages/aha_E2R_Record_Record_Page.flexipage-meta.xml - E2R Records tab
force-app/main/default/tabs/aha_E2R_Record__c.tab-meta.xml
Document AI
- Document AI extractor
force-app/main/default/classes/aha_E2R_DocumentAIExtractor.cls - Document AI queueable
force-app/main/default/classes/aha_E2R_DocumentAIQueueable.cls
Other components
- Email sender
- Salesforce user
Connections 11
- Email sender → Email Service: sends email
README.md - Email Service → Email parser: invokes handler
README.md - Email parser → E2R record: creates record
README.md - E2R record → Email enrichment Flow: triggers enrichment
README.md - Email enrichment Flow → Email prompt template: sends email body
README.md - Email prompt template → Response type: formats response
README.md - Email enrichment Flow → Record fields: populates fields
README.md - E2R record → Records queue: owned by
README.md - Salesforce user → E2R Records tab: opens records
README.md - E2R Records tab → Lightning record page: displays record
README.md - Lightning record page → Record panel Flow: hosts panel