The script
Apps Script
Set it up
1
Open Apps Script
Open a Google Sheet. In the menu, click Extensions, then Apps Script. A code editor opens in a new tab.
2
Paste the script
Delete the sample code. Paste the script above. Click the disk icon to Save.
3
Deploy it as a web app
Top right, click Deploy, then New deployment. Pick type Web app. Set Execute as to Me and Who has access to Anyone. Click Deploy and allow access. Copy the web app URL (it ends in
/exec).4
Paste the URL on your agent
In the dashboard, open Voice Agents, click your agent, then Settings & post-call and Post-call rules. In the Webhook card, paste the URL and click Save.
5
Send a test
Click Send test. A sample row appears in your sheet.
Rows go to the first tab of the sheet. The header row is added on the first call.

