Tornar-se um bot de prestador de serviço com o Bot Libre Nuvem Bot Plataforma
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: 2933, today: 0, week: 1, month: 15

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: 2740, today: 0, week: 1, month: 13

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: 2993, today: 0, week: 0, month: 16

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