Help with Botpress Chatbot: Executing Code to Send...
# 🤝help
g
I’m developing a chatbot in Botpress that needs to send product links based on numerical inputs like '1,2'. However, I'm encountering issues with setting up the nodes to correctly capture, process the input, and link these inputs to specific responses using the "Execute Code" card. Are there any specific settings or preliminary steps I should check before using the "Execute Code" card to ensure it functions properly? Any advice or examples would be greatly appreciated! Thanks for your help! https://cdn.discordapp.com/attachments/1239869578494873633/1239869578667102228/image.png?ex=66447e07&is=66432c87&hm=3591fc8f2fb323ef5c5ccbcce9cbb21ba6dca466cea676db1bdc415ed4a514a0&
n
where are the product links in the knowledge bases, in tables?
g
Hi Petr, thanks for reply, I really new to Botpress, I should add those product links in the knowledge bases? Can you suggest me the step if I want to create a bot that can send link based on user input? I have a total 7 selection for my customers. It is good if can use the "execute card" to complete this, because 7 selection can make up a lot of combination.
n
hmmm i think if you have 7 options, i believe you can do it in different ways: either in an execute code inside an if statement or if you do it as single choice creating 7 different paths, but that would be complex in the studio too many nodes
g
yeah, you are right, is ok i will do it in another way. I have another question here, do you know how to tell the bot to translate the specific word to I want? For example, I want to translate "秋香茗茶" to "Qiu Xiang Tea".
I think the translateAgent is good enough, however there are some words it translates into words I don't want
n
im not sure i believe with time it will get better the agent
34 Views