It sounds like you're having trouble capturing the location ID from an API response and saving it to a variable in Voiceflow. Here are a few steps and tips to ensure you're setting up the API block correctly:
Ensure you're using the correct JSON path in the "Capture Response" section. The path should start with , followed by the hierarchy of keys to reach your desired data. For example, if the API returns , your path to capture the IP would be .
Double-check the API documentation to confirm the structure of the response and the correct path to the data you want to capture.
Test your API request within Voiceflow or using external tools like Postman or Insomnia to ensure the API is returning the expected data.
Make sure you've selected the correct variable to save your captured data to in Voiceflow. The variable name should be enclosed in curly braces, like .
If you've followed these steps and are still facing issues, it might be helpful to review the API block configuration and ensure that the response from the API is as expected. Sometimes, issues can arise from unexpected API response structures or incorrect paths specified in the "Capture Response" section.
For more detailed guidance on working with APIs in Voiceflow, you can visit our documentation on API – Voiceflow.