Skip to content

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

Notifications You must be signed in to change notification settings

Piyushhbhutoria/React-native-Chatbot

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •