Get daily A/B test updates in Slack for multiple brands...
Create the complete Agency Morning Digest automation through conversation.
What you'll get:
Follow these steps in order. Ask questions conversationally, then create files directly.
Ask where to create the project files.
Default: current working directory. If it's empty or home directory, suggest creating ~/Desktop/agency-morning-digest/.
Ask: "Do you already have a Slack webhook URL, or do you need help creating one?"
If they need help creating one:
Guide them through:
https://hooks.slack.com/services/)If using Chrome browser automation: Offer to guide them through the Slack API website step by step.
Once they have the URL, save it for Step 4.
Ask: "What brands do you want to track? For each brand, I'll need a name and Intelligems API key."
Collect for each brand:
ig_live_xxxxxxxxxxAllow multiple brands. Ask "Add another brand?" after each one.
If they don't have API keys, direct them to contact Intelligems support.
Read the templates from references/file-templates.md and create these files in the project directory:
.env - Fill in user's Slack webhook URL.gitignore - Protects credentials (copy from template)Create a virtual environment and install dependencies:
cd {PROJECT_DIR}
python3 -m venv venv
./venv/bin/pip install -r requirements.txt
This isolates packages and avoids conflicts with system Python.
Ask: "Want to set up automatic daily messages at 8 AM?"
If yes:
~/Library/LaunchAgents/com.intelligems.agency-digest.plist using template from references/file-templates.md{PROJECT_DIR} with the actual project path (uses venv Python automatically)launchctl load ~/Library/LaunchAgents/com.intelligems.agency-digest.plistTell user: "Your computer needs to be on at 8 AM for the message to send."
Ask: "Want to send a test message to Slack now?"
If yes, run:
./venv/bin/python3 agency_digest.py
If they want a preview first:
./venv/bin/python3 agency_digest.py --dry-run
Summarize what was created:
# Send digest now (from project directory)
./venv/bin/python3 agency_digest.py
# Preview without sending
./venv/bin/python3 agency_digest.py --dry-run
# One combined message (instead of per-brand)
./venv/bin/python3 agency_digest.py --consolidated
Edit brands.json:
{
"brands": [
{"name": "Brand A", "display_name": "Brand A", "api_key": "ig_live_xxx"},
{"name": "Brand B", "display_name": "Brand B", "api_key": "ig_live_yyy"}
]
}
Edit config.py:
| Setting | Default | Purpose |
|---|---|---|
MIN_RUNTIME_DAYS |
10 | Days before calling winners |
MIN_CONFIDENCE_LEVEL |
0.80 | 80% confidence threshold |
MIN_SESSIONS_FOR_SIGNIFICANCE |
100 | Minimum visitors |
NEUTRAL_LIFT_THRESHOLD |
0.05 | ยฑ5% considered flat |
No Slack message?
/tmp/agency-digest.log for errors.env--dry-run to previewScheduler not running (macOS)?
launchctl list | grep agency-digest
API errors?
ig_live_xxxxxxxxxx