From Beta Build: https://github.com/VeeShostak/react-native-ai-chat-hybrid/tree/00f416fc5e31e6e51aa85de2906843734dc4a706
react-native-ai-chat-hybrid's Introduction
react-native-ai-chat-hybrid's People
Forkers
techonic-increact-native-ai-chat-hybrid's Issues
make a POST request to a DialogFlow's REST API
fetch("https://api.api.ai/api/query?v=20150910", {
method: "POST",
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer DEVELOPER_ACCESS_TOKEN',
'charset': "utf-8"
},
body: JSON.stringify(data)
})
.then(function(response) {
var json = response.json().then(function(res){
console.log('---rrr--',res)
})
})
.then(function(data) {
console.log(data)
});
}, error=>console.log(error))
Refactor Code: Create function that processes userQuery and machine or human response
Function should:
create message objects with appropriate values (values obtained through parameters: machineResponded: boolean,...)
dispatch action to persist conversation in redux store.
dispatch action to push back to db
...etc
Allow Human to respond within allotted time to misunderstood request to api.ai
redux for gifted chat
set up dedicated redux state/reducer for gifted-chat-messages that gets loaded / unloaded from the main messages redux state
On no Human Response: Reference.push failed: first argument contains undefined
Reference.push failed: first argument contains undefined in property 'user-chat-posts.SzoZvNuQUOfvXDyw3Ev0hApqn2x1.response'
location: in conversationPostCreate Action:
On Unfulfilled request from DialogFlow, send over to Human(the Answers tab)
Save DB operations: send cloud message once Human is in process of responding
Store user chat posts in PostgreSQL DB using RESTful API
Save DB operations: send cloud message once Human has responded and append to chat
When Human answers his own user query, gifted chat doesn't display the chatPost
The chatPost is only rendered correctly after app is restarted
Add functionality to allow human to answer userQuery
user will obtain the response from human. On receive response, delete the userQuery request from live-chat-posts, post to user-chat-posts and dispatch to persisted store.
Refactor Code: only import actions that your components use
Android build error: Duplicate files copied in APK META-INF/LICENSE
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE
File1: /Users/vladshostak/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-core/2.2/c707664e020218f8529b9a5e55016ee15f0f82ac/log4j-core-2.2.jar
File2: /Users/vladshostak/.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-api/2.2/d7ef6ad7ff0711dd12fe409d62d72d6ed14516e0/log4j-api-2.2.jar
Display userQuery in HumanAnswerChat Component in a GiftedChat component
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.