> For the complete documentation index, see [llms.txt](https://docs.rainbird.ai/rainbird/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainbird.ai/rainbird/getting-started/use-cases/mortgage-decisioning-for-an-ai-lending-agent.md).

# Mortgage decisioning for an AI lending agent

**Decision:** Banking — Mortgage underwriting.   **Pattern:** AI agent decision layer

**Use case:** An AI lending agent handles the mortgage application conversation and gathers everything needed to assess it, but the approve, refer, or decline decision itself is delegated to Rainbird — the agent acts only on the outcome it gets back, never on its own judgement of the application. See the [UK Mortgage Underwriting & Affordability accelerator](https://rainbird.ai/accelerators/mortgage-underwriting-affordability) for a ready-built starting point.

**End-user:** Mortgage underwriter, reviewing agent-assisted applications that Rainbird has referred

**The decision:** Whether a mortgage application should be approved, referred for manual underwriting, or declined — based on stressed affordability, credit history, and the lender's property policy.

**The knowledge graph:** Encodes the lender's affordability stress-testing rules, credit policy, and property criteria, so every application is judged against the same standard regardless of which channel or agent it came through.

**Integration:** The AI agent conducts the application conversation and assembles the supporting data — income, outgoings, credit file, property valuation — from the applicant and connected systems. Once assembled, that data is passed to Rainbird as a single tool call over MCP or API. Rainbird returns approve, refer, or decline with its reasoning, and the agent acts strictly on that outcome: progressing an approval, handing a referral to a human underwriter, or communicating a decline. At no point does the agent make or override the underwriting decision itself.

**Evidence:** Every decision returns the affordability stress test result, the specific credit and property policy checks applied, and a rationale for the outcome — giving the underwriter, and the applicant where required, a clear explanation for every approve, refer, or decline.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.rainbird.ai/rainbird/getting-started/use-cases/mortgage-decisioning-for-an-ai-lending-agent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
