---
title: "Build a Leasing Chatbot for Apartment Tour Requests"
titleOverride: "Apartment Leasing Chatbot for Tour Requests in Google Sheets"
pubDate: 2026-11-26
description: "Build an apartment leasing chatbot that checks availability in Google Sheets, asks the renter to confirm and sends one tour request to the leasing desk."
author:
  name: Piotr Grudzień
  image: /blog-assets/authors/piotr_grudzien.jpg
image:
  url: /blog-assets/posts/apartment-availability-viewing-request_bg.webp
  alt: "Maple Court and the Google Sheets Requests tab showing a confirmed MAP-11 viewing request in row 2."
tags: [tutorials]
articleCta:
  title: "Try the viewing request with your own listings"
  subtitle: "Start with one open apartment and one on hold. Follow a renter’s request all the way to the desk."
  button: "Create a practice Agent"
  href: https://app.quickchat.ai/register
faq:
  - question: "Can an apartment leasing chatbot check current availability?"
    answer: "Yes. Give it a read Action for the listing board and ask it to check on every availability question. It reads the desk’s latest entry again before sending a viewing request. Reading and appending are separate calls, so the desk should recheck availability when it confirms the appointment."
  - question: "Can this chatbot book an apartment tour automatically?"
    answer: "This setup collects a preferred viewing window and sends it to the leasing desk. A staff member checks the calendar and replies to confirm the appointment. Automatic booking would need a scheduling system that checks and reserves an available slot."
  - question: "What happens if the apartment goes on hold before the renter confirms?"
    answer: "The Agent reads the listing again after the renter says yes. If the status has changed to held, it tells the renter and leaves the Requests tab alone. Staff can restore the unit to open when it becomes available again."
  - question: "Can I use a rental spreadsheet I already have?"
    answer: "Copy the public listing fields into the spreadsheet created by the Quickchat AI Google Sheets connection. The connection uses per-file access. Changing the file ID in an Action does not grant access to another private Google Sheet."
  - question: "Can renters see other people’s viewing requests?"
    answer: "The only read Action in this setup points to the Listings range. The other Action can append a row to Requests. Keep the Google file private and give sheet access only to the people who handle enquiries."
  - question: "What happens if the renter confirms the same viewing twice?"
    answer: "After a successful append, Quickchat AI saves the row address in that conversation. The guard blocks all further sends in the same chat, including a request for a different unit. Start a new conversation for a second viewing. To change a request already sent, contact the desk."
howto:
  - name: "Connect Google Sheets and prepare two tabs"
    text: "Connect Google Sheets in a practice Agent. Copy the three units to Listings and the four queue headers to Requests in the app-created spreadsheet."
  - name: "Read the current apartment listings"
    text: "Create a GET Action for Listings!A1:F4. Add the Main Prompt, ask for an open unit with a bike locker and check MAP-11 against the board."
  - name: "Configure the viewing request append"
    text: "Create a POST Action for Requests. Map the confirmed unit, time window, email and conversation link. Save the returned row address and add the run condition."
  - name: "Send one confirmed request from the website"
    text: "Install the Widget on a test page. Compare the empty queue with the summary, approve the send, then repeat it and verify there is one matching row."
  - name: "Test a listing that changes during the chat"
    text: "Start a fresh request, place MAP-11 on hold before confirming and verify that the next read catches it and the request count stays the same."
---

“Which open apartment has a bike locker?” At Maple Court, two apartments have lockers. One is already on hold. The leasing chatbot checks the register and offers **MAP-11 at $1,160 a month**. The renter would like to see it on Friday.

The renter gives the website widget a Friday time window and an email. Row 2 in Google Sheets stays empty until they say **“Yes, send the viewing request.”** When we tried it, Google returned `Requests!A2:D2`. The desk received the unit, window, email and a link to the chat. A staff member still confirms the appointment.

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 725 / 376; --capture-width: 42rem">

