Last updated April 3rd, 2019

What You'll Learn 🧠

  • What Capture blocks do
  • How to use a Capture block
  • How to capture a user's answer into a variable

Video Tutorial

(updated video-tutorial coming soon)

What the Capture Block Does

The Capture block allows you to capture the user's response into a variable. Once this response is stored in the variable, you can use this value throughout the rest of the skill. 

  • i.e. You can ask the user what their name is using a Speak block, then follow that up with a capture block to capture the user's name into a name variable. You could then use the user's name throughout the rest of the project.

How to Use the Capture block

1. Create a Variable

Create a variable by heading over to the variables menu on the far left of your canvas. You can name the variable anything you want, but most people will give it a name that corresponds with the data it stores. We're storing the user's name in this variable so we're going to our variable 'name'.


2. Capturing Your Variable

Once we cue the user for a response, it's time to use our Capture block to store their response. Drag a Capture block onto your canvas and open it up.


Select an 'Input Type' from the dropdown menu. These are Amazon and Google slot types. Choose one that corresponds with what the user is going to respond with. In this example, I'm going to select the US_FIRST_NAME slot type. 

  • To see a list of Amazon's various slot types and example use case, click here.

Note: Only the slots supported by your selected locale(s) on Voiceflow will be displayed in the dropdown.


Now that we've selected an appropriate slot, we can select a variable to store the user's response. Under 'Capture Input To,' a dropdown of all your existing variables should appear. We're going to select our 'name' variable which we created earlier.


3. Time to Test

Here are our blocks.

Here is the format of 'Speak: Name'

Here is the output.


From here, we can use the {name} variable throughout our project. {name} currently stores "Valerie" but can be changed at any point in the project with other blocks. 

Other Blocks that Set/Update Variables

Still have questions? Message our team through using the blue bubble in the bottom right corner! 

Did this answer your question?