How to handle file download in Kore AI XO?

How to handle file download in Kore AI XO?

Step 1: User want to download ID card.
Step 2: API call made to customer integration rest service, we got response base64 object.
Step3: Handle this base64 object in script task and convert this base64 object to jscript clickable link to download pdf file.
Example :
var pdfDATE=base64 object;
Download PDF document

Q1. Is these are correct steps?
Q2. Is there any file size restrictions like 5 mb in XO?
Q3.Or Xo platform script task will not handle base64 object to pdf files ?
Q4.Or can we avoid using BOT Kit for conversion base64 object to pdf files?