Article body
Full article
0 Summary
To explain why East China sales fell last month, first confirm what counts as sales and which periods are comparable. Then calculate the difference, identify the categories contributing to it, and chart the results. This article walks through that analysis with Data Agent in HENGSHI SENSE 7.0. Use Q&A mode to investigate and verify results, and Operation mode to create or edit platform resources within existing permissions. The plan, the analysis, and the resource changes each have their own acceptance criteria.
1 Q&A and task-based analysis follow different workflows
1.1 Q&A: One call, one answer
A single query suits a well-defined question, such as checking the amount paid on a particular chart. HENGSHI SENSE 7.0 supports follow-up questions in the same Q&A session, carrying forward the chosen scope and the metric definition confirmed in the previous turn. Even when context carries over, check that the new answer uses the correct data object, metric, and time range.
1.2 Tasks: Multiple steps and a series of deliverables
A multistep task connects retrieval, comparison, contribution analysis, and visualization. Each result feeds the next step. An analysis workflow can capture the task goal, confirmed metric definitions, and verified results in a checklist. In SENSE 7.0, the distinction between Q&A and Operation rests on whether the workflow changes BI resources. A multistep analysis can run entirely in Q&A mode.
1.3 How to classify the request
Ask three questions. Does the request require several calculations? Do later steps depend on earlier ones? Is the final deliverable something the user can check? Retrieving one number is Q&A. Comparison, contribution analysis, or producing a chart or report calls for a task. When unsure, start with Q&A and move to a task once a multistep need becomes clear. That avoids heavy planning at the outset.
1.4 From follow-up questions to asset creation
Keep the same analysis scope when following up on year-over-year or period-over-period changes or asking what drove them. If you then need to create an application dashboard, switch to Operation mode. In the new session, state the destination application, time range, metric name, and verified findings. An authorized person publishes the application through the application publishing interface. Start a new conversation when changing scope as well.
2 Turn the goal into a task description
2.1 A task description covers four things
Before breaking down the work, turn the natural-language request into a structured description. Specify the subject of the analysis, its time and organizational scope, the question to answer, and the expected deliverable. This fixes the meaning of a vague request so every later step has something to check against. Missing any one of the four can send the plan off course.
2.2 Resolve ambiguity before planning
Clarify ambiguous definitions or scope before breaking the work into steps. With a long task, each step magnifies an assumption made at the beginning, and correcting it at the end is expensive. Write the agreed interpretation into the task description as a constraint for subsequent steps.
2.3 Specify the form of the deliverable
“See how things are going” gives the team little to deliver. “A chart comparing sales and year-over-year change by category, with three sentences explaining the main contributors” gives it a concrete outcome. The requested format determines the tools and steps. Define it during planning so the team can build the visualization into the work from the start.
3 Break down the task into steps, dependencies, and sequence
3.1 Order steps by what the analysis depends on
Follow the logic of the business analysis. Retrieve data, compare it, find the dimensions driving the difference, and then chart the findings. Ordering steps by tool, such as invoking a query tool and then a charting tool, can hide logical dependencies. The team might only discover an incorrect metric definition after building the chart. The plan should say what each step supplies to the next.
3.2 Record dependencies explicitly
Show which steps can run in parallel and which must wait. Period comparisons and detail retrieval can run in parallel, but contribution analysis must wait for the comparison results. Explicit dependencies make fallback easier and keep concurrent steps from editing the same intermediate deliverable.
3.3 Limit the number of steps
Finer breakdowns create more orchestration work and more points of failure. Usually, three to six main steps are enough. Keep smaller actions inside their parent steps. Excessive detail makes planning itself a bottleneck and makes the workflow harder for users to follow. A useful measure of granularity is whether each step can be verified independently.
3.4 Leave room to adjust the plan
Define the main steps first and fill in details as intermediate results arrive. If a step reveals the need for another dimension comparison, extend that step while preserving the overall goal. The plan can evolve after execution starts.
Run steps with no dependencies in parallel to reduce overall wait time. Map the dependencies during planning and parallelize where possible. This can improve total task duration more than making a single step faster.
Table 1. Typical steps and deliverables in a task-based workflow
| Step | What to do | Intermediate deliverable | Check |
|---|---|---|---|
| Define the goal | Specify the subject, scope, question, and deliverable | Task description | Confirm the metric definition and scope |
| Retrieve data | Query the allowed subset using the agreed definition | Detailed or aggregated results | Check row counts and the magnitude of values |
| Compare | Compare year over year, period over period, or across dimensions | Comparison table | Check the baseline period |
| Analyze contributions | Identify the dimensions with the largest contributions | Findings on contributions | Check the contribution ranking |
| Deliver | Produce a chart, table, or written conclusion | Final deliverable | Check against the original goal |
4 Choose the right tool for each step
4.1 Match the tool to the step’s objective
Use query tools for retrieval, aggregation and grouping tools for comparison, and visualization or export tools for delivery. Choose tools based on what the step needs to accomplish. Tools in one task should share the same metric definition so the chart matches the query.
4.2 Fill tool inputs from the task context
Take each step’s inputs from the task description and the previous deliverable. A tool should never assume its scope. Pull key inputs such as time, organization, and metric from confirmed context. If any are missing, ask for clarification before proceeding.
4.3 Have a fallback when a tool fails
If a tool times out or the chart is unsuitable, distinguish query failure, chart conversion failure, and access denial. If query data is available, it can be shown as a table. If read access was denied, stop at that step. Before using an alternative data source, have an analyst check freshness, the metric version, and access rights. Name the source actually used in the deliverable.
4.4 Keep metric definitions consistent across tools
When a task calls several tools, use the same metric definition, time range, and organizational scope for all retrieval. Otherwise a query and its chart can disagree. Maintain the common definition in a shared semantic layer. Separate tool-specific definitions create room for drift.
Keep a record of the metric definition when switching tools. If you fall back to another source, name it in the answer and state whether it uses the same definition as the primary source. This helps readers distinguish a source change from a change in the data itself.
5 Validate intermediate results
5.1 Keep an intermediate deliverable that can be checked at every step
After retrieval, check row counts and magnitudes. After a comparison, check the baseline period. After contribution analysis, check the ranking. Intermediate deliverables tell you which step went wrong. If the first indication of trouble comes at delivery, the entire workflow may have to run again.
5.2 Attach a rule to each step
Give each step a simple check. Does the result contain rows? Are the values in a plausible range? Does the direction of the comparison agree with history? A failed check stops the workflow before the next step. Magnitude comparisons and missing-value checks catch most obvious errors without a complex model.
5.3 Record validation results in task state
Record which steps passed and which results are suspect. This lets the team explain how reliable the conclusion is at delivery and find recurring problems in later reviews. The record supports the delivery decision. Users need the findings it supports, while the detailed process log serves investigation.
5.4 Stop when validation fails
When an intermediate value is out of range or a definition is in doubt, stop and flag the issue. Later steps may otherwise accept it by default, making correction harder. Then decide whether to fix parameters, supply missing data, or deliver a reduced result.
Make the check explainable. State why a magnitude is considered abnormal and where the baseline comes from. Without an explicit standard, validation becomes subjective and varies from run to run.
6 Fallback and replanning after failure
6.1 Resume from a recoverable state
The team can reuse verified intermediate results it has saved when the scope, metric definition, and data batch agree. For a disconnected SENSE 7.0 client, read the server-side run state and restore the readable results from the turn retained by the server. Asking for a new answer creates a new turn.
6.2 Establish the cause before replanning
Retry temporary read errors within the system’s limits. Ask business users to clarify ambiguous parameters. If a write times out, read the target first to determine the resource state before acting again. Handle access denial through the authorization process.
6.3 Deliver what was verified when the full task cannot be completed
For example, if category detail is verified but promotion flags are missing, deliver the difference and each category’s contribution. List the effect of promotions as an open question.
Table 2. Decide what to do based on the evidence available after a failure
| Situation | Check first | Next action |
|---|---|---|
| Read timeout | Is the original turn still running, or are its persisted results readable? | Read state before deciding whether to start a new turn |
| Access denied | Which account and resource are involved? | Record the denial and its scope, then follow the authorization process |
| Write outcome unknown | Did the target change, and is there already a success receipt? | Reconcile first to avoid duplicate creation |
| Detail data is unavailable | What portion of the data has arrived? | Deliver the verified portion and identify the gap |
7 Close out the task with the deliverable
7.1 Check the deliverable against the goal
Confirm that the final result answers the original question. Check the subject, scope, and requested format. Many tasks produce complete-looking material that misses the question because nobody checked it against the original description.
7.2 Supply the evidence behind findings
Include the data scope, comparison baseline, and dimension that drove the result. Give readers the evidence they need to verify the findings themselves. A chart or conclusion on its own gives them too little to explain in a later report.
7.3 Archive task state
Archive the step records, intermediate deliverables, validation results, and final deliverable together. This supports reproduction and review. A similar task can then use the verified sequence as a reference instead of starting from scratch.
7.4 Turn verified steps into reusable workflows
Recurring tasks can reuse a workflow with established retrieval definitions, comparison dimensions, and output formats. Adapt that workflow for new requests. Only standardize steps that have been verified on real tasks.
The team can maintain proven analytical steps and business terminology and check them periodically against representative questions.
7.5 In practice: How to verify an analysis of falling East China sales
In Q&A mode, select a prepared sales application or data package. Ask, “How much did the amount paid for products in East China last month change compared with the same month a year earlier?” Check that the two periods share a region mapping and a product amount definition, and confirm the cutoff time for each period. Then ask for the difference by category so the chart and conclusion use the same data and filters.
question: Why did East China sales fall last month?
scope: East China sales application
metric: Amount paid for products, less sales discounts, with refunds shown separately
periods: [last month, same month last year]
breakdown: product category
checks:
- Last month's data is complete and both calendar months use the same time zone
- Category differences add to the total difference, with unknown categories shown separately
deliverable: Category comparison chart, amount difference, and factors still to verify
Suppose the comparable total fell from CNY 1 million to CNY 920,000. Category A fell by CNY 60,000, category B fell by CNY 30,000, and other categories rose by CNY 10,000. The differences add up to −CNY 80,000. Category A contributed CNY 60,000 to the decline, but inventory or campaign records are still needed to verify stockouts or promotion changes. To turn the analysis into a lasting asset, confirm edit permissions, create or edit the target dashboard in Operation mode, and have the publishing owner publish it.
8 Antipatterns
8.1 Planning everything and skipping checks along the way
Running all steps in a chain without stopping for checks is the most common mistake in task-based analysis. If one step uses a wrong definition, later steps inherit the mistake and it surfaces only at delivery. Checking each step costs far less than redoing the entire workflow.
8.2 Breaking the work into ever smaller steps
Splitting a task into more than a dozen separately orchestrated and validated steps to look rigorous can make planning cost more than the analysis. Fine-grained steps suit stable, reusable processes and rarely suit a one-off exploration. Use independent verifiability to decide how much to split.
8.3 Showing the process without a clear deliverable
Listing tools and steps can leave the user with no clear outcome. Users need a result they can check. Process records are diagnostic details, so present them separately from the deliverable.
8.4 Expanding the task goal during execution
Related questions can tempt the team to expand the analysis and leave the final deliverable misaligned with the initial goal. Ask the user to confirm changes to the goal. Internal extensions should only refine the original scope. Comparing the deliverable against the goal should catch scope drift at closeout.
9 Boundaries and conclusion
Multistep planning suits analytical questions with definable metrics and goals. If an enterprise also wants to send findings to CRM, ticketing, or notification systems, its integration owner should specify interfaces, identities, and approval responsibilities. Use the corresponding HENGSHI SENSE interfaces for application publishing, authorization, and export.
Three observable outcomes measure the maturity of a task workflow. It closes out against its goal, its intermediate state can be reproduced, and it can recover from failure at a specific step. Without all three, a workflow may appear to run but be hard to diagnose or recover when something goes wrong.
A task-oriented Data Agent succeeds when each step retains its state, can pass validation, and can recover from errors, and when the final deliverable meets the goal. A workflow that handles goals, steps, dependencies, validation, fallback, and closeout reliably can move from answering questions to completing a task.
About HENGSHI Technology
Founded in 2016, HENGSHI Technology pioneered the definition of a new generation of Agentic BI for the Data + AI era. Its enterprise analytics platform, HENGSHI SENSE, works with HENGSHI Super Digital Employee, the HENGSHI CLI execution engine, and HENGSHI BOX, its privately deployed operations and control hub, to form an integrated suite of services. With a decade of experience in BI analytics, HENGSHI continues to support software vendors across industries through its Powered by Hengshi ecosystem strategy. It provides integrated, end-to-end AI analytics in trusted private environments for business operations and data-driven decision-making at enterprise groups in manufacturing, finance, retail, government, and other sectors.