Combining Conversational and Execution Agents: Architecture Design and Protocol Practice

    Conversational agents interpret goals and explain results, while execution agents break down work, call tools, and verify outcomes. This article explains how to join those roles with clear boundaries, structured task contracts, controlled data context, identity and authorization, and engineering practices for timeouts, checkpoints, cancellation, and independent verification.

    1. Why combine conversation and execution

    Conversational agents are good at understanding requests, clarifying intent, and explaining results. Execution agents focus on task decomposition, tool calls, environment interaction, and result verification. Combining the two is a reasonable system design direction, but only if they have genuinely different responsibilities—not merely two different model instances.

    A request such as “review this month’s procurement exceptions, generate a report, and notify the owners” contains several kinds of work:

    • Interpret the business definition of “exception,” the time range, and the report format.
    • Query procurement data and relate it to budgets, approvals, and receipt records.
    • Identify exceptions according to rules and retain the supporting evidence.
    • Generate the report and check whether the data is complete.
    • Confirm recipients and sending permissions, then perform the external action.

    If all of this stays in one growing conversation context, the system mixes requirement interpretation, business reasoning, tool output, and operational permissions. The dialogue may sound fluent while the execution lacks traceable state, or the task may finish without a clear basis for each step.

    The point of integration is not “let two agents chat with each other.” It is a collaboration path with clear duties:

    The conversation entry interprets the request, orchestration manages the flow, execution units call tools, and verification confirms the result.

    These roles can be implemented by one model plus several software modules, or by multiple agents. Whether to use multiple agents should depend on task complexity, isolation needs, and cost.

    2. Separate responsibilities before designing collaboration

    2.1 Conversation layer: turn a vague request into a confirmable task

    The conversation layer should not simply forward the user’s original wording. It should extract the goal, constraints, input scope, and acceptance criteria.

    “Clean up old files,” for example, at least needs:

    • Which directory or data space is in scope.
    • Whether “old” means creation time, modification time, or last access time.
    • Whether deletion is allowed, or only a candidate list may be produced.
    • Whether retention rules or compliance requirements apply.
    • Whether a backup or human confirmation is required before deletion.

    If this information is missing, the correct action is to ask or enter a preview mode—not to let the execution unit guess.

    2.2 Orchestration layer: turn the task into a state machine

    The orchestration layer stores task state, handles dependencies, schedules retries, and controls cancellation. It should be deterministic software logic, not a model “remembering progress” in natural language.

    A general task can use states such as:

    Pending confirmation → Authorized → Running → Pending verification → Completed

    Exception paths can enter failed, cancelled, or needs human handling. Transitions need explicit conditions. For example, a task may enter execution only after authorization checks pass.

    For long tasks that cross multiple tools, record each step’s input summary, execution status, result reference, and error category. The system can then resume after a model session ends without re-inferring history.

    2.3 Execution layer: organize tools around capability boundaries

    The execution layer should receive only the information required to finish the task. It should not, by default, hold the entire user session, all credentials, and unrestricted network access.

    Querying data, generating documents, sending notifications, and modifying business records should have separate permission boundaries. Writes and external sends need stricter approval and audit requirements.

    A model’s suggested action is not the same as system approval. Whether execution is allowed must be decided by the tool gateway and authorization policy.

    3. Replace loose natural-language handoffs with a task contract

    Passing only “please complete this task” between agents leaves too much room for interpretation. A structured task contract is more reliable.

    A contract should at least describe:

    • Goal: what must ultimately be done.
    • Scope: which resources may be accessed.
    • Constraints: which operations are forbidden, and whether human confirmation is required.
    • Deliverable: a report, a data list, or an operation result.
    • Acceptance criteria: how to judge that the task is truly complete.
    • Execution context: task identifier, deadline, cancellation state, and similar fields.

    The following message is illustrative and does not represent any existing product interface:

    1. {
    2. "task_id": "task-001",
    3. "goal": "Analyze procurement exceptions for the specified month",
    4. "constraints": {
    5. "read_only": true,
    6. "external_send_allowed": false
    7. },
    8. "deliverable": "Exception list and evidence summary",
    9. "acceptance": [
    10. "Covers the specified time range",
    11. "Each exception includes supporting data",
    12. "Missing data and analysis limits are stated"
    13. ]
    14. }

    Structured fields do not all belong in the model context. Authorization credentials, internal routing, and sensitive resource locators can stay in the orchestration system and be used by controlled tools. The model needs only the parts relevant to reasoning.

    Results should use a similar contract: distinguish completed work, unfinished work, evidence, errors, and items that need confirmation. A natural-language summary that looks complete should not be treated as a success signal by itself.

    4. Reducing repeated data cost is not only about the network

    In interfaces such as product catalogs, ledgers, and event lists, repeating field names on every record increases payload size. If those raw responses enter the model context directly, the repeated structure can also increase input tokens.

    Three costs should be separated:

    1. Network transfer cost: how many bytes are sent on the wire.
    2. Service parsing cost: how much computation the receiver spends decoding and validating data.
    3. Model context cost: how much content is ultimately sent to the model.

    Compressing a network message usually reduces transferred bytes, but it does not necessarily reduce model input. If the application decompresses the payload and then gives the full text to the model, the model still processes the original content.

    Reducing context cost requires changing the representation given to the model.

    4.1 Separate field definitions from record values

    For batch data with a stable structure, provide field definitions first and record values second. For example:

    1. {
    2. "schema": {
    3. "fields": ["record_id", "amount", "state"],
    4. "state_values": {
    5. "1": "pending",
    6. "2": "completed"
    7. }
    8. },
    9. "rows": [
    10. [101, 128.5, 1],
    11. [102, 76.0, 2]
    12. ]
    13. }

    This reduces repeated field names, but it increases dependence on order. The system must check row length, field types, and version consistency. The more fields there are, the easier positional misunderstanding becomes. A shorter text is not automatically a better design.

    4.2 Define the scope of schema reuse

    “Send the field definition only once” needs a clear scope: one request, one task, or one session.

    The receiver must be able to confirm the schema version. If the schema changes, the cache is lost, or the session is truncated, the full definition must be fetched again. New data must not be interpreted with an old field order.

    Application cache and model context are different states. The application knowing a field definition does not mean the current model call knows it. After context is trimmed, the system should supply the necessary description again.

    4.3 Prefer removing irrelevant data

    Before redesigning the representation, it is usually more valuable to:

    • Query only the fields the task needs.
    • Filter, aggregate, and sort on the server.
    • Return summaries of long text while keeping references to the source.
    • Read data in batches instead of loading every record at once.
    • Cache repeated tool results within the task.

    These measures are often easier to validate and reduce the chance that irrelevant information distracts the model.

    5. Govern semantic descriptions together with the data

    Field types do not fully express business meaning. An integer may be a quantity, the smallest currency unit, or an enumerated state. A time field may mean creation, approval, or effective time.

    A data contract therefore needs necessary semantics:

    • Currency, precision, and unit of measure for amounts.
    • Time zone, format, and business meaning of time fields.
    • Enum interpretations and rules for unknown values.
    • The difference between null and zero.
    • Data source, update frequency, and applicable scope.

    These descriptions should not live indefinitely inside prompts. A more stable approach is a versioned data definition supplied as needed during tool calls.

    Semantic metadata is not inherently trustworthy. Text from external pages, documents, or interfaces may contain instructions that try to change model behavior. The system should mark that text as data, not grant it system-instruction authority. Rules about authorization and operational limits must come from trusted configuration and must not be overridden by externally returned content.

    6. Identity and authorization: distinguish user, agent, and service

    When an agent calls an interface, at least three identities are involved:

    • User identity: who initiated the task.
    • Agent identity: which execution principal is acting for the user.
    • Service identity: which software service actually connects and calls the interface.

    General authentication mechanisms can carry this information, but the application still needs delegation relationships, permission scope, and revocation rules. The issue is not that existing network protocols cannot support agent identity at all. Agent scenarios need clearer, reusable authorization semantics.

    A reliable authorization system should answer:

    • Whether the user allows this task to access the target resource.
    • Whether the agent’s permissions exceed what the task needs.
    • Whether the authorization is still valid.
    • Whether later operations are blocked immediately after cancellation.
    • Whether permissions are narrowed further when work is handed to another execution unit.

    For high-impact actions such as deletion, payment, or sending a message, separate planning from submission: first produce the content or change list to be executed, then confirm it according to policy. Authorization must be checked before the actual operation, not only once when the task starts.

    7. Move reliability problems from the model into the engineering system

    Multi-agent collaboration adds network calls and state handoffs, and therefore more failure points. A production system must handle them explicitly.

    7.1 A timeout does not mean the action did not run

    A timeout may mean the service never received the request, or that the operation finished but the result has not returned. Retrying a write directly can create duplicate records or duplicate notifications.

    Use business idempotency: assign a stable identifier to the same operation and let the server recognize duplicate submissions according to business rules. If the target service does not support idempotency, resolve uncertain results by querying state, asking for human confirmation, or running a compensation flow.

    7.2 Long tasks need checkpoints

    After each important step, save enough information to resume, including input references, result locations, and execution status. On recovery, read persisted records first. Do not ask the model to guess what happened from conversation history.

    7.3 Cancellation must run through the execution path

    After the user cancels a task, orchestration should block new steps and stop unfinished operations where possible. External side effects that have already occurred may be irreversible, so the result must state which operations completed, which stopped, and whether compensation is required.

    7.4 Verification cannot rely only on the executor’s self-assessment

    After a report is generated, check data scope, reference completeness, and required fields. After a record is modified, read the final state to confirm the change. Prefer programmatic checks for deterministic conditions. A model can help explain and review, but it should not replace computable verification rules.

    8. Design protocols in layers, but do not start from scratch immediately

    If several execution units and business services need a common communication design, organize it across five logical layers:

    1. Transport: connection, encryption, timeouts, and streaming.
    2. Message: encoding, field validation, versions, and error format.
    3. Identity: authentication, delegation, permission scope, and revocation.
    4. Semantics: capability descriptions, data definitions, and unit conventions.
    5. Task: state, progress, cancellation, recovery, and result verification.

    This is an architectural split, not a requirement to invent five new wire protocols. Many needs can be met with mature transport mechanisms, structured messages, and application-level conventions.

    A shared protocol is worth further design only when multiple systems repeatedly hit the same problem, existing conventions cannot ensure interoperability, and the team is willing to maintain compatibility over time. Otherwise the protocol itself becomes a new integration burden.

    9. A validation path from a minimal prototype to production

    Start with a read-only task that has a clear boundary and a checkable result, such as querying data and generating a summary. In the first stage, implement conversation clarification, a structured task, controlled tool calls, and result checks. Do not rush into complex agent negotiation.

    In the second stage, add task persistence, error classification, retries, and permission isolation. Test failures such as interface timeouts, missing data, schema changes, and user cancellation.

    In the third stage, evaluate parallel execution units, structural reuse, and cross-service authorization. Expand a mechanism only after measurement shows a real benefit.

    Evaluation should cover:

    • Correctness: whether conclusions are accurate and evidence is complete.
    • Reliability: whether failures can be recovered and whether duplicate operations occur.
    • Security: whether privilege escalation and dangerous operations are blocked.
    • Efficiency: task duration, number of tool calls, and model input and output size.
    • Maintainability: how many modules must change when a tool is added or a field is modified.

    During tests, fix the task set, data scope, tool behavior, and model configuration, and record both on-the-wire message size and actual model input separately. A few internal cases are not enough to claim a generally applicable savings ratio.

    10. Conclusion: the value of integration comes from explicit contracts

    Conversational and execution agents can be combined, but the combination itself is not a quality guarantee. Usability depends on whether requirements can be stated clearly, permissions constrained strictly, state stored reliably, and results verified independently.

    In practice, the order should be: clarify responsibilities before writing task contracts; remove irrelevant data before optimizing structure; get authorization and recovery right before expanding collaboration.

    Once those foundations are in place, a multi-agent architecture can produce stable benefits. Otherwise, adding more agents only amplifies redundant context, error propagation, and operational complexity.