# How it fits: your site, your CRM and Ruuster

Source: https://help.ruuster.com/idx/how-it-fits

> How your website, the Ruuster Listings API, your forms, your CRM and Ruuster work together, from a visitor's search to a lead in your CRM.

Your site has three parts that work together: the pages that show listings, the forms that capture
leads, and the CRM that holds those leads. Ruuster supplies the listings and their rules. Your CRM
keeps your leads.

## The path of a page

1. A visitor, or a search engine crawler, asks your site for a page such as
   `/neighborhoods/midtown`.
2. Your server calls the Ruuster Listings API with your **secret key**: a search for that area, and
   the area's market numbers if the page shows them.
3. The API answers with listings your boards allow you to show, already masked where an address is
   hidden, with each board's disclaimer and attribution, the page's head tags and its JSON-LD.
4. Your server renders the HTML and caches it (for example with Next.js ISR, five minutes).
5. In the browser, the interactive parts load on top: the map with your own Google Maps key, the
   search box through your own **listings route** (no key in the page), and the photo gallery.

## The path of a lead

1. A visitor fills in your registration, tour or contact form. The consent boxes start unchecked.
2. The form posts to a route on **your own server**, such as `/api/leads/fub`.
3. That route sends the lead to **your CRM**: Follow Up Boss, Sierra Interactive or Sure Send, with
   your site's name as the source.
4. Your agents follow up from your CRM. The Listings API sends no listing alert emails in version 1.
   If your brokerage is also on the Ruuster Platform and that CRM is connected to Ruuster, Ruuster
   picks up the person and the tags you set, and can start AI Nurture for them.

[Send leads and activity to your CRM](https://help.ruuster.com/idx/crm-overview) has the exact
requests for each CRM, and [Registration, tour and contact forms](https://help.ruuster.com/idx/recipe-forms)
has the forms.

## The path of a change

1. A listing's price or status changes on its board.
2. Ruuster sends your webhook a signed `listing.price_changed` or `listing.status_changed` event,
   or your server reads it from `GET /v1/changes`.
3. Your server re-renders that listing's page and the area pages that show it.
4. When a listing leaves the market, its page answers 410 and leaves your sitemap.

[Keeping pages fresh](https://help.ruuster.com/idx/guide-freshness) covers each step.

## Who does what

| Part | Ruuster | Your site |
|---|---|---|
| Listings, photos, open houses, market numbers | Supplies them under each board's rules | Shows them |
| Disclaimers and attribution | Supplies the exact text, logos and placement | Prints them where required |
| Head tags, JSON-LD, slugs | Builds them for every listing and results page | Puts them in the page |
| Pages, design, hosting | Supplies recipes and components | Builds and hosts the pages |
| Forms, consent text, accounts, favorites | Supplies form components and CRM routes | Owns the forms, the text and the data |
| Leads | Supplies the routes that send them. Stores none | Sends them to your CRM, which keeps them |
