Connect PostgreSQL to ChatGPT

Connect your PostgreSQL tables to ChatGPT with the Windsor.ai plugin.

Ask ChatGPT for totals from your tables, such as revenue by channel or by campaign. Compare them with Google Ads or Meta Ads in the same chat.

Connect in three steps. No code required.

Free forever plan No credit card needed
logo connect
Windsor.ai is your proven PostgreSQL to ChatGPT connector
google cloud
meta partner
google partner
snowflake
users love us
medal
soc2
google cloud
meta partner
google partner
snowflake
users love us
medal
soc2

Ask ChatGPT about your PostgreSQL tables

With the Windsor.ai plugin, ChatGPT answers questions from the PostgreSQL tables you connect in Windsor.ai.

Compare PostgreSQL with your ad platforms

Connect Google Ads or Meta Ads in Windsor.ai as well, and ask ChatGPT to compare ad spend by campaign with the revenue in your PostgreSQL leads or orders table. A shared column such as campaign name lets ChatGPT match the rows. After the first 30 days, a second source needs a paid plan (the free forever plan covers 1 source).

Find what changed and where

When a total from your PostgreSQL table drops, ask ChatGPT to split it by the other columns, such as channel, campaign or country, for the last 14 days and the 14 days before. The split shows which channel, campaign or country changed most.

Ask in plain language

Ask ChatGPT for revenue by channel, leads by pipeline stage or orders by country from your PostgreSQL table. ChatGPT picks the columns, the date range and any filters. Windsor.ai then returns the matching rows from your table. Marketing and sales teams can get a number without writing SQL or waiting for an analyst.

Count and rank records

Windsor.ai sends one row per record from your PostgreSQL table. ChatGPT can count those records in a short period as well as add up numbers. Ask how many leads reached each pipeline stage, which campaign brought the most closed deals, or what the average deal value is per channel.

How ChatGPT reads your PostgreSQL data through Windsor.ai

Supported fields: 5 dimensions

Windsor.ai connects to PostgreSQL with your host, port, user, password, database, schema and table name, one table at a time. After you connect, the field list shows the columns of that table. To use more tables or views from the same database, add each one the same way. Tables in one database count as one account on your plan. A view works if the database user has SELECT access to it.

Windsor.ai returns only the columns ChatGPT asks for, one row per matching record, for ChatGPT to add up or count in its answer. In our test on 19 November 2026, a request sent straight to Windsor.ai for revenue by channel for closed-won leads in a 45-row table came back as 18 rows, one per lead. Added up, that is 91,550 for Google Ads and 16,300 for Facebook Ads.

On the same day, we asked ChatGPT for the revenue and the number of these closed-won leads by channel, in two new chats. ChatGPT counted the leads correctly both times, 15 for Google Ads and 3 for Facebook Ads. In one of the two chats, it added up the Google Ads revenue 500 too high, at 92,050 instead of 91,550. Check a total against your PostgreSQL table before you use it.

Name the date column in your question, for example: “From my leads table, show revenue by channel for closed-won leads created in the last 30 days, using created_at as the date.” In our test through Windsor.ai, a request with no date column returned every row in the table. On the free forever plan, a question that names a date column reads the last 30 days. A table without a date column has no row age to filter on. In that case, Windsor.ai reads the current rows of the table.

ChatGPT showing PostgreSQL revenue by channel for closed-won leads through the Windsor.ai plugin
Join 40,000+ businesses that trust Windsor.ai to streamline PostgreSQL to ChatGPT integration
audi logo
colgate
asics
roche
novo nordisk logo
UBS
unicef
verisure
wpp
club med
skoda
heineken
puma
audi logo
colgate
asics
roche
novo nordisk logo
UBS
unicef
verisure
wpp
club med
skoda
heineken
puma

How to connect PostgreSQL to ChatGPT with Windsor.ai

Watch the video tutorial, or follow the ChatGPT setup guide in our documentation.

1

Select your data source

Choose PostgreSQL as your data source. Enter the host, port, user, password, database, schema and table, then select Add Account. Allow Windsor.ai’s IP address (94.130.231.239) to reach your database server.

PostgreSQL data source Windsor
Connect Windsor.ai pop-up in the ChatGPT Plugins page
ChatGPT showing PostgreSQL revenue by channel for closed-won leads through the Windsor.ai plugin

FAQs

How do I connect PostgreSQL to ChatGPT?

Add your PostgreSQL table in Windsor.ai with the host, port, user, password, database, schema and table name. Then install the Windsor.ai plugin from ChatGPT’s Plugins directory and ask a question in a new chat. Windsor.ai’s IP address (94.130.231.239) needs access to your database server.

Tired of manual PostgreSQL data exports? Try Windsor.ai today to automate your reporting

Access your data from various sources in one place. Get started for free.
g logo
fb logo
big query data
youtube logo
power logo
looker logo