Loading...
Loading...
Quick BI-SmartQ skill with multiple data analysis capabilities: 1. **File Q&A**: Upload Excel/CSV files for intelligent analysis via Quick BI API 2. **Dataset Q&A**: Natural language queries on Quick BI platform datasets, with automatic intelligent table selection and matching 3. **Document Parsing**: Parse PDF/Word/Excel/CSV/images, extract text, and support extracting key fields to generate structured Excel 4. **Dashboard Skill Generation**: Auto-convert QuickBI dashboards into data query skills 5. **Data Insight**: Deep data insight analysis on Quick BI datasets 6. **Data Report**: Auto-generate professional data reports based on analysis results Use when users mention data analysis, smart Q&A, querying data, file analysis, document parsing, dashboard skills, data insight, or data reports.
npx skill4agent add aliyun/alibabacloud-aiops-skills alibabacloud-quickbi-smartq| User Intent | Routed Module | Reference Document |
|---|---|---|
| Uploaded Excel/CSV file, wants to query specific metrics or answer specific data questions (e.g. TOP N, comparison, filtering) | File Q&A | module-chat-file.md |
| 上传了 Excel/CSV 文件,要查询具体指标或回答具体数据问题(如 TOP N、对比、筛选) | File Q&A | module-chat-file.md |
| No file uploaded, wants to query/analyze specific metrics in platform datasets | Dataset Q&A | module-chat-dataset.md |
| 未上传文件,要查询/分析平台数据集中的具体指标 | Dataset Q&A | module-chat-dataset.md |
| Uploaded multiple files (PDF/Word/images etc.) or selected a folder, wants to query specific data questions (e.g. TOP N, comparison, filtering) | Document Parsing → File Q&A | module-document-parser.md → module-chat-file.md |
| 上传了多个文件(PDF/word/图片等),或者选择文件夹,要查询具体数据问题(如 TOP N、对比、筛选) | Document Parsing → File Q&A | module-document-parser.md → module-chat-file.md |
| Uploaded PDF/Word/images or other unstructured documents, or selected a folder, wants to parse all file contents or extract fields | Document Parsing | module-document-parser.md |
| 上传了 PDF/Word/图片等非结构化文档,或者选择文件夹,要解析所有文件内容或提取字段 | Document Parsing | module-document-parser.md |
| Provided a QuickBI dashboard URL, wants to generate a query skill | Dashboard Skill Generation | module-dashboard.md |
| 提供了 QuickBI 仪表板 URL,要生成查询技能 | Dashboard Skill Generation | module-dashboard.md |
| Uploaded Excel file, wants deep interpretation/insight/trend analysis of data (not generating a report document) | Data Insight | module-data-insight.md |
| 上传了 Excel 文件,要对数据进行深度解读/洞察/趋势分析(不生成报告文档) | Data Insight | module-data-insight.md |
| Uploaded multiple files (PDF/Word/images etc.) or selected a folder, wants deep interpretation/insight/trend analysis of data (not generating a report document) | Document Parsing → Data Insight | module-document-parser.md → module-data-insight.md |
| 上传了多个文件(PDF/word/图片等),或者选择文件夹,要对数据进行深度解读/洞察/趋势分析(不生成报告文档) | Document Parsing → Data Insight | module-document-parser.md → module-data-insight.md |
| Wants to generate a report/analysis report/review report, regardless of whether files are uploaded | Data Report | module-data-report.md |
| 要生成报告/分析报告/复盘报告,无论是否上传文件 | Data Report | module-data-report.md |
| User Input | Routing Result | Reasoning |
|---|---|---|
| "Help me find the product with the highest sales in this data" + uploaded file | → File Q&A (module-chat-file) | Querying specific metric, has file |
| "帮我查一下这份数据中销售额最高的产品" + 上传文件 | → File Q&A (module-chat-file) | 查具体指标,有文件 |
| "Help me analyze this Excel data, TOP 10 headcount by department" + uploaded file | → File Q&A (module-chat-file) | Querying specific metric (TOP N), has file |
| "帮我分析这份Excel数据,各部门人数分布TOP10" + 上传文件 | → File Q&A (module-chat-file) | 查具体指标(TOP N),有文件 |
| "Top 3 regions with the highest sales" | → Dataset Q&A (module-chat-dataset) | Querying specific metric, no file |
| "销量最高的地区TOP3" | → Dataset Q&A (module-chat-dataset) | 查具体指标,无文件 |
| "Parse these contracts and summarize the information" + folder | → Document Parsing (module-document-parser) | |
| "解析这些合同并汇总信息" + 文件夹 | → Document Parsing (module-document-parser) | |
| "Convert this dashboard into a query skill" + URL | → Dashboard Skill Generation (module-dashboard) | Provided dashboard URL |
| "把这个仪表板转化为查询技能" + URL | → Dashboard Skill Generation (module-dashboard) | 提供了仪表板 URL |
| "Help me interpret the trend in sales data" + uploaded file | → Data Insight (module-data-insight) | Requests interpretation/insight, not a report |
| "帮我解读一下销售数据的趋势" + 上传文件 | → Data Insight (module-data-insight) | 要求解读/洞察,非报告 |
| "Any patterns and insights in this data" + uploaded file | → Data Insight (module-data-insight) | Requests insight analysis |
| "这份数据有什么规律和洞察" + 上传文件 | → Data Insight (module-data-insight) | 要求洞察分析 |
| "Generate a sales data report for this month" | → Data Report (module-data-report) | Contains "report" keyword |
| "生成一份本月销售数据报告" | → Data Report (module-data-report) | 含「报告」关键词 |
| "Help me generate an analysis report based on this Excel" + uploaded file | → Data Report (module-data-report) | Contains "report" keyword, file used as reference |
| "帮我基于这份Excel生成一份分析报告" + 上传文件 | → Data Report (module-data-report) | 含「报告」关键词,文件作为参考资料 |
| "Summarize these data, write a review report" + uploaded files | → Data Report (module-data-report) | Contains "review report" keyword |
| "汇总这几份数据,写一份复盘报告" + 上传文件 | → Data Report (module-data-report) | 含「复盘报告」关键词 |
| "Combine these files to generate a data analysis report" + uploaded files | → Data Report (module-data-report) | Contains "report" keyword |
| "结合这些文件生成数据分析报告" + 上传文件 | → Data Report (module-data-report) | 含「报告」关键词 |
| "Parse these 10 invoice PDFs, extract fields and generate Excel" + multiple files | → Document Parsing (module-document-parser) | Contains "extract fields" related keywords |
| "解析这10个发票PDF,提取字段生成Excel" + 多文件 | → Document Parsing (module-document-parser) | 含"提取字段"等相关关键字 |
| "Help me find the product with the highest sales in this data" + multiple files or folder | → Document Parsing → File Q&A (module-chat-file) | Querying specific metric, has multiple files |
| "帮我查一下这份数据中销售额最高的产品" + 多个文件或者文件夹 | → Document Parsing → File Q&A (module-chat-file) | 查具体指标,有多个文件 |
| "Any patterns and insights in these files" + multiple files or folder | → Document Parsing → Data Insight (module-data-insight) | Requests insight analysis |
| "这些文件中的数据有什么规律和洞察" + 多个文件或者文件夹 | → Document Parsing → Data Insight (module-data-insight) | 要求洞察分析 |
| "Summarize these data, write a review report" + ≤5 files | → Data Report (module-data-report) | Contains "review report" keyword |
| "汇总这几份数据,写一份复盘报告" + 5个以内文件 | → Data Report (module-data-report) | 含「复盘报告」关键词 |
| "Summarize these data, write a review report" + >5 files | → Document Parsing → Data Report (module-data-report) | Contains "review report" keyword |
| "汇总这几份数据,写一份复盘报告" + >5个文件 | → Document Parsing → Data Report (module-data-report) | 含「复盘报告」关键词 |
convention: In this document,<workspace-dir>refers to the absolute path of the folder the user currently has open in the IDE / file manager. The Agent MUST confirm this path before the first operation by running a Python script with<workspace-dir>. If the script returns nothing or empty, use the absolute path of the folder selected by the user. MUST NOT infer usingos.getenv('CODE_AGENT_CURRENT_SESSION_WORK_DIR'),$PWD, or$CWDor similar runtime variables.Path.cwd()convention: In this document,<skill-package-dir>refers to the root directory of this skill after installation (i.e. the directory containing this<skill-package-dir>file). The Agent can infer it from the path of this file.SKILL.md
ACCESS_TOKEN<workspace-dir>/.qbi/smartq-chat/config.yaml~/.qbi/config.yamldefault_config.yamlserver_domainapi_keyapi_secretuser_tokenserver_domainapi_keyapi_secretuser_tokenuserIduse_env_property: trueqbi_api_keyqbi_api_secretqbi_server_domainqbi_user_tokenACCESS_TOKENapi_keyapi_secretuser_tokenuser_tokenapi_keyapi_secret~/.qbi/config.yamlNote:existing alone in the global configuration (from automatic trial registration) will NOT prevent trial credential population. ONLY whenuser_tokenorapi_keyexists in an external configuration will the trial flow be skipped.api_secret
AE0579100004Show the configuration screenshot to the user based on current locale:
- zh_CN:
- en_US:
server_domainapi_keyapi_secretuser_token<workspace-dir>/.qbi/smartq-chat/config.yamlsave_global_property<workspace-dir>/.qbi/smartq-chat/config.yamlapi_keyapi_secretuser_tokenserver_domainserver_domainapi_keyapi_secretuser_token<workspace-dir>/.qbi/smartq-chat/config.yamlsave_global_propertytruefalsetrue~/.qbi/config.yamltruekey: valuekey:valuekey=valuesave_global_propertyfalse~/.qbi/config.yamlpip install requests pyyaml matplotlib numpyxlsxlsxcsvbrew install tesseract tesseract-lang<skill-package-dir>/scripts/...<workspace-dir>--workspace-dirsmartq_stream_query.pyfile_stream_query.pyq_insights.pycreate_chat.pygenerate_report.py--locale# File upload
python '<skill-package-dir>/scripts/chat/upload_file.py' '/path/to/data.xlsx' --workspace-dir '<workspace-dir>'
# File Q&A
python '<skill-package-dir>/scripts/chat/file_stream_query.py' <fileId> "各部门人数分布" --locale zh_CN --workspace-dir '<workspace-dir>'
# Dataset Q&A
python '<skill-package-dir>/scripts/chat/smartq_stream_query.py' "TOP 3 regions by sales" --locale zh_CN --workspace-dir '<workspace-dir>'
# Dataset Q&A (with dataset name hint — enables name lookup, exact match skips intelligent table selection)
python '<skill-package-dir>/scripts/chat/smartq_stream_query.py' "Based on 'Order Sales Details', what is the sales share by platform in Q1?" --cube-name 'Order Sales Details' --locale zh_CN --workspace-dir '<workspace-dir>'
# Document Parsing - local
python '<skill-package-dir>/scripts/document/document_local_parse.py' '/path/to/folder/' --json --workspace-dir '<workspace-dir>'
# Document Parsing - remote OCR
python '<skill-package-dir>/scripts/document/document_remote_ocr.py' '/path/to/folder/' --workspace-dir '<workspace-dir>'
# Excel generation
python '<skill-package-dir>/scripts/document/generate_excel.py' '<json-path>' --workspace-dir '<workspace-dir>'
# Data Insight
python '<skill-package-dir>/scripts/insight/q_insights.py' "这个报表有什么异常?" --excel-file '/path/to/data.xlsx' --locale zh_CN --workspace-dir '<workspace-dir>'
# Report generation
python '<skill-package-dir>/scripts/report/generate_report.py' "本月销售分析" --locale zh_CN --workspace-dir '<workspace-dir>'Core principle:MUST be determined SOLELY based on the user's input text, NOT influenced by any other source.--locale
zh_CNen_USzh_CNen_US--locale zh_CN--locale en_US--locale en_US--locale en_US--locale zh_CN--locale zh_CN--locale zh_CN--workspace-dirpython3 scripts/chat/...--locale--locale