SPLITTING VARIABLES in BotPress
# 🤝help
f
I have one variable in BotPress (workflow.zapierData) which contains three pieces of info (name, email, phone no) of LEAD workflow.zapierData = (name, email, phone no) I need to seperate this variable into three different variables holding each piece of lead info workflow.name = name of lead workflow.email = email of lead workflow.phone = phone no of lead So that I could use it within my BotPress bot Is there anyone who knows how to seperate this variable using execute code block in BotPress?
b
how is each piece of information stored in the variable?
we recently introduced a feature called schemas, which will allow you to dictate how information is stored in a single variable
i.e., one containing a name, an address, etc etc
f
Thanks Robert, just went through the schema tutorial in BotPress, solved the issue
b
nice!