How can I execute JS code from bot builder action | Community
Skip to main content

How can I execute JS code from bot builder action

  • December 13, 2023
  • 0 replies
  • 0 views

Sachin11

Hi,

I have integrated a web widget with bot in a webpage which is opened in a webview in my mobile app. I have added Webview JS messagehandlere to setup a JS messaging bridge to communicate with webview. I am able to show/hide the bot bubble from mobile app using JS code.

Now I want to execute the JS command from a bot action. I do not see any option to execute the JS code from the action. I only see API execution and that API is also a REST api, which does not pass through browser.

Can anyone know how can I execute the JS code or simply communicate to webview from a bot action. 

Note: I am using messaging -> bot builder to create a bot.

Thanks