---
title: "Discussion on \"How to Improve Agentic APIs: Expose a Simple Workflow API\" | Hashnode"
description: "Discussion on \"How to Improve Agentic APIs: Expose a Simple Workflow API\". Build better conversational agents with grammar-based workflow APIs: code runs the workflow, the model just talks. More reliable, cheaper, faster."
url: "https://hashnode.com/posts/how-to-improve-agentic-apis-expose-a-simple-workflow-api/6aac9000e0cc167d37e2b8c3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Improve Agentic APIs: Expose a Simple Workflow API](https://adam-lang.hashnode.dev/how-to-improve-agentic-apis-expose-a-simple-workflow-api?utm_source=hashnode&utm_medium=feed)

Build better conversational agents with grammar-based workflow APIs: code runs the workflow, the model just talks. More reliable, cheaper, faster.

Sep 18 · 23 min read · adam-lang.hashnode.dev  
Updated Sep 21  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#langgraph](https://hashnode.com/tag/langgraph)
-   [#showdev](https://hashnode.com/tag/showdev)

## Written by

[Adam Lang](https://hashnode.com/@adam-lang)

@adam-lang · Sydney, Australia

  
[View profile](https://hashnode.com/@adam-lang)

Sharing research and thoughts on AI development techniques

AI developer and enthusiast

## Responses 1

Markdown supported · ⌘↵ to post

[Mateo Ruiz](https://hashnode.com/@mateoruiz)

[Sep 18](https://hashnode.com/posts/how-to-improve-agentic-apis-expose-a-simple-workflow-api/6aac9000e0cc167d37e2b8c3/comment/6aad27a3a158a50e1c617aa5)

The interesting part here is that the API design is doing more than simplifying tool calling it is **reducing the amount of state the model has to reconstruct** on every turn. A `{slot, value}` interface gives the model a small grammar while the workflow engine owns progression, validation, and side effects. That separation makes reliability much easier to reason about.

The 43/44 result is especially useful because the benchmark measures what actually reaches `search_availability` and `book_court`, rather than judging whether the conversation merely sounds correct. That is the kind of boundary I’d want in production agent evaluation too: measure the deterministic outcome, not just the quality of the model’s prose.

This maps closely to what we see in production AI work at IT Path Solutions: **keep the model flexible at the language boundary, but make the business-critical state transitions explicit and testable**. The next interesting step is probably graceful handling of exceptions letting the deterministic workflow remain the default while selectively handing genuinely ambiguous states back to the model.
