Trouble Passing VideoAsk Media URL to HTTP Request in Make.com

Hi everyone,

I’m trying to automate the process of downloading video responses from VideoAsk and saving them to Dropbox. However, I’m running into issues with passing the media_url from the VideoAsk webhook to the HTTP “Make a request” module. The input bundle in the HTTP module keeps coming up empty, even though the webhook data contains the correct URL. Has anyone encountered this issue before or have any suggestions on how to fix this?

Thanks in advance for your help!

Hi @Jasper_Fedde_Hendrik,

Are you just making a request to the resource of the video, or are you using the HTTP ‘Download a File’ module? Can you give us some insight in the setup of your scenario and the data you are working with?

Please, follow these steps when asking a question, and you’ll be more likely to get a helpful answer:

:writing_hand: Give us a detailed explanation of what you’re trying to achieve

:footprints: Tell us about any steps you’ve tried so far

:camera_flash: Include screenshots of:

  • your scenario flow and setup (functions, mappings, variables, etc.)
  • module configurations and outputs
  • any error messages you are getting

:card_file_box: Share the blueprint of the scenario you are asking a question about. (this does not contain any connection or personal information)

Cheers,
Henk

What I’m Trying to Achieve:
I’m automating the download of video responses from VideoAsk to Dropbox.

Steps I’ve Taken So Far:

  • I set up a Webhook to receive VideoAsk data, including the media_url.
  • I’m using the HTTP “Get a File” module to download the video.
  • The input bundle in the HTTP module is empty, though the Webhook contains the correct URL.

Setup:

  • I’m using the HTTP “Get a File” module for the download.

Issues:

  • The media_url isn’t transferring correctly, resulting in failed downloads.





blueprint (1).json (5.7 KB)

Part of the JSON:

[
{
“event_id”: “99ff8dcbbb274ffa0e61b0394ec3d008”,
“event_type”: “form_response”,
“interaction_id”: “ec63aa10-e5fd-4ec9-9944-88fe24f0be41”,
“contact”: {
“contact_id”: “b1fa190d-006e-49dc-8f43-7d47e3831a8e”,
“respondent_id”: “5c8a662f-a4c9-49df-a43d-d429d13f8e31”,
“organization_id”: “e24b2e09-936e-495d-907a-4d0bdeb9076e”,
“email”: “Example@Example.com”,
“status”: “completed”,
“created_at”: “2024-08-18T11:44:47.232Z”,
“updated_at”: “2024-08-18T11:45:04.781Z”,
“answers”: [
{
“answer_id”: “3dbf7c6b-7aab-4c04-81a8-0e74ae95d172”,
“question_id”: “4f8744ff-7b39-43bf-969e-ef8fd95dd764”,
“type”: “poll”,
“poll_option_id”: “5740f595-4833-4abf-b707-7afcbaf21215”,
“poll_option_content”: “Het Pensioen Health Plan Programma”
},
{
“answer_id”: “3aa1594b-6046-4dd7-9f0c-5ba4a37ca686”,
“question_id”: “d3e43a42-fb5a-4d30-9764-39dc78c1d8e0”,
“type”: “video”,
“media_url”: “https://media.videoask.com/transcoded/040dc738-009c-4b43-b913-4539f2064682/video.mp4
}
]
},
“form”: {
“form_id”: “7a0fbcb0-b3ea-4e24-8903-b8c1ebddb998”,
“created_at”: “2024-05-07T12:51:31.042Z”,
“updated_at”: “2024-08-17T18:24:04.314Z”,
“questions”: [
{
“question_id”: “4f8744ff-7b39-43bf-969e-ef8fd95dd764”,
“label”: “Waar mag ik je mee helpen?”,
“type”: “poll”
},
{
“question_id”: “d3e43a42-fb5a-4d30-9764-39dc78c1d8e0”,
“label”: “Geef je feedback via video”,
“type”: “video”
}
]
}
}
]

Hi @Jasper_Fedde_Hendrik,

It seems like the media_url is part of an array called ‘answers’. The media URL is an answer to the second question, thus the second object in the answers array. If you do not map the array path but only the media_url, you will receive an empty result because the first object in the array does not contain the media_url. I hope this will clarify the path more:

Result:

So the non-mapped URL returns an empty string, as the media_url does not exist in that object. The Mapped Media URL returns an array of all objects and the media_url. This proofs that the first object does not contain the media_url. To access the media_url, you can insert a 2 to access the media_url in the second object. This is a partial solution, though.

Now, if you were to add more questions, this solution will break. So you can use a combination of functions to make sure you always get the media_url, however many questions there are:
Scherm­afbeelding 2024-08-18 om 15.01.22

For copy:
{{get(sort(map(22.contact.answers; "media_url"); "media_url"))}}

Hope this works for you!

Cheers,
Henk

3 Likes