rival-black
rival-black2y ago

[object Object] as output value

Hello, The response webhook from make.com (as you can see in the image) is returning the correct values (saved in variable "formattedBusy") in start and end dates, but when I use the speak block, it will always output [object Object]. Anyone knows what to do here? Regards
No description
1 Reply
Tico | Voiceflow Assistant
It sounds like you're encountering an issue where the output from your webhook is being displayed as [object Object] instead of the expected formatted dates. This typically happens when trying to output an object directly without accessing its properties. To resolve this, you'll need to ensure that you're referencing the specific properties of the "formattedBusy" variable that contain the start and end dates. Here are some steps to help you troubleshoot and potentially fix the issue: - Make sure that the "formattedBusy" variable is correctly capturing the response from your webhook. You can use the "Capture Response" section in Voiceflow to map the response to your variable. - Use a JavaScript step in Voiceflow to access and parse the specific properties of the "formattedBusy" variable. For example, if "formattedBusy" contains properties like startDate and endDate, you would access them using formattedBusy.startDate and formattedBusy.endDate. - After parsing the properties, assign them to new variables or directly use them in your speak block. Remember, direct output of objects without specifying the property will result in the [object Object] output. Always ensure you're accessing the specific data you want to output. For more detailed guidance on working with API responses and variables in Voiceflow, you might find the following resources helpful: - Voiceflow Documentation on Functions - Voiceflow Documentation on Customization and Configuration

Did you find this page helpful?