Skip to content

Pranathi-N-47/AutoGraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ AutoGraph

AutoGraph is an AI-powered visualization tool designed to automate the conversion of unstructured text into professional process diagrams.

Project Status Python Stack

📖 What It Is

Recognizing that manual diagramming is often time-consuming, AutoGraph leverages Large Language Models (LLMs) to perform semantic logic extraction—parsing complex paragraphs to identify actionable steps, conditional branches, and recurring loops.

By translating natural language directly into strict Mermaid.js syntax, AutoGraph allows users to instantly visualize Standard Operating Procedures (SOPs), technical guides, and algorithms, transforming dense documentation into clear, interactive flowcharts.

🚀 What It Does

  • Zero-Shot Logic Extraction: Instantly converts text to flowcharts without training.
  • Intelligent Parsing: Distinguishes between Actions ([]) and Decisions ({}) automatically.
  • Loop Detection: Identifies "retry" logic and draws recursive arrows instead of duplicate nodes.
  • Microservices Architecture: Decoupled Frontend (Streamlit) and Backend (FastAPI).
  • Live Editor: Modify the generated code in real-time and see the updates instantly.
  • Export Ready: One-click export to Mermaid.live for high-res downloading.

🛠️ What It Has

📂 How It Is

AutoGraph-Pro/
├── backend.py        # FastAPI Server (Business Logic & AI)
├── frontend.py       # Streamlit App (UI & Rendering)
├── requirements.txt  # Project Dependencies
├── .gitignore        # Git configuration
└── README.md         # Documentation

⚡ How to Set It UP

Prerequisites

1. Clone the Repository

git clone [https://github.com/Pranathi-N-47/AutoGraph.git](https://github.com/Pranathi-N-47/AutoGraph.git)
cd AutoGraph-Pro

2. Create a Virtual Environment

It is recommended to use a virtual environment to keep dependencies clean.

Windows:

python -m venv venv
venv\Scripts\activate

Mac/Linux:

python3 -m venv venv
source venv/bin/activate

3. Install Dependencies

Run:

pip install -r requirements.txt

🏃‍♂️ How to Run

This application follows a Client-Server architecture, so you must run the Backend and Frontend in two separate terminals.

Step 1: Start the Backend (Terminal 1)

This runs the AI processing server locally.

python backend.py

*You should see a message: Uvicorn running on http://127.0.0.1:8000*

Step 2: Start the Frontend (Terminal 2)

Open a new terminal window (keep the first one running!) and launch the UI.

streamlit run frontend.py

*The app will open automatically in your browser at http://localhost:8501*

🧪 Test It Yourself

Try pasting these text blocks into the app to test the logic engine:

1. Simple Linear Flow

"Wake up at 7 AM. Eat breakfast. Brush teeth. Go to work."

2. Branching Logic (Decisions)

"Check the server status. If it is Online, start the backup. If it is Offline, restart the service. If the restart fails, alert the admin."

3. Looping Logic (Recursion)

"Check the water temperature. If it is below 100 degrees, wait 10 seconds and check again. If it is 100 degrees, add the pasta."

🔮 What Next

  • Computer Vision Integration: Upload a photo of a whiteboard sketch to digitize it.
  • Multi-Diagram Support: Automatic detection to switch between Flowcharts, Sequence Diagrams, and Gantt charts.
  • Agentic Validators: A secondary AI agent that critiques the flowchart for "dead ends" before showing it to the user.

📄 License

This project is open-source and available under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors