AI-Assistant

Intelligent Assistant

This Python script implements an Intelligent Assistant using OpenAI’s GPT-3.5 Turbo model for natural language processing. The assistant is capable of performing various tasks, including answering questions, opening websites, playing YouTube videos, checking the time, sending WhatsApp messages, providing news headlines, and engaging in conversation.AI Assistant designed to perform a variety of tasks through voice commands and a user interface.

Features

Setup

  1. Install required packages using the following command:
    pip install web-browser datetime2 openai==0.28 requests SpeechRecognition pyttsx3 pywhatkit pyaudio eel google.generativeai
    
  2. Obtain OpenAI API key and save it in api_key.py:
    # api_key.py
    api_key1 = "your_openai_api_key_here" // Google API
    api_key2 = "your_openai_api_key_here" // openAI
    

3 Run the application:

```bash
python run.py
```

4 Access the UI at http://localhost:8000/index.html.

Usage

  1. Upon execution, the assistant greets the user and awaits commands.

  2. Use voice commands to interact with the assistant.

  3. Examples of commands:
    • “Open YouTube”
    • “Play [song/artist] on YouTube”
    • “What is the time?”
    • “Send a WhatsApp message”
    • “Tell me the news”
    • “Tell me thw joke”
    • “Chat with AI”
  4. Politely exit by saying “Thank you.”

    Directory Structure

Additional Notes

Feel free to explore and enhance the functionality of this Intelligent Assistant script! If you have any questions or suggestions, please create an issue or pull request.

Note: Please use responsibly and adhere to OpenAI’s use-case policies.