Build a Leasing Chatbot for Apartment Tour Requests

Piotr Grudzień
Published 12 min read
Maple Court and the Google Sheets Requests tab showing a confirmed MAP-11 viewing request in row 2.

“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.

The Google Sheets toolbar and worksheet tabs surround the Requests grid. Row 2 contains MAP-11 and the Friday viewing window.

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.

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. 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. 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.

  1. Sign in to 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.

The Quickchat AI Getting Started screen with the Set up manually option in the setup choices.

Start with a blank Agent so you can recognize the two Actions you add in this tutorial.
  1. 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.

The Identity step in the Quickchat AI setup wizard with Maple Leasing’s name, its purpose and the Next button.

The apartment data will come from the sheet. You can finish setup with the Knowledge Base empty.
  1. 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.

The Quickchat AI Actions & MCPs screen with the Google Sheets connection dialog open and the Open sheet link visible.

Open the file from the connected Agent. The integration uses Google’s per-file permission.
  1. 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.

The Google Sheets window with its grid and bottom tab bar. The menu attached to the Listings tab includes Rename.

Keep this Google Sheets window open. The desk updates availability in Listings and receives enquiries in Requests.
Enter the two tabs by hand

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.

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.

unit	preferred_window	reply_email	conversation
  1. 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.

The Maple Leasing workbook shows MAP-11 open at $1,160, MAP-22 held, and MAP-34 open without a bike locker.

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.

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.

The Quickchat AI Actions & MCPs page with the API Action setup open and Create manually visible.

Choose API Action both times you build a recipe. The first Action reads Listings. The second will write to Requests.
  1. 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://sheets.googleapis.com/v4/spreadsheets/FILE_ID/values/Listings!A1:F4?valueRenderOption=UNFORMATTED_VALUE

Quickchat AI’s GET method, the fixed Listings range and the Authorization header containing the Google Sheets token placeholder.

The read range ends at F4. It includes the header and all three apartments. The complete URL and header value are copyable above.
  1. 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.
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.
  1. 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.

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.

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.
Copy the Maple Leasing Main Prompt
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.
  1. 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.

Maple Leasing answers the bike-locker question in the website widget. MAP-11 is open and the listed rent is USD 1160 per month.

Narrow the search. Ask for an open two-room apartment with a bike locker. Neither of the two-room listings qualifies.

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.
NameDescription
unitThe unit code the renter confirmed, exactly as it appears on the open listing.
preferred_windowThe date, start and end times, and time zone the renter approved.
reply_emailThe email the renter supplied for the leasing desk to contact them.

Three required Text inputs in the Quickchat AI Action editor named unit, preferred_window and reply_email.

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.
  1. 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://sheets.googleapis.com/v4/spreadsheets/FILE_ID/values/Requests!A:D:append?valueInputOption=RAW
{
  "values": [[
    "{{unit}}",
    "{{preferred_window}}",
    "{{reply_email}}",
    "{{conversation_url}}"
  ]]
}

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.

If you use Add AI Data to insert chips by hand, choose the first three values under Parameters and conversation_url under Built-in. Quickchat AI variables.
  1. Paste the instruction below in API Action Description.
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.
  1. 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.
  2. 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.

Quickchat AI saves the append response’s updatedRange as request_row and checks that request_row does not exist before another send.

The same key appears in both settings. On an empty queue with a header, the first successful append should return Requests!A2:D2.

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.

The Your Website settings in Quickchat AI show Install manually with code, the Widget snippet and its copy control.

In the Your Website installer, copy the snippet from the Widget panel. The next figure shows where the chat appears on the practice page.
  1. 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.
python3 -m http.server 8765 --bind 127.0.0.1

The Maple Court property page with the Maple Leasing website widget open.

The hosted Widget on the kit’s property page. To match it, open Your Website → Text Content. Set Header text to Maple Leasing and Welcome message to “Which features are you looking for in an apartment at Maple Court?”
  1. 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.

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.

Compare the details while the renter can still correct the date or email. Sharing the address is a separate turn from approving the request.
  1. 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.

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.

Google returned Requests!A2:D2. The unit, window and email match the chat. Column D contains the private Inbox link. Its destination is hidden in the screenshot.
  1. 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.

Quickchat AI Inbox shows the two Actions on the confirmation reply and Google’s HTTP 200 response with updatedRange set to Requests!A2:D2.

Under 2 actions called, expand the send result to compare updatedRange with the row that appeared in Google Sheets.
  1. 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.

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.

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

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.

  1. 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?”

In the widget on the Maple Court website, the renter cancels the viewing and asks about other enquiries. Maple Leasing answers both messages.

Neither message made an Action call. The read Action can see the listing board, and the leasing desk keeps the enquiry queue.

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 shows how to look up live slots and reserve the visitor’s choice. The Google Sheets Action tutorial has more examples of handing a confirmed enquiry to a team.

Set up the same two Actions with ChatGPT or Claude

Connect your Quickchat AI account through the ChatGPT app or Claude connector. 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.

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.

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.