GithubHelp home page GithubHelp logo

Comments (2)

Hossiphi avatar Hossiphi commented on July 19, 2024 2

Hi,

we're sorry we didn't get back to you sooner.

As you already have mentioned, we're emulating a directline connection. You could also do this by using Postman:

  1. Sending a message to the bot:
    Take a look at the function SendMessageToBot. There you can find the necessary payload for the post request to "/api/messages". As directline needs a service url as endpoint for message sending of the bot, you'll need some back end for that. This back end is provided by the OfflineController, where we've implemented a simple queuing/ polling mechanism.

  2. Receiving a message:
    As the directline protocol does not support returning the actual answer of the bot directly, you have to implement some back end or use some queuing/ polling mechanisms. We've decided to put all the stuff in our framework. You can simply use Postman for this purpose. Just send a post request to "/v3/conversations/{conversationId}/poll" after you've sent a message. You can find the back end implementation of this in the OfflineController.

Feel free to contact us again, if anything is unclear.

Best regards!

from chatbot-framework.

Hossiphi avatar Hossiphi commented on July 19, 2024

Closed due to no response.
If you have further questions feel free to ask us.

from chatbot-framework.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.