Need some info on IRC BOTS using PERL - perl

Does any one know of a good irc bot written in perl?
I just need a simple one that logs on to said channel, then replies things based on what the user says.
e.g.
The user:
<tgwizman> !time
The bot replies
<BlahBot> The time is 4:38:54 AM

Last time I made an IRC bot I used AnyEvent::IRC::Client. The example there can be used to start developing your own bot.
Also Net::IRC page suggests some alternatives.

Bot::BasicBot CPAN distribution contains several example bots. Projects Using POE page contains lists of POE-based IRC bots. See also answers here: CHATBOT: Programming a chatbot with Perl

Related

Button-based chatbots

I have the following use case:
The user starts a chat and selects options (something like a tree), in some cases an administrator can enter the chat and give a response.
My question is: are chatbot systems useful in this case?
I have no experience in chatbot but all the examples that I find on the internet are about NLP.
I appreciate if you can recommend an open source library
I think Dialogflow is a pretty good one to create chatbots. It is free and using custom payloads (tree with options, buttons, chips, etc.). You can make them say some repeated stuff. You would have to type instead.
I have a video where I create a simple chatbot that can take data stored in google sheets and send that details to a user if he asks for the details. If you are interested, please check it out!
Also, here is the Dialogflow console link.

Do Whatsapp bots (just like Telegram bots) actually exist and work? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 11 months ago.
Improve this question
For a while now I have been trying to see if I can get a Whatsapp bot running, in a similar fashion to how Telegram bots work.
I found quite some ambiguous sources or half baked projects that are supposed to be provide Whatsapp bot functionality, but in fact nothing seems to be actually working.
To my knowledge, Whatsapp (unlike Telegram) does not have a public API or openly documented protocol. Does anyone know if it is even possible at all to "automate" communication through Whatsapp, as in send and receive messages, and how? Or would anyone have any good leading points to start developing one myself?
[ https://umstechlabs.com/ai-chatbot/]
The terms WhatsApp Chatbots, WhatsApp Bot, Messenger Bot, and Chatbot have one thing in common — they are all ways to refer to a Bot. Wikipedia provides a great definition for bots: “A Chatterbot, Chatbot, or simply Bot is a text-based dialogue system, which allows you to chat with a technical system.
Bots are everywhere and businesses are changing towards micro apps and cognitive bots for B2B andB2C. There are a few libraries to make your own WhatsApp Bot. A small python framework to create a whatsapp bot, with regex-callback. WhatsApp bot: Send message to a large list of numbers using whatsapp web.
Whatsapp bot without coding. With Xenioo you can create your bot Visually, boost it with AI and Integrations.
try AutoResponder for WA by TK Studio
https://play.google.com/store/apps/details?id=tkstudio.autoresponderforwa&hl=en
it can make conversations using DialogFlow which is support Webhook, and Webhook will send the message to a URL via POST, and from there you can save the message or specific variable to the database and respond it back to DialogFlow.
or you just use the AutoResponder for simple conversations.
Well, when it comes to comparing Whatsapp(chat)bots to Telegram bots there is a huge gap of availability, in the terms of that Telegram is open source and there is an endless count of varied bots of choice made by the community, aside from whatsapp bots mainly developed by official or affiliated companies of whatsapp.
So I haven't found anthing yet more useful bot other than different tastes of chatbots, auto replyers and message schedulers.
At the other side, some Telegram bots are capable of sending specific web searches within the chat, news feeds, reminders, games (and not mentioning the useful bots for groups) etc.
I have been doing some research on this topic lately and there actually are ways you can bridge Telegram messages to Whatsapp.
If you might be interested I found 2 ways of doing this (there may be more); bridging by code with Matterbridge or going the easy way with thirs-party API and automation services. Dropped some links below.
shorturl.at/klFR7
shorturl.at/loBEF
Haven't done it myself so not sure if bot functionality may be affected on chat at the other end though.

understanding microsoft bot platform

My company has started looking into using a platform to generate chat bots, we came across microsoft's framework and are considering using it. we have a few concerns that we need to understand better about their product and would appreciate it if you could help us.
1) What kind of support do they give us when using Facebook messenger compared to what facebook gives natively? things like quick answer or image sending, buttons on the messages? do they support any of that?
2) We would like if you could elaborate exactly what the platform may give us and why we should use it, what we need is to keep all our logic in our servers and have a platform that will interact with all the messengers for us and keep us from coding to each a different code.
3) like question 1 but for telegram and any other messenger? (custom keyboards and stuff like that).
thanks for the help!
Thanks #ejadib
Regarding your second question, your bots logic does stay within your bot and your servers. The Bot Framework provides three things:
1) Connectivity services between your bot and the channels your users are on. All of the logic continues to reside in your bot.
2) Optionally - Bot Building SDK's you can use to facilitate dialog within your bot. These are SDK's you would code to, but still deploy to your own servers.
3) A directory where you could optionally publish your bot.
As #ejadib says, where we can be consistent across channels we add functionality to the core API; and where functionality is very specific to a channel we expose it through the ChannelData property of the C# SDK (SourceEvent in Node).
Regarding 1 and 3, if you want to be able to take advantage of special features or concepts for a channel (Facebook/Telegram) BotFramework provide a way for you to send native metadata to that channel giving you much deeper control over how your bot interacts on a channel. The way you do this is to pass extra properties via the ChannelData property (in C#).
Some things are already supported in the framework, for example Rich Cards will render differently depending on the channel.
Here you will find the information (including Facebook and Telegram).
Also, here you can find how for example you can use things like quick replies.

How to hold or save the DTMF input in VXML? Any guides to set up a test IVR (VXML) service?

So I currently have an IVR written in some dodgy old code which is confusing and goes way over the top for some things.
I'm wanting to re-write one of my basic IVRs with VXML.
So a little bit of research is that I can call perl scripts which I can use to run data past databases, that part isnt to bad.
My question is how, or what is the syntax to use to "hold" or save the dtmf input for a menu, and then pass it to the perl script.
Question two.
Hosting of the VXML IVR. Are there any guides to setting up a test service? I have a PABX, and a few servers I can play around with.
To play around with VoiceXML I would recommend Voxeo's excellent platform called Prophecy. You can get two ports for free that you can run on a server or even on your workstation/laptop. They provide a SIP softphone to test your apps so it does not require any elaborate setup; just a simple install and you are ready to go. They also have hosted environment that you can test from for free. You just pay for the service if you put it into production. Here is a post that describes how to setup and test applications in the hosted environment. And here is a post on how to setup and test applications if you install Prophecy on your PC. Voxeo's CTO is on the VoiceXML standards committee so their platform conforms very close to the standard.
Voxeo's developer site has excellent documentation on VoiceXML that is full of examples. On your question for how to get dtmf input you can go to the bottom of the left pane in the documentation and click on the element "field". The field element is used to collect information from the caller. To easily do this with DTMF input you can use the builtin grammars. For more information on builtin grammars look at the documentation on the "type" attribute of the "field" element. Once you get a "filled" event from the "field" you can call your Perl script using a "submit" element. Voxeo's documentation has a link to this article on creating a VoiceXML applications with Perl. The Voxeo Forum is also an excellent source of information on VoiceXML and the Prophecy. If you cannot find an answer to your question in the Forum just ask it and their knowledgeable support staff will assist.
If you are also familiar with .NET technologies there is an open source project called VoiceModel that makes it easy to develop VoiceXML applications using ASP.NET. The project has a lot of examples in it.
These resources should get you started with VoiceXML fairly quickly.
To specifically answer your DTMF question, just use <submit> to send the DTMF input to the perl script, using the attribute namelist (which is just a list of variables that you need to send).
Also, from the VXML 2.0 specification:
"The <submit> element is used to submit information to the origin Web server and then transition to the document sent back in the response. Unlike <goto>, it lets you submit a list of variables to the document server via an HTTP GET or POST request. For example, to submit a set of form items to the server you might have:
<submit next="log_request" method="post"
namelist="name rank serial_number"
fetchtimeout="100s" fetchaudio="audio/brahms2.wav"/>
"

How to link IRC and Google Talk?

I am looking for a way to link IRC to Google Talk.
At the moment we use Partychatapp for google talk and we'd like to find a way to migrate to using IRC.
The vision is to have everyone in an IRC room and we'd be able to have a google talk bot people could use to talk to the room.
Does anything like this exist?
You want bitlbee. It looks like an IRC server to IRC clients and gateways to other IM protocols.
I wrote an application that does exactly this: https://github.com/PaulFreund/I2X
Multiple Users use it on a daily base and there are Ideas to expand it further.
At the moment it logs on to a XMPP account and to an IRC channel, and translates between the two. It works as-is without problems but could be better, if there were more users I probably had more interrest in developing it further.
I played with bitlbee a few years ago. Unless it's changed, it's not actually an IRC server, it just pretends to be one. It provides an irc-flavored proxy to the jabber server, so you can use your favorite IRC client to connect to a jabber server via bitlbee.