beginner5 min read

Quickstart Guide

Welcome to AI for Database

AI for Database is an intelligent layer that sits on top of your existing databases and lets anyone on your team ask questions, build dashboards, and automate workflows -- all without writing SQL.

This quickstart walks you through the core setup in under five minutes.

Step 1: Create Your Account

Head to app.aifordatabase.com and sign up with your email or SSO provider. You will land on the onboarding wizard automatically.

On the Free plan you can bring your own OpenAI or Anthropic API key. On Pro and Enterprise the managed AI is included so you can skip this step.

Step 2: Connect a Database

Click Add Connection in the sidebar. Choose your database type -- PostgreSQL, MySQL, MongoDB, SQL Server, or Google Sheets are all supported.

Enter your connection credentials. AI for Database uses read-only access by default. We recommend creating a dedicated database user with SELECT-only privileges:

sql
-- PostgreSQL example
CREATE USER aifordb_reader WITH PASSWORD 'your-secure-password';
GRANT CONNECT ON DATABASE your_db TO aifordb_reader;
GRANT USAGE ON SCHEMA public TO aifordb_reader;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO aifordb_reader;

Click Test Connection to verify, then Save.

Step 3: Ask Your First Question

Navigate to the Ask page. Type a plain-English question like:

  • "How many new users signed up last week?"
  • "What are the top 10 products by revenue this month?"
  • "Show me all orders that are overdue"

AI for Database translates your question into a SQL query, runs it against your live data, and returns the result as a table or chart.

Step 4: Save and Share

Click Save to Dashboard to pin the result. You can share the dashboard with your team by inviting them via email or generating a shareable link.

Next Steps