中文 | English
A powerful, privacy‑friendly AI prompt workflow manager. Create, edit, and run multiple prompt workflows with OpenAI‑compatible APIs. Supports variables, context chaining, streaming output, and exporting results.
- Pure front‑end app — runs entirely in the browser, no server required
- Workflow management — create, rename, delete, export/import workflows
- Variables — use
{{variable}}placeholders inside prompts - Chain execution — pass previous step output as context to the next step
- Local persistence — config and workflows saved to browser localStorage
- Streaming output — real‑time token streaming from OpenAI APIs
- Multiple export formats — JSON / Markdown / CSV
- Markdown rendering — toggle between rendered and raw text
- Responsive UI — desktop and mobile friendly
Download the project and open index.html in your browser.
# Python built‑in server
python3 -m http.server 8000
# Or Node.js http-server
npx http-server -p 8000
# Then visit: http://localhost:8000
# Or open the project folder directly in the browser- Go to the Settings tab (⚙️)
- Fill in Base URL (default:
https://api.openai.com/v1) - Enter your API Key
- Click Refresh to load available models
- Pick a model (e.g.
gpt-4o-mini) - Settings are saved automatically to localStorage
- In the Edit tab, click New
- Enter a name; it switches to the new workflow automatically
- In Variables, click Add
- Enter key/value (e.g.
name: Alice) - Use inside prompts as
{{name}}
- Click Add to create a new prompt
- Reorder with Up/Down; Delete removes a prompt
- Click Run All (or go to the Run tab)
- Prompts execute in order
- If “Include previous output as context” is enabled, each output is passed to the next step
- Watch real‑time output and stats
- JSON — full run data and config
- Markdown — shareable, human‑readable
- CSV — convenient for analysis
- Export workflow — prompts + variables to JSON
- Import workflow — load from JSON
- Rename / Delete — manage current workflow (at least one must remain)
| Field | Description | Default |
|---|---|---|
| Base URL | OpenAI‑compatible API base URL | https://api.openai.com/v1 |
| API Key | Your API key | — |
| Model | Model to use | gpt-4o-mini |
| Temperature | 0–2 | 1 |
| Max Tokens | Maximum output tokens | 100000 |
| Advanced Params | Extra JSON (e.g. {"top_p":1}) |
{} |
Run option:
- Include previous output as context — enables chain‑of‑thought‑like chaining between steps
- Collapse/Expand all results
- Fullscreen
- Clear output
- Stop running
- Raw/Rendered (Markdown) toggle
- Copy output
- All data is stored locally in your browser (localStorage)
- Nothing is uploaded anywhere
- API Key is used only for direct API calls
- Clearing browser data will remove all settings and workflows
- Chrome/Edge (recommended)
- Firefox
- Safari
JavaScript must be enabled.
Use Export to download a JSON file, and Import to restore it later.
Any service that follows the OpenAI API spec, e.g.:
- OpenAI official API
- Azure OpenAI Service
- Other compatible backends (LocalAI, FastChat, etc.)
Check Base URL, API Key, network, and key permissions.
Open DevTools Console and run:
localStorage.clear()
location.reload()Use double curly braces {{variable}}:
Variables: name = Alice
Prompt: Hello, I am {{name}}
Runtime: Hello, I am Alice
- HTML5 + CSS3 + ES6+ JavaScript (single‑file app)
- OpenAI JavaScript SDK via CDN (falls back to fetch‑compatible mode)
- markdown‑it for Markdown rendering
WebPromptWorkflow/
├── index.html # Main application (HTML, CSS, JS in one file)
├── icon.svg # App icon
├── README.md # Chinese docs
└── README.en.md # English docs
Edit index.html directly. Styles are inside the <style> tag; you can tweak CSS variables like:
:root {
--bg: #0f1117;
--fg: #e6edf3;
--accent: #5b9cff;
--border: #223041;
}MIT License
- GitHub: https://github.com/excing/WebPromptWorkflow
- OpenAI API Docs: https://platform.openai.com/docs
© 2025 Prompt Workflow · Local‑first · Privacy‑friendly