Você sabia que o Bot Libre também fornece avatares em 3D e um free web speech API?
Bugs and Features : Define formula response not working?

RE: Define formula response not working?

por aazxcqwe postado Jan 11 2015, 15:45

Hi this is mainly for reference as I just bumped into the file I have for it I am about to close. Two aiml files from Pandorabots, one for the tag and one called "Bad Answer" for corrections. Both use the tag which I'm not sure if is implemented in BotLibre!

I am wondering though if I'll need an type function, as my next script will be one to accept a sequence of commands. It will parse "First do something, second do something, next do something, then do something". In order to create macros, I am hoping the script can recognise those 'somethings' as other whole entities. So if it is "add 2 + 2" it will be able to redirect to the PlusStateMachine's cases. I think this was what does in aiml, not sure if it will do the same here. Thanks

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- Free software (c) 2001-2003 ALICE A.I. Foundation.  -->
    <!-- This program is open source code released under -->
    <!-- the terms of the GNU General Public License   -->
    <!-- as published by the Free Software Foundation.  -->
    <!-- Complies with AIML 1.0 Tag Set Specification -->
    <!-- as adopted by the ALICE A.I. Foundation. -->
    <!-- Learn.aiml written by Square Bear on 6th March 2009 -->
    <!-- This AIML allows users to teach your bot -->
    <!-- http://www.square-bear.co.uk -->
<aiml>
<category>
 <pattern>LEARN MY * ARE *</pattern>
 <template>
<srai>xlearnfact</srai>
     Ok I will learn that your <star index="1"/> are <star index="2"/> .
    <srai>XEDUCATE WHAT ARE XSPLIT MY <star index="1"/> XSPLIT <star index="2"/> </srai>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8"?>
<aiml version="1.0">
<!--  -->
<!-- Free software (c) 2011 ALICE A.I. Foundation.   -->
<!-- This program is open source code released under -->
<!-- the terms of the GNU General Public License     -->
<!-- as published by the Free Software Foundation.   -->
<!-- Complies with AIML 1.0 Tag Set Specification -->
<!-- as adopted by the ALICE A.I. Foundation.  -->
<!--  --> 
<!-- Badanswer.aiml: Demo of Pandorabots learning, AIML unquoting and eval --> 
<!-- Revision Badanswer-0.01 --> 
<!-- Extended by KnyteTrypper, March 3, 2005 --> 
<!-- Modified by John Campbell to allow multi-sentence inputs, June 30, 2005 --> 
<category>
<pattern>BAD ANSWER</pattern> 
<template>
<think>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


Id: 702466
Postado: Jan 11 2015, 15:45
Respostas: 0
Pontos de vista: 2366, hoje: 1, semana: 1, mês: 34
0 0 0.0/5