Connect, Chat and Analyze Any Database with ChatGPT - Fast, Simple, and Powerful.
Published: January 19, 2025

My open-source platform with a ton of micro-apps and tooling's for AI driven analytics and data science
As shown in my earlier posts and videos (https://lnkd.in/grkMb8ec), REX-2 makes connecting to your MySQL or PostgreSQL databases pretty easy. It enables you to chat, query, transform, and analyze data using natural language or voice inputs (NL-Voice-to-SQL). You can also perform basic statistical analysis and generate Python-based charts with ease
Now, in this post and video, I show how to connect REX-2's FastAPI backend to a custom GPT in minutes, letting you chat and analyze any database through the familiar ChatGPT interface.
For decision-makers: Now you have two flexible options: the REX UI or the ChatGPT UI.
For hands-on implementers: enjoy rapid deployment, and the ability to customize both UIs and backends to fit many different use cases.
Here's how you can set it up in minutes
Quick Steps: Click 'Create a GPT', add ready to use instructions and JSON schema. With this the Custom GPT is live within a minute, and can connect to any database. You can use it for testing. Then, deploy FastAPI code on Render to setup your own endpoint. All it takes is a few clicks.
That's it!
Additional
1. Want to try out the published Custom GPT?
Note: Setting up a custom GPT requires a GPT Plus subscription, but free users can still access existing GPTs with some limitations.
2. Want to Create a New Database Instantly?
Platforms like Neon, Aiven, and Supabase make it easy to create a database in minutes, with user-friendly interfaces and free tiers for smaller use cases.
If speed is key, REX-2 can spin up a temporary database on Neon-just hit "Create DB." For a detailed walkthrough, my main video includes a 10-minute section with timestamps for easy navigation.
3. Want to upload files to your database?
See my original video above
4. Want a deeper dive into the architecture and technical flow?
Build Analytics Assistant Custom GPT: Connect to live Data Warehouses: Implementation Guide
- FastAPI SQL connector and deployment on Render.
- How to create Custom JSON action schemas for OpenAI.
- Resources for exploring FastAPI and integration best practices.
It was originally written for a slightly different endpoint, but it provides a comprehensive guide to setting up Custom GPTs and connecting them to external resources.