> ## Documentation Index
> Fetch the complete documentation index at: https://reportana.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Use Captured Data

Captured data can be used in **Execute JavaScript** to run the desired scripts, such as in the BMI calculation example, where we capture the client's height and weight data and store them in the variables `payload.height` and `payload.weight`:

<img src="https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/webhook5-en.png?fit=max&auto=format&n=rrUbVfAgCraOJwnY&q=85&s=3c0034fe101fb13642cf7eeb0a0dcd2f" alt="Capturing with payload" width="792" height="517" data-path="webhook5-en.png" />

In the code above, in addition to using the data captured through the client interaction, we developed the script to save the result of the calculation in the variable `payload.result`. Since we defined the `result` attribute in the `payload` variable, this information can be used later in other messages within the same automation — as shown in the example, where we have a final message to display the BMI calculation result to the client:

<img src="https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/webhook6-en.png?fit=max&auto=format&n=rrUbVfAgCraOJwnY&q=85&s=cf3d066d2cb3348f131d1f55b1de4d19" alt="Capturing with payload" width="735" height="825" data-path="webhook6-en.png" />

<img src="https://mintcdn.com/reportana/rrUbVfAgCraOJwnY/webhook7-en.png?fit=max&auto=format&n=rrUbVfAgCraOJwnY&q=85&s=bba9a54a77a853a4a38508715dcec448" alt="Capturing with payload" width="782" height="193" data-path="webhook7-en.png" />

This way, it is possible to incorporate the results of complex processes using **Execute JavaScript** in client-facing messages, ensuring a personalized and dynamic response — as in the example where the final message displays the calculated BMI result.
