Please help
# 🤝help
h
Hello Guys I have a very important question, please any knowledgeable person answer. In botpress I can able to build bots, but there are some places where it needs coding, which is javascript, like while building custom variables. But I am not from coding background. ehat should I do? From where should I learn that specific coding which is need in botpress. Please help. It's necessary
d
not a botpress person, but perhaps this helps you: Google. If you still feel overwhelmed or it needs to be fast, pay a freelancer. Breath, take a slow breath and start learning. If you copy code of the internet and want to understand it step by step, sign up at chat.openai.com. you can copy the code ther and ask chatgpt to explain line by line what it does. It will take you several weeks until you learn everything, just practice
f
@dry-nightfall-32769 wow... I am copying this into my notes!!
@happy-baker-59266 what kind of task needs coding?
h
Well I think I am not able to explain my concern clearly... Basically in this video (

https://www.youtube.com/watch?v=bqGM9gqkf5A

) at 5:33 , I can't know how to do that, Similarly, in this video (

https://www.youtube.com/watch?v=cP9mWwC7rLE

) at 5:21 , I hope you got what I am telling.
@famous-jewelry-85388 Also in FAQ, HOW TO GET THE USER'S PHONE NUMBER WHEN THE BOT IS DEPLOYED ON WHATSAPP? Use the variable event.tags.conversation['whatsapp:userPhone'] I don't know how to create these types of variables, do you have any resources please.?
@famous-jewelry-85388 Please help Sir. i really need your support.
f
@happy-baker-59266 I looked at the videos, which part can't you do?
@acceptable-kangaroo-64719 can you help us here?
h
@acceptable-kangaroo-64719 ??
m

https://youtu.be/7p3foNlykJc

a
This variable isn't created, it is part of the even object automatically created when a user starts a conversation. So, in any text card you can put
{{event.tags.conversation['whatsapp:userPhone']}}
and that should be replaced with the user's phone number when a user is speaking with the bot from WhatsApp If you're writing code, you can use a line like
Copy code
js
const userPhone = event.tags.conversation['whatsapp:userPhone']
To bring the user's phone number into code.
4 Views