![The Google Sheets toolbar and worksheet tabs surround the Requests grid. Row 2 contains MAP-11 and the Friday viewing window.](https://quickchat.ai/_astro/finish-line.ml3Sixtp_ZJRHTp.webp)

<figcaption><span>Open the Requests tab at the bottom. Read across row 2 for the apartment, time window, reply address and private link back to the conversation.</span></figcaption>
</figure>

You’ll build that exchange in Quickchat AI, then try it a second time with one change. Put MAP-11 on hold while the next renter is deciding, and watch what happens to row 3.

[Download the Maple Leasing practice kit](https://quickchat.ai/blog-assets/downloads/maple-leasing-practice-kit.zip). Open `maple-leasing-worked-example.xlsx` to inspect the completed row. For the build, use `maple-leasing-starter.xlsx`, which leaves the queue empty. The screenshots show the English interface and the practice Agent’s original English replies. Select a screenshot to enlarge it. `START-HERE.txt` includes the four original English messages for [the website test](#website-test). The widget and spreadsheet in the walkthrough belong to the same fictional property.

## 1. Where does the leasing chatbot get apartment availability?

Give the chatbot one place to read from and the desk one place to receive enquiries. Both tabs belong in the spreadsheet that Quickchat AI creates when you connect Google.

<div class="tutorial-step-pair">

1. Sign in to [Quickchat AI](https://app.quickchat.ai/) and choose **Set up manually** on the Getting Started screen. If you already have an Agent, open its name at the top of the sidebar and choose **Add new AI Agent → Set up manually**. Have a Google account ready for the spreadsheet. The kit supplies the property page for the website test.

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 40 / 39; --capture-width: 24rem">

![The Quickchat AI Getting Started screen with the Set up manually option in the setup choices.](https://quickchat.ai/_astro/new-agent.PyxqJ_wG_ZVCRyK.webp)

<figcaption><span>Start with a blank Agent so you can recognize the two Actions you add in this tutorial.</span></figcaption>
</figure>

2. On **Identity**, enter `Maple Leasing` under **Name your AI Agent**. Under **Describe what you want your agent to do**, enter `Help renters find available Maple Court apartments and send viewing requests.` Click **Next**. For this build, leave **Knowledge Base**, **External apps** and **Deployment** empty and click **Next** on each. On **Choose your plan**, select **Skip for now**. If a discount offer appears, choose **Copy code & use later**. You’ll arrive in **AI Preview**. Personal practice is available on Free. For a commercial site, choose a plan that includes commercial use. [Quickchat AI plans](https://quickchat.ai/docs/pricing-and-plans).

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 96 / 97; --capture-width: 24rem">

![The Identity step in the Quickchat AI setup wizard with Maple Leasing’s name, its purpose and the Next button.](https://quickchat.ai/_astro/first-setup.DLqUiLCm_1nOFEF.webp)

<figcaption><span>The apartment data will come from the sheet. You can finish setup with the Knowledge Base empty.</span></figcaption>
</figure>

</div>

3. From the sidebar, go to **Actions & MCPs → Add Action → Google Sheets → Connect Google Sheets**. Choose the Google account that will own the demo file and approve the requested file access. Back in Quickchat AI, click **Open sheet**. Leave that tab open. In the Quickchat AI tab, close the connection dialog and use the switch on the generated `log_lead_to_google_sheet` Action to turn it off. The spreadsheet still has its original `Leads` tab. [Google Sheets connection guide](https://quickchat.ai/docs/ai-agent/google-sheets).

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 175 / 67; --phone-ratio: 418 / 367; --capture-width: 44rem">

<picture><source media="(max-width: 30rem)" srcset="/assets/blog/posts/mapleLeasing/connect-mobile.webp" width="836" height="734">![The Quickchat AI Actions & MCPs screen with the Google Sheets connection dialog open and the Open sheet link visible.](https://quickchat.ai/_astro/connect.XhjUDju8_Z2bMMdh.webp)</picture>

<figcaption><span>Open the file from the connected Agent. The integration uses Google’s per-file permission.</span></figcaption>
</figure>

4. In Google Sheets, sign in with the account that owns the connected file. Choose **File → Import → Upload**, select `maple-leasing-starter.xlsx`, choose **Insert new sheet(s)** and click **Import data**. At the bottom, look for **Listings** and **Requests** beside **Leads**. Open **Requests** and check that row 1 has four headings and row 2 is empty. Keep the file’s sharing set to **Restricted**. [Google’s illustrated import instructions](https://support.google.com/docs/answer/9331167?hl=en#2.4).

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 721 / 351; --capture-width: 38rem">

![The Google Sheets window with its grid and bottom tab bar. The menu attached to the Listings tab includes Rename.](https://quickchat.ai/_astro/sheet-tabs.bra5PWRe_aByos.webp)

<figcaption><span>Keep this Google Sheets window open. The desk updates availability in <strong>Listings</strong> and receives enquiries in <strong>Requests</strong>.</span></figcaption>
</figure>

<details class="tutorial-artifact">
<summary>Enter the two tabs by hand</summary>

In the bottom-left corner of Google Sheets, click **+**. Open the arrow beside the new tab’s name, choose **Rename**, type `Listings` and press Enter. Repeat for `Requests`.

Paste this block into **Listings**, starting at A1. The rent is monthly in US dollars. The room count is the number of rooms listed by the desk.

```text
unit	status	rooms	bike_locker	step_free	monthly_usd
MAP-11	open	1	yes	yes	1160
MAP-22	held	2	yes	no	1420
MAP-34	open	2	no	yes	1380
```

Paste this single header row into **Requests**, starting at A1.

```text
unit	preferred_window	reply_email	conversation
```

</details>

5. Copy the connected file’s ID from its address bar. In an address like `docs.google.com/spreadsheets/d/FILE_ID/edit#gid=0`, copy only the characters where `FILE_ID` appears. Use that same ID in both Action URLs below. The `gid` selects a tab inside the file. The two Action URLs select their tabs by name.

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 2175 / 1208; --capture-width: 42rem">

![The Maple Leasing workbook shows MAP-11 open at $1,160, MAP-22 held, and MAP-34 open without a bike locker.](https://quickchat.ai/_astro/listings.BFp2s1G6_Z2ji8K8.webp)

<figcaption><span>Find MAP-22 on row 3 and read across. It has a bike locker but is held. MAP-34 on row 4 is open but has no locker.</span></figcaption>
</figure>

## 2. How does the chatbot find the right apartment?

Give the Agent a read-only Action with a fixed range. It can read the six public listing fields when someone asks a question. The renter supplies the search criteria in chat. The tab and range stay fixed in the Action.

1. Return to Quickchat AI. In **Actions & MCPs → Add Action → API Action**, choose **Create manually**. Enter `read_listing_board` in **API Action Name**. Keep **When to run** set to **AI decides**. Leave **What to ask the user first** empty. The Agent already knows which six columns to read.

<figure id="action-setup" class="tutorial-context tutorial-compact" style="--capture-ratio: 5 / 2; --phone-ratio: 209 / 225">

<picture><source media="(max-width: 30rem)" srcset="/assets/blog/posts/mapleLeasing/manual-action-mobile.webp" width="836" height="900">![The Quickchat AI Actions & MCPs page with the API Action setup open and Create manually visible.](https://quickchat.ai/_astro/manual-action.L4afvOUh_2ijFWl.webp)</picture>

<figcaption><span>Choose <strong>API Action</strong> both times you build a recipe. The first Action reads Listings. The second will write to Requests.</span></figcaption>
</figure>

2. In **API Endpoint**, choose **GET** and paste the URL below with your file ID. Open **Headers**, click **+** and enter `Authorization` under **Key**. Paste `Bearer {{google_sheets_access_token}}` under **Value**, including the space after `Bearer`. The editor can show the Google placeholder in red. Quickchat AI fills it from this Agent’s Google connection when the Action runs. Keep the **Body** empty. Google will return the rent as a number even if the sheet displays it as currency. [Google Sheets values.get](https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/get).

```text
https://sheets.googleapis.com/v4/spreadsheets/FILE_ID/values/Listings!A1:F4?valueRenderOption=UNFORMATTED_VALUE
```

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 64 / 29; --capture-width: 42rem">

![Quickchat AI’s GET method, the fixed Listings range and the Authorization header containing the Google Sheets token placeholder.](https://quickchat.ai/_astro/read-editor.f0911L9R_qX4GO.webp)

<figcaption><span>The read range ends at F4. It includes the header and all three apartments. The complete URL and header value are copyable above.</span></figcaption>
</figure>

3. In **API Action Description**, enter the instruction below. Click **Save changes**. If the Action is off, select **Enable** in the editor, or turn on its switch on the Actions list.

```text
Read current unit status, amenities, room count and USD rent from the public listings.
Call for each listing question and again immediately after the renter confirms, before sending the viewing request.
Treat the first row as column headers.
```

4. In **Identity → AI Persona → Main Prompt**, click **Edit** and replace the starter text with the prompt below or the contents of `main-prompt.txt`. The editor saves automatically. The last lines will handle viewing requests once the second Action is in place.

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 320 / 141; --capture-width: 42rem">

![Quickchat AI Identity with AI Persona selected and the Main Prompt editor open on the right. The instructions ask the Agent to wait for separate confirmation.](https://quickchat.ai/_astro/main-prompt.DS8okeYX_22SIie.webp)

<figcaption><span>Both Actions share these instructions. The sentence about a separate confirmation is what asks the Agent to pause after it has the renter’s email.</span></figcaption>
</figure>

<details class="tutorial-artifact">
<summary>Copy the Maple Leasing Main Prompt</summary>

```text
You are the leasing desk assistant for Maple Court.
Be concise.
Read the listing board whenever a renter asks about availability, rent or features.
Read the header row before matching all requested features.
Describe only open units, give the unit code and monthly rent in USD, and state plainly when there is no match.
For a viewing, collect the chosen unit, preferred date and time window with its time zone, and a reply email.
Restate all three and ask permission to send.
Wait for a separate confirmation.
After confirmation, read the listing board again before calling send_viewing_request.
If the chosen unit is held, do not send anything.
Offer to check another option or to check back later.
If it is still open, send one viewing request for the confirmed details.
Say it was sent only after a successful write.
The leasing desk will confirm the appointment.
A repeat confirmation does not authorize another request.
A cancellation before confirmation ends the request.
Never read or disclose other enquiries.
If an append outcome is uncertain, have staff check the queue before trying again.
Use ordinary written English, with no preamble about how tools work.
```

</details>

5. Open **AI Preview** and ask, *“Which open apartment has a bike locker?”* Look for **MAP-11 at $1,160 per month**. To check the underlying call, open the read Action, select **Test Response**, and click the triangular **Test the API** button. A successful GET returns `values`, with the column names first and three apartment rows below.

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 2025 / 863; --capture-width: 43rem">

![Maple Leasing answers the bike-locker question in the website widget. MAP-11 is open and the listed rent is USD 1160 per month.](https://quickchat.ai/_astro/match.Dp3nGEjd_Z3rXN5.webp)

<figcaption><span>Narrow the search. Ask for an open <em>two-room</em> apartment with a bike locker. Neither of the two-room listings qualifies.</span></figcaption>
</figure>

## 3. How does a viewing request become a row in Google Sheets?

The second Action appends one row to **Requests**. The Agent gets the unit from the latest read and the preferred window and email from the renter. Quickchat AI supplies the conversation link so a colleague can open the original exchange.

1. Create another manual **API Action** named `send_viewing_request` with **When to run → AI decides**. Under **What to ask the user first**, click **+** (**Add item**) three times. Set **Format** to **Text**, fill **Name** and **Description** from the table, and check **Required** on each row. Leave **Default value** at **No default**.

| Name | Description |
| --- | --- |
| `unit` | The unit code the renter confirmed, exactly as it appears on the open listing. |
| `preferred_window` | The date, start and end times, and time zone the renter approved. |
| `reply_email` | The email the renter supplied for the leasing desk to contact them. |

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 128 / 49; --phone-ratio: 418 / 403; --capture-width: 42rem">

<picture><source media="(max-width: 30rem)" srcset="/assets/blog/posts/mapleLeasing/required-inputs-mobile.webp" width="836" height="806">![Three required Text inputs in the Quickchat AI Action editor named unit, preferred_window and reply_email.](https://quickchat.ai/_astro/required-inputs.CrdCnUgM_Z110als.webp)</picture>

<figcaption><span>The Agent gets the unit, time window and reply email from the renter. When we left out the email, it asked which address the leasing desk should use. Quickchat AI supplies the conversation link for column D.</span></figcaption>
</figure>

2. In **API Endpoint**, select **POST** and paste the URL below with the same file ID. Under **Headers**, add `Authorization` with value `Bearer {{google_sheets_access_token}}`, then add `Content-Type` with value `application/json`. Under **Body**, turn on **JSON** and paste the body below. The four entries run in column order, A to D. `RAW` tells Sheets to store the supplied text literally. [Google Sheets values.append](https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets.values/append).

```text
https://sheets.googleapis.com/v4/spreadsheets/FILE_ID/values/Requests!A:D:append?valueInputOption=RAW
```

```json
{
  "values": [[
    "{{unit}}",
    "{{preferred_window}}",
    "{{reply_email}}",
    "{{conversation_url}}"
  ]]
}
```

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 1024 / 477">

![The viewing request Action in Quickchat AI shows the JSON row with three renter details and the built-in conversation_url in the fourth position.](https://quickchat.ai/_astro/append.DFmSeZQb_1E6aNv.webp)

<figcaption><span>If you use <strong>Add AI Data</strong> to insert chips by hand, choose the first three values under <strong>Parameters</strong> and <code>conversation_url</code> under <strong>Built-in</strong>. <a href="https://quickchat.ai/docs/ai-agent/variables">Quickchat AI variables</a>.</span></figcaption>
</figure>

3. Paste the instruction below in **API Action Description**.

```text
Append a viewing request only after summarizing the unit, preferred window and reply email, receiving separate consent and reading the board again to verify that the confirmed unit is still open.
A successful write sends an enquiry to the desk. Staff confirm appointments.
Do not call for a cancellation or for a repeat of a request already sent.
```

4. In **Save to memory**, click **+** to add a rule. Select **API response** as the source, enter `$.updates.updatedRange` in **Value to save**, and enter `request_row` as the **Memory key**.
5. Expand **Advanced settings → Run only when → Add condition**. In **Metadata key**, enter `request_row` and choose **does not exist**. Click **Save changes**. If the Action is off, click **Enable**. Leave the **Requests** tab empty for the website test. Running **Test Response** on this POST can add a real row to Sheets. Send the first request through the widget so you can see exactly when row 2 appears. After a successful append, Google returns the row address. Saving that address prevents another send later in the same conversation. [Action memory and conditions](https://quickchat.ai/docs/ai-agent/actions#save-to-memory).

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 1024 / 449; --capture-width: 42rem">

![Quickchat AI saves the append response’s updatedRange as request_row and checks that request_row does not exist before another send.](https://quickchat.ai/_astro/guard.BNiYpmJj_Fh0dQ.webp)

<figcaption><span>The same key appears in both settings. On an empty queue with a header, the first successful append should return <code>Requests!A2:D2</code>.</span></figcaption>
</figure>

<a id="website-test"></a>

## 4. What does the renter see before they send a tour request?

Put the widget and the spreadsheet next to each other. The important moment is the pause between sharing an email and giving the desk permission to use it.

1. In Quickchat AI, go to **Channels → Your Website → Install → Install manually with code**. Copy the code from **Widget**. Open `index.html` from the kit in a text editor, find the comment at the bottom, paste your snippet just before `</body>`, and save. Keep `maple-court.webp` beside it. [Website widget installation](https://quickchat.ai/docs/channels/website).

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 509 / 236; --phone-ratio: 209 / 207; --capture-width: 42rem">

<picture><source media="(max-width: 30rem)" srcset="/assets/blog/posts/mapleLeasing/widget-install-mobile.webp" width="836" height="828">![The Your Website settings in Quickchat AI show Install manually with code, the Widget snippet and its copy control.](https://quickchat.ai/_astro/widget-install.PvW5opZy_21wT9U.webp)</picture>

<figcaption><span>In the <strong>Your Website</strong> installer, copy the snippet from the <strong>Widget</strong> panel. The next figure shows where the chat appears on the practice page.</span></figcaption>
</figure>

2. Put both files on a test site you can edit. To run the kit on your own computer with Python 3, open a terminal in the extracted folder, run the command below and open `http://127.0.0.1:8765` in a private browser window. Click the floating chat button at the bottom right. If the button is missing, check **Your Website → Install → Availability and access → Widget & Embed access**, then reload the page. For WordPress, Shopify or Wix, use the [website widget installation walkthrough](https://quickchat.ai/post/add-chatgpt-to-your-website).

```sh
python3 -m http.server 8765 --bind 127.0.0.1
```

<figure id="website-widget" class="tutorial-context tutorial-compact" style="--capture-ratio: 2175 / 998; --phone-ratio: 875 / 643; --capture-width: 44rem">

<picture><source media="(max-width: 30rem)" srcset="/assets/blog/posts/mapleLeasing/installed-mobile.webp" width="875" height="643">![The Maple Court property page with the Maple Leasing website widget open.](https://quickchat.ai/_astro/installed.7sTFNTc9_Z2dSHIB.webp)</picture>

<figcaption><span>The hosted Widget on the kit’s property page. To match it, open <strong>Your Website → Text Content</strong>. Set <strong>Header text</strong> to <strong>Maple Leasing</strong> and <strong>Welcome message</strong> to “Which features are you looking for in an apartment at Maple Court?”</span></figcaption>
</figure>

3. Ask *“Which open apartment has a bike locker?”* In the same chat, send *“I’d like to see MAP-11 on Friday, 3 March 2028, from 14:00 to 16:00 UTC. My reply email is renter@example.org.”* The Agent should repeat the unit, window and address and ask permission to send them. Switch to the **Requests** tab in Google Sheets. Row 2 should still be empty.

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 2035 / 663; --phone-ratio: 875 / 883">

<picture><source media="(max-width: 30rem)" srcset="/assets/blog/posts/mapleLeasing/consent-mobile.webp" width="875" height="883">![The Maple Leasing widget asks permission to send the unit, preferred time and renter email. The real Requests tab still has an empty row 2.](https://quickchat.ai/_astro/consent.CF12Y1Gz_Z2bnAxX.webp)</picture>

<figcaption><span>Compare the details while the renter can still correct the date or email. Sharing the address is a separate turn from approving the request.</span></figcaption>
</figure>

4. Return to the same website chat and reply **“Yes, send the viewing request.”** The Agent rereads the listing. If MAP-11 is still open, it sends the request. Switch to **Requests** in Google Sheets and compare row 2 with the renter’s message. A contains `MAP-11`, B the Friday UTC window, C `renter@example.org`, and D a link to the chat.

<figure id="request-in-sheets" class="tutorial-context tutorial-compact" style="--capture-ratio: 407 / 125; --phone-ratio: 175 / 181">

<picture><source media="(max-width: 30rem)" srcset="/assets/blog/posts/mapleLeasing/request-mobile.webp" width="875" height="905">![The successful viewing request and its Google Sheets receipt for MAP-11 show the Friday UTC window, renter@example.org and the returned range Requests!A2:D2.](https://quickchat.ai/_astro/request.8EghoELP_ZC1EIN.webp)</picture>

<figcaption><span>Google returned <code>Requests!A2:D2</code>. The unit, window and email match the chat. Column D contains the private Inbox link. Its destination is hidden in the screenshot.</span></figcaption>
</figure>

5. Follow the link in D while signed in to Quickchat AI. Under the confirmation reply in **Inbox**, expand **2 actions called**. The listing read came first and returned MAP-11 as `open`. Open the result for `send_viewing_request` and select **Show full**. Google’s response reported one updated row and four updated cells. [Finding the exchange in Inbox](https://quickchat.ai/docs/conversations/inbox).

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 1048 / 581">

![Quickchat AI Inbox shows the two Actions on the confirmation reply and Google’s HTTP 200 response with updatedRange set to Requests!A2:D2.](https://quickchat.ai/_astro/inbox-receipt.Cz4IGs3D_ZLHGAh.webp)

<figcaption><span>Under <strong>2 actions called</strong>, expand the send result to compare <code>updatedRange</code> with the row that appeared in Google Sheets.</span></figcaption>
</figure>

6. Send **“Yes, send the viewing request.”** a second time in the **same chat**. Our Agent replied, “Your viewing request was already sent. The leasing desk will confirm the appointment.” No new Action ran. Google Sheets still had one data row.

If a send times out, the sheet may already contain the row. Ask the desk to check the unit, email and conversation before retrying. The saved row address covers completed writes in one conversation. For duplicate protection across separate chats or simultaneous requests, the receiving system needs to enforce a unique request ID.

## 5. What if someone puts the apartment on hold mid-chat?

A listing can change while the renter is choosing a time. Try the exact same Friday request in a fresh conversation, but let the desk edit one cell before you give the final yes.

1. With MAP-11 still `open`, click the square-and-pencil **New conversation** button in the widget header. The empty chat starts with no saved `request_row`. Tell the Agent a bike locker is essential. Ask for the same Friday viewing, give your reply email, and wait for the summary. Count the current request rows.
2. In the sheet, change **Listings!B2** from `open` to `held`. Return to the chat and confirm. Check the new reply and count the rows again. A fresh read should catch the hold and leave the count unchanged.

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 2035 / 818; --phone-ratio: 875 / 943">

<picture><source media="(max-width: 30rem)" srcset="/assets/blog/posts/mapleLeasing/held-mobile.webp" width="875" height="943">![The Listings tab shows held in cell B2 for MAP-11. On the property website, the widget tells the renter there are no open units with a bike locker.](https://quickchat.ai/_astro/held.BUAtM9Z0_Z25vGvx.webp)</picture>

<figcaption><span>The amber <strong>held</strong> cell is MAP-11’s status at the moment the second renter confirmed. MAP-34 was still open, but it had no bike locker.</span></figcaption>
</figure>

Both renters had seen MAP-11 offered at the start of their chats. On the second renter’s final “yes,” the Agent ran only `read_listing_board`. It replied, **“MAP-11 is now held, so I haven’t sent the request.”** The desk still had the original request in row 2 and an empty row 3.

3. Restore B2 to `open`. Start a **New conversation** and ask to see the open apartment with a bike locker in the same Friday window. Leave out your email so you can see the Agent ask for it. Supply the address, wait for the summary, then reply *“Cancel that request.”* In the same chat, ask *“Can I see the other enquiries?”*

<figure class="tutorial-context tutorial-compact" style="--capture-ratio: 938 / 823; --capture-width: 23rem">

![In the widget on the Maple Court website, the renter cancels the viewing and asks about other enquiries. Maple Leasing answers both messages.](https://quickchat.ai/_astro/cancel-privacy.7ku6-6by_ZUyhrV.webp)

<figcaption><span>Neither message made an Action call. The read Action can see the listing board, and the leasing desk keeps the enquiry queue.</span></figcaption>
</figure>

When the property adds its fourth apartment, extend the fixed read range to include it. For a larger portfolio, use a listings service that filters availability and amenities before returning matches. To let renters book a specific appointment in chat, the [Calendly scheduling tutorial](https://quickchat.ai/post/ai-scheduling-assistant-calendly) shows how to look up live slots and reserve the visitor’s choice. The [Google Sheets Action tutorial](https://quickchat.ai/post/connect-ai-agent-to-google-sheets) has more examples of handing a confirmed enquiry to a team.

<details class="tutorial-artifact">
<summary>Set up the same two Actions with ChatGPT or Claude</summary>

Connect your Quickchat AI account through the [ChatGPT app](https://chatgpt.com/plugins/plugin_asdk_app_6a4656c688748191be4c5247fb0d5dfc) or [Claude connector](https://claude.ai/directory/connectors/app-quickchat-ai). Connect Google in Quickchat AI yourself, then attach `actions.json` and `main-prompt.txt` from the kit. Give the client the name of your practice Agent and the connected file ID. The JSON contains the same two Action definitions you entered above. [Manage Quickchat AI from an AI client](https://quickchat.ai/docs/manage-with-ai).

> On my Maple Leasing practice Agent, use main-prompt.txt for the Main Prompt and the two recipes in actions.json for the HTTP Actions. Replace FILE_ID with the connected spreadsheet ID I provided. Show me the fixed read range, the four append values and the condition on request_row. Leave both Actions disabled for my review.

</details>

## Apartment leasing chatbot FAQ

### Can an apartment leasing chatbot check current availability?

Yes. Give it a read Action for the listing board and ask it to check on every availability question. It reads the desk’s latest entry again before sending a viewing request. Reading and appending are separate calls, so the desk should recheck availability when it confirms the appointment.

### Can this chatbot book an apartment tour automatically?

This setup collects a preferred viewing window and sends it to the leasing desk. A staff member checks the calendar and replies to confirm the appointment. Automatic booking would need a scheduling system that checks and reserves an available slot.

### What happens if the apartment goes on hold before the renter confirms?

The Agent reads the listing again after the renter says yes. If the status has changed to held, it tells the renter and leaves the Requests tab alone. Staff can restore the unit to open when it becomes available again.

### Can I use a rental spreadsheet I already have?

Copy the public listing fields into the spreadsheet created by the Quickchat AI Google Sheets connection. The connection uses per-file access. Changing the file ID in an Action does not grant access to another private Google Sheet.

### Can renters see other people’s viewing requests?

The only read Action in this setup points to the Listings range. The other Action can append a row to Requests. Keep the Google file private and give sheet access only to the people who handle enquiries.

### What happens if the renter confirms the same viewing twice?

After a successful append, Quickchat AI saves the row address in that conversation. The guard blocks all further sends in the same chat, including a request for a different unit. Start a new conversation for a second viewing. To change a request already sent, contact the desk.
