Skip to content

vienna601/Costco-customer-service-chatbot

Repository files navigation

Costco-chatbot

Building a customer service chatbot with OpenAI Agents SDK

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contact
  5. Acknowledgments

About The Project

OpenAI Agents SDK was used to automate multi-turn conversations with two sets of agents, one playing the role of a chatbot, the other acting as the customer.

Getting Started

  1. Create a virtual environment
mkdir Costco_chatbot
cd Costco_chatbot
python -m venv .venv
  1. Activate virtual environment
source .venv/bin/activate
  1. Install OpenAI Agents SDK
pip install openai-agents
  1. Set up environment variables in a .env file

    [!NOTE] You can also set your model choice here, but I used the default OpenAIResponsesModel.

OPENAI_API_KEY="your_openai_api_key"

Usage

  • chatbotAgents.py
    • Details and actual instructions for chatbot agents
    • Individual multiturn testing or single shot
  • customerAgents.py
    • Details about agents acting as the customer
    • Function tool that returns an arbitrarily selected question
  • singleShot.py
    • Single shot testing in batches or using an excel spreadsheet
  • runTests.py
    • Automated multiturn testing
    • Change the spreadsheet used in the function tool in customerAgents.py to use different datasets
  • voiceover.py
    • Trying to use ElevenLABS for AI voiceover
    • Unrelated to OpenAI Agents SDK

Contact

Vienna Zhao - [email protected]

Project Link: Costco customer chatbot project

Acknowledgements

About

Building a customer service chatbot with OpenAI Agents SDK

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages