# Template your variables

Sometimes you want to refer back to answers already collected in your flow and display those answers to a responder. A common use case of this is calling the responder by their first name, or reminding them of a choice they had selected in a previous question. This is called **templating variables**.

{% embed url="<https://www.loom.com/share/b476fa30487142e796c27874ae5d5918>" %}

### **How to do it in the Studio**

* In this flow, I asked a **Text question** to ask the pet’s name, and I named the variable `pets_name`

![](https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2F5JXyQXdZdnkfGi3xxIXl%2Ftemplate1.png?alt=media\&token=1448c04e-ce31-4b24-96e9-008ec658cdd6)

* In my next two steps, I insert the answer variable `pets_name` from that question in double brackets.

![](https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FPwBFskah5fherE7LBvvk%2Ftemplate2.png?alt=media\&token=242134b1-5297-4519-9024-175c06429da0)

You can always see a list of the variables you have available to you in the side bar under variables:

![](https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FazkLQkXtkutRPimZ2zHz%2F6mrbco.gif?alt=media\&token=780ec5ec-8d93-47b8-aa7b-1fd8dde98fe2)

### How it looks to a responder

![](https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2F1d6J6rIEz4KAGFPj9H2e%2F6md2gk.gif?alt=media\&token=eff05659-1fe0-4af6-9b36-1e09d4f73915)

### Other resources

If you need to reformat the variables you collected, please refer to [Templating formatting functions.](https://docs.formsort.com/variable-templating#template-formatting-functions)

Use templated variables in [redirect URLs](https://docs.formsort.com/variable-templating#redirect-urls) and [image URLs](https://docs.formsort.com/variable-templating#inserting-answer-values-into-content).
