Micro AI Tool
AI Bio Generator
This project turns a rough self-description into cleaner profile bios for different platforms without using a database.
What It Does
- Takes a short description of who you are and what you do.
- Targets Instagram, X, LinkedIn, portfolio, or creator-style bios.
- Returns a primary bio, a shorter version, and an alternative variation.
- Also generates a tagline, keyword cluster, and short improvement notes.
- Shows the final result inside a focused modal popup for fast copying.
Setup
- Open
functions/config.local.php. - Add your OpenAI API key to
openai_api_key. - Keep or change the default model in
openai_model. - Optional: add
adsense_clientandadsense_sidebar_slotto activate the right sidebar ad area. - Make sure PHP
curlis available on the server. - Load
/AiBioGenerator/in your browser through MAMP.
How To Use
- Paste your rough self-description.
- Select the target platform.
- Choose the tone and style.
- Add optional audience, goal, or keywords.
- Click
Generate Bio. - Review and copy the result from the popup modal.
Folder Structure
index.php– main UI entry pointcss/style.css– interface stylingjs/app.js– browser-side interactions and modal flowfunctions/lib.php– generator logic, OpenAI requests, validation, rate limitingfunctions/api.php– backend API endpointfunctions/config.local.php– local API key, model, and ad settingsstorage/logs– error and debug logs
Security Notes
- The
functionsandstoragefolders are protected with.htaccess. - Requests use a CSRF token.
- A simple file-based rate limit reduces abuse without a database.
Troubleshooting
- If generation fails, check
functions/config.local.phpfor the API key. - If the API returns an error, inspect the generated log file under
storage/logs. - If the popup does not open, make sure JavaScript is enabled.
- If folder protection does not work, make sure Apache allows
.htaccessoverrides.