About
## Challenges we ran into
## The AI customer kept answering itself
In early simulator calls, the customer would reply to its own last line whenever the agent paused. Its voice was leaking from the laptop speakers back into the microphone, getting transcribed and arriving as if the agent had said it. We already filtered echoes by comparing words, but in Hinglish the persona's lines are written in Devanagari while the transcriber often spelled the leaked audio in Latin letters, so nothing matched.
We rewrote the check to compare words by their consonant skeleton, so "कमीशन" and "commission" count as the same word. The browser and the server now share it, and it only applies to speech that overlaps the customer's playback, so an agent who repeats the customer's words back isn't muted.
## Replies to half-finished sentences
Speech-to-text commits a segment at every short pause, so the customer kept answering sentence fragments. We added a short settle window after each commit that extends while the agent is still speaking, and we cancel any reply already being generated when new speech arrives.
## The Telegram bridge wouldn't start
The bridge joins private Telegram calls with py-tgcalls and streams both voices to our server as 16 kHz PCM on separate channels. It crashed on startup with an ImportError because py-tgcalls 3.0 imports an error type that the original Pyrogram release doesn't have. We traced the failing import and switched to the maintained Pyrogram fork that py-tgcalls itself depends on.
## A copilot that invented violations
The live guardrail check sometimes reported policy breaches the agent never said, which is worse than no alert in the middle of a call. Every alert the model raises now has to quote the agent's exact words and is dropped if that quote isn't in the transcript. The red banner is reserved for breaches matched on the words actually spoken, like offering a discount or quoting a commission other than 20%.
## Login worked locally but not in production
After deploying, sign-in succeeded but every page bounced back to the login screen. The web app checks the session on its own server, and the auth cookie set by the API's subdomain never reached the web app's subdomain. We now scope the session cookie to the shared parent domain when the two run on different subdomains.
## Free-tier rate limits
One simulated call makes many model requests (customer replies, coaching, translation, scoring), and we kept hitting Gemini quotas mid-call. We built a key pool that rotates across keys, cools a key down per model after a rate-limit error, and falls back to a second provider when every key is exhausted.
## The problem it solves
> **Note:** the live link (onfloor.ashwathsoni.dev) no longer works. We took down the DigitalOcean instance OnFloor was deployed on after the hackathon. The code is on GitHub, and its README explains how to run OnFloor locally.
Call-centre sales agents learn on real customers. A new agent's first awkward pricing question, first angry merchant and first "can you do 10%?" all happen on a live call, with money and the company's name on the line. Supervisors can't listen in on every call, and QA usually reviews a small sample days later, when the feedback is too late to change anything.
OnFloor covers the whole loop around a sales call.
## Practice before the real call
The simulator puts the agent on a voice call with an AI customer. In our demo the agent works for Tomato, a food-delivery marketplace, and pitches its Max Grow ad plan to restaurant owners (Max Grow charges 20% only on the sales above the restaurant's usual daily sales, its DRR).
The call is auto-dialled and a ticket pops up in Nugget with the merchant's UID, top items and DRR. The agent then has to check who picked up, look the merchant up in a mock Merchant Dashboard, pitch the plan, set the campaign up in Ad Studio and dispose the call within 90 seconds, the way a real floor works. Each customer is a merchant profile paired with a behaviour: curious, sceptical, a hard bargainer, a frustrated owner, or a manager who can't decide. They speak English, Hindi or Hinglish.
With guidance turned on, the screen highlights the next step and the field to use, suggests answers to the customer's questions, and recommends the disposition after the call.
## Help during the real call
On a live Telegram call, OnFloor transcribes both sides as they speak and shows the agent hints pulled from the company's own documents through RAG, with English subtitles for Hindi and Hinglish. If the agent offers a discount or quotes the wrong commission, a guardrail appears while they are still talking, and sentiment and talk-ratio gauges show when the call is slipping.
## Feedback the moment the call ends
Every call, simulated or live, gets a scorecard within seconds. It scores objection handling, compliance, soft skills and tool accuracy, points to the moments that decided the call with the line a top agent would have used, and lists QA deductions such as misquoting the plan or disposing late.
## Practise the customer you just lost
After a live call, OnFloor extracts that customer's persona (their traits, objections and actual phrases) so the agent can replay the same customer in the simulator until they handle them well.
Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.











