Entire project works fine in Voiceflow but as soon as I upload to a device (echo dot). Multiple things stop working:
- Google Sheets - Returns an undefined value on device when working perfectly fine
- Algolia API - Returns 0 as a value on device rather than a string. Working fine on Voiceflow and I have the response working in a different flow with exactly the same parameters?!?
3 Custom code blocks - have found two problems here:
Problem 1: I set up a capture to get the speech then tried to find a single word using something like:
response = response.toLowerCase();
if (response.includes("pet") == true) {
response = "pet";
}
It looks like it fails to either set this value or to return it from the next block (could be same issue as Google Sheets?)
Problem 2: Creating a string in a custom code block gives the following error.
Error: Fatal error occurred when processing SSML content. This usually happens when the SSML is not well formed. Error: Unexpected character ' '
I know this is a new product but its really dissapointing to spend so much time on a project to not be able to demo it on a device.
Any help greatly appreciated.