Capture information card for a person's name - sho...
# 🤝help
s
Hey, I´m really new to botpress and I´m having the following problem: When I use the capture information card for a person's name and save the answer as a variable, If i try to use that variable in a message afterwards, instead of just showing the name of the person it shows a whole code. To understand better look at the picture please

https://cdn.discordapp.com/attachments/1133795230735413258/1133795230953521152/Captura_de_pantalla_2023-07-26_131708.png

a
are you storing the variable as a string?
s
no, as an object
how can I save it as a string?
a
click on an empty space somewhere in your bot and you can see all variables on the right. click on the variable and set the "Type" to "String"
s
I tried but it keeps happening
s
Hey guys, same for me. Problem seems to be that it expects a full name and not just one word
s
even if I introduce the full name it keeps happening idk why
s
or is it just in the studio version and looks different in "real life"?
s
I really have no idea I'm really new to botpress and I could solve all the other things that were wrong but i couldn't solve this one
s
Same hahaha, then lets hope for an answer
s
yeah
we should ask the developers
f
If you do expect to receive full names there try changing the insertion of the name to
{{ workflow.nombre.first }}
(assuming your variable is named
nombre
) instead of
@nombre
as the name parsing expects a full name and thus the Person Name input provides an object that needs to be accessed using the
{{ }}
variable insertion curly bracket syntax. On the other hand if you only expect a first name to be provided then the easiest solution is just using the Raw Input card instead of Person Name, that will allow you to store the raw user's input directly in a string.
s
Thanks Abe, will try the raw approach 🙏
s
THANK YOU VERY MUCH
f
how do i get the name variiable to move from the main workflow to a sperate workflow without asking for it again?
f
7 Views