-
Notifications
You must be signed in to change notification settings - Fork 14
Document NodeConfig.respond_immediately
#236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
880323c
to
dab6da8
Compare
guides/features/pipecat-flows.mdx
Outdated
) | ||
``` | ||
|
||
Keep in mind that if you specify `respond_immediately=False`, the user may not be aware of the conversational task at hand when entering the node (the bot hasn't told them yet). While it's always important to have guardrails in your node messages to keep the conversation on topic, letting the user speak first makes it even more so. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe make this a
@@ -442,6 +446,25 @@ This ordering ensures proper completion of all operations. | |||
|
|||
Flows comes equipped with pre-canned actions and you can also define your own action behavior. See the [reference docs](/server/frameworks/flows/pipecat-flows#actions) for more information. | |||
|
|||
## Deciding Who Speaks First | |||
|
|||
8000 For each node in the conversation, you can decide whether the LLM should respond immediately upon entering the node (the default behavior) or whether the LLM should wait for the user to speak first before responding. You do this using the `respond_immediately` field. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this paragraph, perhaps add a <Tip>
, saying:
respond_immediately
can be used in the initial node if you want the user to speak first. You can point to this being common for cases where the agent is making outbound calls, for example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just a few suggestions.
Documents what's implemented in pipecat-ai/pipecat-flows#133