generous-apricot•16mo ago
API Step sent always 0
All my API step blocks reply 0 even if my external API sent a different result for each endpoint...
how to solve it ?
3 Replies
To troubleshoot why your API step blocks in Voiceflow are always returning 0, follow these steps:
1. Check API Endpoint and Request Type:
- Ensure that the endpoint URL is correct and accessible.
- Verify that the request type (GET, POST, PUT, DELETE, PATCH) matches what your API expects.
2. Verify Headers and Parameters:
- Make sure you are sending the correct headers and parameters required by your API. This can include authentication tokens, content types, etc.
3. Capture Response Correctly:
- Ensure that you are capturing the response correctly by entering the keys and saving the response to variables. This allows you to use the data returned by the API in your Voiceflow project.
4. Test API Step:
- Use the "Test API Step" feature from the Canvas to see the actual response from the API. This can help you identify if the issue is with the API call or how the response is being handled.
5. Check for Errors in API Response:
- Sometimes, the API might return an error code or message that needs to be handled. Ensure that your API step is set up to handle different types of responses, including errors.
6. Review API Documentation:
- Double-check the API documentation to ensure that you are following the correct format and requirements for making requests.
By following these steps, you should be able to identify and resolve the issue with your API step blocks returning 0. If the problem persists, it might be helpful to review the specific API responses and configurations in more detail.
For more detailed guidance, you can refer to the Voiceflow API documentation.
What error shows up when you show debug info? Can you share a screenshot.
generous-apricotOP•16mo ago
i get 0 from all the API steps in my flows
all my variables are ok but not matter what value they get from the API, the result is always 0
https://www.loom.com/share/e0c266bb37d54addb5f9f35d23f57b8b