Guide

Create a business dashboard

Choose the questions your dashboard answers, structure the data, build charts and filters, and verify every number.

Start with the questions, not the charts

A dashboard is useful when it answers questions that someone asks repeatedly. Before you open OXDAR, write down three to six of them. For a small online shop they might be: How much did we sell this week compared with last week? Which products sell best? Which orders are waiting to ship? Who are our repeat customers?

For each question, decide the figure you need (a number, a trend or a ranking), the time range, and who needs to see it. This turns a vague wish ('a sales dashboard') into specific content a prompt can describe.

  • Headline numbers: revenue, orders, average order value.
  • Trends: sales over time, new customers per week.
  • Rankings: top products, top customers.
  • Work queues: orders to ship, overdue invoices.

Limit the first version to one screen of numbers. Dashboards bloat quickly, and every extra chart is something you must verify.

Decide where the data comes from

A dashboard is only as good as its data. Your OXDAR app is backed by a SQL database, so there are a few realistic options. You can have the app itself record the data, through forms and imports you ask for. You can start with sample data to design the layout and then switch to your own. Or you can ask for an import feature, such as uploading a spreadsheet exported from another tool.

Be honest about what you can supply. If your numbers live in another system, plan for how they will get into the database, and describe that step in your prompt. Do not assume the app connects to a service unless you have specified how, and check that anything involving credentials uses More → Secrets.

  1. List your records: orders, order lines, products, customers.
  2. List the fields each needs: date, amount, status, category.
  3. Decide how data arrives: manual entry, spreadsheet upload or something else you specify.
  4. Decide how often it is refreshed.

Prompt for the dashboard

With questions and data defined, write a prompt that names the screens, figures, filters and design. Include sample data in your first build so you can judge the layout immediately.

Example promptBuild a sales dashboard for a small online shop. Staff sign in with e-mail and password. The home screen shows four summary cards (revenue, orders, average order value, orders waiting to ship) for a selectable date range (today, last 7 days, last 30 days, custom), a line chart of revenue per day, a bar chart of the top 10 products and a table of the 20 most recent orders with status. Add an Orders page with search, status filter and CSV export, and a Products page with a sales ranking. Store products, customers, orders and order lines, and seed realistic sample data so I can review the layout. Use a light, professional design with plenty of white space, readable chart labels and a layout that stacks cleanly on a phone.

Notice the specific details: date ranges, chart types, a table, filters and an export. The AI does not need to guess which graph you want. It will still make choices about colors and spacing, which you can adjust afterwards.

Tell it how to calculate

Ambiguous terms cause wrong numbers. Define them. 'Revenue is the sum of order totals with status Paid or Shipped, excluding refunded orders.' 'A repeat customer has placed two or more paid orders.' Put these definitions in the prompt, and keep them in a note for later checks.

Verify every number

A dashboard that looks convincing and is quietly wrong is worse than none. Treat verification as part of the build, not an afterthought.

  1. Open More → Database and look at the underlying rows for a small date range.
  2. Add up a handful of orders by hand and compare with the card.
  3. Change the date range and confirm the figures and charts change as expected.
  4. Test edge cases: no data in the range, one order, a refunded order, an order exactly at midnight.
  5. Compare totals across screens; the Orders table and the revenue card should agree.
  6. Check time zones, since a day boundary can shift totals.

If a number is wrong, tell the AI exactly what you expected and what you saw, with a concrete example: 'The last 7 days revenue shows 1,240 but the paid orders in that period add up to 1,180; refunded orders appear to be included.' You can also run SQL queries in the Database view to cross-check results.

Keep a small set of known test orders with known totals. After each change, confirm the dashboard still shows the expected figures.

Control who can see what

Business data is sensitive. Decide who may see the dashboard and what each person may do, and write it into the prompt. A common split is Admin (everything), Manager (view and export) and Staff (orders only).

Example promptAdd roles to the dashboard. Admins can see every page and manage users. Managers can see the dashboard, Orders and Products and export CSV, but cannot manage users. Staff can only see the Orders page and update an order's status. Hide menu items a user cannot access, and also block those pages if someone opens the address directly.

Then test with an account for each role, including direct address access for pages that should be blocked. If your dashboard holds customer personal data, collect only what you need, and remember you are responsible for protecting it and for meeting any legal obligations. Regulated data needs your own review before use.

Publish, maintain and extend

Publish when the numbers are verified and the roles behave. The live app uses its own database, so plan how real data gets in. Check it on a phone, because many managers read dashboards on the go.

  • Add one new question at a time, and verify it before moving on.
  • If you need a weekly summary, you can ask for a scheduled job that e-mails one; check it using test recipients first.
  • Use More → Logs when a figure fails to load.
  • Use Version history to return to a previous working state.

Review the dashboard against your original questions every few weeks. Remove anything nobody uses, because a lean dashboard is easier to trust.

Related

Ready to build it?

Describe your idea and let Oxdar build the first version. 25 free credits to start, no card required.