Build agents
Hidden fields and masking
Hide fields not needed for analysis, and mask sensitive information in results.
Hiding keeps a column out of AI analysis entirely; masking keeps the column in calculations but replaces the values passed to the model. Both affect only what the AI sees; who can query which data is decided by data permissions.
| Goal | Setting | Example |
|---|---|---|
| Unrelated to analysis, avoid confusion | Hide | Internal auto-increment IDs, creator IDs |
| Needed for statistics, but the model should not see real values | Mask | Phone numbers, ID card numbers, bank card numbers |
| Sensitive and not used in analysis | Hide and mask | ID card numbers kept only for records |
This requires a project owner or project administrator. Entry: “More” → “Data sources” → click a data source → choose a table → “Field structure”.
Hide a field
Turn on the “Hide” switch at the right of the field row. The row turns gray and the change takes effect immediately. The agent skips the column when generating queries, answering questions, and retrieving fields. The data itself is not deleted.
Turn the switch off to restore it; the field joins retrieval again immediately.
Masking
Click a field row to expand the details and choose a type in “Masking”: person name, phone number, ID card number, bank card number, or email; choose “Not enabled” to turn it off. Selection saves immediately.
Masking happens before query results are passed to the model; the model sees only replaced values, and original values never enter the model. After setting it, ask a question that returns the column in a conversation to confirm the values are replaced.
How to choose
- Do not hide columns needed for statistics, counting, or grouping; mask them instead. After hiding, metrics that depend on the column can no longer be calculated.
- Hiding IDs, technical fields, and other columns unrelated to business questions makes the agent less likely to choose the wrong field.
Common issues
| Symptom | Cause | Action |
|---|---|---|
| The agent still uses a field | The “Hide” switch is off | Turn it on |
| Phone numbers in results are still plain text | The masking type is “Not enabled” | Choose “Phone number” |
| A metric cannot be calculated after hiding | The metric depends on the column | Unhide it and use masking instead |
| A switch change fails | Network or service problem | Refresh and retry; contact an administrator if it keeps failing |