bot to webchat
# 🤝help
n
Hello everyone, as we know we can send some triggers from webchat to bot but is there any possible way to send triggers from bot to a webchat something like running a specific function when a boy send a trigger or something like this please let me know
m
Can you give an actual example of what you want to do?
f
Could you elaborate on what you are trying to achieve
n
@mammoth-lamp-91104 I have a function in my webchat js code which gives certain data that function is depend upon some external libraries and functionions so in the bot I want to trigger that function and get the data when the user needs it let's say if user enters 1 I want that function to be triggered in the webchat it send the result to the bot I hope I explain clearly
m
Either is as simple as sending an axios request to an external API endpoint with "Execute code" card or I just don't get what you're trying to do. If it's the latter, try to explain more. Maybe in a step by step scenario