How to Combine AI with Database Data
Div-idy lets you combine AI with live database data. By connecting your database and giving AI example records, you can build features like AI-powered search, summaries, insights, and dashboards.
Quick Answer
To combine AI with database data in Div-idy, connect your project’s database, open the AI tool, and explain the database structure or provide example records. Then tell the AI how to use the data (analyze it, summarize it, answer questions, or display it on the page).
Step-by-Step
Make sure your project has a database
Open the Database tool and confirm your tables and records exist.
Inside your project:
Open: Database Tool
Open the AI tool
The AI tool can read and work with your database when you describe how the data is structured.
Inside your project:
Open: AI Tool
Give AI an example of your database data
This helps AI understand what it’s working with. You can paste sample rows or describe each field.
Example data (Tasks table):
id | title | status | priority | dueDate
1 | Fix homepage | In Progress| High | 2026-02-15
2 | Write blog post | Todo | Medium | 2026-02-20
3 | Deploy update | Done | High | 2026-02-08
Tell AI how to connect and use the database
Be explicit about what the AI should do with the data.
Example prompt:
Connect the AI to the Tasks database table above.
Build a dashboard that:
- Shows total tasks by status
- Highlights overdue tasks
- Allows asking questions like
"What high-priority tasks are due this week?"
- Displays results on the page in a clean UI
Iterate and expand
Once it works, you can ask AI to add filters, charts, summaries, or natural-language queries.
Follow-up prompts:
- "Add a search bar powered by AI."
- "Summarize today’s database changes."
- "Let users ask questions in plain English."
Common Use Cases
- AI-powered admin dashboards
- Natural language search over database records
- AI summaries of user-generated data
- Smart recommendations based on stored data