Comments (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:
-
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. -
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.
Closed due to no response.
If you have further questions feel free to ask us.
from chatbot-framework.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatbot-framework.