<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-build-a-streaming-agent-with-burr-fastapi-and-react-xozdmrscy" -->

---
title: How to Build a Streaming Agent with Burr, FastAPI, and React
description: Learn how to build a streaming agentic chatbot using Burr, FastAPI, and React. This guide covers why streaming is important, introduces the open-source tools...
canonical: https://daily.dev/posts/how-to-build-a-streaming-agent-with-burr-fastapi-and-react-xozdmrscy
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Build a Streaming Agent with Burr, FastAPI, and React | daily.dev
og:description: Learn how to build a streaming agentic chatbot using Burr, FastAPI, and React. This guide covers why streaming is important, introduces the open-source tools...
og:url: https://daily.dev/posts/how-to-build-a-streaming-agent-with-burr-fastapi-and-react-xozdmrscy
og:image: https://api.daily.dev/og/posts/xozDMrSCY.png
og:image:alt: How to Build a Streaming Agent with Burr, FastAPI, and React
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.

# How to Build a Streaming Agent with Burr, FastAPI, and React

**[Medium](https://daily.dev/sources/medium_js)** · 14 min read · 42 upvotes · 0 comments

## Summary

Learn how to build a streaming agentic chatbot using Burr, FastAPI, and React. This guide covers why streaming is important, introduces the open-source tools used, and provides a step-by-step example of integrating these technologies to create an interactive chatbot. The chatbot streams responses in real-time, leveraging Burr's state machine capabilities, FastAPI's SSEs, and a React frontend. Key steps include modeling the chatbot as a state machine, setting up streaming actions, building an application, exposing it through FastAPI, and creating the UI to handle streaming data.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://towardsdatascience.com/how-to-build-a-streaming-agent-with-burr-fastapi-and-react-e2459ef527a8>

---

Tags: [#react](https://daily.dev/tags/react), [#python](https://daily.dev/tags/python), [#openai](https://daily.dev/tags/openai), [#fastapi](https://daily.dev/tags/fastapi)

[View this post on daily.dev](https://daily.dev/posts/how-to-build-a-streaming-agent-with-burr-fastapi-and-react-xozdmrscy)

```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":"How to Build a Streaming Agent with Burr, FastAPI, and React","url":"https://daily.dev/posts/how-to-build-a-streaming-agent-with-burr-fastapi-and-react-xozdmrscy","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-build-a-streaming-agent-with-burr-fastapi-and-react-xozdmrscy"},"datePublished":"2024-07-26T15:59:04.705Z","dateModified":"2024-10-05T18:24:30.896Z","description":"Learn how to build a streaming agentic chatbot using Burr, FastAPI, and React. This guide covers why streaming is important, introduces the open-source tools...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1f527c21402e8b8bef89033f0544ced2?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/1f527c21402e8b8bef89033f0544ced2?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Medium","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":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-build-a-streaming-agent-with-burr-fastapi-and-react-xozdmrscy","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":42},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"react,python,openai,fastapi","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"How to Build a Streaming Agent with Burr, FastAPI, and React"}]}
```

