Case study · OpenAI tool calling, Zoho CRM
A sales agent that never quotes an interest rate
A tool-calling agent qualifies equipment-finance leads in conversation, a deterministic lender-matrix engine decides which lenders fit, and leads land in Zoho CRM.
By Ali Raza, Senior AI EngineerOpenAI tool calling, deterministic lender-matrix engine, Zoho CRM
My sales agent never quotes an interest rate. That was a design decision, not a limitation.
The job
An equipment-finance broker wanted an agent that talks to prospective borrowers, qualifies them, and creates the lead in Zoho CRM with everything a broker needs to follow up.
The tempting design
Give the model the lender rules and let it answer. It is quick to build and it demos well. The problem: an LLM that is right 97% of the time quotes a wrong rate 3% of the time, and in finance that is a compliance problem.
What I built instead
- The model handles the conversation and extracts the borrower's details into a validated structure.
- A deterministic lender-matrix engine decides which lenders fit those details.
- The model only explains the result in plain language. It never computes or states a rate.
- The qualified lead is created in Zoho CRM through a narrow tool call.
Testing it like a product
I tested the agent with automated persona-based acceptance tests: scripted borrowers who try to push the agent into guessing. The agent passes when it holds the line and still collects what the broker needs.
The rule I took from it
If a wrong answer has a cost, the LLM should not be the one computing it.
The model is excellent at conversation and extraction. Matching against lender rules is a lookup, and lookups belong in code you can test.