Atualize para nosso Platinum serviço e deixar-nos a construir o seu bot para você
Bot Libre Forum

Create a greeting with data from Google BigQuery

por hikaru19 postado 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: 966, today: 1, week: 1, month: 1

Id: 15236610
Postado: Jan 20 2017, 19:14
Atualizado: Jan 20 2017, 20:51
Respostas: 1
Pontos de vista: 1176, hoje: 1, semana: 1, mês: 1
Eu tenho certeza que
Bandeira post como ofensivas, ou em violação das regras do site