Screen rental applicants with Telegram, OpenAI, Gmail and Google Sheets

Go to Workflow
18 views
Built by Rahul Joshi Rahul Joshi
Created on July 28, 2026

Description

Quick Overview
This workflow captures rental applications from Telegram, uses OpenAI to extract applicant details and score risk after a credit/background API check, logs everything in Google Sheets, notifies the landlord via Telegram, and optionally emails a reference check via Gmail while sending Slack alerts on failures.

How it works
Triggers when a new Telegram message is received from an applicant.
Uses OpenAI (GPT-4o-mini) to extract structured application fields (identity, income, rent, employer, and previous landlord details) from the message.
Appends the parsed application to a Google Sheets tracker and calls an external credit/background check API with the applicant’s basic details.
Uses OpenAI (GPT-4o-mini) to generate a 0–100 score, red flags, a landlord-facing summary, and a recommendation based on the application and credit check result.
Updates the applicant’s row in Google Sheets with the screening results, sends a confirmation message to the applicant on Telegram, and notifies the landlord on Telegram.
If a previous landlord email is present, sends a Gmail reference request and waits for the reply, then uses OpenAI to extract key reference answers and updates Google Sheets with the reference response.
If any step fails, posts an error alert to a Slack channel with execution details.

Setup
Connect credentials for Telegram Bot, OpenAI, Google Sheets (OAuth2), Gmail (OAuth2), and Slack (OAuth2).
Create or adapt a Google Sheet with the required columns and set YOUR_GOOGLE_SHEET_ID in both Google Sheets nodes.
Replace the placeholder credit/background check HTTP endpoint with your provider’s API URL and add the required authentication.
Set YOUR_LANDLORD_CHAT_ID for Telegram landlord notifications and YOUR_SLACK_CHANNEL_ID for Slack error alerts.

Nodes Used (7)

Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
Slack
n8n-nodes-base.slack
Telegram
n8n-nodes-base.telegram