Thanks to visit codestin.com
Credit goes to github.com

Skip to content

This project uses LangChain to negotiate the price of a product or service offerings from an external vendor/contractor, currently focusing on moving services

Notifications You must be signed in to change notification settings

boatcow/SmoothOperatorAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smooth Operator - AI Negotiator

Screenshot 2024-12-15 at 9 11 19 PM

Introduction

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.

Frontend Setup Instructions

This is a new React Native project, bootstrapped using @react-native-community/cli.

Getting Started

Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.

Step 1: Install Dependencies

# using npm
npm install

Step 2: Start Webpack

Let Webpack bundle your react native project so that it can serve it for web.

# using npm
npm run web

Backend Setup Instructions

This guide will help you set up the backend server for the voice assistant application.

Prerequisites

  • 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.json file.

Setup Steps

  1. 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 Forwarding URL provided by ngrok. It will look something like https://[your-ngrok-subdomain].ngrok.app.

  2. Update the .env File

    Update a .env file in the root of your project directory with credentials, use the above ngrok URL for the server.

  3. Install Dependencies

    In the terminal, navigate to your project directory and run:

    pip install -r requirements.txt
  4. 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.json file.
    • Place the firebase_adminsdk.json file in the backend directory of your project.
  5. Run the Server

    Start the server by executing:

    python app.py

Notes

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

Troubleshooting

If you can't get this to work, see the Troubleshooting page.

Learn More

To learn more about React Native, take a look at the following resources:

About

This project uses LangChain to negotiate the price of a product or service offerings from an external vendor/contractor, currently focusing on moving services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •