How imranpathan0603/automomgeneratorforcrm works
Purpose and Deployment
This repository delivers an embedded Zoho CRM widget that turns a meeting transcript into AI-generated Minutes of Meeting (MOM), previews it in an A4-oriented interface, and distributes it as a PDF. The packaged Zoho artifact is dist/automom.zip; widget metadata is defined in plugin-manifest.json.
Runtime Entry Points
The browser widget is rooted at app/index.html, with presentation in app/css/style.css and nearly all client-side orchestration in app/js/script.js. It runs inside the Zoho CRM widget runtime and depends on Zoho SDK APIs plus browser-side PDF/rendering libraries referenced by the UI.
A separate Node service entry point exists at server/index.js; repository-level Node dependencies and scripts are defined by package.json.
Widget UI and State Boundary
app/index.html defines the workflow-facing surfaces: transcript/MOM controls, style selection, A4 preview, zoom/full-screen controls, and output actions. app/js/script.js owns UI state and transitions between input, generated MOM, preview, and export/distribution actions. app/css/style.css establishes the editable/printable preview presentation.
The important boundary is between browser-rendered MOM content and CRM-side operations: the widget presents and prepares document data, while Zoho functions/services supply transcripts and perform CRM/WorkDrive actions.
Transcript-to-MOM Generation Flow
The primary control flow begins from the current CRM meeting context, retrieves its transcript through configured Zoho CRM functions, and submits transcript content to Claude AI for generation. The selected MOM mode—points, summary, or detailed—controls the AI request/prompt and resulting document format.
Implementation is concentrated in:
• app/js/script.js
• app/index.html
• plugin-manifest.json
Claude AI is an external AI service; its key/call is expected to be mediated by configured CRM function infrastructure rather than exposed as a standalone frontend service in the tree.
Preview and PDF Production
Generated MOM text is inserted into the live A4 preview, where users can inspect, zoom, fit, reset, or expand the document before output. PDF generation renders this DOM-oriented preview using html2canvas and jsPDF, then produces a binary/file representation suitable for local download or Zoho upload flows.
Core paths:
• app/index.html
• app/js/script.js
• app/css/style.css
CRM Distribution and WorkDrive
After PDF generation, the widget supports four destinations: direct download, CRM attachment, email, and Zoho WorkDrive. Email flow creates/attaches a temporary PDF, invokes a CRM email function, then cleans up the temporary attachment. WorkDrive flow supports browsing folders, creating a folder, selecting a destination, and copying/saving the PDF.
These operations cross from the client widget into Zoho CRM custom functions and WorkDrive APIs; their identifiers are deployment configuration, not separate local implementations. Relevant packaging/runtime files are:
• app/js/script.js
• plugin-manifest.json
• dist/automom.zip
Infrastructure and Release Artifacts
The frontend is static HTML/CSS/JavaScript packaged for Zoho. Node runtime material is present in server/index.js, with package.json and package-lock.json controlling its dependencies. TLS certificate/key files (cert.pem, key.pem) indicate the server may be intended for HTTPS local or hosted integration use. The deployable widget bundle is dist/automom.zip.
Main entry points: script.js Workflow controller · index.html Live A4 preview · automom.zip Deployable bundle · style.css Preview styles
Components 16
Zoho Widget
Static browser application running inside Zoho CRM.
- Widget UI · Defines controls, A4 preview, and output surfaces.
app/index.html - Workflow controller · Manages UI state, generation, preview, export, and distribution.
app/js/script.js - Preview styles · Provides editable and printable A4 presentation.
app/css/style.css - Generated MOM · Points, summary, or detailed meeting minutes rendered into the preview.
- Live A4 preview · Supports inspection, zoom, fit, reset, and full-screen viewing.
app/index.html - PDF renderer · Uses html2canvas and jsPDF to turn the DOM preview into a PDF.
app/js/script.js
Zoho Services
Configured CRM functions and WorkDrive APIs.
- Zoho CRM widget runtime
- Current meeting context
- CRM custom functions · Retrieves transcripts and performs CRM-side actions including AI mediation.
- Zoho WorkDrive · Browses, creates, and selects destination folders for PDFs.
Node Service
Separate HTTPS-capable Node runtime.
- Service entry · Separate service runtime, potentially HTTPS-enabled.
server/index.js - Node dependencies
package.json
Packaging
- Widget manifest · Defines widget metadata and deployment configuration.
plugin-manifest.json - Deployable bundle · Packaged widget artifact.
dist/automom.zip
Other components
- Claude AI · Generates MOM content for the selected mode.
- PDF output · Used for download and Zoho distribution destinations.
Connections 20
- Zoho CRM widget runtime → Widget UI: hosts
- Widget UI → Workflow controller: user actions
- Preview styles → Live A4 preview: styles
- Workflow controller → Zoho CRM widget runtime: uses SDK
- Workflow controller → Current meeting context: reads context
- Workflow controller → CRM custom functions: invokes
- CRM custom functions → Claude AI: mediates request
- Claude AI → Generated MOM: generated minutes
- Workflow controller → Generated MOM: selects mode
- Generated MOM → Live A4 preview: renders into
- Workflow controller → Live A4 preview: controls view
- Live A4 preview → PDF renderer: DOM capture
- PDF renderer → PDF output: produces
- PDF output → CRM custom functions: attach or email
- PDF output → Zoho WorkDrive: save or copy
- Widget UI → Deployable bundle: packaged in
- Workflow controller → Deployable bundle: packaged in
- Preview styles → Deployable bundle: packaged in
- Widget manifest → Deployable bundle: defines package
- Node dependencies → Service entry: dependencies and scripts