Top

Description of API of Nodejs Bot

Respondida

Comentários

3 comentários

  • Comentário oficial
    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

    Ações de comentário 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
    Ações de comentário 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
    Ações de comentário Permalink

Por favor, entrar para comentar.

Ainda não consegue encontrar o que você precisa?

  • Contate-nos

    Você tem alguma pergunta sobre o Rainbow? Deixe-nos uma mensagem para obter mais informações.

    Contato
  • Pergunte à Comunidade

    Você precisa de ajuda? Faça suas perguntas na Comunidade para obter respostas de outros usuários do Rainbow.

    Enviar mensagem