PhoMo is an AI-powered idea generator built with n8n and Google Gemini. This guide shows you how to install, run, and keep workflows saved.
Requires Node.js >=18.
npm install -g n8n
n8ndocker run -it --name n8n -p 5678:5678 -v ~/.n8n:/home/node/.n8n n8nio/n8n- n8n UI: http://localhost:5678
- The -v ~/.n8n:/home/node/.n8n ensures workflows and credentials are saved.
- Open https://aistudio.google.com/
- Create a new API key
- Copy it (looks like AIza...)
- Go to http://localhost:5678
- Click Credentials → New
- Choose Google PaLM / Gemini API
- Paste your API key and save
- Download from repo’s N8N folder:
- PhoMo_context-N8N.json
- PhoMo_image-N8N.json
- In n8n: Import → From File → choose each file
- Link your Gemini credential when asked
Now you have 2 workflows:
- Text idea generator
- Image generator
- In the workflow editor, click the Webhook node → copy the test URL (example: http://localhost:5678/webhook-test/idea-request)
- Send a request:
curl -X POST http://localhost:5678/webhook-test/idea-request -H "Content-Type: application/json" -d '{
"action": "choose",
"query": {
"scope": "การศึกษา",
"purpose": "พัฒนาหลักสูตร",
"addition": "ใช้เทคโนโลยี AI"
}
}'You will get an AI-generated JSON response.
Run the image workflow the same way for images.
- Toggle workflow Active (top right)
- Use the production webhook (example: http://localhost:5678/webhook/idea-request)
- Download the repo files and replace your_webhook with your webhook url
my-site/ ├─ index.html ├─ service.html ├─ contact.html ├─ css/ ├─ js/ ├─ img/ ├─ N8N/ - Run the site locally:
cd my-site
python3 -m http.server 8000Open: http://localhost:8000
npm install -g serve
serve .Open the given URL (usually http://localhost:5000)
- Install Live Server extension
- Right-click index.html → Open with Live Server
ngrok http 8000cloudflared tunnel --url http://localhost:8000