Skip to content

An AI Agent where you can generate a meme image based on dad joke. You can also use this ask any question like you do in chatgpt

Notifications You must be signed in to change notification settings

saket030801/ai-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Command-Line Agent 🚀

A Node.js-powered AI agent that can perform fun and practical tasks directly from your terminal.

Features

  • Image Generator: Create visuals using DALL-E 3.
  • Random Reddit Post: Fetch a post from any subreddit. (In progress)
  • Dad Joke Generator: Get a random dad joke for a quick laugh.

🛠️ Installation

Prerequisites

Steps

  1. Clone the Repository
    git clone https://github.com/saket030801/ai-agent.git
    cd ai-agent
    npm install   
  2. Create a .env file in the root directory with the following content:
    OPENAI_API_KEY = "<Your API Key>"
  3. Run the Application
    node index.js "<Your Prompt to the agent>"

Example

Prompt -> "Make a dad joke and generate an meme image using it".

Meme Image

Note

  1. Make sure that you have allowed the models(gpt-4o-mini, dall-e-3) in the OpenAI API settings Allow Models

  2. You can change the subreddit name in the reddit.js file in the tools directory.

  3. If there is an error in the response, try emptying the message array in db.json.

About

An AI Agent where you can generate a meme image based on dad joke. You can also use this ask any question like you do in chatgpt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published