This article provides a complete guide on capturing user responses, such as name, email, and more, and shows how to store and utilize them in your chatbot to create personalized and engaging experiences.
To create smooth, natural interactions, chatbots need to capture information just as humans would in a conversation. That’s where the Capture Step comes in.
With the Capture Node, you can collect specific details from users—whether it’s their name, email address, or any other important information—and store it in a variable for use later in the conversation. This allows your chatbot to build dynamic, user-friendly interactions.
Step-by-Step Guide: Capturing, Storing, and Accessing User Information
This guide will walk you through how to capture, store, and access user information using the Capture Step in YourGPT Chatbot Studio.
Capturing User Information
Step 1: Add the Capture Node
Drag and drop the Capture Node onto the canvas or into the block where you want to ask for the user’s input.
Step 2: Open the Capture Node
Click on the Capture Node to open the details panel on the right.
You’ll see two options for capturing the user’s input:
Entire User Response
Capture any specific Entity
Capturing the Entire User Reply
Step 3: Select “Entire User Reply”
Choose the Entire User Reply option to capture and store the user’s entire message.
Select or create a variable to store the captured reply:
Navigate to Model ➝ Variables ➝ Add New to create a new variable if necessary.
Note:
Variables used in this step will last for the duration of the flow. Ensure you understand the difference between flow and session variables.
Capturing Specific Entities
Step 4: Capture Speific Entity
Instead of capturing the entire message, you can extract specific entities (e.g., name, email, order ID, country) from the user’s response.
You can also create custom entities to capture more specific information. Simply go to Model ➝ Entities ➝ Add Entity to set up your own.
If you need to learn more about creating entities, check out our documentation or watch our detailed YouTube video guide to better understand how entities work.
Step 5: Configuring Entity Prompts
If the user’s response doesn’t include the expected entity, the assistant will prompt them for the correct information.
For example, if you ask for an order ID and the user responds with “hello,” the system will trigger the entity prompt again, requesting the correct order ID.
Customize these prompts in the details panel.
Handling No Match and No Reply Scenarios
Step 6: Configuring No Match / No Reply Responses
No Reply: Occurs when the user does not respond.
No Match: Occurs when the user’s response doesn’t match the expected input.
In these cases, you can:
Add a fallback conversation path under No Match.
Configure a No Reply path to prompt the user again.
Note: Adding proper fallback options helps improve user experience by guiding them down the correct path when a misunderstanding occurs.
Storing Captured Data
Step 7: Storing User Inputs
Captured data will be stored in the variables you assigned during setup.
There are different types of variables such as Flow Variables (exist only during the current flow) and Session Variables (persist across multiple sessions with the same user); check out more about variables in this YouTube video.
Example:
To store an entire user reply, assign it to FLOW.last_response.
For entity captures, access them using the entity’s variable name, e.g.,
{{FLOW.order_id}}.
Note:
Flow variables are destroyed when the flow ends, while session variables last across multiple user sessions.
Testing and Preview
Step 8: Testing in the Emulator
After configuring the capture node, test it using the emulator.
Click the “Play” button to simulate user interactions.
To verify captured variables, print them in the next step using
{{FLOW.variable_name}}.
Related Articles
How to Debug Flows and View Execution Logs in Chatbot Studio?
Learn how to debug your flows, check flow execution logs, and view logs within the Chatbot Studio
Flow : Scenarios, Blocks, Steps & Connections
This article fully details how steps/nodes and blocks work, how to configure them, create paths and connections.
How to make API calls with dynamic parameters.
This guide explains how to use the API Call node in the Chatbot Studio, including handling dynamic API parameters using flow variables.
How do I make my Flow or Studio changes live?
This article provides a complete guide on how to publish your flows live to your chatbot.
How to use Intents in Chatbot Studio?
This guide walks you through creating and using Intents to enhance your chatbot’s capabilities.
How to use Actions in Chatbot Studio?
This guide explains how actions work in YourGPT Chatbot Studio, how to trigger them within your flows, and what actions are available.