Skip to content
 
 

Repository files navigation

Socrates AI - Your Ultimate Multimodal AI agent

This project is a command-line based AI agent that helps users complete tasks easily by understanding and executing tutorials or modules given by the user. It automatically generates its own chain of thought to figure out the steps required and performs the task instantly.

Currently, it has been implemented for the Stych platform — a SaaS tool used by startup founders to manage their databases. However, the system is designed to be easily adaptable to any other product or platform.

Features

  • Interactive Assistance: Engage in a conversation-like interface to specify your tasks.
  • Smart Documentation Lookup: Uses ApertureDB to automatically find and reference relevant sections from documentation PDFs.
  • Automated Task Execution: Leverages browser automation to actually perform the tasks in the platform.
  • Google Gemini AI Integration: Utilizes the google-genai SDK to understand tasks and generate precise automation instructions.
  • Execution Feedback: Provides real-time feedback on task execution and allows for follow-up questions.

Requirements

Setup

  1. Clone the Repository:

    git clone <your-repo-url>
    cd <repository-directory>
  2. Install Dependencies:

    pip install google-genai browser-use langchain_openai
  3. Set the API Key: Ensure you have your Gemini API key and set it as an environment variable:

    export GEMINI_API_KEY='your_api_key_here'

Usage

Run the assistant:

python cli_browser_agent.py

You will be prompted to enter your desired Stytch platform task. The assistant will:

  1. Search through Stytch's documentation using ApertureDB to find relevant guidance
  2. Generate precise step-by-step instructions
  3. Execute the task automatically in your browser
  4. Provide feedback and allow for follow-up questions

Example tasks:

  • "Create a new organization in Stytch"
  • "Add a new user to my Stytch project"
  • "Configure authentication settings"

Customization

  • Model Configuration: The model used for text generation is set to "gemini-2.0-flash-001". Modify this in cli_browser_agent.py if needed.
  • System Instructions: The system prompts given to the model can be adjusted to change how detailed the instructions are.
  • Functionality: The script can be extended with additional tools or integrations as needed.

Demo

Socrates.AI.Demo.mp4

Result

Selected as one of the Top 6 projects and presented it to Shark Tank India!

Acknowledgments

About

This is my submission for Tredence Infinity AI Hackathon

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages