Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
AI agent that summarizes sales calls into structured summaries with tasks, objections, and insights using Vercel Sandbox and AI SDK.
The Sales Call Summary Agent is a Vercel-deployable AI template that turns raw sales call transcripts into structured summaries with tasks, objections, and insights using Vercel Sandbox, the AI SDK, and the Workflow SDK.
The Sales Call Summary Agent is an open-source template from Vercel Labs that automates post-call analysis. It receives a Gong webhook when a call completes, fetches the call transcript from the Gong API, and runs an AI agent inside a Vercel Sandbox to explore the transcript files with a bash tool. The output is a structured JSON summary containing a call summary, action items with owners, and objections with handling scores. The template runs on Vercel's serverless platform and is built with the AI SDK's ToolLoopAgent and the Workflow SDK for durable execution.
The flow starts with a POST request to /api/gong-webhook (or an empty body in demo mode). The request triggers a durable workflow that fetches the call transcript, creates a sandbox containing the transcript and context files, runs the AI agent with bash-tool to explore the files, and then writes the structured summary back to the workflow result. Each step uses the "use step" directive for retries and state persistence.
Yes, demo mode is enabled by default and uses a mock 20-minute product demo call. You can deploy to Vercel with one click and test immediately without setting any environment variables.
The agent produces a JSON object with a summary string, a list of tasks (each with description, owner, and which company the owner belongs to), and a list of objections (each with a description, a verbatim quote, speaker, handling status, and a handling score from 0 to 100).
Clone the repository, run pnpm install, run vercel link and vercel env pull to create .env.local, then pnpm dev. Trigger the webhook with a curl POST to http://localhost:3000/api/gong-webhook with an empty JSON body to test demo mode.
Yes, the template is designed to be adapted. You can modify the webhook handler and transcript fetching logic to work with Zoom, Google Meet, or any other platform that provides transcripts.
The template ships with Gong as its call transcript source, and the demo files include context from a hypothetical CRM and sales playbook. The README notes that it can be extended to Salesforce, Slack, and other services.
