Back to Reading List
[Architecture]·PAP-P0KUID·2023·June 26, 2026

Declarative Skills for AI Agents in Knowledge-Grounded Tool-Use Workflows

2023

M. Lim, I. Danial, Bin Sharudin et al.

4 min readArchitectureReasoningAgentsTool Use

Core Insight

Declarative AI agents boost procedural task accuracy with high-quality retrieval in customer service workflows

By the Numbers

85.3%

improvement in task accuracy with high-quality retrieval for DeclarativeAgent

50%

reduction in orchestration errors for DeclarativeAgent

0%

improvement in task success for ImperativeAgent under low-quality retrieval

5

number of language models evaluated

2

retrieval regimes analyzed

In Plain English

The study compares three AI agents in customer-service workflows using a knowledge base: a DeclarativeAgent, an ImperativeAgent, and a baseline. The DeclarativeAgent leverages skill files to enhance procedural task accuracy, whereas retrieval quality remains a bottleneck for all agents.

Knowledge Prerequisites

git blame for knowledge

To fully understand Declarative Skills for AI Agents in Knowledge-Grounded Tool-Use Workflows, trace this dependency chain first. Papers in our library are linked — click to read them.

DIRECT PREREQIN LIBRARY
Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks

Understanding how retrieval-augmented generation works is crucial for dealing with knowledge-grounded AI workflows.

retrieval-augmented generationknowledge groundingNLP task enhancement
DIRECT PREREQIN LIBRARY
Toolformer: Language Models Can Teach Themselves to Use Tools

This paper introduces how large language models can autonomously learn tool usage, which is essential for AI agents utilizing tools in workflows.

self-supervised tool learninglanguage model autonomytool use in AI
DIRECT PREREQIN LIBRARY
AI Agents Can Already Autonomously Perform Experimental High Energy Physics

It exemplifies the application of AI agents in specialized fields, guiding how AI agents can integrate domain-specific tools and knowledge.

AI agent autonomyintegration of domain toolsexperimental physics use case
DIRECT PREREQIN LIBRARY
Tree of Thoughts: Deliberate Problem Solving with Large Language Models

This introduces structured problem-solving techniques that aid in the development of AI agents capable of using tools in complex workflows.

structured problem solvingthought tree modelcomplex task decomposition
DIRECT PREREQIN LIBRARY
Adaptive Vision-Language Model Routing for Computer Use Agents

Understanding how vision-language models adapt to different scenarios is important for enabling AI agents to use tools across various workflows.

adaptive model routingvision-language integrationAI agent adaptability

YOU ARE HERE

Declarative Skills for AI Agents in Knowledge-Grounded Tool-Use Workflows

The Idea Graph

The Idea Graph
16 nodes · 20 edges
Click a node to explore · Drag to pan · Scroll to zoom
1,491 words · 8 min read13 sections · 16 concepts

Table of Contents

01

The World Before: AI in Customer Service

147 words

Before the introduction of advanced AI agents, customer service workflows heavily relied on rule-based systems and simple retrieval mechanisms. These methods were often inadequate due to their inability to adapt to complex and dynamic interactions. AI's potential to transform these workflows was evident, but the challenges of retrieval quality and procedural task accuracy remained significant barriers.

Imagine if you were trying to solve a jigsaw puzzle with missing pieces. This was the situation in customer service: agents had to work with incomplete or skewed information, leading to frequent errors and customer dissatisfaction. was identified as a critical bottleneck, impacting the effectiveness of AI agents across the board.

The paper begins by addressing these challenges, highlighting the need for AI systems that can better utilize knowledge bases. was proposed as a solution, aiming to improve the accuracy and reliability of AI-driven customer service workflows.

02

The Specific Failure: Retrieval Quality Bottlenecks

129 words

The core technical problem tackled by this paper is the caused by poor retrieval quality. When AI agents cannot access complete or accurate information, their performance in customer service tasks suffers. This bottleneck was a common issue across all types of agents, from traditional Baseline Agents to more advanced Declarative and Imperative Agents.

The paper emphasizes that without , even the most sophisticated AI systems struggle to deliver satisfactory results. This limitation was particularly pronounced in scenarios where the knowledge base was vast and unstructured, making it difficult for agents to extract relevant information quickly and accurately.

