Skip to content

iportilla/openai-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI Bot Exercises - Project Index

This repository contains hands-on labs and demos exploring how to build chatbots and AI agents using the OpenAI API.

image

Repository Structure

Lab-1/           # Basic OpenAI chat completion examples
Lab-2/           # Memory-enabled chatbots + utility helpers
Lab-3/           # Flower & voice chatbots
Lab-4/           # Pizza bot exercise
voice/           # Streamlit voice chatbot app
voice_code/      # Alternate implementation of voice chatbot

How to Get Started

  1. Clone the repository:
git clone https://github.com/iportilla/openai-bot.git
cd openai-bot
  1. Create and activate a Python virtual environment:
python3 -m venv .venv
source .venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Set your API key:
cp .env.example .env
# Edit .env and add OPENAI_API_KEY

Labs

Lab 1 - Basic Chatbot

Located in Lab-1/

  • Demonstrates minimal OpenAI chat API usage.
  • Builds a simple chatbot loop.

Lab 2 - Memory and State

Located in Lab-2/

  • Adds conversation memory and persistent context.
  • Introduces helper utilities.

Lab 3 - Flower Bot

Located in Lab-3/

  • Task-specific chatbot integration.

Lab 4 - Pizza Bot exercise

Located in Lab-4/

  • Task-specific chatbot integration.

Voice Chatbot Apps

Streamlit Voice Bot (voice/)

streamlit run voice/app.py

Alternate Voice App (voice_code/)

python voice_code/voice_app.py

About

STT TTS bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •