Article body
Full article
After checking last month’s sales in East China in the sales application, you can follow up with “What about South China?” To change an existing chart to a line chart, switch to Act mode and start a new conversation. HENGSHI SENSE 7.0 handles conversation mode, conversation scope, and business filters for each turn separately. In a portal integration, first establish whether the user wants to change a filter, switch application scope, or perform a different kind of action.
1 A conversation has a fixed mode and scope
1.1 Ask and Act deliver different results
Ask handles querying, analysis, interpretation, and follow-up questions. An answer may contain charts and sources. Act creates, configures, and modifies supported analytics assets within the current user’s permissions. An Act operation may produce a chart or dashboard as its result. Charts shown in Ask answers help explain analytical findings.
1.2 Where scope and business filters apply
Ask can be scoped to an application or data package, a metric subject area, or a dashboard scope created from the intelligent interpretation entry point on a saved dashboard. When no scope is required, the system looks for business objects in data available to the current user. If multiple sources could match, it clarifies first and identifies the source used in its answer. Related datasets inside an application or data package can be used. To move between applications or independent subject areas, select a new scope supported by the product.
In the same sales application, switching the region filter from East China to South China can be a follow-up when both regions are authorized. Start a new conversation if the regions belong to different applications or if the scope needs to be a particular dashboard. Switching between Ask and Act also starts a new conversation.
An embedded interface can label business filters and conversation scope separately. The filter bar can show the date and region, while the input area displays the conversation mode and application name. When the user moves to another application, offer a new conversation and retain the history. The previously opened sales conversation should not become the default for the inventory application.
1.3 A single page can host both modes
The global Data Agent input in SENSE 7.0 can switch modes and start a new conversation. A host portal can reuse the product entry point and show the mode and scope clearly. If a handoff is needed, summarize the agreed metric definition, chart target, and filters. The new conversation locates the resources again under the current identity.
2 Page context and server-side authorization
The host page can supply the current application, dashboard, or visible filters to help locate a business object. The server checks the current user, tenant, and resource permissions for reads and changes. A resource name from an earlier conversation can clarify the question. The current request still requires authorization for that resource.
Results can change even with a fixed scope. Changing the date, category, region, or metric definition can lead to a different result. For recurring reconciliation, specify the business metric and time basis in the first turn, keep the metric consistent in key follow-ups, and review the sources and filters in the answers.
| User action | Conversation behavior | Acceptance check |
|---|---|---|
| Ask about South China sales in the same application | Follow up in the original Ask conversation with South China as a business filter | Reuse the metric definition and verify actual permissions and the region filter |
| Switch from sales to inventory | Start a new Ask conversation and select the inventory application | The source points to the new scope and the prior conversation remains available |
| Convert the existing chart to a line chart | Open a new Act conversation and locate the target chart | The current account can edit it and the result identifies the affected resource |
| Continue work from an earlier analysis | Hand over the agreed metric definition, period, and goal | The new conversation checks the current identity and uses the summary as business context |
Prepare accounts and resources separately for acceptance. Give one account read access to both regions and another access only to East China. Ask the same question from both accounts in the sales application and reconcile the visible range and region filters. Then remove the relevant role from an authorized account and check the scope applied to a new request in its old conversation. Record the subsequent request and the data actually returned.
3 Confirmations and operation receipts
3.1 Operations with explicit confirmation
To create an execution plan, Data Agent first presents a proposal. After user confirmation, the server revalidates permissions, resources, content, and expiry. Integrators can read the proposal with the SDK, show the target, conditions, and expiry, then let the user confirm explicitly. If the proposal expires or its content changes, show the current details again for review. Creating a chart or adjusting a layout remains subject to permissions and business validation. The product has no general requirement to show a confirmation dialog for every such step.
A proposal can say, “Create a Monday execution plan for the regional weekly report in the sales application,” with the target, trigger time, and business time zone. Display the actual expiry returned by the system. If the proposal is declined or expires, show that it did not create a plan and let the user review the target or submit a new request.
3.2 Record the result of each step
Report an operation as complete when the successful response identifies the affected resource. If a step is explicitly refused, record that it did not execute. Earlier steps of a multi-step plan may have succeeded. Use each step’s resource ID and receipt to check the actual state. After a network interruption or an unknown terminal result, read the run and the target resource before deciding what to do next.
3.3 Handle expired proposals and permission changes
Consider a procurement team’s weekly inventory check. An analyst asks Act to create an execution plan and sees a proposal awaiting confirmation. Run two branches in the acceptance environment. In the first, an authorized analyst confirms in time, then checks the target, cadence, and status in the plan list. In the second, revoke edit permission before confirmation or let the proposal expire, then attempt confirmation and record the server response and plan list. This comparison distinguishes a proposal awaiting confirmation from a plan that was actually created.
In an SDK integration, read the proposal’s operationId and displayable content, including its target and expiry. After explicit confirmation, submit the fingerprint returned by the system. If it reports an expired proposal, changed content, or changed permissions, retain that outcome and wait for another explicit confirmation. The portal should show the plan target and terminal receipt together. A button-click log alone cannot establish the outcome.
A multi-step test can create a chart in an authorized application and then request an operation against a different, restricted asset. Verify the created chart and the state of the restricted asset separately. If the first step wrote a resource, its result should appear in the receipt. Identify the concrete objects the user can hand off and continue working with.
4 Which tasks belong in Act?
| Action | Common examples | Where to confirm |
|---|---|---|
| Supported, controlled changes | Create or edit datasets, fields, metrics, charts, dashboards, and layouts | Read the operation result and inspect the actual resource |
| Actions requiring user confirmation | Create an execution plan | Review and confirm the proposal, then read the final receipt |
| Actions handled through existing product entry points | Publish, share, grant access, export, permanently delete, change system settings, or enable or disable execution plans | An authorized operator uses the corresponding page |
Act can write script blocks. Executing those blocks and authorizing their connections still use the regular product flows. Direct users to the appropriate entry point when a request exceeds the supported capability. Resolve insufficient permissions through access management.
5 Fictional scenario: From regional sales analysis to a chart update
An operations manager wants to compare last month’s operating net sales in East China and South China and convert the weekly report’s bar chart to a line chart. Start an Ask conversation in the same sales application. Specify the payment month and the agreed refund deductions. For each region, keep the metric and calendar month fixed and vary the region filter. Read-only users should be able to retrieve data within their permissions.
Once the metric definition is confirmed, a publication reviewer with edit access starts a new Act conversation. The reviewer supplies the sales application, weekly report chart, and requested change to a line chart. After a successful result, open the target in the application and verify that the metric and filters are intact. If the report also needs to reach regional leads, use the page’s sharing flow.
Example of a cross-conversation handoff for a portal or manual input
previous_result:
metric: Operating net sales
period: Previous calendar month
date_basis: Payment month
filters: [East China, South China]
next_task:
mode: Act
application: Sales
target: Regional sales chart in the weekly operations report
change: Convert the bar chart to a line chart
The handoff only needs details required to reproduce the analysis. For portals handling sensitive data, pass the metric name, reporting period, and object references. The receiving conversation reads the data under the current identity. Test permission changes explicitly so stale filter snapshots or resource previews do not mislead the current operator.
6 Acceptance criteria
Run the same cases with three accounts. A read-only account can query authorized data and encounters the appropriate capability or permission limit for writes. An account with edit access can modify the target chart and read it back. After changing an account’s access, check its current read and write permissions again. For execution plans, verify the proposal, explicit confirmation, and terminal receipt separately.
Trace each acceptance check from the user entry point to the result. Follow-ups in the same scope should make filters clear. A mode or scope change should be identifiable as a new conversation. A successful resource creation or modification should identify the actual object. Keep those three forms of evidence together so business and engineering teams can verify the handoff.
About HENGSHI
Founded in 2016, HENGSHI develops next-generation Agentic BI for a Data+AI world. Its enterprise analytics platform, HENGSHI SENSE, works with HENGSHI’s digital employees, the HENGSHI CLI execution engine, and the privately deployed HENGSHI BOX to provide an integrated service offering. With a decade in BI analytics and its Powered by Hengshi ecosystem, HENGSHI enables software providers across industries and delivers end-to-end private, trusted AI analytics for operations and decision-making in manufacturing, finance, retail, and government.