This section sets the stage for the innovative approaches explored later in the paper, which aim to overcome these retrieval challenges and enhance task accuracy in customer service workflows.

03

The Key Insight: Adaptive Orchestration

125 words

The breakthrough insight of the paper is the concept of . This approach leverages domain-specific skill files to enhance the adaptability of AI agents in customer service workflows. By moving away from rigid state-machine approaches, agents can dynamically adjust their actions based on the context and available information.

Imagine an AI agent as a chef in a busy kitchen, constantly adapting the menu based on available ingredients. Similarly, Declarative Agents equipped with skill files can modify their behavior in real-time, leading to improved task accuracy and reduced orchestration errors.

This insight redefines the role of AI in customer service, highlighting the importance of flexibility and adaptability in achieving high performance. It lays the groundwork for the methods and experiments detailed in subsequent sections.

04

Architecture Overview: Comparing Agents

122 words

The paper introduces three types of AI agents: the , the , and the . Each employs a different approach to managing customer service tasks, offering a comprehensive view of the strengths and weaknesses of each method.

The stands out for its use of skill files, enabling it to adapt its actions based on domain-specific knowledge. In contrast, the relies on a state-machine approach, which, while traditional, lacks the flexibility to handle dynamic interactions effectively.

The serves as a control, providing a conventional point of reference to assess the innovations of the Declarative and s. This section sets the stage for a deeper dive into the mechanisms that drive each agent's performance.

05

Deep Dive: Declarative Agent and Skill Files

130 words

The is a cornerstone of this paper, showcasing the power of in enhancing procedural task accuracy. contain domain-specific instructions that guide the agent's actions, allowing it to adapt to changing scenarios in real-time.

Imagine a skilled artisan with a toolkit tailored to specific tasks. The uses its in a similar way, drawing on predefined strategies to tackle customer service challenges effectively. This adaptability is a significant advantage over traditional state-machine approaches, which are more rigid and less responsive to unexpected changes.

By leveraging , the can reduce orchestration errors and improve task accuracy, particularly in environments with high-quality retrieval. This section delves into the mechanics of how work and their impact on the agent's performance.

06

Deep Dive: Imperative Agent and State-Machine Approach

128 words

The represents a more traditional approach to AI-driven task management, utilizing a state-machine architecture. This method involves predefined states and transitions, dictating the agent's actions in a linear and predictable manner.

While this approach can be effective in stable environments, it struggles with the complexity and unpredictability of dynamic customer interactions. Imagine a train running on fixed tracks, unable to adapt to detours or unexpected obstacles. This rigidity limits the 's effectiveness, particularly in scenarios requiring quick adaptation to new information.

This section explores the limitations of the and how it contrasts with the more flexible methods employed by the Declarative Agent. It provides a detailed analysis of why the falls short in delivering high task accuracy and reducing .

07

Deep Dive: Information Retrieval and POMDP

110 words

Information retrieval is a critical component of AI agent performance, particularly in environments modeled as Decentralized Partially Observable Markov Decision Processes (POMDPs). These processes account for the uncertainty and complexity of real-world customer service scenarios.

The paper outlines various , each offering different methods for accessing and processing information from a knowledge base. is essential for achieving optimal performance, as it directly impacts task accuracy and the agent's ability to adapt to new information.

This section provides an in-depth examination of the structural and information-theoretic properties of the POMDP models used in the study, highlighting their role in shaping the performance of the Declarative and Imperative Agents.

08

Training & Data: Building Effective Agents

101 words

The training process for the AI agents involved in this study is a crucial factor in their performance. The paper details the data strategies and objective functions used to optimize each agent's ability to handle customer service tasks.

Training the involves fine-tuning skill files to ensure adaptability and accuracy in various scenarios. For the , training focuses on optimizing state transitions to improve task success within the constraints of its state-machine approach.

This section highlights the challenges and considerations involved in training AI agents for customer service workflows, emphasizing the importance of high-quality data and effective retrieval mechanisms.

09

Key Results: Evaluating Agent Performance

101 words

