Atualize para nosso Diamond serviço e vai construir o seu próprio aplicativo para Android ou iOS
Bot Libre Dev

Documentation for bot rest api

por mosbuma postado Aug 29 2017, 8:41

Is there any documentation or sample code available for using the Bot API URL endpoints? I'd like to use the web API to upload AIML scripts to my bot.

Thanx!

Marc


by admin posted Aug 29 2017, 20:19
See,

https://www.botlibre.com/api.jsp

You can also refer to the code in our Android SDK,

https://github.com/BotLibre/BotLibre/blob/master/sdk/java/src/org/botlibre/sdk/SDKConnection.java

Thumbs up: 1, thumbs down: 0, stars: 5.0
Views: 2770, today: 0, week: 6, month: 8

by mosbuma posted Sep 4 2017, 5:14

Thnx for the pointers! Got it working now by creating a script in the script library and importing to the bot. Is there a create-script equivalent API call for the bot that creates a new script directly in the bot? (ie. create-bot-script)

Marc

 


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2576, today: 0, week: 1, month: 5

by admin posted Sep 4 2017, 8:13
There is an API,

/rest/api/save-bot-script-source

This API will create or update the script from its source code.

For the complete list of APIs see,
https://www.botlibre.com/api.jsp


See also the code in the Android SDK,

https://github.com/BotLibre/BotLibre/blob/master/sdk/android/src/org/botlibre/sdk/SDKConnection.java

SDKConnection.saveBotScriptSource(ScriptSourceConfig)

https://github.com/BotLibre/BotLibre/blob/master/sdk/android/src/org/botlibre/sdk/config/ScriptSourceConfig.java

Updated: Sep 4 2017, 8:14
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2829, today: 0, week: 1, month: 6

Id: 18866614
Tags: web api
Postado: Aug 29 2017, 8:41
Respostas: 3
Pontos de vista: 3208, hoje: 1, semana: 1, mês: 4
1 0 5.0/5