Skip to content

react-native Chat component that gives ability to communicate with dialogflow using voice or text messages

Notifications You must be signed in to change notification settings

theafolayan/react-native-dialogflow-text-voice-chat

 
 

Repository files navigation

react-native-dialogflow-text-voice-chat

A react-native component that merges functionality of react-native-dialogflow, react-native-gifted-chat, react-native-tts and react-native-voice modules. Gives you the possibility to communicate with dialogflow by text and voice chat.

Header Image

Install

yarn add react-native-dialogflow-text-voice-chat react-native-dialogflow react-native-gifted-chat react-native-tts react-native-voice

react-native link react-native-voice

react-native link react-native-tts

cd ios/ && pod install

Also, you need open the React Native xCode project and add two new keys into Info.plist https://github.com/innFactory/react-native-dialogflow#ios-important-xcode-plist-settings

Configuration

You need to get JSON file with private key for enabling Chat component. https://dialogflow.com/docs/reference/v2-auth-setup

Usage

import Chat from 'react-native-dialogflow-text-voice-chat'

import { dialogFlowConfig } from './dialogflow' // dialogFlowConfig - js object created based on dialogflow JSON file created at Configuration step

<Chat dialogFlowConfig={dialogFlowConfig} />

About

react-native Chat component that gives ability to communicate with dialogflow using voice or text messages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.4%
  • JavaScript 3.6%