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..

AIML - Remembering details that a user has entered, such as name, e-mail, and possibly providing DB integration or E-mail services
 
 

Hello,

I am a long-time reader of these forums but this is the first time making a post, I am a Junior Developer at a company that provides telecoms hardware/software (Diallers, SIP trunks, click-to-call & VoIP software etc;) and recently we have been branching out into chatbots. I have been working on AIML for a couple of months now and know all of the basics, but there are still some features I see on other bots that makes me think there is more functionality to AIML than one might think.

What I am trying to achieve is a bot that can take a numerous amount of details from a client, and then pass it on in the form of an E-mail or something, or at least track what was entered. Also, a login/authentication method or a way for a user to view their balance through the bot without having to leave the bot conversation. i have seen this bot hosted on Facebook by Experian which does something similar to what I would like to achieve: https://www.facebook.com/Unofficial-Experian-Credit-Score-1716186971966232/

Any help would be much appreciated

 

 
  [ # 1 ]

Program-Y ships with full support for Survey capability. You can find Program-Y at https://github.com/keiffster/survey-y

Through the use of a custom extension you can get a python class to send an email with the data collected using something similar to this

```
  <category>
     
        START SURVEY
      </pattern>
      <template>
        <think><set name=“topic”>SURVEY_QUESTION1</set></think>
        Question 1. What do you like about AIML?
      </template>
  </category>

  <topic name=“SURVEY_QUESTION1”>
      <category>
       
          #
        </pattern>
        <template>
          <think>
              <set name=“topic”>SURVEY_QUESTION2</set>
              <set name=“answer1”><star ></set>
          </think>
          Thanks, now Question 2. What do you dislike about AIML?
        </template>
      </category>
  </topic>

  <topic name=“SURVEY_QUESTION2”>
      <category>
       
          #
        </pattern>
        <template>
          <think>
              <set name=“answer2”><star ></set>
              <extension path=“programy.extensions.survey.survey.SurveyExtension”>
              <get name=“answer1” >|
              <get name=“answer2” >
          </extension>
          </think>
          Thanks, thats the end of the survey
          <think>
              <set name=“topic”></set>
          </think>
        </template>
      </category>
  </topic>
```

 

 
  [ # 2 ]

I built a chatbot website that has an email form and a survey page using a free website builder.  It works now in pure JavaScript, but I wonder if it may be possible to integrate Pandorabots hosting service and natural language processing engine into this application?

Reference: http://chatbots.weebly.com

 

 
  [ # 3 ]
Keith Sterling - Jan 23, 2019:

Program-Y ships with full support for Survey capability. You can find Program-Y at https://github.com/keiffster/survey-y

Through the use of a custom extension you can get a python class to send an email with the data collected using something similar to this

```
  <category>
     
        START SURVEY
      </pattern>
      <template>
        <think><set name=“topic”>SURVEY_QUESTION1</set></think>
        Question 1. What do you like about AIML?
      </template>
  </category>

  <topic name=“SURVEY_QUESTION1”>
      <category>
       
          #
        </pattern>
        <template>
          <think>
              <set name=“topic”>SURVEY_QUESTION2</set>
              <set name=“answer1”><star ></set>
          </think>
          Thanks, now Question 2. What do you dislike about AIML?
        </template>
      </category>
  </topic>

  <topic name=“SURVEY_QUESTION2”>
      <category>
       
          #
        </pattern>
        <template>
          <think>
              <set name=“answer2”><star ></set>
              <extension path=“programy.extensions.survey.survey.SurveyExtension”>
              <get name=“answer1” >|
              <get name=“answer2” >
          </extension>
          </think>
          Thanks, thats the end of the survey
          <think>
              <set name=“topic”></set>
          </think>
        </template>
      </category>
  </topic>
```

Thanks alot for your input, I have been looking into Program-O as I am far more adept with PHP than Python, Unless Program-Y provides better features than Program-O I might just delve intot hat one. I was hoping to do it through Pandorabots though but I guess there are limitations with Pandorabots.

 

 
  [ # 4 ]

Hey Matt,

Build both Program-O and Program Y.
They can chat with each other. Maybe
you can make Program Y male and
Program-O female ?

I may prefer PHP, but I am glad to
program Python.  It does some great
things with A.I.  For example, Python
has the Natural Language Tool Kit (NLTK).


Thanks Keith,

That is good tech support for the Survey
capability in Program Y.

I’d like to know more about this too…

NOTE. Program-y now uses TextBlob
( built on NLTK ) for advanced text and
sentiment processing.

Reference:

https://pypi.org/project/programy/

 

 

 
  [ # 5 ]

Program-y uses TextBlob to enhance or add a number of features. Specifically, it uses its sentence splitting, spelling checking, and sentiment analysis. TextBlob is built on top of NLTK and provides a simplified interface for a number of features include the 3 above.

Check out the documentation at https://github.com/keiffster/program-y/wiki/Sentiment-Analysis for more details about how sentiment analysis works

 

 

 
  [ # 6 ]
∞Pla•Net - Jan 24, 2019:

Hey Matt,

Build both Program-O and Program Y.
They can chat with each other. Maybe
you can make Program Y male and
Program-O female ?

I may prefer PHP, but I am glad to
program Python.  It does some great
things with A.I.  For example, Python
has the Natural Language Tool Kit (NLTK).


Thanks Keith,

That is good tech support for the Survey
capability in Program Y.

I’d like to know more about this too…

NOTE. Program-y now uses TextBlob
( built on NLTK ) for advanced text and
sentiment processing.

Reference:

https://pypi.org/project/programy/

Thanks for this, so the 2 would talk to each other in what respect? so far I have been able to incorporate all of the knowledge that I have needed a bot for in just one bot, is there more features in doing this?

Also I got a server set-up with Program-O this week, first time I am getting chance to use it so this is what i’ll be doing all afternoon smile

Do you know of any good documentation for Program-O? seems to be a lack of from what i can see

Thanks for your advice, I am going to have a look at Program-Y at some point I think

 

 
  [ # 7 ]
Keith Sterling - Jan 25, 2019:

Program-y uses TextBlob to enhance or add a number of features. Specifically, it uses its sentence splitting, spelling checking, and sentiment analysis. TextBlob is built on top of NLTK and provides a simplified interface for a number of features include the 3 above.

Check out the documentation at https://github.com/keiffster/program-y/wiki/Sentiment-Analysis for more details about how sentiment analysis works

Thanks for this, gave it a quick read and it looks good. Trouble is I have never really used Python

 

 
  [ # 8 ]

It’s the language of the future lol

 

 
  login or register to react