Share feedback, ideas and get community help

Updated 4 months ago

open a csv file in type bot

At a glance

The community member is trying to build a Typebot that can receive a CSV file from a user, open the file, and perform validations on it. They have provided a script that they are using, but it is giving an error. Another community member comments that this functionality is not currently possible in Typebot, and that a special block would be needed to achieve this. Later, a community member mentions that a new feature was added to Typebot that allows reading and processing CSV files, and asks for more information on how to use this feature.

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