<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/introducing-useagent-one-hook-to-stream-durable-ai-workflows-to-the-frontend-qfiy2litt" -->

---
title: Introducing useAgent: One Hook to Stream Durable AI...
description: Inngest launched useAgent, a React hook that streams durable, multi-step AI agent workflows from the backend to the frontend. Built on Inngest's...
canonical: https://daily.dev/posts/introducing-useagent-one-hook-to-stream-durable-ai-workflows-to-the-frontend-qfiy2litt
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Introducing useAgent: One Hook to Stream Durable AI Workflows to the Frontend | daily.dev
og:description: Inngest launched useAgent, a React hook that streams durable, multi-step AI agent workflows from the backend to the frontend. Built on Inngest's...
og:url: https://daily.dev/posts/introducing-useagent-one-hook-to-stream-durable-ai-workflows-to-the-frontend-qfiy2litt
og:image: https://api.daily.dev/og/posts/QFIY2LItT.png
og:image:alt: Introducing useAgent: One Hook to Stream Durable AI Workflows to the Frontend
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introducing useAgent: One Hook to Stream Durable AI Workflows to the Frontend

**[Inngest Blog](https://daily.dev/sources/inngest)** · 3 min read · 0 upvotes · 0 comments

## Summary

Inngest launched useAgent, a React hook that streams durable, multi-step AI agent workflows from the backend to the frontend. Built on Inngest's infrastructure, it provides parts-based streaming (text, tools, data, reasoning steps), automatic retries and resumable execution without manual checkpointing, and built-in observability through a newly launched Insights feature. It's positioned as an alternative to rolling your own infrastructure, using LangGraph plus LangSmith, or combining Vercel AI SDK with custom tooling. Setup involves installing the npm package, wrapping the UI with an AgentProvider, and calling useAgent() in a component.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.inngest.com/blog/agentkit-useagent-realtime-hook>

## Questions this post answers

### How do I stream real-time updates from a durable multi-agent backend workflow to a React frontend?

Use the useAgent React hook from the @inngest/use-agent package, wrapping your UI in an AgentProvider. It exposes messages, sendMessage, and status from a single hook, streaming responses as composable parts (text, tools, data, reasoning) that update independently, with automatic retries and resumable execution built on Inngest's infrastructure.

_Developers wiring agent UIs to durable backends can find related tooling and updates on daily.dev._

### What are the limitations of using LangGraph for production AI agent UIs?

LangGraph's durable execution is limited to checkpointing, requiring developers to implement persistence and retries themselves. Its useStream requires running a separate LangGraph server alongside a Next.js app and only streams LangGraph execution updates, and it lacks built-in observability, requiring a separate LangSmith subscription for tracing and debugging.

_Teams comparing agent orchestration frameworks like LangGraph track these tradeoffs on daily.dev._

### What does the Vercel AI SDK lack compared to a dedicated agent orchestration framework?

The Vercel AI SDK handles basic streaming but offers no durable execution, no multi-agent orchestration, and no built-in observability for debugging agent behavior, making it insufficient on its own for production multi-agent workflows that need to survive failures and be debuggable.

_Developers weighing Vercel AI SDK against fuller agent frameworks follow these comparisons on daily.dev._

## Similar posts on daily.dev

- [Build agentic full-stack apps with Genkit](https://daily.dev/posts/build-agentic-full-stack-apps-with-genkit-ckpxki271) · Google Developers · 4 upvotes · 0 comments
- [How I Use Agents Without Losing Ownership of My Code](https://daily.dev/posts/how-i-use-agents-without-losing-ownership-of-my-code-wasdljjlc) · iO tech\_hub · 8 upvotes · 1 comments
- [Build an AI QA Agent for Expo Apps with EAS Workflows in minutes today](https://daily.dev/posts/build-an-ai-qa-agent-for-expo-apps-with-eas-workflows-in-minutes-today-920jfgips) · Expo Blog · 0 upvotes · 0 comments
- [Durable AI Workflows 2026: Inngest, Trigger.dev, Vercel Workflow](https://daily.dev/posts/durable-ai-workflows-2026-inngest-trigger-dev-vercel-workflow-un2tgyyqs) · Alex CloudStar · 0 upvotes · 0 comments

---

Tags: [#react](https://daily.dev/tags/react), [#ai-agents](https://daily.dev/tags/ai-agents), [#langgraph](https://daily.dev/tags/langgraph)

[View this post on daily.dev](https://daily.dev/posts/introducing-useagent-one-hook-to-stream-durable-ai-workflows-to-the-frontend-qfiy2litt)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Introducing useAgent: One Hook to Stream Durable AI Workflows to the Frontend","url":"https://daily.dev/posts/introducing-useagent-one-hook-to-stream-durable-ai-workflows-to-the-frontend-qfiy2litt","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/introducing-useagent-one-hook-to-stream-durable-ai-workflows-to-the-frontend-qfiy2litt"},"datePublished":"2026-09-13T19:57:12.604Z","dateModified":"2026-09-13T19:58:59.673Z","description":"Inngest launched useAgent, a React hook that streams durable, multi-step AI agent workflows from the backend to the frontend. Built on Inngest's...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/28d24e25a19255ac99b02d70342e9b6f?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/28d24e25a19255ac99b02d70342e9b6f?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Inngest Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Inngest Blog","logo":"https://media.daily.dev/image/upload/s--ieZKUa5y--/c_limit,w_256/f_auto,q_auto/v1789329423/logos/inngest?_a=BAMAMicg0","url":"https://daily.dev/sources/inngest"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/introducing-useagent-one-hook-to-stream-durable-ai-workflows-to-the-frontend-qfiy2litt","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"react,ai-agents,langgraph","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Inngest Blog","item":"https://daily.dev/sources/inngest"},{"@type":"ListItem","position":3,"name":"Introducing useAgent: One Hook to Stream Durable AI Workflows to the Frontend"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/introducing-useagent-one-hook-to-stream-durable-ai-workflows-to-the-frontend-qfiy2litt#faq","mainEntity":[{"@type":"Question","name":"How do I stream real-time updates from a durable multi-agent backend workflow to a React frontend?","acceptedAnswer":{"@type":"Answer","text":"Use the useAgent React hook from the @inngest/use-agent package, wrapping your UI in an AgentProvider. It exposes messages, sendMessage, and status from a single hook, streaming responses as composable parts (text, tools, data, reasoning) that update independently, with automatic retries and resumable execution built on Inngest's infrastructure. Developers wiring agent UIs to durable backends can find related tooling and updates on daily.dev."}},{"@type":"Question","name":"What are the limitations of using LangGraph for production AI agent UIs?","acceptedAnswer":{"@type":"Answer","text":"LangGraph's durable execution is limited to checkpointing, requiring developers to implement persistence and retries themselves. Its useStream requires running a separate LangGraph server alongside a Next.js app and only streams LangGraph execution updates, and it lacks built-in observability, requiring a separate LangSmith subscription for tracing and debugging. Teams comparing agent orchestration frameworks like LangGraph track these tradeoffs on daily.dev."}},{"@type":"Question","name":"What does the Vercel AI SDK lack compared to a dedicated agent orchestration framework?","acceptedAnswer":{"@type":"Answer","text":"The Vercel AI SDK handles basic streaming but offers no durable execution, no multi-agent orchestration, and no built-in observability for debugging agent behavior, making it insufficient on its own for production multi-agent workflows that need to survive failures and be debuggable. Developers weighing Vercel AI SDK against fuller agent frameworks follow these comparisons on daily.dev."}}]}
```

