Dynamic question handling and gathering a full res...
# support
c
Hey if I'm passing dynamic questions from my websdk when i do the gather step. How can i capture all information from the question above as a variable? Image https://cdn.discordapp.com/attachments/1364738858402582601/1364738858981392574/Screenshot_2025-04-23_at_5.43.44_PM.png?ex=680ac39b&is=6809721b&hm=ac7eb3b6db596c58733fc8f03f54450754570e6751084b60ff56cedc190a2fa1&
v
To capture the full response from a Gather step, you can access the variable directly in subsequent steps using the variable name you defined. Based on your image, the response is stored in
answer1
. You can reference this variable in later steps using:
Copy code
javascript
// Access the gathered response
const userResponse = message.variableValues.answer1;

// If that doesn't work, try this alternative syntax
const userResponse = messages.assistantOverrides.variableValues.answer1;
For a complete transcript, you can also use the GET /call/:id endpoint to retrieve the full conversation history. Sources: - [Gather Task Documentation](https://docs.vapi.ai/workflows/tasks/gather) - [Discord Channel](https://discord.com/channels/1211482211119796234/1329772290497318973) - [Discord Channel](https://discord.com/channels/1211482211119796234/1341440757189578782)
k
Pass it as assistant Overrides with variable values, then use a gather step in your workflow to collect the input and store it in variables for later use..