Help Make.com returning PDF or URL to Typebot Error
Hi, I'm new using typebot and Discord, but I having problem to show a pdf file returned from make.com integration.
I hope to get help here.
When I hit the "Test the request" on Make Integration, I receive the error "Unexpected token '<', "<!DOCTYPE "... is not valid JSON".
Make.com is returning an URL generated from PDF.co, in make.com Webhook response only has the Url returned from PDF.co.
I tried to type the url in the webhook response, and work, but if I use a Url generated from PDF.co or other field generated on my make flow, the Test the request returns this error.
The test button keeps running as a infinite loop.
And I notice that this only happens when I'm trying to get the returning variables from Make.
This is the step-by-step i've done.
1 - Run Once the Make flow for waiting data from typebot
2 - Set Timeout in Advanced Options to 30 secs.
3 - Set Variables values for test in Typebot make module
4 - Hit "Test the request"
š© Hope someone can help me!!



3 Replies
Someone will reply to you shortly. In the meantime, this might help:
-# This post was marked as solved by Anthony. View answer.
Heya Paulo,
The
body
field of a Webhook has to be formatted in JSON format.
What we'll do in your case is create a JSON object, with a url
key and the actual dynamic URL as its value:
Then your bot will be able to grab the url
value from the response and save it in the variable of your choice in Typebot.
Let me know how it goes! āļøWorked Thank U.š