# Streaming response for custom actions

**URL:** <https://forum.rasa.com/t/streaming-response-for-custom-actions/61369>\
**Category:** Rasa CALM\
**Created:** [March 19, 2024, 9:15pm UTC](https://forum.rasa.com/t/streaming-response-for-custom-actions/61369 "2024-03-19T21:15:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![avatar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/avatar/32/23882_2.png) [@avatar](https://forum.rasa.com/u/avatar)\
**Post date:** [March 19, 2024, 9:15pm UTC](https://forum.rasa.com/t/streaming-response-for-custom-actions/61369/1 "2024-03-19T21:15:03Z")

</div>

I was thinking of using openai api within a custom action and stream the streaming response coming from openai to my chatbot. Openai is giving me streaming response and i am doing “dispatcher.utter\_message(openai\_res\_chunk)” from actions, but the response is not getting streamed in chunks to my bot and is available only after last chunk from openai. I am also passing “stream”: True while sending request to rasa server, but nothing is working. How to achieve this?

---

<div class="post-metadata">

**Author:** ![jtrasa](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jtrasa/32/23946_2.png) [@jtrasa](https://forum.rasa.com/u/jtrasa)\
**Post date:** [March 25, 2024, 8:40pm UTC](https://forum.rasa.com/t/streaming-response-for-custom-actions/61369/2 "2024-03-25T20:40:37Z")

</div>

Out of the box, the SDK CollectingDispatcher does not support streaming (see source code [here](https://github.com/RasaHQ/rasa-sdk/blob/main/rasa_sdk/executor.py)).

Given that Rasa has an open source offering, you could extend the SDK to add streaming, however I don’t have any guidance for you on how to do so.

---

<div class="post-metadata">

**Author:** ![saimadib](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saimadib/32/24941_2.png) [@saimadib](https://forum.rasa.com/u/saimadib)\
**Post date:** [January 14, 2025, 10:01am UTC](https://forum.rasa.com/t/streaming-response-for-custom-actions/61369/3 "2025-01-14T10:01:37Z")

</div>

Is there any way to stream the response?
