The spreadsheet filling feature uses the uploaded Excel report as the target structure. It employs an Agent to read the table headers, business keys, and target areas from the workbook, fetches data from accessible data tables, fills the results back into the workbook according to the report structure, and generates a new downloadable file. After successful form filling, you can save the qualified results as a template.
Prerequisites
To use spreadsheet filling, the following conditions must be met:
- The current account has access permissions for the data to be queried.
- The corresponding capability is enabled for the Agent in the dialog, and a usable workbook processing environment is configured.
- The uploaded report is an .xlsx workbook and contains recognizable table headers, business keys, and target areas.
If permissions are insufficient or conditions are unclear, the Agent will not guess the input and will first clarify with the user.
Procedure
- Open an engineer or analyst dialog.
- Upload the .xlsx report to the dialog and describe the form-filling requirement in one sentence, for example, "Fill in the sales amounts of each store in East China for October 2024 into this report."
- If key information is missing, the Agent will ask for the period, organization scope, or business caliber. After answering, continue filling out the form.
- Check the result and download the generated new workbook.
During form filling, the Agent can, if needed, delegate a read-only sub-dialog to understand the workbook structure. In the dialog, you can expand the "Workbook Understanding" card to view the call details and the read-only sub-dialog.
Details
Filling rules
Results are matched to corresponding rows based on existing business keys in the report (for example, store ID, date). It is best to retain stable identifier columns in the report to avoid matching failures caused by inconsistent key types, such as text/digits and digits only.
The source file is always retained, and results are written to a new file. The Agent does not modify formulas, remove format protection, or force-feed data to fill in values. Newly written rows will inherit the borders and row height of the formatted rows above.
Delivery and unmatched items
Upon delivery, the Agent will explain the unmatched or skipped content and its reasons. Common reasons for mismatch include the business key in the report not existing in the query results, or the key type not matching. After verifying the key columns and actual data in the report, retry.
If registration fails, the already filled file can still be downloaded without re-executing the form filling.
Workbook understanding
Workbook understanding is an optional step before form filling. The Agent delegates a read-only sub-dialog to analyze the worksheets, table headers, and business descriptions, then returns the understanding result to the main dialog. It only analyzes the structure and does not replace the actual data retrieval and form filling.
Configure this by clicking Agent settings > Edit Agent > Behavior > Collaboration Strategy > Workbook Understanding in the top bar of the dialog. It is enabled by default and can be disabled separately. After disabling, basic form filling is still available, but the Agent will no longer perform this structural understanding step.
Save, reuse, and share templates
After successful form filling, you can save the qualified results as a template in the results, retaining the workbook, data retrieval logic, and form filling position. Next time, when referencing the template in a dialog, or uploading a structurally matching workbook, the system will confirm the parameters this time and retrieve data again according to the current user's data permissions to generate a new workbook. When multiple matching templates exist, you need to specify which one to use.
Engineers can publish templates with the Agent. Analysts can use shared templates they have access to, or save and manage personal templates.
The save entry is located in Agent dialog > Form Filling Result > "Save as Form Filling Template". Engineers manage and reference templates in the "Table Templates" section of the File Workspace, while analysts operate in the template area of the dialog sidebar.
Notice
Shared templates are read-only replicas. When publishing, the associated workbook and its existing data are shared together; please verify the content before publishing. Reusing a template generates a new file, and the original template and uploaded workbook remain available.
FAQ
What should I do if form filling fails?
First, check the prompt given during delivery. The Agent will indicate whether the failure was due to a query error, insufficient permissions, or a mismatch between the report structure and data. If only the operation record registration failed, the file itself is already filled out and can be downloaded; there's no need to rerun.
Why are some rows left empty in the results?
During delivery, the Agent lists the unmatched or skipped content. This is mostly because the business key in the report does not exist in the query results, or the key types do not match (for example, text/digit with digit). Verify the key columns in the report against the actual data.
Can I write the completed form back directly into the source file?
No. Spreadsheet filling always generates a new file; the source file remains unchanged to prevent overwriting the template. If necessary, download the new file to replace it.
Can templates be reused?
Yes. Reference the template in the dialog, or upload a workbook with a matching structure to retrieve data again based on the current data permissions. Reusing generates a new workbook; the original template and uploaded workbook remain available. Shared templates are read-only replicas.
