New: one score for how consistent your answers are. See more

Integrations/Amazon Redshift

Connect Amazon Redshift to Claude / ChatGPT

Ask Redshift questions in Claude or ChatGPT, with your definitions and access rules applied. Contextflo queries your cluster live as a read-only user.

Connects with a read-only database user

What to ask for

  • “What was net revenue by region last quarter, and how does it compare to the same quarter last year?”
  • “Which customers' order volume dropped more than 30% month over month?”
  • “How long does it take a new account to reach its first 100 orders, by acquisition channel?”
  • “Which products are most often bought together in the same order?”

AWS teams usually have Redshift full of well-modeled data and a short queue of people who know how to query it. Contextflo connects Redshift to the Claude or ChatGPT your team already uses, so the questions go to the AI instead of the queue, and the answers come with the SQL that produced them.

How it connects

Contextflo connects as a dedicated Redshift user with USAGE and SELECT on the schemas you choose. Your cluster has to be reachable: either a public endpoint with a security group rule for Contextflo's IPs, or a private cluster through an SSH bastion in your VPC. You enter the host, port, database, username and password in Contextflo's form, and the credentials are stored encrypted.

Queries run live on your cluster. We never store raw data from your tables, and we don't store query results.

What Contextflo adds

The data team built the models. Contextflo lets everyone else self-serve on them from whichever AI they use, and hands the data team its time back:

  • Table context. Descriptions of tables and columns, generated from your schema, a code repo such as your dbt project, or docs, then reviewed by your team.
  • Saved queries and metrics. The SQL your team agreed on, reused by the AI so two people asking the same question get the same number.
  • Group access control. Admins choose which tables each group can query.
  • Audit log. Every question and query is logged per person.

Permissions

The Redshift grants are the ceiling: Contextflo can only read the schemas the user has USAGE and SELECT on. A curated analytics schema is the usual starting point. Inside that, groups in Contextflo narrow which tables each team can query. See access control.

Set it up

  1. Create a read-only user and grant USAGE and SELECT on your analytics schema, plus default privileges for new tables.
  2. Make the cluster reachable: a public endpoint with an inbound 5439 rule for Contextflo's IPs, or an SSH bastion.
  3. In Contextflo, go to Data Sources, add an Amazon Redshift connection, and enter the host, port, database, username and password.
  4. Pick the tables your team asks about, then ask your first question in Claude or ChatGPT.

Full setup guide →

FAQ

Our cluster is in a private VPC. Can Contextflo reach it?

Yes, two ways. Make the cluster publicly accessible and add an inbound rule on port 5439 for Contextflo's connection IPs in its VPC security group, or keep it private and connect through an SSH bastion host in your VPC. The Redshift connection form has fields for the bastion host, port and username.

Which IPs do we allowlist?

Contextflo provides its connection IPs during setup. Add them as the source of an inbound Redshift rule (TCP 5439) on the cluster's security group. Turning on Publicly accessible alone is not enough; the security group still decides who gets in.

Does it work with Redshift Serverless?

Yes. Provisioned clusters and Serverless workgroups both work. On Serverless, the host is under Workgroups, General information.

Why can't the AI see a table that is in the console?

The table was probably created after the grant. GRANT SELECT ON ALL TABLES only covers tables that exist at that moment. Add default privileges for the user that creates tables in the schema, such as your dbt user, so new tables stay visible.

Can AI questions slow down our ETL?

A heavy exploratory query uses real cluster resources. Putting the Contextflo user in its own WLM query group with a concurrency limit and a timeout keeps those queries apart from ETL. On Serverless, the RPU ceiling on the workgroup does the same job.

Start free with Amazon Redshift