Skip to content

assistant-ui/closingwtf-mortgage-rates

Repository files navigation

ClosingWTF Mortgage Rate Copilot

Medium blog post explaining project: LLMs + Mortgage Rates: An intuitive financial chatbot built with ClosingWTF, assistant-ui, and NextJS

This open source mortgage rate copilot is a collaboration between ClosingWTF and assistant-ui. It's an example of using assistant-ui's powerful chat component and tools to retrieve live realtime mortgage data from ClosingWTF's api. This shows how a financial institution, real estate firm, mortgage company, etc can build their own powerful chatbot which incorporates forms, custom tools, and realtime data sources.
Screenshot 2025-04-27 at 12 03 24 PM Screenshot 2025-04-27 at 12 02 38 PM Screenshot 2025-05-01 at 4 14 56 PM

Web, Chat & Data Architecture

1_nP-CB8rD2NVh2NM2qJP8Ew

Web Framework: NextJS

Typescript/React library for AI Chat: assistant-ui

Mortgage Rates API: ClosingWTF

LLM API Middleware: vercel ai-sdk

Chat Thread Storage: assistant-ui cloud

LLM ProviderAnthropic

Getting Started

First, add your Anthropic API key to .env.local file:

ANTHROPIC_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Optionally, add your assistant-ui cloud frontend key to auto save and persist threads.

NEXT_PUBLIC_ASSISTANT_BASE_URL=XXXX

Then, install dependencies

bun install

or

npm install

or

pnpm install

Then, run the development server:

bun dev

or

npm dev

or

pnpm dev

Open http://localhost:3000 with your browser to see the result.

About

A mortgage rate copilot chat presented by ClosingWTF and assistant-ui

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published