Top

Description of API of Nodejs Bot

Answered

Comments

3 comments

  • Official comment
    Olivier ANGUENOT

    Hi Raphael,

     

    Rainbow chatbot is an open source contribution we made early this year to allow building chatbot that executes a scenario.

     

    These 2 kinds of actions allow developers to extend the Rainbow Chatbot.

     

    Action of type External:

     

    This action does nothing internally. This action only calls the callback « onMessage » to give the hand to the application for executing a specific task like calling Google AI, storing data to a database… Once the external action is done, the chatbot continues its scenario. More information of handling this callback can be found here: https://github.com/Rainbow-CPaaS/Rainbow-Chatbot#handling-user-inputs-and-changing-route

     

    Action of type Commands

     

    This actions send a custom chat message to the user (of type command). By doing that, user application knows that the chat message received is not a friendly message to display from the bot but an action to do. The content of the message represents the action or parameter to execute or to manage.

     

    This action is not officially supported because our Rainbow official applications will display these kind of messages as a « text message ».

    Hope this will answer to your question.

    Feel free to add any contributions to this library.

     

    Regards,

    Olivier

    Comment actions Permalink
  • Pascal BORSCHNECK

    Hi,

     

    I am not sure I totally got you.
    Documentation may be found for example here https://hub.openrainbow.com/#/documentation/doc/sdk/node/api/im

    But what do you mean with "extended documentation" ?

     

    And examples, as you said may be found on github https://github.com/Rainbow-CPaaS
    For example a standalone chat bot: https://github.com/Rainbow-CPaaS/Rainbow-Chatbot

     

    Could you please explain me your two points:

    - External: For giving the hang to the Node.JS application without interaction with the user
    - Command: For sending a command to execute (Unofficially supported)

     

    Thanks,
    Pascal

    0
    Comment actions Permalink
  • Raffael RECHBERGER

    Hi, 

    In your documentation on the page
    https://github.com/Rainbow-CPaaS/Rainbow-Chatbot, isaw that there are several actions in the JSON file Possible.

    one of those are: 

    • External: For giving the hang to the Node.JS application without interaction with the user

    • Command: For sending a command to execute (Unofficially supported)

     

    I for me it's now not totaly clear what you mean with this Command. That's why a Extendet Documenation.

    I would try to Extend my Bot with Google AI, that's why i'm asking. 

     

    Regards Raffael

     
    0
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions in the Community to get answers from other Rainbow users.

    Post message