Pipeline Auto-Advancing Through Questions Without Waiting for User Input · Issue #1691 · pipecat-ai/pipecat · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a conversation with Pipecat Flows, the pipeline automatically advances through all questions without waiting for user input. The LLM asks a question, then immediately advances to the next question without giving the user an opportunity to respond.
It's important to note that the LLM is answering its own questions - either by providing made-up answers or by simply repeating the question as the answer. This results in a completely automated conversation where the user cannot participate.
Note: While I'm not 100% sure about it, I think I started noticing this issue a bit after migrating my agent from an on-prem API to Pipecat Cloud.
Note: Even with vad_audio_passthrough=True in the DailyParams configuration, the issue persists. This suggests the problem is not related to the Voice Activity Detection system failing to pass audio through.
Note 2: If I take the MuteFilter out and then say something like "Are you there?" while the bot is "stuck", the bot is able to say something and start the conversation from where it stopped faking answers (i.e. the middle of the flow config)
Note 3: While this issue is happening ~80% of the time, it's still intermittent, and sometimes I can see the expected behavior happening
Suspected Cause
The issue appears to be with how the flow transitions are configured. The logs show a transition occurring immediately after a question is handled.
These transitions are occurring immediately after the LLM has completed generating its response
The function calls related to question handling may be triggering immediate transitions to the next question node
The system is treating the LLM's outputs as user responses, creating a closed loop
Reproduction steps
Set up a Pipecat Flow with multiple question nodes using a static flow
Start the conversation
Observe the bot stuck without saying anything.
Look into the logs and see that the bot is actually asking and answering all questions in sequence without waiting for responses
Expected behavior
After asking a question, the bot should wait for the user to respond before moving to the next question.
Actual behavior
The bot asks a question, then immediately executes a function call to handle the next question, and transitions to the next question in the flow, without giving the user time to respond. The bot is also answering its own questions, resulting in a self-contained conversation loop without user input.
(In the future, please file Flows issues against the Flows repo.)
I've only seen this when the prompting is insufficiently specific. Check out the flows examples for recommendations on how to ensure that the LLM will call exactly one function at a time.
pipecat version
0.0.65
pipecat-flows version
0.0.16
Python version
3.12.3
Operating System
macOS 14.1.1
Issue description
When running a conversation with Pipecat Flows, the pipeline automatically advances through all questions without waiting for user input. The LLM asks a question, then immediately advances to the next question without giving the user an opportunity to respond.
It's important to note that the LLM is answering its own questions - either by providing made-up answers or by simply repeating the question as the answer. This results in a completely automated conversation where the user cannot participate.
Note: While I'm not 100% sure about it, I think I started noticing this issue a bit after migrating my agent from an on-prem API to Pipecat Cloud.
Pipeline Configuration
The pipeline is configured as follows:
Suspected Cause
The issue appears to be with how the flow transitions are configured. The logs show a transition occurring immediately after a question is handled.
These transitions are occurring immediately after the LLM has completed generating its response
The function calls related to question handling may be triggering immediate transitions to the next question node
The system is treating the LLM's outputs as user responses, creating a closed loop
Reproduction steps
Expected behavior
After asking a question, the bot should wait for the user to respond before moving to the next question.
Actual behavior
The bot asks a question, then immediately executes a function call to handle the next question, and transitions to the next question in the flow, without giving the user time to respond. The bot is also answering its own questions, resulting in a self-contained conversation loop without user input.
Logs
The logs clearly show that:
The text was updated successfully, but these errors were encountered: