AI Brochure Creator
An AI-powered brochure generator that analyzes a website, selects the most relevant company pages and links, and produces a polished marketing brochure in markdown.
Features
- Validates and normalizes website URLs.
- Fetches page content and removes non-essential HTML elements.
- Identifies relevant brochure links such as About, Careers, and Product pages.
- Aggregates content from the main page and related brochure pages.
- Uses OpenAI-compatible chat completions to generate a clean brochure.
- Optional translation into supported languages.
- Exports generated brochures to output/ as markdown files.
Requirements
- Python 3.13+
- uv package manager (https://docs.astral.sh/uv/getting-started/installation/) (Install and configure using documentation. Verify installation using
uv --version) - OpenAI-compatible API key
- Internet access to fetch webpages and call the OpenAI-compatible API
Setup
Repository: https://github.com/codebygk/ai-webpage-brochurizer
- Clone the repository and open the project folder.
- Create a .env file in the project root.
- Add the following variables to .env:
BASE_URL=your_openai_compatible_base_url
API_KEY=your_openai_compatible_api_key
MODEL=gpt-4o-mini- If you use the standard OpenAI endpoint, set
BASE_URL=https://api.openai.com/v1. - Install dependencies with uv:
uv installUsage
Run the main script from the project directory:
uv run main.pyFollow the prompts:
- Enter the URL of the page to create a brochure from.
- Choose a translation language, or leave blank to keep the brochure in the original language.
- Choose whether to export the brochure as a markdown file.
The tool will:
- Fetch the provided webpage,
- Discover relevant brochure-related links,
- Aggregate the page content,
- Generate a brochure using AI,
- Optionally translate it,
- Saves the result to 'output/brochure-
.md'.