Welcome to the Smooth Operator AI! This project uses LangChain to negotiate the price of a product or service offerings from an external vendor/contractor, currently focusing on moving services.
This service is deployed at https://smooth-operator.web.app/ if you want to try it out.
If running locally, it would require adding all auth tokens such as OpenAI, LangChain, Twilio, and Firebase.
This is a new React Native project, bootstrapped using @react-native-community/cli.
Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.
# using npm
npm installLet Webpack bundle your react native project so that it can serve it for web.
# using npm
npm run webThis guide will help you set up the backend server for the voice assistant application.
- Ensure you have Python 3.8+ installed on your machine.
- You need an account with Twilio and a verified phone number. You can verify your number in the Twilio Console.
- Firebase Setup: Create a Firebase project and download the
firebase_Adminsdk.jsonfile.
-
Run ngrok
To expose your local server to the internet, you'll need to run ngrok. Open a terminal and execute the following command:
ngrok http 8000
Copy the
ForwardingURL provided by ngrok. It will look something likehttps://[your-ngrok-subdomain].ngrok.app. -
Update the .env File
Update a
.envfile in the root of your project directory with credentials, use the above ngrok URL for the server. -
Install Dependencies
In the terminal, navigate to your project directory and run:
pip install -r requirements.txt
-
Setup Firebase
- Go to the Firebase Console.
- Create a new project or select an existing one.
- Navigate to Project Settings > Service accounts.
- Generate a new private key and download the
firebase_adminsdk.jsonfile. - Place the
firebase_adminsdk.jsonfile in thebackenddirectory of your project.
-
Run the Server
Start the server by executing:
python app.py
- Ensure the phone number you are calling is verified in the Twilio Console if you are in trial mode.
- If you encounter any issues, check the logs for error messages and verify your environment variables are set correctly.
If you can't get this to work, see the Troubleshooting page.
To learn more about React Native, take a look at the following resources:
- React Native Website - learn more about React Native.
- Getting Started - an overview of React Native and how to set up your environment.
- Learn the Basics - a guided tour of the React Native basics.
- Blog - read the latest official React Native Blog posts.
@facebook/react-native- the Open Source; GitHub repository for React Native.