unwilling-turquoise
unwilling-turquoise16mo ago

Issue getting the response API from Make

Hello Guys I'm Adrian this is my first chatbot with VoiceFlow, I'm following all the steps to get the data from a webhook response, but I'm always getting "0". Could anyone help me please, I've been working many hours on this without results..Thanks
No description
No description
10 Replies
Tico | Voiceflow Assistant
Hi Adrian, It sounds like you're having trouble getting a response from your webhook in Voiceflow. Let's break down the steps to ensure everything is set up correctly: 1. Webhook Setup: - Ensure your webhook URL is correct and accessible. - Your webhook should be configured to handle POST requests if you're sending data to it. 2. Voiceflow Configuration: - In your Voiceflow project, use the "API" step to make the webhook call. - Set the method to POST (or GET if you're just retrieving data). - Ensure the request body is correctly formatted and matches what your webhook expects. 3. Authorization: - If your webhook requires authorization, make sure to include the necessary headers in your API step. 4. Debugging: - Use tools like Postman to test your webhook independently of Voiceflow to ensure it returns the expected data. - Check the logs or console output of your webhook server to see if the requests are being received and processed correctly. 5. Response Handling: - Ensure that your webhook returns a proper JSON response. - In Voiceflow, use the "Set Variable" step to capture the response data and use it in your conversation flow. Here's an example of how to set up an API call in Voiceflow:
{
"method": "POST",
"url": "https://your-webhook-url.com",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_TOKEN"
},
"body": {
"key1": "value1",
"key2": "value2"
}
}
{
"method": "POST",
"url": "https://your-webhook-url.com",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_TOKEN"
},
"body": {
"key1": "value1",
"key2": "value2"
}
}
If you follow these steps and still encounter issues, double-check each part of the process to ensure everything is configured correctly. If your webhook is returning "0", it might be an issue with the webhook itself or the data being sent. For more detailed guidance, you can refer to our API Reference. I hope this helps!
unwilling-turquoise
unwilling-turquoiseOP16mo ago
My webhook is not returning "0", but my variables does, the problem is in the capture but I'm following the doc
fair-rose
fair-rose16mo ago
Hey @AdriánF, If you want, we can get on a call to solve this issue. Check my PM. Thanks,
overseas-lavender
overseas-lavender16mo ago
i'm having exact same issue, how do make send data to voiceflow webhook when there is no url to paste in http post request? getting "0" always @usman.ashraf678 could we connect to solve this?
Steve B. | IntelleSync.ai
@Karol @AdriánF Have you both got webhook 'response' modules setup in Make? You can use that to send json format back to VF and return your results. Here's an example how to do it: https://www.loom.com/share/5321286da6ca4431944ed847dfaa549a?sid=e2980d25-6a60-4cb9-aa29-0c6c7c39769a
No description
overseas-lavender
overseas-lavender16mo ago
Haven't tried that, thank you! Willl let you know how it worked out soon @Steve B. | IntelleSync.ai one more question, what would be most effcient way to have chat hisotry inside a flow? Any suggestions
unwilling-turquoise
unwilling-turquoiseOP16mo ago
thanks for your help. I've got remove the issue but I'm still thinking Which was the main error. I just removed the variable that I was using, and I created a new one and It worked because I was sure that I was using a good code for the response. Maybe It was a problem with the caché memory of the variables, I don't know but you can try to change it.
Steve B. | IntelleSync.ai
There are 2 ways really and it depends on how you want to refer back to the conversation.
The first method is using the built in 'vf_memory' variable witch stores the last 10 turns in conversation so that would be 5 user and 5 ai responses. Second method would be to use set ai steps to capture user and ai responses and save them to variables along the way, this is way more granular so it depends on your use case.
overseas-lavender
overseas-lavender16mo ago
Got it, for know gonna try the build-in module. I was initially thinking about storing all messages in a sheet but it's very ineffiecient way.
Steve B. | IntelleSync.ai
Great, also I made slight mistake in my video. You don't have to create a delay while make processes the request Vf will just wait for the response to come back which is great 🙂 capped to 60secs though.

Did you find this page helpful?