Alph4Centauri/email-summerization-ui
0
๐ง Email Summarizer Office Add-in Frontend
This is the frontend component of the Email Summarizer Office Add-in. It serves the static files (HTML, JavaScript, CSS) that make up the user interface for the Outlook add-in.
๐๏ธ Architecture
This is part of a two-space architecture:
- Frontend Space (This Space) - Serves Office add-in UI files
taskpane.html- Main UItaskpane.js- Business logicmanifest.xml- Office add-in configuration- Runs on CPU basic (free tier)
- Backend Space - AI summarization API
- Flask API with BART model
- Handles email/attachment processing
- Requires GPU tier for model inference
๐ง Configuration Required
1. Update Backend URL
Edit taskpane.js and replace:
API_BASE_URL: 'https://alph4Centauri-email-summarization-api.hf.space'With your actual backend space URL.
2. Update Manifest URLs
Edit manifest.xml and replace all instances of:
https://marco31-EmailParserUI.hf.space
https://alph4Centauri-email-summarization-api.hf.spaceWith your actual space URLs.
๐ฑ Office Add-in Installation
Development Installation
- Download the
manifest.xmlfile from this space - In Outlook, go to Get Add-ins โ My Add-ins โ Custom Add-ins
- Choose Add from file and upload the manifest.xml
- The add-in will appear in Outlook's ribbon
Production Installation
- Upload manifest.xml to your organization's add-in catalog
- Deploy through Microsoft 365 admin center
- Users will see it in their Outlook automatically
๐ Files Served
๐ CORS & Security
The nginx configuration includes:
- CORS headers for Office domains
- Security headers (X-Frame-Options, etc.)
- Proper MIME types for Office files
- Gzip compression
๐งช Testing Your Frontend
1. Check Files Load
- Visit
https://marco31-EmailParserUI.hf.space/taskpane.html - Should show the Email Summarizer interface
2. Check Manifest
- Visit
https://marco31-EmailParserUI.hf.space/manifest.xml - Should download the XML file
3. Test in Outlook
- Install the add-in using the manifest
- Open an email and click the "Summarize" button
- Should show your task pane
๐จ Common Issues
Frontend Won't Load
- Check that all URLs in manifest.xml are correct
- Ensure this space is Running status
- Verify nginx configuration is correct
Add-in Won't Install
- Check manifest.xml syntax with Office Add-in Validator
- Ensure all URLs in manifest are HTTPS
- Verify the add-in ID is unique
Can't Connect to Backend
- Update
API_BASE_URLin taskpane.js - Check backend space is running
- Verify CORS settings allow frontend domain
๐ Monitoring
Check these endpoints to verify everything works:
https://marco31-EmailParserUI.hf.space/taskpane.html- UI loadshttps://marco31-EmailParserUI.hf.space/manifest.xml- Manifest downloads- Backend health:
https://marco31-EmailParserUI.hf.space/health- API status
๐ Updates
To update the frontend:
- Edit the files in this space
- Frontend will auto-update (no Office restart needed)
- Users may need to refresh their task pane
To update the backend:
- Update backend space separately
- No frontend changes needed (unless API changes)
๐ก Cost Optimization
This frontend space can run on:
- CPU basic (free) - Perfect for static file serving
- No GPU needed
- Minimal resource usage
Total cost = Backend space cost only!
๐ Related Links
- [Backend Space]() - Add your backend space URL here
- Office Add-ins Documentation
- Hugging Face Spaces Guide
๐ Support
For issues:
- Check browser console for JavaScript errors
- Verify all URLs are correct in manifest.xml and taskpane.js
- Test backend API directly via health endpoint
- Check Office add-in logs in Outlook
Ready to use! Just update the URLs and install the manifest in Outlook.
