加入机器人自由的 合作伙伴和联盟 的程序和支持我们免费开放平台
Bot Libre Forum

Create a greeting with data from Google BigQuery

通过 hikaru19 发布 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: 1547, today: 0, week: 1, month: 9

Id: 15236610
发布: Jan 20 2017, 19:14
更新: Jan 20 2017, 20:51
答复: 1
的风景: 1732, 今天: 1, 周: 2, 一个月: 11
0 0 0.0/5