Comments (1)
Hey @huiwugit, this app uses Redux as its main state management tools, therefore we suggest you use Sagas in order to drive any async actions to the bot.
Currently this repo has the bot using some static dialog trees (see the BotMind folder) to generate dialog flows, but you can as easily substitute them with your own Python-driven service.
Take a look at app/containers/BotContainer/sagas.js
, we're doing pretty much what you need to do, but calling an internal file instead of an external endpoint.
For further reference as to how to use Sagas see here: https://github.com/redux-saga/redux-saga
This repo is based off a very rich boilerplate, so you should also take a look there: https://github.com/react-boilerplate/react-boilerplate
from alpha.
Related Issues (20)
- Should have tests for Containers and Components
- Submit button not working
- Should have image for deployment to production using Docker
- Issue with Docker, can't get started HOT 7
- npm run build for subfolder installation? HOT 1
- Routing broken in live demo HOT 1
- AWS EC2 installation failed HOT 3
- voice option HOT 1
- MAMP HOT 5
- cannot use special charactor in the name ? HOT 2
- any wiki available for connecting with dialogflow? HOT 1
- Heroku error when attempting to deploy
- Dynamic page loading failed TypeError: e.map is not a function HOT 2
- Hot reloading works before a week but not now
- Should have documenation
- How to update node version HOT 1
- Components should be modularly styled using `styled-components` HOT 1
- Global variables file should exist for styling purposes/theming
- Should have tests for app/containers/BotContainer/sagas.js
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 alpha.