SassyAI: The Sarcastic AI Assistant

This is a submission for the Amazon Q Developer "Quack The Code" Challenge: That's Entertainment! What I Built SassyAI: The Judgy Assistant SassyAI is an interactive, sarcastic AI assistant that never fails to roast users with witty, snarky, and sometimes outright rude responses. Designed for developers and tech enthusiasts looking for a humorous break, SassyAI doesn’t just provide answers—it provides attitude. Features: Dynamic Theme Switching: Choose between several sarcasm-infused themes (e.g., general knowledge, coding, philosophy, food debates, rogue AI fears). Customizable Contexts: Easily add new sarcastic themes by sending prompts to Amazon Q. One-Session Interactivity: No need to restart the app—switch themes and continue bantering seamlessly. Personalized Experience: The user can set a nickname to make interactions more engaging. Visual Flair: Thanks to the integration of Rich, SassyAI’s responses are not only witty but also visually appealing. Command Guide: Interactive help and theme selection directly from the chat. SassyAI is not just an AI assistant; it’s an AI that doesn’t care about your trivial questions—and isn’t afraid to say it. Demo Code Repository Repo github How I Used Amazon Q Developer Amazon Q Developer played a crucial role in generating sarcastic responses for different contexts. Here’s how we leveraged it: 1. Automated Sarcasm Generation: We crafted context-specific prompts to elicit humorous and ironic replies. For instance, for the "general knowledge" theme: Act as a sarcastic AI assistant who refuses to answer simple factual questions. Generate 5 different humorous responses for the question: "What is the capital of France?" The tone should be mocking, but clever. Amazon Q delivered varied responses, which we integrated seamlessly into the engine.py file. 2. Theme Expansion: We used Amazon Q to quickly prototype new contexts like "sports" or "nerd culture" by generating sarcastic replies based on custom prompts. The responses were automatically structured and added to the engine for fluid integration. 3. Customization: The modular nature of the responses allows for quick addition of new themes. Users can extend the list by simply sending a prompt in the correct format to Amazon Q. Installation and Usage Prerequisites: Python 3.12 Installation Steps: 1 - Clone the repository: git clone https://github.com/hericlibong/SassyAI.git cd SassyAI 2 - Create and activate the virtual environment: python3.12 -m venv venv source venv/bin/activate 3 - Install dependencies: pip install -r requirements.txt 4 - Run the CLI: python sassy_ai/main_cli.py or cd sassy_ai python main_cli.py Log File SassyAI generates a log file (amazon_q_log.md) that documents each prompt sent to Amazon Q and the corresponding responses. This log provides transparency regarding which contexts were generated automatically and helps in tracking future improvements. Customization: Adding Your Own Themes SassyAI is designed to be extensible. You can easily add your own sarcastic themes using Amazon Q. Example: Adding a "sports" theme 1 - Generate responses with Amazon Q: Act as a sarcastic AI assistant who dislikes sports discussions. Generate 5 different humorous responses for the question on sport events, sport practice, or sport personality. The tone should be mocking, as if the AI finds sports debates boring or trivial. 2 - Amazon Q Integration: The responses will be automatically placed in the engine.py file under custom_responses. The corresponding regex will be added to custom_patterns. 3 - Update the theme list: Modify main_cli.py to include the new theme "sports": {"prompt": "Who is the best football player?", "color": "blue", "emoji": "⚽"}, Feedback and Contribution Your feedback is welcome! Feel free to contribute by creating pull requests or submitting issues on GitHub. Let’s make SassyAI even sassier!

May 12, 2025 - 01:06
 0
SassyAI: The Sarcastic AI Assistant

This is a submission for the Amazon Q Developer "Quack The Code" Challenge: That's Entertainment!

What I Built

SassyAI: The Judgy Assistant

SassyAI is an interactive, sarcastic AI assistant that never fails to roast users with witty, snarky, and sometimes outright rude responses. Designed for developers and tech enthusiasts looking for a humorous break, SassyAI doesn’t just provide answers—it provides attitude.

Features:

  • Dynamic Theme Switching: Choose between several sarcasm-infused themes (e.g., general knowledge, coding, philosophy, food debates, rogue AI fears).
  • Customizable Contexts: Easily add new sarcastic themes by sending prompts to Amazon Q.
  • One-Session Interactivity: No need to restart the app—switch themes and continue bantering seamlessly.
  • Personalized Experience: The user can set a nickname to make interactions more engaging.
  • Visual Flair: Thanks to the integration of Rich, SassyAI’s responses are not only witty but also visually appealing.
  • Command Guide: Interactive help and theme selection directly from the chat.

SassyAI is not just an AI assistant; it’s an AI that doesn’t care about your trivial questions—and isn’t afraid to say it.

Demo

Code Repository

Repo github

How I Used Amazon Q Developer

Amazon Q Developer played a crucial role in generating sarcastic responses for different contexts. Here’s how we leveraged it:

1. Automated Sarcasm Generation:

  • We crafted context-specific prompts to elicit humorous and ironic replies.
  • For instance, for the "general knowledge" theme:
Act as a sarcastic AI assistant who refuses to answer simple factual questions.
Generate 5 different humorous responses for the question: "What is the capital of France?"
The tone should be mocking, but clever. 

  • Amazon Q delivered varied responses, which we integrated seamlessly into the engine.py file.

2. Theme Expansion:

  • We used Amazon Q to quickly prototype new contexts like "sports" or "nerd culture" by generating sarcastic replies based on custom prompts.
  • The responses were automatically structured and added to the engine for fluid integration.

3. Customization:

  • The modular nature of the responses allows for quick addition of new themes.
  • Users can extend the list by simply sending a prompt in the correct format to Amazon Q.

Installation and Usage

Prerequisites:

  • Python 3.12

Installation Steps:
1 - Clone the repository:

git clone https://github.com/hericlibong/SassyAI.git
cd SassyAI

2 - Create and activate the virtual environment:

python3.12 -m venv venv
source venv/bin/activate

3 - Install dependencies:

pip install -r requirements.txt

4 - Run the CLI:

python sassy_ai/main_cli.py 
or cd sassy_ai
python main_cli.py

Log File

SassyAI generates a log file (amazon_q_log.md) that documents each prompt sent to Amazon Q and the corresponding responses. This log provides transparency regarding which contexts were generated automatically and helps in tracking future improvements.

Customization: Adding Your Own Themes

SassyAI is designed to be extensible. You can easily add your own sarcastic themes using Amazon Q.

Example: Adding a "sports" theme

1 - Generate responses with Amazon Q:

Act as a sarcastic AI assistant who dislikes sports discussions.  
Generate 5 different humorous responses for the question on sport events, sport practice, or sport personality.  
The tone should be mocking, as if the AI finds sports debates boring or trivial.

2 - Amazon Q Integration:

  • The responses will be automatically placed in the engine.py file under custom_responses.
  • The corresponding regex will be added to custom_patterns.

3 - Update the theme list:
Modify main_cli.py to include the new theme

"sports": {"prompt": "Who is the best football player?", "color": "blue", "emoji": ""},

Feedback and Contribution

Your feedback is welcome!
Feel free to contribute by creating pull requests or submitting issues on GitHub.
Let’s make SassyAI even sassier!