conscious-sapphire•16mo ago
Call my Voiceflow project from my external application deployed on Render.com
️⃣ 🔍 Review the FAQ & Help channel:start by searching the FAQ channel and this channel to check if your question has already been answered.
I couldn't find direct answers.
2️⃣ 📐 Format your post with: What are you looking to achieve: I am looking to call my Voiceflow project API endpoint from my external application deployed on Render.com. What the issue is Multiple methods are failing. First method I tried with the 'node-fetch' method, I got the error "error":{"name":"verror","message":"Missing versionID in request","requestID":"444765"},"userID":"user-qknrqactg". Second method I tried sing 'axios' as per https://github.com/voiceflow/api-examples/blob/master/nodeJS/, I got the error "Error connecting to Voiceflow: AxiosError: Request failed with status code 400". Solutions that you've already tried First method I ed 'node-fetch', The code I used is attached as text file (I already tried with versionID from General console and also by putting versionID as 'production') Second method I tried using 'axios' and the code used is attached as a text fle. Screenshots given. Please help in advising how I can fix this issue.
2️⃣ 📐 Format your post with: What are you looking to achieve: I am looking to call my Voiceflow project API endpoint from my external application deployed on Render.com. What the issue is Multiple methods are failing. First method I tried with the 'node-fetch' method, I got the error "error":{"name":"verror","message":"Missing versionID in request","requestID":"444765"},"userID":"user-qknrqactg". Second method I tried sing 'axios' as per https://github.com/voiceflow/api-examples/blob/master/nodeJS/, I got the error "Error connecting to Voiceflow: AxiosError: Request failed with status code 400". Solutions that you've already tried First method I ed 'node-fetch', The code I used is attached as text file (I already tried with versionID from General console and also by putting versionID as 'production') Second method I tried using 'axios' and the code used is attached as a text fle. Screenshots given. Please help in advising how I can fix this issue.
1 Reply
conscious-sapphireOP•16mo ago
It turns out that the correct URL that works is: https://general-runtime.voiceflow.com/state/your_version_id/user/${userid}/interact . I checked it on POSTMAN and it worked. screenshot attached. [for "your_version_id", you must update the VERSION Id from your Voiceflow General console. (not 'production' or 'development'). UserID must be a unique userID for each API call that I generated using Javascript]. Also if this is the correct URL, this is not given in any of the docs directly. or even TICO's responses. It might be useful to have the docs updated if this is the correct template. However unfortunately my application is still not calling the Voicflow API endpoint correctly. The starter message "Start Voiceflow Survey" is not getting passed through even though the API call is successful.
