# End Block with workflow context

**URL:** https://community.mindstudio.ai/t/end-block-with-workflow-context/856
**Category:** Community Discussion
**Created:** [May 12, 2025, 6:08pm UTC](https://community.mindstudio.ai/t/end-block-with-workflow-context/856 "2025-05-12T18:08:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Marcio](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@Marcio](https://community.mindstudio.ai/u/Marcio)
#### Post date: [May 12, 2025, 6:08pm UTC](https://community.mindstudio.ai/t/end-block-with-workflow-context/856/1 "2025-05-12T18:08:21Z")

</div>

Hello! I’m trying to create a workflow that generates an analysis based on some user inputs. At the end, we present the analysis and the user has the opportunity to chat with the agent. I managed to do everything, but the final chat is restricted to the RAG and does not take into account the user inputs, nor the analysis that was presented in a Display Content block. Is there any way to generate a contextualized chat from the workflow and the RAG?

---

<div class="post-metadata">

### Author: ![jerry-mindstudio](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/jerry-mindstudio/32/26_2.png) [@jerry-mindstudio](https://community.mindstudio.ai/u/jerry-mindstudio)
#### Post date: [May 12, 2025, 9:24pm UTC](https://community.mindstudio.ai/t/end-block-with-workflow-context/856/2 "2025-05-12T21:24:04Z")

</div>

The End Block with chat will retain context of any Generate Text blocks in your workflow, **if displayed to user**. Context will not be retained if the output is instead saved as a variable and displayed via Display Content block.

[https://app.mindstudio.ai/agents/context-to-chat-block-09fa6ff0/remix](https://app.mindstudio.ai/agents/context-to-chat-block-09fa6ff0/remix)

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/1X/96a2fd153f640cd810f3d132b0b65678c3e5d939.png)
