Piyushhbhutoria / React-native-Chatbot

A simple chatbot using react-native-dialogflow and react-native-gifted-chat.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
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.

  1. open terminal and run
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

About

A simple chatbot using react-native-dialogflow and react-native-gifted-chat.


Languages

Language:JavaScript 37.3%Language:Objective-C 22.8%Language:Ruby 15.1%Language:Java 14.3%Language:Python 10.5%