---
title: 'InterAct: Dialogue-Driven LLM Agents'
url: https://www.emergentmind.com/topics/interact
type: topic
---

# InterAct: Dialogue-Driven LLM Agents

InterAct refers to a class of frameworks and methodologies for integrating interaction—specifically, free-form dynamic dialogue—into large language model (LLM)-based agents tasked with real-world problem solving in environments requiring both autonomous action and human collaboration. In contemporary LLM agent research, systems such as ReSpAct instantiate this approach by harmonizing three distinct modalities: internal reasoning ("Think"), grounded environmental actions ("Act"), and unstructured conversational exchange with users ("Speak"). This paradigm enables agents to clarify ambiguous goals, refine subtasks via dialogue, solicit endpoint-specific input, and interleave plan execution with ongoing user feedback—all without reliance on fixed dialogue schemas or pre-defined dialog acts [2411.00927].

## 1. Architectural Foundations and Interaction Loop

In core InterAct-style frameworks exemplified by ReSpAct, the LLM agent operates on a generalized perceive-think-act(-speak) loop. The environment (which may be a structured API, web interface, or textual simulation) emits observations $o_t$. The agent's state at each timestep $t$ is captured by an internal context
$$
c_t = (o_1, a_1, o_2, a_2, \dots, o_t),
$$
where $a_i$ denotes agent actions and $o_i$, environment responses. The policy $\pi$ (typically an LLM, e.g., GPT-4) maps this context $\mathcal{C}$ to a composite action space
$$
\hat{\mathcal{A}} = \mathcal{A} \cup \mathcal{L}, \quad \mathcal{U} \subset \mathcal{L},
$$
where $\mathcal{A}$ are environment/API actions, $\mathcal{L}$ are internal language reasoning traces, and $\mathcal{U}$ are dialogue ("Speak") actions. At each step, $\pi$ selects between:

- **Think**: language-internal reasoning with no external effect,
- **Act**: execution of a concrete environmental or API action,
- **Speak**: user-directed utterances (clarifications, status reports, or alternative proposals).

When "Speak" produces a user reply $r_t$, this is appended to the context, integrating user information directly into future reasoning and acting decisions. This cyclical, schema-free alternation among thinking, acting, and speaking underpins robust InterAct agent behavior [2411.00927].

## 2. Formal Constructs and Operational Pseudocode

The InterAct formalism introduced in ReSpAct specifies policy and action types through the following constructs:

- $\mathcal{A}$: space of callable environment or API actions,
- $\mathcal{L}$: space of language-driven internal thought processes,
- $\mathcal{U} \subset \mathcal{L}$: subset reserved for user-interactive dialogue actions ("Speak").

The composite action-selection mechanism is thus:
$$
\pi: \mathcal{C} \longrightarrow \hat{\mathcal{A}}
$$
with action selection at stage $t$ given by
$$
\hat{a}_t = \pi(c_t) \in \hat{\mathcal{A}}.
$$

High-level operational pseudocode is as follows:
```python
Initialize context c ← [initial instruction]
loop t=1…T:
  if terminal(c): break
  â ← π(c)  # sample action via LLM
  if â ∈ 𝓛 \ 𝓤:
    append c ← [“Thought: …”]
  elif â ∈ 𝓤:
    append c ← [“Speak: …”]
    user_reply ← UserSimulator(â, c)
    append c ← [user_reply]
  else:
    execute(â)  # environment or API call
    o ← observe_environment()
    append c ← [o]
end loop
```
A notable methodological feature is that the user-simulator (for offline benchmarking) or real user (online/human-in-the-loop) is interleaved organically without requiring explicit dialog schemas [2411.00927].

## 3. Innovations over Reasoning-First Architectures

Traditional reasoning-first agent architectures, such as ReAct, bifurcate agent action into thought (internal reasoning traces) and environmental actuation, but omit explicit mechanisms for dynamic, unstructured, user-agent dialogue. In contrast, InterAct models as instantiated in ReSpAct extend the action schema by incorporating the "Speak" mode ($\mathcal{U}$). This enables agents to proactively ask clarification questions, present status updates, resolve subtask failures, and negotiate alternatives in natural language as needed, with the timing and content of dialogue determined by the LLM's internal reasoning rather than by pre-defined schema.

