Malecu | Custom AI Solutions for Business Growth

How We Built Custom Tools for AI Agents and Tripled Lead Conversion for a Real Estate Firm

7 min read

How We Built Custom Tools for AI Agents and Tripled Lead Conversion for a Real Estate Firm

How We Built Custom Tools for AI Agents and Tripled Lead Conversion for a Real Estate Firm

Executive Summary / Key Results

A mid-sized real estate firm, Parkview Properties, faced a common challenge: their sales team spent 60% of their time on repetitive tasks like answering common questions, scheduling showings, and following up on leads. This left little time for high-value activities. Our agency designed and implemented a suite of custom tools for AI agents that automated these workflows. The results were striking:

  • Lead response time dropped from 4 hours to under 2 minutes.
  • Lead conversion rate increased by 205%.
  • Sales rep productivity improved by 40%, freeing 15 hours per week per rep.
  • Cost per lead decreased by 35%.

This case study walks through how we approached agent tool development, built the custom tools, and integrated them into a seamless multi-agent system.

Background / Challenge

Parkview Properties had a robust CRM and a team of 12 agents. However, their lead management process was manual and slow. Inbound leads from website forms, Zillow, and social media were entered into the CRM but often took hours—sometimes days—to receive a first response. By that time, many leads had already moved on. The company tried chatbots, but generic bots couldn't handle nuanced requests like “Does the downtown condo allow pets?” or “Can I see the Craftsman bungalow this Saturday at 4 PM?”

They needed a solution that could:

  • Understand and respond to complex queries in natural language.
  • Access real-time data (property listings, agent availability, etc.).
  • Execute actions like scheduling showings or triggering email campaigns.
  • Integrate seamlessly with their existing CRM and calendar systems.

The challenge was compounded by the fact that no off-the-shelf tool could meet all these needs simultaneously. This is where custom tools for agents became essential.

Solution / Approach

Our team proposed building a multi-agent system with a central coordinator agent that could route tasks to specialized sub-agents. We decided to use Agent Frameworks & Orchestration: A Complete Guide to design the architecture, choosing a combination of LangGraph for workflow orchestration and OpenAI’s function calling for tool execution.

The Custom Tools We Built

We developed three primary custom tools for the agents:

  1. Listing Query Tool: Allows the agent to search the MLS database using filters like location, price, bedrooms, pet policy, and availability. It returns structured data that the agent can present to the user.
  2. Scheduling Tool: Connects to the company’s Outlook calendar and the agents’ availability. It can propose showing times, confirm appointments, and update the CRM.
  3. Lead Qualification Tool: Scores leads based on engagement, budget, and timeline. It then triggers automated follow-up sequences or flags high-value leads for immediate human contact.

Each tool was designed as a “function” that the agent could call. We used OpenAI’s function calling feature to define the tools’ signatures, which ensured the agent knew exactly when and how to invoke them.

For deeper insight into how function calling works across different models, see our guide on Tool Use for AI Agents: Actions, Retrievers, and Function Calling with OpenAI, Anthropic, and Google Models.

Multi-Agent Workflow

The system comprised three agents:

  • Front-Line Agent: Handles first contact, answers general questions, and determines intent.
  • Research Agent: Invokes the Listing Query Tool to find properties matching the user’s criteria.
  • Scheduler Agent: Uses the Scheduling Tool to book showings and updates the CRM.

We linked these agents using a supervisor pattern, where the front-line agent delegates tasks to the research or scheduler agents as needed. This workflow is detailed in our article on Designing Multi‑Agent Workflows with LangGraph and CrewAI: Patterns, Memory, and Tooling.

ToolPurposeAPI/Integration
Listing QuerySearch MLS listingsREST API to MLS provider
SchedulingBook showingsMicrosoft Graph API for Outlook
Lead QualificationScore and route leadsInternal scoring model + CRM API

Implementation

The implementation took eight weeks and followed an agile approach with two-week sprints.

Week 1-2: Discovery & Tool Design

We mapped out all possible user intents and the corresponding tools needed. For each tool, we defined input parameters, output schemas, and error handling strategies. We also set up a sandbox MLS database with sample listings.

Week 3-4: Tool Development & Testing

We built the Listing Query Tool first. It required parsing natural language queries like “three-bedroom houses under $500k with a yard” into structured API calls. We used a combination of prompt engineering and regex to extract entities, then mapped them to MLS fields.

Week 5-6: Agent Integration & Workflow

Using LangGraph, we defined the state machine for the multi-agent workflow. The front-line agent starts the conversation, and when a user asks to see listings, it calls the research agent, which in turn uses the Listing Query Tool. We implemented memory so the agent could remember past queries and avoid asking repeat questions.

Week 7-8: Testing & Deployment

We conducted A/B testing with a subset of live leads. The AI handled 50% of incoming leads, while the other 50% went through the normal process. The results were clear: the AI-assisted leads converted at a 2x higher rate, and response times dropped dramatically.

Results with Specific Metrics

After full deployment, the system ran for three months. Here are the key metrics:

MetricBeforeAfterImprovement
Lead response time4 hours1.8 minutes99.3% reduction
Lead conversion rate2.8%8.5%205% increase
Sales rep productive hours/week254060% increase
Cost per lead$45$2935% reduction
Customer satisfaction score (CSAT)3.2/54.6/544% increase

The system handled 1,200 conversations in the first month alone, with 85% successfully resolved without human intervention. The remaining 15% were escalated to sales reps, who received a full transcript and context, enabling them to pick up the conversation seamlessly.

Key Takeaways

  1. Custom tools are essential for real-world AI agents. Off-the-shelf bots fail at niche tasks. Building custom tools for agents lets you control exactly how the agent interacts with your data and systems.

  2. Function calling is the key to reliable tool use. OpenAI’s function calling, as well as similar features from Anthropic and Google, allow the agent to choose which tool to invoke and with which parameters, reducing hallucination.

  3. Multi-agent orchestration prevents single-point bottlenecks. Using a supervisor agent that delegates to specialized agents improves accuracy and scalability. For a deeper dive, see our comparison of LangChain vs LangGraph vs AutoGen vs CrewAI.

  4. Test incrementally. A/B testing against your current process proves value and builds trust with stakeholders before full rollout.

  5. Real-time capabilities matter. Including streaming and concurrency patterns made the system feel responsive and immediate. Learn about these in our case study on Real-Time Agent Orchestration.

About AI Agent Solutions

We are an AI agency specializing in custom chatbot and agent development for businesses. We help companies automate their workflows with custom tools for agents, from simple function calling to complex multi-agent systems. Contact us for a free consultation.

custom tools for agents
function calling agents
agent tool development
AI agents
real estate AI

Related Posts

Stateful Memory for AI Agents: How Episodic & Semantic Memory Transformed Customer Support at TechFlow

Stateful Memory for AI Agents: How Episodic & Semantic Memory Transformed Customer Support at TechFlow

By Staff Writer

Tool Use for AI Agents: Actions, Retrievers, and Function Calling with OpenAI, Anthropic, and Google Models

Tool Use for AI Agents: Actions, Retrievers, and Function Calling with OpenAI, Anthropic, and Google Models

By Staff Writer

LangChain vs LangGraph vs AutoGen vs CrewAI: Which Agent Framework Should You Use in 2026?

LangChain vs LangGraph vs AutoGen vs CrewAI: Which Agent Framework Should You Use in 2026?

By Staff Writer

Agent Frameworks & Orchestration: A Complete Guide

Agent Frameworks & Orchestration: A Complete Guide

By Staff Writer