RE: ProgramD as a part of an application

View: New views
3 Messages — Rating Filter:   Alert me  

RE: ProgramD as a part of an application

by shahin@robot-hosting.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Michiel,

Another thing that progD can do is this:
You can set the switches in the (server properties file) and send the
log of conversation to a SQL table. Then with PHP you can query the
SQL data and do
what you want with it.

I did not understand accurately what you want to do. But if you are
aware that progD has above ability, then it might help.

I know Bogdan is working on PHP\SQL\log\progD
his email is this
"Bogdan Brezuica" <bogdanb@...>
ask him directly, if you are stuck, or you want to do other things
that it is not in his
to-do-list.

Regards

Shahin


==========================================

_______________________________________________
programd mailing list
programd@...
http://aitools.org/mailman/listinfo/programd

Re: RE: ProgramD as a part of an application

by Michiel van Hulst-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Shahin,

Thanks for your reply.

Your suggestion is indeed a option and did cross my mind before, but it's
my second choice ;-). Thanks for the suggestion.

Maybe Noel could answer my question regarding the core, shell, ect
interfaces. I've been browsing trought the source code but any pointers or
information about this topic would be great.

Noel, could you comment on the tekst below:

What I has hoping for is something like a interface where I could get the
status(topic, mind, ect) about a conversation session and respond if
needed.

Somting like :

for session do
  conversation = session.getConversation()
  while conversation
    case topic
     if answer = proces(getRespons(r))
       doSomeThing()
     else
      sendResponse(s)
     end
    end
  end
end

It would be great if there's a interface for doing something like above.

Many thanks!

m.

--
M.P.A. (Michiel) van Hulst

e: michiel@...
w: http://michiel.vanhulst.nu

On Fri, 31 Mar 2006, shahin@... wrote:

> Hi Michiel,
>
> Another thing that progD can do is this:
> You can set the switches in the (server properties file) and send the
> log of conversation to a SQL table. Then with PHP you can query the
> SQL data and do
> what you want with it.
>
> I did not understand accurately what you want to do. But if you are
> aware that progD has above ability, then it might help.
>
> I know Bogdan is working on PHP\SQL\log\progD
> his email is this
> "Bogdan Brezuica" <bogdanb@...>
> ask him directly, if you are stuck, or you want to do other things
> that it is not in his
> to-do-list.
>
> Regards
>
> Shahin
>
>
> ==========================================
>
> _______________________________________________
> programd mailing list
> programd@...
> http://aitools.org/mailman/listinfo/programd
>
>
_______________________________________________
programd mailing list
programd@...
http://aitools.org/mailman/listinfo/programd

Parent Message unknown Re: RE: ProgramD as a part of an application

by Michiel van Hulst-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Noel,

Thanks for you reply.

I presume you've looked at the servlet context listener (org.aitools.programd.server.servlet.ProgramDContextListener), the servlet (...TalkToBotServlet), and the BotAccess class that are part of the Program D distro.  They provide an example of instantiating and using a Core object.
I did indeed. I will take an even a closer look trying to understand this process completely.

Setting up the core is like:

Core core = new Core(baseURL, configURL);

Although there are some other constructors if you want to control the configuration totally programmatically without a config file.

Getting a response is, of course:

core.getResponse(input, userid, botid)

And getting the current topic is just a matter of:

core.getPredicateMaster().get("topic", userid, botid)

You can also get the value of any other predicate in the same way.
Cool. This look promising.

I'm trying to use the ProgramD project as a base for interacting with a user by a chat like converstation. Upon this converstation I should act on given aswers within a predicate and so on.

- Is there a way to send a question/response aswel?
- In the above example you pass a userid. Is there a way to receive this userid?

Also could you be so kind to explain the architecture/framework/design of ProgramD in a nutshell. This could give me an idea how the core and defirent processors etcetra, interact to provide the functionality it has.

Thanks & all the best,

Michiel

On Apr 1, 2006, at 7:29 PM, Noel Bush wrote:

I presume you've looked at the servlet context listener (org.aitools.programd.server.servlet.ProgramDContextListener), the servlet (...TalkToBotServlet), and the BotAccess class that are part of the Program D distro.  They provide an example of instantiating and using a Core object.

Setting up the core is like:

Core core = new Core(baseURL, configURL);

Although there are some other constructors if you want to control the configuration totally programmatically without a config file.

Getting a response is, of course:

core.getResponse(input, userid, botid)

And getting the current topic is just a matter of:

core.getPredicateMaster().get("topic", userid, botid)

You can also get the value of any other predicate in the same way.

Hope that helps.

Michiel van Hulst wrote:
Hi Shahin,
Thanks for your reply.
Your suggestion is indeed a option and did cross my mind before, but it's my second choice ;-). Thanks for the suggestion.
Maybe Noel could answer my question regarding the core, shell, ect interfaces. I've been browsing trought the source code but any pointers or information about this topic would be great.
Noel, could you comment on the tekst below:
What I has hoping for is something like a interface where I could get the
status(topic, mind, ect) about a conversation session and respond if
needed.
Somting like :
for session do
  conversation = session.getConversation()
  while conversation
    case topic
     if answer = proces(getRespons(r))
       doSomeThing()
     else
      sendResponse(s)
     end
    end
  end
end
It would be great if there's a interface for doing something like above.
Many thanks!
m. --
M.P.A. (Michiel) van Hulst
On Fri, 31 Mar 2006, shahin@... wrote:
Hi Michiel,

Another thing that progD can do is this:
You can set the switches in the (server properties file) and send the
log of conversation to a SQL table. Then with PHP you can query the
SQL data and do
what you want with it.

I did not understand accurately what you want to do. But if you are
aware that progD has above ability, then it might help.

I know Bogdan is working on PHP\SQL\log\progD
his email is this
"Bogdan Brezuica" <bogdanb@...>
ask him directly, if you are stuck, or you want to do other things
that it is not in his
to-do-list.

Regards

Shahin


==========================================

_______________________________________________
programd mailing list




--
M.P.A. (Michiel) van Hulst




_______________________________________________
programd mailing list
programd@...
http://aitools.org/mailman/listinfo/programd
LightInTheBox - Buy quality products at wholesale price!