Latenode

Automate lead matching, property viewings, and calendar syncing

This template starts when a buyer message hits your webhook. ChatGPT pulls property type, location, and budget. PostgreSQL returns matching listings.

JavaScript formats the reply, Google Calendar creates the viewing, and Gmail sends the confirmation. Connect PostgreSQL, Google Calendar, and Gmail. ChatGPT is a Latenode AI step.

Updated Sep 16, 2026Est. run: 28sEst. cost: $0.0018
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns a buyer message into matched listings, a viewing, and an email
  • Uses ChatGPT to read type, location, and budget
  • Looks up listings in PostgreSQL
  • Books Google Calendar and sends Gmail confirmation

How it works

1
Trigger

Receive the buyer message

The scenario starts when a chat or form posts the message to your Latenode webhook URL.

2
AI

Extract search criteria

ChatGPT reads the message and returns property type, location, budget, and preferred viewing time.

3
Action

Match listings

JavaScript builds a query. PostgreSQL returns listings that fit those criteria.

4
Action

Book the viewing

Google Calendar creates the viewing on the calendar you connect.

5
Action

Send confirmation

Gmail emails the buyer the property summary and viewing time.

Setup guide

1

Add the webhook

Add a webhook trigger and point your chat widget or lead form at that URL.

2

Connect PostgreSQL

Add a PostgreSQL connection to the database that stores listings. Put host, database, and user on that connection.

3

Connect Google Calendar and Gmail

Add Google Calendar and Gmail connections for the agent calendar and the confirmation mailbox.

4

Wire ChatGPT and the query

Send the buyer message to ChatGPT for type, location, budget, and time. Use JavaScript to query PostgreSQL, create the Calendar event, and send the Gmail confirmation. ChatGPT is a Latenode AI step.

Requirements

A webhook URL your chat or lead form can POST to
A PostgreSQL database of listings Latenode can read
Google Calendar and Gmail connections for the viewing and confirmation

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.