New Release: AIaaS APIs

The wait is almost over…

We plan to publicly release our Developer Portal and access to the Pandorabots API soon. Very soon.

Thanks to all those who have been waiting patiently, and an extra thanks to our amazing group of alpha testers. Your feedback has helped refine this initial offering, which — with your continued insights — will only get more awesome from here.

To that end, we’ve recently added a few utility methods to manage your bots and applications. Please refer to our Basic Bot Deployment tutorial to get started with the API, and enjoy the first of many new releases!

List of Bots

To query for the list of current bots you have in your application plan, you can use the following cURL command from your command line. You will need to insert your Application ID (APP_ID) and your User Key (USER_KEY):

curl -v -X GET 'https://aiaas.pandorabots.com/bot/APP_ID user_key=USER_KEY'

List of Bot Files

To query for the list of bot files you have for a specific bot, you can use the following cURL command from your command line. You will need to insert your Application ID (APP_ID), your User Key (USER_KEY), and the name of your bot (BOTNAME):

curl -v -X GET 'https://aiaas.pandorabots.com/bot/APP_ID/BOTNAME?user_key=USER_KEY'

Delete a Bot File

Uploading a bot file will overwrite the current file in the system with the new one, but sometimes you have a bot file you just want to delete. To delete a bot file, you can use the following cURL command from your command line. You will need to insert your Application ID (APP_ID), your User Key (USER_KEY), the name of your bot (BOTNAME), the type of file (FILE_KIND), and name of the file without the extension (FILENAME):

curl -v -X DELETE 'https://aiaas.pandorabots.com/bot/APP_ID/BOTNAME/FILE_KIND/FILENAME?user_key=USER_KEY'

The path syntax is similar to file upload. (See the documentation for more details.)

For an AIML file, use FILE_KIND value, file:

curl -v -X DELETE 'https://aiaas.pandorabots.com/bot/APP_ID/BOTNAME/file/FILENAME?user_key=USER_KEY'

For FILE_KIND values, set, map, substitution:

curl -v -X DELETE 'https://aiaas.pandorabots.com/bot/APP_ID/BOTNAME/set/FILENAME?user_key=USER_KEY'

For FILE_KIND values, pdefaults, properties (note: FILENAME must not be included in the path):

curl -v -X DELETE 'https://aiaas.pandorabots.com/bot/APP_ID/BOTNAME/pdefaults?user_key=USER_KEY'

Stay tuned over the next few weeks as we release even more features and APIs to improve the user experience. And, as always, please send any feedback to support@pandorabots.com


Originally published at blog.pandorabots.com on October 24, 2014.