~/projects/inquiry-hub
Inquiry Hub
An internal system that gathers travel inquiries arriving by email, messengers and the website into one list, so everyone can see who owns each one and how far it has got.


The problem
Inquiries came in by email, WhatsApp, Telegram and the website form. Keeping track of who was handling which one, and how far each had got, was hard, and so was keeping them in order.
Before and now
Before
- From everywhereemail · WhatsApp · Telegram · form
- Staffhandle each app separately
- No overviewwho has it, and how far it got
With inquiries spread across apps, some slipped through or were handled twice, and checking where things stood took time.
Now
- Forward to the botchats, voice and email as they are
- One listnumber · owner · status
- Voice to texttranscribed by SpeechKit, summed up by AI
- Synced with the CRMto the u-on CRM and the quote tool
Whatever channel an inquiry comes from, it is recorded the same way and keeps its history.
Architecture
- Browser · Mini AppReact SPA
- Traefik → nginxTLS · serves the SPA
- Go (one binary)bot · API · background jobs
- PostgreSQLthe outbox lives here too
- Yandex Cloudspeech · AI · files
- u-on CRMtwo-way sync
The Telegram bot, the API and the background jobs all run in one process.
Technical highlights
- The queue is an outbox tableAn inquiry and its delivery task are saved in one transaction, so nothing is lost while the CRM is down.
- No key? Only that feature stopsA feature without its service key is simply switched off instead of crashing the app.
- Bot state lives in the databaseA restart mid-conversation never loses a half-collected inquiry.
Outcome
Today every inquiry ends up in one list, whatever channel it came from.
Who owns it and how far it has got can be seen at a glance.
Staff just forward the chat, so the way they work barely changed.
