UX/UI Bug: Confusing behavior of "Next" button in chat

Hi there!

I was building a RAG chat assistant for a client and noticed the following confusing and buggy behavior of the “Next” button. Here is the behaviour:

After the agent is done with the reply to my first question, I need to click on the “Next” button to continue the conversation like shown in the image below:

When I click on the “Next button” the following appears:

I write my follow-up question into the “Write something…” field. If:
a) I click on the arrow button (1.) or hit enter, my follow-up question will be answered and processed correctly by the bot. Everything works as expected
b) I click on the “Next” button again (2.), my new/follow-up question in the “Write something…” field will be ignored and the original question will be processed again.

I don’t see any settings in the End block that would fix it. Can you please have a look at it? I would suggest disabling the “Next” button once it’s pressed and you see the “Write something…” field. I’m happy to share any details with you.

Note: embedding the agent in a browser has the same issue.

Thanks a lot!

Hi @MartinCaronStudios,

Welcome to the community!

What you’re seeing is actually intended behavior. When your workflow has blocks downstream of the Chat block, the Next button lets users proceed to whatever comes next in the flow. The arrow button (and Enter) sends a message to the LLM and continues the conversation within the chat. Those two actions are separate by design.

If you want to keep the option for users to move to downstream blocks but the “Next” label is causing confusion, you can rename it in the block’s Continuation settings:

If you’d like to remove it entirely so users stay in the chat without the option to proceed to other blocks, set the Transition Control to None.

Let us know if you have any questions!

Hi Alex! Thanks for your quick response.

Unfortunately, I think the problem is even deeper and that my “Next Button” transition button isn’t working the way I would expect. The reason:

  • I need to ensure the agent will reply to user messages using the chat field which shows up after answering the first question utilizing the custom workflow as I’ve designed it.

Here is a screenshot of my current workflow:

I’m simulating HyDE and other RAG methods to ensure best possible retrieval of chunks. In addition, I also do chat history compression/summarization so that it doesn’t fill up the context and explodes the costs.

It seems like Mindstudio doesn’t support it the way I would need it to behave. It looks like the “chat continuation” has very limited functions. Please confirm my suspicion or let me know how I could solve it. I would appreciate your support!

Thanks a lot!

Hi @MartinCaronStudios,

From what you’ve described, Dynamic Tools could be a better fit for your workflow. You can specify a tool description in the Chat block, so the model knows when to trigger the respective workflow. The user stays in the same chat session the whole time, but each message can still run through your setup.

Here’s a tutorial that walks through the full Dynamic Tools setup:

And here’s a sample agent you can remix to explore the structure:
https://app.mindstudio.ai/agents/dynamic-tools-in-chat-8650c49b/remix

Let me know if you have any questions.

Hi @Alex_MindStudio,

thanks for the helpful tip! I was able to successfully “hack” my workflow to achieve the desired outcome! :+1: