File size: 2,586 Bytes
27ceee0
 
 
 
 
 
 
 
 
2f065fa
27ceee0
add4d35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f54789d
add4d35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27ceee0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
---
license: apache-2.0
title: AI Workflow Analyzer
sdk: streamlit
emoji: πŸ“Š
colorFrom: purple
colorTo: blue
short_description: An AI-powered tool that analyzes workflows, identifies ineff
python_version: 3.11
sdk_version: 1.55.0
---
# AI Workflow Analyzer

An AI-powered tool that analyzes workflows, identifies inefficiencies, and suggests automation opportunities using Large Language Models.


## Overview

This project helps teams understand and improve their internal processes by leveraging AI. Users can input a workflow description, and the system returns a structured analysis including problems, automation opportunities, and AI-driven solutions.


## Features

- Analyze workflows in real time
- Identify inefficiencies and bottlenecks
- Suggest AI-based automation strategies
- Generate prototype ideas for implementation
- Export analysis as a Markdown (.md) file
- Simple and interactive UI using Streamlit


## Demo
[Live demo](https://huggingface.co/spaces/YamenRM/workflow-analyzer)

Users can:
1. Enter a workflow description
2. Receive structured AI analysis
3. Download the results as a Markdown report


## Example Input

 - Our engineering team manually reviews logs and writes daily summaries. This process is slow and inconsistent.


## Example Output

- **Problems**
  - Manual and repetitive work
  - Time-consuming process
  - Inconsistent results

- **Automation Opportunities**
  - Automate log summarization
  - Standardize reporting

- **AI Solution**
  - Use an LLM to extract key insights and generate summaries

- **Prototype Idea**
  - Python script that processes logs and generates summaries using an AI API


## Tech Stack

- Python
- Streamlit
- Google Gemini API (LLM)


## Project Structure
 ```
src/
  β”œβ”€β”€ main.py
  β”œβ”€β”€ analyzer.py
  β”œβ”€β”€ prompts.py
```


## Installation

```bash
git clone https://github.com/YamenRM/workflow-analyzer.git
cd workflow-analyzer
pip install -r requirements.txt
```

## Setup
Set your API key as an environment variable:
 - Windows (PowerShell)
   ```
    setx GEMINI_API_KEY "your_api_key_here"
   ```
 
 - Linux / macOS
   ```
    export GEMINI_API_KEY="your_api_key_here"
   ```

### Run the App
```
streamlit run main.py
```

## Use Cases
 - Engineering workflow optimization
 - AI adoption analysis
 - Process automation planning
 - Internal tooling prototyping


## Future Improvements
 - Structured JSON output
 - Workflow visualization (diagrams)
 - History tracking of analyses
 - Multi-workflow comparison
 - Integration with team tools (e.g., GitLab, Notion)


##Author

**YamenRM**