https://github.com/piyushhbhutoria/react-native-chatbot
A simple chatbot using react-native-dialogflow and react-native-gifted-chat.
https://github.com/piyushhbhutoria/react-native-chatbot
android chatbot dialogflow gifted-chat ios react-native
Last synced: 5 months ago
JSON representation
A simple chatbot using react-native-dialogflow and react-native-gifted-chat.
- Host: GitHub
- URL: https://github.com/piyushhbhutoria/react-native-chatbot
- Owner: Piyushhbhutoria
- Created: 2019-06-14T14:04:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T00:42:08.000Z (over 3 years ago)
- Last Synced: 2025-07-28T19:35:20.942Z (11 months ago)
- Topics: android, chatbot, dialogflow, gifted-chat, ios, react-native
- Language: JavaScript
- Size: 19.6 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React-native-Chatbot
A simple chatbot using react-native-dialogflow and react-native-gifted-chat.
## Steps to set-up
1. Set-up **env.js** file like
```javascript
export const dialogflowConfig = {
type: "service_account",
project_id: "finatic",
private_key_id: "59fd29ca731fxxxxx",
private_key:
"-----BEGIN PRIVATE KEY-----********=\n-----END PRIVATE KEY-----\n",
client_email: "***.iam.gserviceaccount.com",
client_id: "108659xxxxxx",
auth_uri: "https://accounts.google.com/xxxx",
token_uri: "https://oauth2.googleapis.com/token",
auth_provider_x509_cert_url: "https://www.googleapis.com/oauth2/xxx",
client_x509_cert_url:
"https://www.googleapis.com/robot/xxx/test-141%40finatic-f4060.iam.gserviceaccount.com"
};
```
you can generate this key from the settings in dialogflow.
2. open terminal and run
```shell
yarn install
cd ios
pod install
react-native run-android //for android
react-native run-ios //for ios
```
NOTE : Also gitignore the env.js file in your repo