AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

[Pandorabots-AIaaS]Using <sraix> on AIaaS?
 
 

As per AIML 2.0 Support, the sraix tag is described as :

<sraix bot=“XXX”> Like <srai>, but sends content to another bot on the system, specified by botid, and returns the other bot’s response.

Now I tried it in the fashion below :

<?xml version="1.0" encoding="UTF-8"?>
<aiml versi>
<!-- 
insert your AIML categories here -->
<
category>
  <
pattern>sraix test *</pattern>
  <
template>
   <
sraix bot="testbot"><star/></sraix>
  </
template>
</
category>

</
aiml

where “testbot” is the name of the bot. This doesnt seem to work,as it needs a “botid”. How do I find the botid for a bot on AIaaS?

PS:
I do have two bots on AIaas Server. Bot 1 is where I’m uploading the above code, and bot2 ,ie testbot is where I want the response from. Bot bots have the bot brains populated with AIML,and I checked the response after compiling only.

 

 
  [ # 1 ]

Whoops, my bad. Found the answer at chatbots.io:

What happened to my botid? What is an Application ID or app_id and how is it different than my username?

The previous Pandorabots platform used a string called botid as a unique identifier for your bot. Our new developer service has replaced this concept, instead identifying your bot by including your Application ID and the botname in the path for each API request. The app_id is unique to your application, and is used to help reference all of the bots tied to that application.

You can also use the app_id/botname pattern to call another bot using sraix.

The Playground has a similar way of identifying a bot, however, the username of the person creating the bot is used instead of an app_id. This is distinct from your username on the Developer Portal, which is never used to identify a bot or to make API calls.

So basically to send a message to another bot on your account,you write aiml as :

<category>
  <
pattern>sraix test *</pattern>
  <
template>
   
[strong]<sraix bot="app_id/botname"><star/></sraix>[/strong]
  
</template>
</
category

This works perfectly.
Mods,if you deem fit,please the thread.

 

 
  login or register to react