Client Onboarding
Run the full onboarding playbook for a new client, producing a Client Intelligence Package and Growth Strategy Recommendations. The process covers three phases: parallel intelligence gathering (company, competitor, founder, SEO, AEO, paid ads, industry, and GTM research), synthes
8 steps · start to finish.
- 1Step 1
Environment Setup
▶Verify all required inputs and create the client folder structure.
echo "=== SETUP ===" # Validate required inputs if [ -z "$COMPANY_NAME" ] || [ -z "$COMPANY_URL" ]; then echo "ERROR: COMPANY_NAME and COMPANY_URL must be set" exit 1 fi CLIENT_NAME=$(echo "$COMPANY_NAME" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g' | sed 's/-\+/-/g' | sed 's/^-\|-$//g') RESULTS_DIR="/app/results" # Create client folder structure mkdir -p "$RESULTS_DIR/clients/$CLIENT_NAME/intelligence" mkdir -p "$RESULTS_DIR/clients/$CLIENT_NAME/strategies" mkdir -p "$RESULTS_DIR/clients/$CLIENT_NAME/campaigns" mkdir -p "$RESULTS_DIR/clients/$CLIENT_NAME/leads" mkdir -p "$RESULTS_DIR/clients/$CLIENT_NAME/content" # Initialize running log cat > "$RESULTS_DIR/clients/$CLIENT_NAME/notes.md" <<EOF # $COMPANY_NAME — Onboarding Notes Started: $(date -u +%Y-%m-%dT%H:%M:%SZ) URL: $COMPANY_URL EOF echo "Client folder created at: $RESULTS_DIR/clients/$CLIENT_NAME/" echo "CLIENT_NAME=$CLIENT_NAME" - 2Step 2
Phase 1 — Intelligence Gathering
▶Run all 8 research steps. Groups A and B can execute in parallel with each other; steps within each group can also run simultaneously.
- 3Step 3
Phase 2 — Synthesis & Diagnosis
▶> **HUMAN CHECKPOINT**: Before proceeding, confirm all 8 intelligence files exist and are non-empty.
- 4Step 4
Phase 3 — Strategy Generation
▶> **HUMAN CHECKPOINT**: Review the Intelligence Package for accuracy before generating strategies.
- 5Step 5
Iterate on Errors (max 3 rounds)
▶If any Phase 1 output file is missing or incomplete after the first pass:
- 6Step 6
Validation
▶Run the following verification checks before completing:
- 7Step 7
Write Executive Summary
▶Write `/app/results/summary.md`:
- 8Step 8
Final Checklist (MANDATORY — do not skip)
▶echo "=== FINAL OUTPUT VERIFICATION ===" RESULTS_DIR="/app/results" CLIENT_NAME="${CLIENT_NAME:-unknown}"