# Web-based AI SQL Playground and connecting to Postgres from the browser

DevFeed: [Web-based AI SQL Playground and connecting to Postgres from the browser](<https://devfeed.tech/articles/web-based-ai-sql-playground-and-connecting-to-postgres-from-the-browser-5728.md>)

Original publisher: [Read original article](<https://neon.com/blog/postgres-ai-playground>)

Author: Mahmoud Abdelwahab

Published: 2023-05-19T13:34:31Z

Content type: article

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Web](<https://devfeed.tech/topics/web.md>), [WebSocket](<https://devfeed.tech/topics/websocket.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [Protocol (disambiguation)](<https://devfeed.tech/topics/protocol.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Hackathon](<https://devfeed.tech/topics/hackathon.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [browser](<https://devfeed.tech/tags/browser.md>), [community](<https://devfeed.tech/tags/community.md>), [hackathon](<https://devfeed.tech/tags/hackathon.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [sql](<https://devfeed.tech/tags/sql.md>), [web](<https://devfeed.tech/tags/web.md>), [websocket](<https://devfeed.tech/tags/websocket.md>)

## AI overview

Neon's Postgres AI Playground lets developers connect to a Neon Postgres database, inspect its schema, and use natural-language prompts to generate SQL queries or request schema changes. The browser-based playground uses OpenAI APIs and the Neon serverless driver to relay PostgreSQL traffic through a WebSocket-to-TCP proxy.

## Source excerpt

A few months back, we had an internal AI hackathon at Neon where we could learn and experiment with OpenAI's APIs. One of the ideas was to build an online AI SQL playground for Postgres. It would enable developers to connect to a Neon Postgres database and have an AI assistant ge...