sensitive-blue•16mo ago
line break in a prompt
how to give a user the possibility to make a line break in their response to the chatbot?
6 Replies
To capture a user's entire reply in Voiceflow, including any line breaks, you can use the Capture Step. Here’s how you can set it up:
Capturing the Entire User Reply
1. Add a Capture Step: Place a Capture Step in your conversational flow where you want to capture the user's response.
2. Select 'Entire User Reply': Choose the option to capture the entire user reply.
3. Store in a Variable: Select or create a variable to store the user's response. This variable will hold the entire text, including any line breaks the user includes.
Example Setup
1. Create a Capture Step: Drag and drop the Capture Step into your flow.
2. Configure the Capture Step:
- Select 'Entire User Reply'.
- Choose a variable (e.g.,
user_response
) to store the user's input.
3. Test the Flow: Use the Test Tool to simulate a conversation and ensure that the user's response, including line breaks, is captured correctly.
Additional Tips
- Entity Prompts: If you need to capture specific entities within the user's response, you can configure entity prompts to ask for additional information if the initial response is incomplete.
- No Match/No Reply Configurations: Handle cases where the user's response is unrelated or if there is no reply by setting up 'No Match' or 'No Reply' responses.
By following these steps, you can effectively capture user responses in your Voiceflow chatbot.Just like in ChatGPT, you can hold shift and Enter to add a line break.
sensitive-blueOP•16mo ago
In my bot it doesn't work, did you do something specific to make this possible?

sensitive-blueOP•15mo ago
It's weird because it doesn't work for me... When I hold shift and I press enter, it act like if it was jus an Enter
Maybe your shift key is the issue?