genetic-orange•2y ago
Problems with capture response.
I'm having a problem while trying to integrate suno api into voiceflow. I get sucessefully API calls and even get a positive responte ( a music generated directed from the voiceflow) but, i'm tottally unable to get the "capture response" into my variable, i've tried everything that i knew it and even if everything with the api goes well the value on the variable that i put on the capture response is ALWAYS 0 - in this case, its fundamental that the person talking with the chat can have acess to the URL of the music gerated - the URL appears in the JSON body of the API call, and it's working well , but when it comes to apply that url to a variable, it's seem its just impossible, the value is alwyas 0.

10 Replies
genetic-orangeOP•2y ago

Can you give a screenshot of the top of the JSON?
genetic-orangeOP•2y ago
Hello ! It's in the comments, unless it isn't what you need, if it's sometrhing else please tell me and i'll try to give you what you need !
genetic-orangeOP•2y ago
Isn't that ?

so in the key, instead of response.audio_info[0].audio_url enter response[0].audio_url
that will return the first instance of the audio_url
genetic-orangeOP•17mo ago
I can't thank you enought for this...really !
By the way... if isn't a problem iw ould need help with one more little thing - i need to insert a specific prompt that will be created while the user is giving me his information (the idea is to create a custom music with info about the user life, like name, age etc) but when i tried to set a variable for this and put it into the api step i got this error
genetic-orangeOP•17mo ago



genetic-orangeOP•17mo ago
And i tried to do all the stepes together and i still can't get the response, only when i do the steps apart from each other !


genetic-orangeOP•17mo ago
And hits is the JSON of the step to generate music

This is all doable.
It is hard to tell based on your screenshots
you need to make sure all the vars are being set correctly
the best way to test this is to output them all or to view the variable tray
when running a test, click the little gray line on the left of the screen
you will be able to see what vars are set