# Ray and Neon

> Branch the database from the thread, and see what changed.

Source: https://heyray.io/integrations/neon

Ray is an AI teammate that works in your team chat, on Slack today. Connect Neon and it can do the Neon part of a request without anyone leaving the conversation: read what it needs, draft the change, and post it for approval before anything is written. 19 reads run without asking. 3 actions wait for a human approval.

## What Ray reads in Neon

Reading changes nothing, so Ray never stops to ask whether it may look something up.

- Projects and their branches, with a count when you only want the number
- The schema on any branch, and the difference between two of them
- Databases and endpoints on a branch, and whether the last operation finished
- What the project is consuming, and the snapshots and backup schedule behind it

## What waits for your approval

Every one of these posts an approval card in the thread showing exactly what is about to happen. Nothing runs until someone clicks approve, and no setting turns that off.

- Cutting a new branch off a parent, for a piece of work or a preview
- Renaming a branch, and marking one protected
- Taking a snapshot of a branch at a point in time

## Things Ray is never handed

These are left out during curation, so they are not something Ray could do and decides against. They are not in front of it at all.

- Reveal a role password or hand back a connection string, which carries one inside it
- Restore a branch or a snapshot, because that overwrites what is there now
- Mint, list or delete API keys, move projects between organisations, or change who is a member

## Ask it like this

- "@Ray cut me a branch off main for the pricing migration."
- "@Ray what is different between the staging schema and main?"
- "@Ray how much is the database costing us this month?"
- "@Ray snapshot main before I run the migration."

## Connecting Neon

Neon has no per-person login, so it connects once with a single workspace key and covers the whole team. Ray reaches whatever that key reaches, and every write still stops for approval first. The key is pasted on Ray's own connect page, never in chat, and it never reaches the model. Disconnecting Neon or uninstalling Ray revokes the connection.

## More

- This page for people: https://heyray.io/integrations/neon
- Every integration: https://heyray.io/integrations.md
- Install Ray: https://heyray.io/install.md
- Pricing: https://heyray.io/pricing.md
