Use Google Cloudsearch API within Freshbot

Hello everyone,

I am working on a project where I am trying to use Google Cloud Search API within Freshbot using JavaScript. Specifically, I want to retrieve documents based on the user’s rights and display the search results within the chatbot.

I was wondering if anyone has experience working with the Google Cloud Search API and can provide some guidance on how to make API calls from Freshbot using JavaScript. Is it possible to display the search results directly within the chatbot, or do I need to use some sort of external widget to display the results?

Any insights or tips would be greatly appreciated. Thank you!