How yuvi-prog/tidio_converstation_mbtech works
This service collects chat messages, waits until a visitor’s conversation has been inactive, summarizes it, and emails a recap with a transcript link. The main flow begins at the chat-event endpoint and continues through polling, persistence, summarization, and delivery; a separate HTTP route serves stored transcripts. Gemini summarization and SendGrid delivery are visible in source, while the README is empty. The graph reflects the sampled files; the external chat client’s integration details are not shown.
Main entry points: poller.js Session poller · index.js HTTP service · db.js SQLite database · summarize.js Summary builder
Components 10
Collection and entrypoints
- HTTP service
index.js - Poll scheduler
index.js
Session processing and delivery
- Session poller
poller.js - Summary builder
summarize.js - Email sender
email.js
Persistence and transcript access
- Transcript route
transcript.js - SQLite database
db.js
Other components
- Chat client
- Gemini API
- SendGrid
Connections 10
- Chat client → HTTP service: posts events
- HTTP service → SQLite database: writes events
index.js - HTTP service → Transcript route: mounts route
index.js - Poll scheduler → Session poller: runs poll
index.js - Session poller → SQLite database: reads and writes
poller.js - Session poller → Summary builder: requests summary
poller.js - Summary builder → Gemini API: generates summary
summarize.js - Session poller → Email sender: sends recap
poller.js - Email sender → SendGrid: dispatches email
email.js - Transcript route → SQLite database: loads transcript
transcript.js