Implement a Sales Playbook Using LLM Gateway
This guide will show you how to use AssemblyAI’s LLM Gateway to implement a sales playbook with a call from a sales representative to a client.
This guide aims to show different ways of using structured prompts with a hypothetical sales use case to produce personalized, precise responses. Using LLM Gateway, a user can immediately evaluate large numbers of sales calls and ensure that prospecting steps are followed, including quotes in the response, which can inform future sales by identifying trends and quantitative performance tracking.
In this example, we will demonstrate how to use structured prompts with context, answer formats, and answer options to create effective sales call evaluations with LLM Gateway. You can use the concepts in this guide to create custom specifications to evaluate your sales representatives.
Quickstart
Get Started
Before we begin, make sure you have an AssemblyAI account and an API key. You can sign up for an AssemblyAI account and get your API key from your dashboard.
Step-by-Step Instructions
In this guide, we will ask three questions evaluating the prospecting performance of the sales representative. Each question has slightly different parameters based on the use case but largely has a fixed context that we will apply to each question.
Install the required packages and set up the API client:
Transcribe the sales call audio file:
Define your evaluation context and answer format for structured responses:
Next, define your evaluation questions for your sales playbook processes. Note: You can edit the questions and answer options to provide custom evaluations for each aspect of the sales call.
Evaluate each question using LLM Gateway and print the results: