ambitious-aqua•2y ago
API output to Function Block
Has anyone passed the response object from an API block into a Function block and successfully accessed the response object children in the Function block
5 Replies
stuck-chocolate•2y ago
There's no need to pass the response object from an API block into a Function block
You can simply make the API call within the function and then manipulate the response according to your needs
ambitious-aquaOP•2y ago
Thanks for the tip. Would there be any examples available?
stuck-chocolate•2y ago
Yup. Check out this function https://www.voiceflow.com/function/query-the-openai-vision-api-with-an-image-url
ambitious-aquaOP•2y ago
Thanks very much.
@Utkarsh-Marwaha Just did it.. was querying Airtable. Really appreciate your feedback. I would like to share my journey of discovery and learning for anyone who is new to the platform... with samples of my code. what would you recommend is the best way to do this?
stuck-chocolate•2y ago
export the function you wrote and share it in this thread
attach a proper description of the problem you faced, the approach which led you to the solution and the actual working solution itself
P.S Use GPT to articulate all of it as crisply and effectively as possible