|
| 1 | +# PromptPipe environment configuration |
| 2 | +# Copy this file to .env and edit as needed: |
| 3 | +# cp .env.example .env |
| 4 | +# |
| 5 | +# Precedence: CLI flags > environment variables (.env) > defaults |
| 6 | +# See docs/configuration.md for the full reference. |
| 7 | + |
| 8 | +# --- Core --- |
| 9 | + |
| 10 | +# Base directory for SQLite files, debug logs, and lock file. |
| 11 | +# Default: /var/lib/promptpipe |
| 12 | +# PROMPTPIPE_STATE_DIR=/var/lib/promptpipe |
| 13 | + |
| 14 | +# HTTP server listen address. |
| 15 | +# Default: :8080 |
| 16 | +# API_ADDR=:8080 |
| 17 | + |
| 18 | +# --- Database --- |
| 19 | + |
| 20 | +# Application database DSN (SQLite or PostgreSQL). |
| 21 | +# Default: file:{STATE_DIR}/state.db?_foreign_keys=on |
| 22 | +# DATABASE_DSN=file:/var/lib/promptpipe/state.db?_foreign_keys=on |
| 23 | +# DATABASE_DSN=postgres://user:pass@localhost:5432/promptpipe?sslmode=disable |
| 24 | + |
| 25 | +# Legacy fallback for DATABASE_DSN (used only when DATABASE_DSN is unset). |
| 26 | +# DATABASE_URL= |
| 27 | + |
| 28 | +# WhatsApp/whatsmeow session database DSN. |
| 29 | +# Default: file:{STATE_DIR}/whatsmeow.db?_foreign_keys=on |
| 30 | +# WHATSAPP_DB_DSN=file:/var/lib/promptpipe/whatsmeow.db?_foreign_keys=on |
| 31 | + |
| 32 | +# --- GenAI (OpenAI) --- |
| 33 | + |
| 34 | +# Required for conversation flow and genai prompts. |
| 35 | +# OPENAI_API_KEY= |
| 36 | + |
| 37 | +# OpenAI model name. |
| 38 | +# Default: gpt-4o-mini |
| 39 | +# GENAI_MODEL=gpt-4o-mini |
| 40 | + |
| 41 | +# OpenAI temperature (0.0–1.0). Lower = more consistent. |
| 42 | +# Default: 0.1 |
| 43 | +# GENAI_TEMPERATURE=0.1 |
| 44 | + |
| 45 | +# --- Scheduling --- |
| 46 | + |
| 47 | +# Default cron string for /schedule when no schedule object is provided. |
| 48 | +# Five-field format: minute hour day month weekday |
| 49 | +# DEFAULT_SCHEDULE= |
| 50 | + |
| 51 | +# Minutes before scheduled habit time to send preparation message. |
| 52 | +# Default: 10 |
| 53 | +# SCHEDULER_PREP_TIME_MINUTES=10 |
| 54 | + |
| 55 | +# --- Conversation flow --- |
| 56 | + |
| 57 | +# System prompt file paths. |
| 58 | +# INTAKE_BOT_PROMPT_FILE=prompts/intake_bot_system.txt |
| 59 | +# PROMPT_GENERATOR_PROMPT_FILE=prompts/prompt_generator_system.txt |
| 60 | +# FEEDBACK_TRACKER_PROMPT_FILE=prompts/feedback_tracker_system.txt |
| 61 | + |
| 62 | +# Number of history messages sent to bot tools (-1=unlimited, 0=none). |
| 63 | +# Default: -1 |
| 64 | +# CHAT_HISTORY_LIMIT=-1 |
| 65 | + |
| 66 | +# Timeout for initial feedback response (e.g. "15m"). |
| 67 | +# Default: 15m |
| 68 | +# FEEDBACK_INITIAL_TIMEOUT=15m |
| 69 | + |
| 70 | +# Delay before follow-up feedback session (e.g. "3h"). |
| 71 | +# Default: 3h |
| 72 | +# FEEDBACK_FOLLOWUP_DELAY=3h |
| 73 | + |
| 74 | +# Auto-enter feedback mode after scheduled prompt inactivity. |
| 75 | +# Default: true |
| 76 | +# AUTO_FEEDBACK_AFTER_PROMPT_ENABLED=true |
| 77 | + |
| 78 | +# Auto-enroll unknown phone numbers on first message. |
| 79 | +# Default: false |
| 80 | +# AUTO_ENROLL_NEW_USERS=false |
| 81 | + |
| 82 | +# --- Debug --- |
| 83 | + |
| 84 | +# Enable debug messages and GenAI call logging. |
| 85 | +# Default: false |
| 86 | +# PROMPTPIPE_DEBUG=false |
0 commit comments