An AI-driven excuse generation tool that formulates creative excuses based on user input using Natural Language Processing (NLP).
β Context-Aware Tone Selection
- Choose from Formal, Sarcastic, or Funny tones for dynamic adaptability.
β AI-Powered Excuse Generation
- Uses Google Gemini API to craft personalized and unique excuses.
β Integrated Social Media Sharing
- Instantly share your excuse on Twitter/X with one click.
β Hidden Easter Eggs
- Gamification elements for user engagement. Try different inputs to discover them!
β Smart Emoji Suggestions
- Sentiment analysis suggests relevant emojis for a perfect excuse.
- Backend: Node.js, Express.js, Google Gemini API
- Frontend: React.js, React-Icons
- API Handling: Axios
- Environment Variables: dotenv
1οΈβ£ Clone the Repository
git clone https://github.com/Kausheya2006/AI_Excuse_Gen.git
cd vlab_project2οΈβ£ Install Dependencies
npm install3οΈβ£ Set Up Environment Variables Create a .env file in the root directory and add:
GOOGLE_GEMINI_API_KEY=your_api_key_here4οΈβ£ Run the App
npm startEndpoint:
POST /api/generate-excuse
Request Body:
{
"context": "I forgot to submit my assignment",
"tone": "Funny"
}Response Example:
{
"excuse": "Oh no! My pet goldfish was watching YouTube and accidentally deleted my assignment!"
}Contributions are welcome! Feel free to fork the repo and submit a pull request.
