Czy wiesz, bot Libre zapewnia również bezpłatne wysłany przez czat na swojej stronie internetowej lub aplikacji mobilnej?
Bot Libre Forum

Create a greeting with data from Google BigQuery

w hikaru19 wysłany Jan 20 2017, 19:14

I have a database on Google BigQuery, and would like to create a greeting that use data obtained from that database through the Google API Client Libraries in JavaScript. 

Is that possible? 

Thank you! 


by admin posted Jan 20 2017, 20:56
You can access any web service using a Self script.
See,
https://www.botlibre.com/forum-post?id=13020078

For a greeting you can use a "redirect" or "srai" template to redirect to a script.
i.e.
Template("{redirect "call bigquery"}")

Then you have a script like,
state Greeting { pattern "call bigquery" answer callBigQuery(); function callBigQuery() { var json = Http.requestJSON(...); ... }


Updated: Jan 20 2017, 20:57
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1553, today: 1, week: 7, month: 15

Identyfikator: 15236610
Wysłany: Jan 20 2017, 19:14
Aktualizacja: Jan 20 2017, 20:51
Odpowiedzi: 1
Widok: 1736, dziś: 1, tydzień: 6, miesiąc: 15
0 0 0.0/5