The Google Apps Script project has been created and is ready to deploy. The script automatically receives form submissions from the AI Readiness Assessment, appends data to a Google Sheet, and sends email notifications.
1MHJba5dUWLQhboUI8NYkEELA4VPHK2otxjKD_pDNdIOAUgbKuZv4mjrI1xgzHu4_fDIiPgNkbuucdNunC_CtiGIu-svHyurvHDpY (AI Readiness Assessment - Lead Submissions){
"name": "string",
"email": "string",
"company": "string",
"industry": "string",
"companySize": "string",
"totalScore": "number (12-60)",
"tier": "Explorer|Builder|Accelerator|Leader",
"recommendedService": "string",
"servicePrice": "string",
"strongest": "string (dimension name)",
"weakest": "string (dimension name)",
"dimensionScores": { "dimension": score, ... },
"answers": { "1": value, ... },
"timestamp": "ISO 8601 timestamp"
}
Visit: https://script.google.com/d/1MHJba5dUWLQhboUI8NYkEELA4VPHK2otxjKD_pDNdIOAUgbKuZv4mjrI/edit
Sign in with: nichols.ai.assistant@gmail.com
You should see two files in the editor:
If they’re not there, copy the code from docs/apps-script-setup.js into Code.js and update appsscript.json to:
{
"timeZone": "America/New_York",
"dependencies": {},
"exceptionLogging": "STACKDRIVER",
"runtimeVersion": "V8",
"webapp": {
"executeAs": "USER_DEPLOYING",
"access": "ANYONE_ANONYMOUS"
}
}
Replace YOUR_APPS_SCRIPT_WEB_APP_URL in js/assessment.js with the actual deployed URL.
Example:
var APPS_SCRIPT_URL = 'https://script.google.com/macros/d/1MHJba5dUWLQhboUI8NYkEELA4VPHK2otxjKD_pDNdIOAUgbKuZv4mjrI/userweb?v=VERSION';
git add -A
git commit -m "Deploy Apps Script and update assessment form endpoint"
git push origin main
Once deployed, test with curl:
curl -X POST "https://script.google.com/macros/d/.../userweb" \
-H "Content-Type: application/json" \
-d '{
"name": "Test User",
"email": "test@example.com",
"company": "Test Co",
"industry": "Technology",
"companySize": "50-100",
"totalScore": 35,
"tier": "Builder",
"recommendedService": "AI Audit",
"servicePrice": "$5,000",
"strongest": "Data Maturity",
"weakest": "Governance & Risk",
"dimensionScores": { "data": 8, "process": 7 },
"answers": { "1": 3, "2": 2 },
"timestamp": "2026-03-20T10:25:00Z"
}'
Expected response:
{"status": "success"}
Go to the sheet at: https://docs.google.com/spreadsheets/d/1xgzHu4_fDIiPgNkbuucdNunC_CtiGIu-svHyurvHDpY
You should see a new row with the test data.
ben@up-state-ai.com should receive an email notification with the lead details.
The Apps Script needs authorization. When you first deploy, Google will prompt you to grant permissions for:
Click “Allow” to authorize.
Check the Script Execution Log:
sendNotification() functionCommon issues:
Check the Script Execution Log for errors appending rows. Verify:
1xgzHu4_fDIiPgNkbuucdNunC_CtiGIu-svHyurvHDpYSheet1Once deployed and committed:
The form will submit to the deployed Apps Script endpoint.
no-cors in the JavaScript, so responses won’t be readable by the browser