Unlike schema-guided dialog systems—where turn-taking, intent, and slot-filling are controlled by engineered dialog acts and finite-state machines—InterAct agents leverage a small few-shot prompting scaffold that defines response format (Think/Speak/Act) and allows for emergent, context-sensitive interaction policies without rigid templates. This supports broader generalization and responsiveness across diverse domains [2411.00927].

## 4. Evaluation Benchmarks and Quantitative Performance

ReSpAct-style InterAct frameworks have been evaluated on multiple benchmarks that probe task-oriented dialogue, web-based goal completion, and embodied text environments:

| Environment                   | Metric                             | ReAct Baseline | ReSpAct (InterAct) |
|-------------------------------|------------------------------------|----------------|--------------------|
| ALFWorld (embodied text)      | Success Rate (%)                   | 80.6           | 87.3               |
| WebShop (user simulation)     | Success Rate (%)                   | 8.0            | 12.0               |
| MultiWOZ (dialogue)           | Inform (%) / Success (%)           | 66.7 / 48.8    | 72.2 / 51.8        |

These results were obtained using a GPT-4 LLM backbone and demonstrate substantial improvements: absolute success rate gains of 6.7 points in ALFWorld, 4 points in WebShop, and evaluation gains of 5.5% (Inform) and 3% (Success) in MultiWOZ relative to the ReAct baseline. The evaluation employed the AutoTOD script for MultiWOZ and standard success/score metrics for ALFWorld and WebShop, employing both rule-based and LLM-based user simulators in offline settings [2411.00927].

## 5. Mechanisms of Dynamic User–Agent Collaboration

InterAct agents employing ReSpAct policy structure dynamically incorporate user feedback to disambiguate tasks, request missing or underspecified parameters, confirm or propose alternatives, and provide ongoing status. Example interaction types extracted from benchmark trajectories include:

- **Disambiguation**: "Which pan do you want from the kitchen?" (ALFWorld)
- **Missing Parameter Solicitation**: "How many people for the hotel booking?" (MultiWOZ)
- **Alternative/Confirmation**: "There is no cheap guesthouse; prefer hotel or shorter stay?" (MultiWOZ)
- **Status Updates**: "I have found three creditcards—which two shall I put away?" (ALFWorld)

By incorporating each user utterance directly into the agent’s history, error propagation from prior mistaken assumptions is mitigated, and excessive, blind reasoning cycles are reduced. This suggests improved sample efficiency and robustness, particularly in tasks characterized by ambiguity or underspecification [2411.00927].

## 6. Implementation Guidelines and Domain Adaptation

Implementing InterAct paradigms such as ReSpAct requires careful prompt engineering to distinguish the three response modes and a representative set of few-shot exemplars clarifying when to invoke "Speak." Extension to new APIs or domains requires only augmentation of the $\mathcal{A}$ action set to capture new environment actuators; the prompting and context-tracking scaffold remains otherwise domain-general.

Offline evaluation necessitates construction of a user simulator (rule-based or LLM-driven) to produce interactive replies in response to "Speak" actions. Online, such simulators are replaced with human participants. Empirical ablation—such as reducing the incidence of "Speak" actions—can be used to calibrate the actions-to-dialogue ratio and avoid degenerate over-communication. Variants ranging from monologue-only to schema-guided baselines enable systematic exploration of the autonomy versus user involvement tradeoff. Any API-enabled domain (robotics, web navigation, database manipulation) is compatible with this schema-free InterAct scaffold [2411.00927].

## 7. Context and Significance within LLM Agent Research

InterAct and its instantiations such as ReSpAct represent a progression from static, fixed-policy dialogue agents and pure chain-of-thought approaches toward unified frameworks capable of tightly coupling open-ended reasoning, grounded action, and unconstrained, context-driven user collaboration. This supports more human-like task completion, resilience to task ambiguity, and adaptability across heterogeneous environments. A plausible implication is broader applicability of LLM agents as real-world digital assistants, robust to open-domain instruction and adaptive to varying user preferences, without the limitations of rigid dialog act ontologies [2411.00927].

Source: https://www.emergentmind.com/topics/interact