The paper presents empirical findings that underscore the effectiveness of the Declarative Agent in improving and reducing . In scenarios with , the Declarative Agent consistently outperformed the Baseline and Imperative Agents, demonstrating superior adaptability and decision-making precision.

The study provides specific numbers, showing a significant increase in for the Declarative Agent, particularly in dynamic customer interactions. These results highlight the importance of adaptive skill-based orchestration in enhancing AI agent performance.

This section offers a detailed analysis of the benchmark numbers, comparing the performance of each agent type across different retrieval regimes and task scenarios.

10

Ablation Studies: Understanding Component Impact

105 words

Ablation studies conducted in the paper reveal the critical role of and high-quality retrieval in the performance of the Declarative Agent. Removing these components resulted in a noticeable decline in task accuracy and an increase in orchestration errors.

These studies underscore the importance of each component in the agent's architecture, highlighting how enables the Declarative Agent to outperform its peers. The Imperative Agent, in contrast, showed less sensitivity to component removal, further illustrating its rigidity.

This section details the findings from the ablation studies, providing insights into which parts of the agent architecture are most crucial for achieving optimal performance.

11

What This Changed: Impact on AI Workflows

101 words

The insights from this study have significant implications for the future of AI-driven customer service workflows. By demonstrating the effectiveness of adaptive skill-based orchestration, the paper paves the way for more flexible and accurate AI agents.

For companies like Salesforce and Zendesk, these findings highlight the potential to enhance their customer support tools, improving user satisfaction and operational efficiency. The study suggests a shift away from rigid state-machine approaches towards more dynamic, adaptable methods.

This section explores the broader impact of the paper's findings on the AI research community and industry, laying the groundwork for future innovations in AI workflow integration.

12

Limitations & Open Questions: Challenges Ahead

99 words

Despite its contributions, the paper acknowledges several limitations and areas for future research. The quality of retrieval remains a bottleneck, affecting all agent types and highlighting the need for continued advancements in information retrieval methods.

Additionally, while the shows promise in dynamic environments, there are still challenges in scaling this approach to handle more complex workflows and larger knowledge bases. The study calls for further exploration into optimizing skill files and enhancing retrieval accuracy.

This section provides an honest assessment of the current limitations and open questions, encouraging ongoing research and development in AI-driven customer service solutions.

13

Why You Should Care: Product Implications

93 words

For product managers and developers, the findings of this paper offer valuable insights into the design and implementation of AI-driven customer service tools. The demonstrated benefits of suggest a path forward for enhancing product offerings.

By integrating Declarative Agents into customer service workflows, companies can achieve higher task accuracy and improved user satisfaction. This approach aligns with the growing demand for flexible and responsive AI solutions in the industry.

This section emphasizes the practical implications of the study's findings, encouraging stakeholders to consider these innovations in their product development strategies.

Experience It

Live Experiment

Agentic Tool Use

See Tool Use in Action

Toolformer teaches a language model to pause mid-sentence, invoke external APIs like a calculator or search engine, inject the real result back, and continue — producing correct, verifiable answers.

The baseline guesses using statistical patterns — it sounds confident but may be wrong. Toolformer routes the question to a calculator and uses the verified output. Smaller model, better answer.

Try an example — see the difference instantly

⌘↵ to run

How grounded is this content?

Metrics are computed from available source text only — abstract, summary, and impact fields ingested into this system. Full paper PDF is not ingested; numerical claims that originate from within the paper body will not appear in these scores.

Source Richness88%

7 of 8 content fields populated. More fields = better-grounded generation.

Source Depth~264 words

Total source text analyzed by the model. Includes extended deep-dive summary — high confidence.

Number Grounding0 / 5

Key statistics whose numeric values appear verbatim in ingested source text. Unverified stats may originate from the full paper body.

Quote Traceability3 / 3

Key passages whose significant vocabulary (≥4-char words) overlap ≥35% with source text. Measures lexical traceability, not semantic accuracy.

Methodology: Number grounding uses regex digit extraction against source text. Quote traceability uses token set intersection on content words stripped of stop-words. Neither metric validates semantic correctness or factual accuracy against the original paper. For full verification, cross-reference with the original paper via the arXiv link above.