Bot curiosity

Is it possible to write a bot like the imapps bot using the activity sdk
If so are their any pointers
If not what API should be used to write a MSN Messenger chat transcript bot


Answer this question

Bot curiosity

  • KSH

    yes it is possible that is y they said add that bot because thats a example of what you can do with the SDK.
    Unfortunality (well in my experiences) ActiveX and SendIM, and RecieveIM must be enabled and im pretty sure that your not aloud these in the contest if you are entering.

    Here is some example code, not tested but im pretty sure it will work.
    And its easy to get the hang of it.



    <script language="javascript" type="text/javascript">
    var Channel = window.external.Channel;
    function Channel_OnIMReceived() {
        if(Channel.IM == "menu"){
           sendIM("you chose menu");
        }
    }
    </script>
    function sendIM(Output) {
       try { Channel.SendIMAsUser(unescape(Output)); }
       catch(ex) { alert(ex); }
    }

     


    Hope it helps
    -BALUPTON


  • TishaL

    Thanks Balupton,

    But this is not for the competetion ;). 

    Isnt the imappsbot hosted on conversagent or infiinte agent Currently even if a bot were to be written using the activity sdk, it would manually involve the user choosing to chat to it from the the actions/activity menu. It wouldnt be automatic like the PDC helper bot would it

    Or am I missing something

    Appreciate any info

  • mrjoeclark

    yes its possible, good example.

  • wavuti

    if your taling about how it says something like 'hey, type menu', as soon as you start a convo with it before typing, i think its because they also utilize the connection events included in the SDK.
    I have not used these before and i dont think i will for a while, so i cant help you their.
    But im pretty sure thats what it is.

    -Balupton


  • AlexisP

    I think bots usually connect directly to the network, bypassing the Messenger clients altogether. I think that this is how the imapps bot proably runs. I know that this is definately the way the unofficial bots run (bot2k3, web2messenger etc.)

     

    Although, it may be possible to do it with this sdk, post back here if you have any success.


  • Elizabeth Maher

    Yes, BOTS are run on platforms that are essentially very scalable headless clients connected to the network.  This is how the imapps@msn.com BOT is provided (via Infinite Agent).  Please see the "BOTS on MSN" post for additional informaiton on how best to proceed with building a BOT on MSN.


  • Bot curiosity