# Enable Cloud Functions API - Quick Guide

## 🚀 STEP 1: Enable Cloud Functions API

1. **Go to:** https://console.developers.google.com/apis/api/cloudfunctions.googleapis.com/overview?project=aizen247-db
2. **Click:** "ENABLE" button (blue)
3. **Wait:** 1-2 minutes for propagation

## 🚀 STEP 2: Deploy Function

After API is enabled, run:
```bash
cd /home/zenmini247/.openclaw/workspace
./deploy_after_api_enabled.sh
```

## 🚀 STEP 3: Test

After deployment, test:
```bash
# Test API
curl https://YOUR-API-URL/health

# Test in browser
# Open: http://localhost:18791/e2e_test.html
```

## ⏱️ Total Time: 5 minutes
1. 1 min: Enable API
2. 3 min: Deploy function
3. 1 min: Test

## 🔧 If Issues:

### If "Permission denied":
- Make sure you're logged into Google Cloud Console
- Make sure project "aizen247-db" is selected
- Check billing is enabled for the project

### If deployment fails:
- Check gcloud is authenticated: `gcloud auth list`
- Check project: `gcloud config get-value project`
- Check APIs: `gcloud services list --enabled`

## 📞 Support:
- API Enablement: Google Cloud Console link above
- Deployment: Run the script provided
- Testing: Use test pages created
