Share feedback, ideas and get community help

Updated 2 months ago

open a csv file in type bot

Hello,

I want to build a typebot that receives a csv file from the user, opens this csv file via script and performs some validations on it. Has anyone done something similar in typebot? I'm using the script below, just to see the last line, but it's giving an error.
G
B
6 comments
const response = await fetch({{file}});


const lines = response.split('\n');
lines.forEach(line => {
const fields = line.split(',');
setVariable('content', fields)
});
Indeed I don't think you can make this work on Typebot for now
We would need a special block for that I guess
Thanks @Baptiste !
Hi @Baptiste

I noticed that in the latest version you added the feature "✨ Add script template that reads CSV file and process things [5fb10d2]".

I believe it was because of this post. If it was, thank you very much for your attention.

I would like to understand how this template/script works. Any practical examples?

Thank you in advance.
Not related at all ! πŸ™
Add a reply
Sign up and join the conversation on Discord