Freshbots AI bots JS Function

How to trigger a JS function on the response of an API Call? I’m invoking an API call and i’m getting an JSON response. and I want to trigger a JS function with this response.

I would like to know how to trigger a Json function after receiving a response from the API

Regards,
Srini

Hi @Srini, welcome to the community!

Are you deploying using Freshchat widget or Self Service widget?
If I’m not wrong, custom JS functions can only be used with Self Service widget.
Take a look in this article:

1 Like