Zuu
Zuu10mo ago

Buildship --> VoiceFlow API

Hello all. I am using flutterflow to create a chat and want to use buildship to create all api calls to VoiceFlow. I have the VoiceFlow api documentation but am struggling to actually create the right API calls. I am not fully understanding how to pass all the right information to VoiceFlow. Can Anyone offer some help on how to construct the API call? Here is the example CURL code which is working but I need to "translate" this into a Buildship API call. "CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout); curl_easy_setopt(hnd, CURLOPT_URL, "https://general-runtime.voiceflow.com/state/user/userID/interact?logs=off"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "accept: application/json"); headers = curl_slist_append(headers, "content-type: application/json"); headers = curl_slist_append(headers, "Authorization: VF.DM.**"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{"action":{"type":"launch"},"config":{"tts":false,"stripSSML":true,"stopAll":true,"excludeTypes":["block","debug","flow"]}}"); CURLcode ret = curl_easy_perform(hnd);" TIA
5 Replies
Captain.Camie
Captain.Camie10mo ago
@Zuu check your DM
Harini
Harini10mo ago
@Zuu have you tried the AI generated node? typically the best way to generate a node with AI is using a prompt like this...1. input, 2. output and 3. docs api code @Captain.Camie if you created a node for this already it would be great if you can share here and happy to get it added to library
Captain.Camie
Captain.Camie10mo ago
@harini Haven't yet created a node. Currently working on it. A native Buildship <==> VoiceFlow Integration will be awesome
Harini
Harini10mo ago
Sure, could you share a bit about the usecase you are building that would be super helpful to understand.
Zuu
Zuu10mo ago
I have built an ai tool for a sales team that helps them with selling the products in the field. I have built an online knowledge base which is used by voiceflow to answer any questions they have about the product, policies and general assistance. So far, I have managed to deploy this via a Wordpress website but it's messy the way it's displayed. I want to create a responsive web app with flutterflow and use Buildship for all API calls to VoiceFlow. Users will subscribe via stripe and get access to the voiceflow assistant with a more intuitive interface similar to the OpenAI example. I am not familiar with API and need help translating the VoiceFlow api. This is how it looks now:
No description