correct-apricot•2y ago
Groq Tools
Is it possible to use Groq Tools or function calling within Voiceflow given this documentation : https://console.groq.com/docs/tool-use#models
For context, I am already able to send and receive messages from Groq with an API step.
Thank you.
5 Replies
Based on the documentation provided, Voiceflow does not natively support Groq Tools or function calling. However, since you've mentioned that you're already able to send and receive messages from Groq with an API step, you might be able to integrate Groq Tools or function calling in a similar way.
In Voiceflow, you can use the API step to make HTTP requests to any external API. This means you can send a GET, POST, PUT, or DELETE request to any endpoint, including Groq's API. You can use this to call Groq functions or use Groq Tools, as long as Groq's API supports these operations.
To do this, you would need to set up the API step with the appropriate request method (GET, POST, PUT, DELETE), the URL of the Groq API endpoint you want to call, and any necessary headers or body parameters. You can then use the 'Capture Response' feature of the API step to capture the response from Groq and use it in your Voiceflow project.
Please note that while this method should theoretically work, it would depend on the specifics of Groq's API and how it handles function calling and tool usage. You would need to refer to Groq's API documentation for more information on how to set up these API requests.
For more information on how to use the API step in Voiceflow, you can refer to the Voiceflow documentation here.
You can have a look at Functions for more control
or you can pass them in through the api step
note, you will need to use other blocks to make it all work.
correct-apricotOP•2y ago
Thank you. Can you guide me a little bit where I should start? The documentation from Groq only provides the code in python. Is it possible to implement this in a JavaScript function without the Groq JavaScript library or Groq python library?
yes. have a look at their cURL directions and then you can use them to add it to an API step.
continuing-cyan•2y ago
did you get it working?