Your users ask the grid. You build one server route.
Your user types a question into the grid. Gridsay turns it into filters, sorting, grouping, a pivot or a chart, and the grid applies it. Your part is a route that adds a key.
01
You build one server route, or none.
| Secret key | Publishable key | |
|---|---|---|
| Where the key lives | Your server only | In your web page |
| What you build | A server route that adds the key. MUI’s stock resolver stays unchanged. | No route. A small onPrompt function in your page replaces MUI’s stock resolver, which cannot send the key. |
| Your users | Your server vouches for them | Verified on every request |
| Limits | Your spending cap | The cap, plus limits per key and per user |
Both key types are on every plan. Moving from MUI’s hosted service? Your route already exists, and the change is two lines:
Removed: const url = 'https://backend.mui.com/api/v1/datagrid/prompt';Added: const url = `${GRIDSAY_URL}/api/v1/datagrid/prompt`;Removed: 'x-api-key': process.env.MUI_DATAGRID_API_KEY,Added: 'x-api-key': process.env.GRIDSAY_SECRET_KEY,Our browser helper is on npm. For MUI X Data Grid, the dashboard also gives you a short onPrompt function that needs no package.
02
The grid only gets answers it can apply.
Every answer is checked against your columns before the grid applies it. If it cannot be applied, your user reads a sentence that says why.
revenue by region
There is no column for region in this table.
03
Your rows stay in your app. Your spend stays under your cap.
- Your data.
Gridsay gets the question and a description of your table. No whole rows are uploaded. The question, your current filters and option lists can contain values. Example values from your rows go only if you turn them on.
- Private mode.
Set
privateModeand Gridsay stores neither the question nor the answer.- Your users.
With a publishable key, every user is verified by your sign-in, and you set limits per key and per user. A question refused at a limit uses no credits.
- Your spending cap.
At the cap, new questions are refused, and your user reads “The assistant has reached this month’s limit.”
Send your first question.
Create a key, point your route at Gridsay, and ask your grid something. The trial is 7 days on Pro 20, and nothing is charged during it.